h5player.min.js
814.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n,i=t();for(n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(window,function(){return r={},a.m=n=[function(e,t,ls){!function(us){var ds;//! moment.js
//! version : 2.29.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
us.exports=function(){"use strict";var t,a;function l(){return t.apply(null,arguments)}function e(e){t=e}function s(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function o(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;else{var t;for(t in e)if(u(e,t))return false;return true}}function r(e){return e===void 0}function h(e){return typeof e==="number"||Object.prototype.toString.call(e)==="[object Number]"}function c(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function i(e,t){var n=[],i;for(i=0;i<e.length;++i)n.push(t(e[i],i));return n}function _(e,t){for(var n in t)if(u(t,n))e[n]=t[n];if(u(t,"toString"))e.toString=t.toString;if(u(t,"valueOf"))e.valueOf=t.valueOf;return e}function f(e,t,n,i){return Gn(e,t,n,i,true).utc()}function n(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function m(e){if(e._pf==null)e._pf=n();return e._pf}if(Array.prototype.some)a=Array.prototype.some;else a=function(e){var t=Object(this),n=t.length>>>0,i;for(i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return true;return false};function p(e){if(e._isValid==null){var t=m(e),n=a.call(t.parsedDateParts,function(e){return e!=null}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict)i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined;if(Object.isFrozen==null||!Object.isFrozen(e))e._isValid=i;else return i}return e._isValid}function y(e){var t=f(NaN);if(e!=null)_(m(t),e);else m(t).userInvalidated=true;return t}var v=l.momentProperties=[],g=false;function M(e,t){var n,i,a;if(!r(t._isAMomentObject))e._isAMomentObject=t._isAMomentObject;if(!r(t._i))e._i=t._i;if(!r(t._f))e._f=t._f;if(!r(t._l))e._l=t._l;if(!r(t._strict))e._strict=t._strict;if(!r(t._tzm))e._tzm=t._tzm;if(!r(t._isUTC))e._isUTC=t._isUTC;if(!r(t._offset))e._offset=t._offset;if(!r(t._pf))e._pf=m(t);if(!r(t._locale))e._locale=t._locale;if(v.length>0)for(n=0;n<v.length;n++){i=v[n];a=t[i];if(!r(a))e[i]=a}return e}function L(e){M(this,e);this._d=new Date(e._d!=null?e._d.getTime():NaN);if(!this.isValid())this._d=new Date(NaN);if(g===false){g=true;l.updateOffset(this);g=false}}function S(e){return e instanceof L||e!=null&&e._isAMomentObject!=null}function k(e){if(l.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn)console.warn("Deprecation warning: "+e)}function w(a,r){var s=true;return _(function(){if(l.deprecationHandler!=null)l.deprecationHandler(null,a);if(s){var e=[],t,n,i;for(n=0;n<arguments.length;n++){t="";if(typeof arguments[n]==="object"){t+="\n["+n+"] ";for(i in arguments[0])if(u(arguments[0],i))t+=i+": "+arguments[0][i]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}k(a+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);s=false}return r.apply(this,arguments)},r)}var b={},D;function T(e,t){if(l.deprecationHandler!=null)l.deprecationHandler(e,t);if(!b[e]){k(t);b[e]=true}}function Y(e){return typeof Function!=="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function E(e){var t,n;for(n in e)if(u(e,n)){t=e[n];if(Y(t))this[n]=t;else this["_"+n]=t}this._config=e;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function P(e,t){var n=_({},e),i;for(i in t)if(u(t,i))if(o(e[i])&&o(t[i])){n[i]={};_(n[i],e[i]);_(n[i],t[i])}else if(t[i]!=null)n[i]=t[i];else delete n[i];for(i in e)if(u(e,i)&&!u(t,i)&&o(e[i]))n[i]=_({},n[i]);return n}function C(e){if(e!=null)this.set(e)}if(l.suppressDeprecationWarnings=false,l.deprecationHandler=null,Object.keys)D=Object.keys;else D=function(e){var t,n=[];for(t in e)if(u(e,t))n.push(t);return n};var A={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function x(e,t,n){var i=this._calendar[e]||this._calendar["sameElse"];return Y(i)?i.call(t,n):i}function R(e,t,n){var i=""+Math.abs(e),a=t-i.length,r=e>=0;return(r?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+i}var O=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},W={};function j(e,t,n,i){var a=i;if(typeof i==="string")a=function(){return this[i]()};if(e)W[e]=a;if(t)W[t[0]]=function(){return R(a.apply(this,arguments),t[1],t[2])};if(n)W[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)}}function F(e){if(e.match(/\[[\s\S]/))return e.replace(/^\[|\]$/g,"");return e.replace(/\\/g,"")}function B(i){var a=i.match(O),e,r;for(e=0,r=a.length;e<r;e++)if(W[a[e]])a[e]=W[a[e]];else a[e]=F(a[e]);return function(e){var t="",n;for(n=0;n<r;n++)t+=Y(a[n])?a[n].call(e,i):a[n];return t}}function N(e,t){if(!e.isValid())return e.localeData().invalidDate();t=z(t,e.localeData());H[t]=H[t]||B(t);return H[t](e)}function z(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}I.lastIndex=0;while(n>=0&&I.test(e)){e=e.replace(I,i);I.lastIndex=0;n-=1}return e}var U={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"};function V(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];if(t||!n)return t;this._longDateFormat[e]=n.match(O).map(function(e){if(e==="MMMM"||e==="MM"||e==="DD"||e==="dddd")return e.slice(1);return e}).join("");return this._longDateFormat[e]}var G="Invalid date";function J(){return this._invalidDate}var q="%d",K=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var $={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Z(e,t,n,i){var a=this._relativeTime[n];return Y(a)?a(e,t,n,i):a.replace(/%d/i,e)}function Q(e,t){var n=this._relativeTime[e>0?"future":"past"];return Y(n)?n(t):n.replace(/%s/i,t)}var ee={};function te(e,t){var n=e.toLowerCase();ee[n]=ee[n+"s"]=ee[t]=e}function ne(e){return typeof e==="string"?ee[e]||ee[e.toLowerCase()]:undefined}function ie(e){var t={},n,i;for(i in e)if(u(e,i)){n=ne(i);if(n)t[n]=e[i]}return t}var ae={};function re(e,t){ae[e]=t}function se(e){var t=[],n;for(n in e)if(u(e,n))t.push({unit:n,priority:ae[n]});t.sort(function(e,t){return e.priority-t.priority});return t}function oe(e){return e%4===0&&e%100!==0||e%400===0}function ue(e){if(e<0)return Math.ceil(e)||0;else return Math.floor(e)}function de(e){var t=+e,n=0;if(t!==0&&isFinite(t))n=ue(t);return n}function le(t,n){return function(e){if(e!=null){ce(this,t,e);l.updateOffset(this,n);return this}else return he(this,t)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ce(e,t,n){if(e.isValid()&&!isNaN(n))if(t==="FullYear"&&oe(e.year())&&e.month()===1&&e.date()===29){n=de(n);e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ze(n,e.month()))}else e._d["set"+(e._isUTC?"UTC":"")+t](n)}function _e(e){e=ne(e);if(Y(this[e]))return this[e]();return this}function fe(e,t){if(typeof e==="object"){e=ie(e);var n=se(e),i;for(i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit])}else{e=ne(e);if(Y(this[e]))return this[e](t)}return this}var me=/\d/,pe=/\d\d/,ye=/\d{3}/,ve=/\d{4}/,ge=/[+-]?\d{6}/,Me=/\d\d?/,Le=/\d\d\d\d?/,Se=/\d\d\d\d\d\d?/,ke=/\d{1,3}/,we=/\d{1,4}/,be=/[+-]?\d{1,6}/,De=/\d+/,Te=/[+-]?\d+/,Ye=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,Pe=/[+-]?\d+(\.\d{1,3})?/,Ce=/[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,Ae;function xe(e,n,i){Ae[e]=Y(n)?n:function(e,t){return e&&i?i:n}}function Re(e,t){if(!u(Ae,e))return new RegExp(Oe(e));return Ae[e](t._strict,t._locale)}function Oe(e){return Ie(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,a){return t||n||i||a}))}function Ie(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ae={},He={};function We(e,n){var t,i=n;if(typeof e==="string")e=[e];if(h(n))i=function(e,t){t[n]=de(e)};for(t=0;t<e.length;t++)He[e[t]]=i}function je(e,a){We(e,function(e,t,n,i){n._w=n._w||{};a(e,n._w,n,i)})}function Fe(e,t,n){if(t!=null&&u(He,e))He[e](t,n._a,n,e)}var Be=0,Ne=1,ze=2,Ue=3,Ve=4,Ge=5,Je=6,qe=7,Ke=8,Xe;function $e(e,t){return(e%t+t)%t}if(Array.prototype.indexOf)Xe=Array.prototype.indexOf;else Xe=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Ze(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=$e(t,12);e+=(t-n)/12;return n===1?oe(e)?29:28:31-n%7%2}j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),j("MMMM",0,0,function(e){return this.localeData().months(this,e)}),te("month","M"),re("month",8),xe("M",Me),xe("MM",Me,pe),xe("MMM",function(e,t){return t.monthsShortRegex(e)}),xe("MMMM",function(e,t){return t.monthsRegex(e)}),We(["M","MM"],function(e,t){t[Ne]=de(e)-1}),We(["MMM","MMMM"],function(e,t,n,i){var a=n._locale.monthsParse(e,i,n._strict);if(a!=null)t[Ne]=a;else m(n).invalidMonth=e});var Qe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),et="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),tt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,nt=Ce,it=Ce;function at(e,t){if(!e)return s(this._months)?this._months:this._months["standalone"];return s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||tt).test(t)?"format":"standalone"][e.month()]}function rt(e,t){if(!e)return s(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"];return s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[tt.test(t)?"format":"standalone"][e.month()]}function st(e,t,n){var i,a,r,s=e.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];for(i=0;i<12;++i){r=f([2e3,i]);this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase();this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase()}}if(n)if(t==="MMM"){a=Xe.call(this._shortMonthsParse,s);return a!==-1?a:null}else{a=Xe.call(this._longMonthsParse,s);return a!==-1?a:null}else if(t==="MMM"){a=Xe.call(this._shortMonthsParse,s);if(a!==-1)return a;a=Xe.call(this._longMonthsParse,s);return a!==-1?a:null}else{a=Xe.call(this._longMonthsParse,s);if(a!==-1)return a;a=Xe.call(this._shortMonthsParse,s);return a!==-1?a:null}}function ot(e,t,n){var i,a,r;if(this._monthsParseExact)return st.call(this,e,t,n);if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[]}for(i=0;i<12;i++){a=f([2e3,i]);if(n&&!this._longMonthsParse[i]){this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i");this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")}if(!n&&!this._monthsParse[i]){r="^"+this.months(a,"")+"|^"+this.monthsShort(a,"");this._monthsParse[i]=new RegExp(r.replace(".",""),"i")}if(n&&t==="MMMM"&&this._longMonthsParse[i].test(e))return i;else if(n&&t==="MMM"&&this._shortMonthsParse[i].test(e))return i;else if(!n&&this._monthsParse[i].test(e))return i}}function ut(e,t){var n;if(!e.isValid())return e;if(typeof t==="string")if(/^\d+$/.test(t))t=de(t);else{t=e.localeData().monthsParse(t);if(!h(t))return e}n=Math.min(e.date(),Ze(e.year(),t));e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n);return e}function dt(e){if(e!=null){ut(this,e);l.updateOffset(this,true);return this}else return he(this,"Month")}function lt(){return Ze(this.year(),this.month())}function ht(e){if(this._monthsParseExact){if(!u(this,"_monthsRegex"))_t.call(this);if(e)return this._monthsShortStrictRegex;else return this._monthsShortRegex}else{if(!u(this,"_monthsShortRegex"))this._monthsShortRegex=nt;return this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}}function ct(e){if(this._monthsParseExact){if(!u(this,"_monthsRegex"))_t.call(this);if(e)return this._monthsStrictRegex;else return this._monthsRegex}else{if(!u(this,"_monthsRegex"))this._monthsRegex=it;return this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}}function _t(){function e(e,t){return t.length-e.length}var t=[],n=[],i=[],a,r;for(a=0;a<12;a++){r=f([2e3,a]);t.push(this.monthsShort(r,""));n.push(this.months(r,""));i.push(this.months(r,""));i.push(this.monthsShort(r,""))}t.sort(e);n.sort(e);i.sort(e);for(a=0;a<12;a++){t[a]=Ie(t[a]);n[a]=Ie(n[a])}for(a=0;a<24;a++)i[a]=Ie(i[a]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ft(e){return oe(e)?366:365}j("Y",0,0,function(){var e=this.year();return e<=9999?R(e,4):"+"+e}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,true],0,"year"),te("year","y"),re("year",1),xe("Y",Te),xe("YY",Me,pe),xe("YYYY",we,ve),xe("YYYYY",be,ge),xe("YYYYYY",be,ge),We(["YYYYY","YYYYYY"],Be),We("YYYY",function(e,t){t[Be]=e.length===2?l.parseTwoDigitYear(e):de(e)}),We("YY",function(e,t){t[Be]=l.parseTwoDigitYear(e)}),We("Y",function(e,t){t[Be]=parseInt(e,10)}),l.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var mt=le("FullYear",true);function pt(){return oe(this.year())}function yt(e,t,n,i,a,r,s){var o;if(e<100&&e>=0){o=new Date(e+400,t,n,i,a,r,s);if(isFinite(o.getFullYear()))o.setFullYear(e)}else o=new Date(e,t,n,i,a,r,s);return o}function vt(e){var t,n;if(e<100&&e>=0){n=Array.prototype.slice.call(arguments);n[0]=e+400;t=new Date(Date.UTC.apply(null,n));if(isFinite(t.getUTCFullYear()))t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function gt(e,t,n){var i=7+t-n,a=(7+vt(e,0,i).getUTCDay()-t)%7;return-a+i-1}function Mt(e,t,n,i,a){var r=(7+n-i)%7,s=gt(e,i,a),o=1+7*(t-1)+r+s,u,d;if(o<=0){u=e-1;d=ft(u)+o}else if(o>ft(e)){u=e+1;d=o-ft(e)}else{u=e;d=o}return{year:u,dayOfYear:d}}function Lt(e,t,n){var i=gt(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1,r,s;if(a<1){s=e.year()-1;r=a+St(s,t,n)}else if(a>St(e.year(),t,n)){r=a-St(e.year(),t,n);s=e.year()+1}else{s=e.year();r=a}return{week:r,year:s}}function St(e,t,n){var i=gt(e,t,n),a=gt(e+1,t,n);return(ft(e)-i+a)/7}function kt(e){return Lt(e,this._week.dow,this._week.doy).week}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),te("week","w"),te("isoWeek","W"),re("week",5),re("isoWeek",5),xe("w",Me),xe("ww",Me,pe),xe("W",Me),xe("WW",Me,pe),je(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=de(e)});var wt={dow:0,doy:6};function bt(){return this._week.dow}function Dt(){return this._week.doy}function Tt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Yt(e){var t=Lt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}function Et(e,t){if(typeof e!=="string")return e;if(!isNaN(e))return parseInt(e,10);e=t.weekdaysParse(e);if(typeof e==="number")return e;return null}function Pt(e,t){if(typeof e==="string")return t.weekdaysParse(e)%7||7;return isNaN(e)?null:e}function Ct(e,t){return e.slice(t,7).concat(e.slice(0,t))}j("d",0,"do","day"),j("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),j("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),j("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),te("day","d"),te("weekday","e"),te("isoWeekday","E"),re("day",11),re("weekday",11),re("isoWeekday",11),xe("d",Me),xe("e",Me),xe("E",Me),xe("dd",function(e,t){return t.weekdaysMinRegex(e)}),xe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),xe("dddd",function(e,t){return t.weekdaysRegex(e)}),je(["dd","ddd","dddd"],function(e,t,n,i){var a=n._locale.weekdaysParse(e,i,n._strict);if(a!=null)t.d=a;else m(n).invalidWeekday=e}),je(["d","e","E"],function(e,t,n,i){t[i]=de(e)});var At="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ot=Ce,It=Ce,Ht=Ce;function Wt(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&e!==true&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===true?Ct(n,this._week.dow):e?n[e.day()]:n}function jt(e){return e===true?Ct(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ft(e){return e===true?Ct(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Bt(e,t,n){var i,a,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(i=0;i<7;++i){r=f([2e3,1]).day(i);this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase();this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase();this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase()}}if(n)if(t==="dddd"){a=Xe.call(this._weekdaysParse,s);return a!==-1?a:null}else if(t==="ddd"){a=Xe.call(this._shortWeekdaysParse,s);return a!==-1?a:null}else{a=Xe.call(this._minWeekdaysParse,s);return a!==-1?a:null}else if(t==="dddd"){a=Xe.call(this._weekdaysParse,s);if(a!==-1)return a;a=Xe.call(this._shortWeekdaysParse,s);if(a!==-1)return a;a=Xe.call(this._minWeekdaysParse,s);return a!==-1?a:null}else if(t==="ddd"){a=Xe.call(this._shortWeekdaysParse,s);if(a!==-1)return a;a=Xe.call(this._weekdaysParse,s);if(a!==-1)return a;a=Xe.call(this._minWeekdaysParse,s);return a!==-1?a:null}else{a=Xe.call(this._minWeekdaysParse,s);if(a!==-1)return a;a=Xe.call(this._weekdaysParse,s);if(a!==-1)return a;a=Xe.call(this._shortWeekdaysParse,s);return a!==-1?a:null}}function Nt(e,t,n){var i,a,r;if(this._weekdaysParseExact)return Bt.call(this,e,t,n);if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(i=0;i<7;i++){a=f([2e3,1]).day(i);if(n&&!this._fullWeekdaysParse[i]){this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i");this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i");this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")}if(!this._weekdaysParse[i]){r="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,"");this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")}if(n&&t==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;else if(n&&t==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;else if(n&&t==="dd"&&this._minWeekdaysParse[i].test(e))return i;else if(!n&&this._weekdaysParse[i].test(e))return i}}function zt(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();if(e!=null){e=Et(e,this.localeData());return this.add(e-t,"d")}else return t}function Ut(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Vt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Pt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Gt(e){if(this._weekdaysParseExact){if(!u(this,"_weekdaysRegex"))Kt.call(this);if(e)return this._weekdaysStrictRegex;else return this._weekdaysRegex}else{if(!u(this,"_weekdaysRegex"))this._weekdaysRegex=Ot;return this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}}function Jt(e){if(this._weekdaysParseExact){if(!u(this,"_weekdaysRegex"))Kt.call(this);if(e)return this._weekdaysShortStrictRegex;else return this._weekdaysShortRegex}else{if(!u(this,"_weekdaysShortRegex"))this._weekdaysShortRegex=It;return this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}function qt(e){if(this._weekdaysParseExact){if(!u(this,"_weekdaysRegex"))Kt.call(this);if(e)return this._weekdaysMinStrictRegex;else return this._weekdaysMinRegex}else{if(!u(this,"_weekdaysMinRegex"))this._weekdaysMinRegex=Ht;return this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function Kt(){function e(e,t){return t.length-e.length}var t=[],n=[],i=[],a=[],r,s,o,u,d;for(r=0;r<7;r++){s=f([2e3,1]).day(r);o=Ie(this.weekdaysMin(s,""));u=Ie(this.weekdaysShort(s,""));d=Ie(this.weekdays(s,""));t.push(o);n.push(u);i.push(d);a.push(o);a.push(u);a.push(d)}t.sort(e);n.sort(e);i.sort(e);a.sort(e);this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Xt(){return this.hours()%12||12}function $t(){return this.hours()||24}function Zt(e,t){j(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Qt(e,t){return t._meridiemParse}function en(e){return(e+"").toLowerCase().charAt(0)==="p"}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,Xt),j("k",["kk",2],0,$t),j("hmm",0,0,function(){return""+Xt.apply(this)+R(this.minutes(),2)}),j("hmmss",0,0,function(){return""+Xt.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+R(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)}),Zt("a",true),Zt("A",false),te("hour","h"),re("hour",13),xe("a",Qt),xe("A",Qt),xe("H",Me),xe("h",Me),xe("k",Me),xe("HH",Me,pe),xe("hh",Me,pe),xe("kk",Me,pe),xe("hmm",Le),xe("hmmss",Se),xe("Hmm",Le),xe("Hmmss",Se),We(["H","HH"],Ue),We(["k","kk"],function(e,t,n){var i=de(e);t[Ue]=i===24?0:i}),We(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e);n._meridiem=e}),We(["h","hh"],function(e,t,n){t[Ue]=de(e);m(n).bigHour=true}),We("hmm",function(e,t,n){var i=e.length-2;t[Ue]=de(e.substr(0,i));t[Ve]=de(e.substr(i));m(n).bigHour=true}),We("hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[Ue]=de(e.substr(0,i));t[Ve]=de(e.substr(i,2));t[Ge]=de(e.substr(a));m(n).bigHour=true}),We("Hmm",function(e,t,n){var i=e.length-2;t[Ue]=de(e.substr(0,i));t[Ve]=de(e.substr(i))}),We("Hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[Ue]=de(e.substr(0,i));t[Ve]=de(e.substr(i,2));t[Ge]=de(e.substr(a))});var tn,nn=le("Hours",true);function an(e,t,n){if(e>11)return n?"pm":"PM";else return n?"am":"AM"}var rn={calendar:A,longDateFormat:U,invalidDate:G,ordinal:q,dayOfMonthOrdinalParse:K,relativeTime:$,months:Qe,monthsShort:et,week:wt,weekdays:At,weekdaysMin:Rt,weekdaysShort:xt,meridiemParse:/[ap]\.?m?\.?/i},sn={},on={},un;function dn(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function ln(e){return e?e.toLowerCase().replace("_","-"):e}function hn(e){var t=0,n,i,a,r;while(t<e.length){r=ln(e[t]).split("-");n=r.length;i=ln(e[t+1]);i=i?i.split("-"):null;while(n>0){a=cn(r.slice(0,n).join("-"));if(a)return a;if(i&&i.length>=n&&dn(r,i)>=n-1)break;n--}t++}return un}function cn(t){var e=null,n;if(sn[t]===undefined&&typeof us!=="undefined"&&us&&us.exports)try{e=un._abbr;n=ds;ls(276)("./"+t);_n(e)}catch(e){sn[t]=null}return sn[t]}function _n(e,t){var n;if(e){if(r(t))n=pn(e);else n=fn(e,t);if(n)un=n;else if(typeof console!=="undefined"&&console.warn)console.warn("Locale "+e+" not found. Did you forget to load it?")}return un._abbr}function fn(e,t){if(t!==null){var n,i=rn;t.abbr=e;if(sn[e]!=null){T("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.");i=sn[e]._config}else if(t.parentLocale!=null)if(sn[t.parentLocale]!=null)i=sn[t.parentLocale]._config;else{n=cn(t.parentLocale);if(n!=null)i=n._config;else{if(!on[t.parentLocale])on[t.parentLocale]=[];on[t.parentLocale].push({name:e,config:t});return null}}sn[e]=new C(P(i,t));if(on[e])on[e].forEach(function(e){fn(e.name,e.config)});_n(e);return sn[e]}else{delete sn[e];return null}}function mn(e,t){if(t!=null){var n,i,a=rn;if(sn[e]!=null&&sn[e].parentLocale!=null)sn[e].set(P(sn[e]._config,t));else{i=cn(e);if(i!=null)a=i._config;t=P(a,t);if(i==null)t.abbr=e;n=new C(t);n.parentLocale=sn[e];sn[e]=n}_n(e)}else if(sn[e]!=null)if(sn[e].parentLocale!=null){sn[e]=sn[e].parentLocale;if(e===_n())_n(e)}else if(sn[e]!=null)delete sn[e];return sn[e]}function pn(e){var t;if(e&&e._locale&&e._locale._abbr)e=e._locale._abbr;if(!e)return un;if(!s(e)){t=cn(e);if(t)return t;e=[e]}return hn(e)}function yn(){return D(sn)}function vn(e){var t,n=e._a;if(n&&m(e).overflow===-2){t=n[Ne]<0||n[Ne]>11?Ne:n[ze]<1||n[ze]>Ze(n[Be],n[Ne])?ze:n[Ue]<0||n[Ue]>24||n[Ue]===24&&(n[Ve]!==0||n[Ge]!==0||n[Je]!==0)?Ue:n[Ve]<0||n[Ve]>59?Ve:n[Ge]<0||n[Ge]>59?Ge:n[Je]<0||n[Je]>999?Je:-1;if(m(e)._overflowDayOfYear&&(t<Be||t>ze))t=ze;if(m(e)._overflowWeeks&&t===-1)t=qe;if(m(e)._overflowWeekday&&t===-1)t=Ke;m(e).overflow=t}return e}var gn=/^\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)?)?$/,Mn=/^\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)?)?$/,Ln=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["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/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,false],["YYYY",/\d{4}/,false]],kn=[["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/]],wn=/^\/?Date\((-?\d+)/i,bn=/^(?:(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}))$/,Dn={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Tn(e){var t,n,i=e._i,a=gn.exec(i)||Mn.exec(i),r,s,o,u;if(a){m(e).iso=true;for(t=0,n=Sn.length;t<n;t++)if(Sn[t][1].exec(a[1])){s=Sn[t][0];r=Sn[t][2]!==false;break}if(s==null){e._isValid=false;return}if(a[3]){for(t=0,n=kn.length;t<n;t++)if(kn[t][1].exec(a[3])){o=(a[2]||" ")+kn[t][0];break}if(o==null){e._isValid=false;return}}if(!r&&o!=null){e._isValid=false;return}if(a[4])if(Ln.exec(a[4]))u="Z";else{e._isValid=false;return}e._f=s+(o||"")+(u||"");jn(e)}else e._isValid=false}function Yn(e,t,n,i,a,r){var s=[En(e),et.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(a,10)];if(r)s.push(parseInt(r,10));return s}function En(e){var t=parseInt(e,10);if(t<=49)return 2e3+t;else if(t<=999)return 1900+t;return t}function Pn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Cn(e,t,n){if(e){var i=xt.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(i!==a){m(n).weekdayMismatch=true;n._isValid=false;return false}}return true}function An(e,t,n){if(e)return Dn[e];else if(t)return 0;else{var i=parseInt(n,10),a=i%100,r=(i-a)/100;return r*60+a}}function xn(e){var t=bn.exec(Pn(e._i)),n;if(t){n=Yn(t[4],t[3],t[2],t[5],t[6],t[7]);if(!Cn(t[1],n,e))return;e._a=n;e._tzm=An(t[8],t[9],t[10]);e._d=vt.apply(null,e._a);e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm);m(e).rfc2822=true}else e._isValid=false}function Rn(e){var t=wn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}Tn(e);if(e._isValid===false)delete e._isValid;else return;xn(e);if(e._isValid===false)delete e._isValid;else return;if(e._strict)e._isValid=false;else l.createFromInputFallback(e)}function On(e,t,n){if(e!=null)return e;if(t!=null)return t;return n}function In(e){var t=new Date(l.now());if(e._useUTC)return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()];return[t.getFullYear(),t.getMonth(),t.getDate()]}function Hn(e){var t,n,i=[],a,r,s;if(e._d)return;a=In(e);if(e._w&&e._a[ze]==null&&e._a[Ne]==null)Wn(e);if(e._dayOfYear!=null){s=On(e._a[Be],a[Be]);if(e._dayOfYear>ft(s)||e._dayOfYear===0)m(e)._overflowDayOfYear=true;n=vt(s,0,e._dayOfYear);e._a[Ne]=n.getUTCMonth();e._a[ze]=n.getUTCDate()}for(t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=a[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];if(e._a[Ue]===24&&e._a[Ve]===0&&e._a[Ge]===0&&e._a[Je]===0){e._nextDay=true;e._a[Ue]=0}e._d=(e._useUTC?vt:yt).apply(null,i);r=e._useUTC?e._d.getUTCDay():e._d.getDay();if(e._tzm!=null)e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm);if(e._nextDay)e._a[Ue]=24;if(e._w&&typeof e._w.d!=="undefined"&&e._w.d!==r)m(e).weekdayMismatch=true}function Wn(e){var t,n,i,a,r,s,o,u,d;t=e._w;if(t.GG!=null||t.W!=null||t.E!=null){r=1;s=4;n=On(t.GG,e._a[Be],Lt(Jn(),1,4).year);i=On(t.W,1);a=On(t.E,1);if(a<1||a>7)u=true}else{r=e._locale._week.dow;s=e._locale._week.doy;d=Lt(Jn(),r,s);n=On(t.gg,e._a[Be],d.year);i=On(t.w,d.week);if(t.d!=null){a=t.d;if(a<0||a>6)u=true}else if(t.e!=null){a=t.e+r;if(t.e<0||t.e>6)u=true}else a=r}if(i<1||i>St(n,r,s))m(e)._overflowWeeks=true;else if(u!=null)m(e)._overflowWeekday=true;else{o=Mt(n,i,a,r,s);e._a[Be]=o.year;e._dayOfYear=o.dayOfYear}}function jn(e){if(e._f===l.ISO_8601){Tn(e);return}if(e._f===l.RFC_2822){xn(e);return}e._a=[];m(e).empty=true;var t=""+e._i,n,i,a,r,s,o=t.length,u=0,d;a=z(e._f,e._locale).match(O)||[];for(n=0;n<a.length;n++){r=a[n];i=(t.match(Re(r,e))||[])[0];if(i){s=t.substr(0,t.indexOf(i));if(s.length>0)m(e).unusedInput.push(s);t=t.slice(t.indexOf(i)+i.length);u+=i.length}if(W[r]){if(i)m(e).empty=false;else m(e).unusedTokens.push(r);Fe(r,i,e)}else if(e._strict&&!i)m(e).unusedTokens.push(r)}m(e).charsLeftOver=o-u;if(t.length>0)m(e).unusedInput.push(t);if(e._a[Ue]<=12&&m(e).bigHour===true&&e._a[Ue]>0)m(e).bigHour=undefined;m(e).parsedDateParts=e._a.slice(0);m(e).meridiem=e._meridiem;e._a[Ue]=Fn(e._locale,e._a[Ue],e._meridiem);d=m(e).era;if(d!==null)e._a[Be]=e._locale.erasConvertYear(d,e._a[Be]);Hn(e);vn(e)}function Fn(e,t,n){var i;if(n==null)return t;if(e.meridiemHour!=null)return e.meridiemHour(t,n);else if(e.isPM!=null){i=e.isPM(n);if(i&&t<12)t+=12;if(!i&&t===12)t=0;return t}else return t}function Bn(e){var t,n,i,a,r,s,o=false;if(e._f.length===0){m(e).invalidFormat=true;e._d=new Date(NaN);return}for(a=0;a<e._f.length;a++){r=0;s=false;t=M({},e);if(e._useUTC!=null)t._useUTC=e._useUTC;t._f=e._f[a];jn(t);if(p(t))s=true;r+=m(t).charsLeftOver;r+=m(t).unusedTokens.length*10;m(t).score=r;if(!o){if(i==null||r<i||s){i=r;n=t;if(s)o=true}}else if(r<i){i=r;n=t}}_(e,n||t)}function Nn(e){if(e._d)return;var t=ie(e._i),n=t.day===undefined?t.date:t.day;e._a=i([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)});Hn(e)}function zn(e){var t=new L(vn(Un(e)));if(t._nextDay){t.add(1,"d");t._nextDay=undefined}return t}function Un(e){var t=e._i,n=e._f;e._locale=e._locale||pn(e._l);if(t===null||n===undefined&&t==="")return y({nullInput:true});if(typeof t==="string")e._i=t=e._locale.preparse(t);if(S(t))return new L(vn(t));else if(c(t))e._d=t;else if(s(n))Bn(e);else if(n)jn(e);else Vn(e);if(!p(e))e._d=null;return e}function Vn(e){var t=e._i;if(r(t))e._d=new Date(l.now());else if(c(t))e._d=new Date(t.valueOf());else if(typeof t==="string")Rn(e);else if(s(t)){e._a=i(t.slice(0),function(e){return parseInt(e,10)});Hn(e)}else if(o(t))Nn(e);else if(h(t))e._d=new Date(t);else l.createFromInputFallback(e)}function Gn(e,t,n,i,a){var r={};if(t===true||t===false){i=t;t=undefined}if(n===true||n===false){i=n;n=undefined}if(o(e)&&d(e)||s(e)&&e.length===0)e=undefined;r._isAMomentObject=true;r._useUTC=r._isUTC=a;r._l=n;r._i=e;r._f=t;r._strict=i;return zn(r)}function Jn(e,t,n,i){return Gn(e,t,n,i,false)}l.createFromInputFallback=w("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. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),l.ISO_8601=function(){},l.RFC_2822=function(){};var qn=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Jn.apply(null,arguments);if(this.isValid()&&e.isValid())return e<this?this:e;else return y()}),Kn=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Jn.apply(null,arguments);if(this.isValid()&&e.isValid())return e>this?this:e;else return y()});function Xn(e,t){var n,i;if(t.length===1&&s(t[0]))t=t[0];if(!t.length)return Jn();n=t[0];for(i=1;i<t.length;++i)if(!t[i].isValid()||t[i][e](n))n=t[i];return n}function $n(){var e=[].slice.call(arguments,0);return Xn("isBefore",e)}function Zn(){var e=[].slice.call(arguments,0);return Xn("isAfter",e)}var Qn=function(){return Date.now?Date.now():+new Date},ei=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ti(e){var t,n=false,i;for(t in e)if(u(e,t)&&!(Xe.call(ei,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return false;for(i=0;i<ei.length;++i)if(e[ei[i]]){if(n)return false;if(parseFloat(e[ei[i]])!==de(e[ei[i]]))n=true}return true}function ni(){return this._isValid}function ii(){return Di(NaN)}function ai(e){var t=ie(e),n=t.year||0,i=t.quarter||0,a=t.month||0,r=t.week||t.isoWeek||0,s=t.day||0,o=t.hour||0,u=t.minute||0,d=t.second||0,l=t.millisecond||0;this._isValid=ti(t);this._milliseconds=+l+d*1e3+u*6e4+o*1e3*60*60;this._days=+s+r*7;this._months=+a+i*3+n*12;this._data={};this._locale=pn();this._bubble()}function ri(e){return e instanceof ai}function si(e){if(e<0)return Math.round(-1*e)*-1;else return Math.round(e)}function oi(e,t,n){var i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),r=0,s;for(s=0;s<i;s++)if(n&&e[s]!==t[s]||!n&&de(e[s])!==de(t[s]))r++;return r+a}function ui(e,n){j(e,0,0,function(){var e=this.utcOffset(),t="+";if(e<0){e=-e;t="-"}return t+R(~~(e/60),2)+n+R(~~e%60,2)})}ui("Z",":"),ui("ZZ",""),xe("Z",Ee),xe("ZZ",Ee),We(["Z","ZZ"],function(e,t,n){n._useUTC=true;n._tzm=li(Ee,e)});var di=/([\+\-]|\d\d)/gi;function li(e,t){var n=(t||"").match(e),i,a,r;if(n===null)return null;i=n[n.length-1]||[];a=(i+"").match(di)||["-",0,0];r=+(a[1]*60)+de(a[2]);return r===0?0:a[0]==="+"?r:-r}function hi(e,t){var n,i;if(t._isUTC){n=t.clone();i=(S(e)||c(e)?e.valueOf():Jn(e).valueOf())-n.valueOf();n._d.setTime(n._d.valueOf()+i);l.updateOffset(n,false);return n}else return Jn(e).local()}function ci(e){return-Math.round(e._d.getTimezoneOffset())}function _i(e,t,n){var i=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e==="string"){e=li(Ee,e);if(e===null)return this}else if(Math.abs(e)<16&&!n)e=e*60;if(!this._isUTC&&t)a=ci(this);this._offset=e;this._isUTC=true;if(a!=null)this.add(a,"m");if(i!==e)if(!t||this._changeInProgress)Ci(this,Di(e-i,"m"),1,false);else if(!this._changeInProgress){this._changeInProgress=true;l.updateOffset(this,true);this._changeInProgress=null}return this}else return this._isUTC?i:ci(this)}function fi(e,t){if(e!=null){if(typeof e!=="string")e=-e;this.utcOffset(e,t);return this}else return-this.utcOffset()}function mi(e){return this.utcOffset(0,e)}function pi(e){if(this._isUTC){this.utcOffset(0,e);this._isUTC=false;if(e)this.subtract(ci(this),"m")}return this}function yi(){if(this._tzm!=null)this.utcOffset(this._tzm,false,true);else if(typeof this._i==="string"){var e=li(Ye,this._i);if(e!=null)this.utcOffset(e);else this.utcOffset(0,true)}return this}function vi(e){if(!this.isValid())return false;e=e?Jn(e).utcOffset():0;return(this.utcOffset()-e)%60===0}function gi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Mi(){if(!r(this._isDSTShifted))return this._isDSTShifted;var e={},t;M(e,this);e=Un(e);if(e._a){t=e._isUTC?f(e._a):Jn(e._a);this._isDSTShifted=this.isValid()&&oi(e._a,t.toArray())>0}else this._isDSTShifted=false;return this._isDSTShifted}function Li(){return this.isValid()?!this._isUTC:false}function Si(){return this.isValid()?this._isUTC:false}function ki(){return this.isValid()?this._isUTC&&this._offset===0:false}l.updateOffset=function(){};var wi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,bi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Di(e,t){var n=e,i=null,a,r,s;if(ri(e))n={ms:e._milliseconds,d:e._days,M:e._months};else if(h(e)||!isNaN(+e)){n={};if(t)n[t]=+e;else n.milliseconds=+e}else if(i=wi.exec(e)){a=i[1]==="-"?-1:1;n={y:0,d:de(i[ze])*a,h:de(i[Ue])*a,m:de(i[Ve])*a,s:de(i[Ge])*a,ms:de(si(i[Je]*1e3))*a}}else if(i=bi.exec(e)){a=i[1]==="-"?-1:1;n={y:Ti(i[2],a),M:Ti(i[3],a),w:Ti(i[4],a),d:Ti(i[5],a),h:Ti(i[6],a),m:Ti(i[7],a),s:Ti(i[8],a)}}else if(n==null)n={};else if(typeof n==="object"&&("from"in n||"to"in n)){s=Ei(Jn(n.from),Jn(n.to));n={};n.ms=s.milliseconds;n.M=s.months}r=new ai(n);if(ri(e)&&u(e,"_locale"))r._locale=e._locale;if(ri(e)&&u(e,"_isValid"))r._isValid=e._isValid;return r}function Ti(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Yi(e,t){var n={};n.months=t.month()-e.month()+(t.year()-e.year())*12;if(e.clone().add(n.months,"M").isAfter(t))--n.months;n.milliseconds=+t-+e.clone().add(n.months,"M");return n}function Ei(e,t){var n;if(!(e.isValid()&&t.isValid()))return{milliseconds:0,months:0};t=hi(t,e);if(e.isBefore(t))n=Yi(e,t);else{n=Yi(t,e);n.milliseconds=-n.milliseconds;n.months=-n.months}return n}function Pi(a,r){return function(e,t){var n,i;if(t!==null&&!isNaN(+t)){T(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). "+"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");i=e;e=t;t=i}n=Di(e,t);Ci(this,n,a);return this}}function Ci(e,t,n,i){var a=t._milliseconds,r=si(t._days),s=si(t._months);if(!e.isValid())return;i=i==null?true:i;if(s)ut(e,he(e,"Month")+s*n);if(r)ce(e,"Date",he(e,"Date")+r*n);if(a)e._d.setTime(e._d.valueOf()+a*n);if(i)l.updateOffset(e,r||s)}Di.fn=ai.prototype,Di.invalid=ii;var Ai=Pi(1,"add"),xi=Pi(-1,"subtract");function Ri(e){return typeof e==="string"||e instanceof String}function Oi(e){return S(e)||c(e)||Ri(e)||h(e)||Hi(e)||Ii(e)||e===null||e===undefined}function Ii(e){var t=o(e)&&!d(e),n=false,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,r;for(a=0;a<i.length;a+=1){r=i[a];n=n||u(e,r)}return t&&n}function Hi(t){var e=s(t),n=false;if(e)n=t.filter(function(e){return!h(e)&&Ri(t)}).length===0;return e&&n}function Wi(e){var t=o(e)&&!d(e),n=false,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,r;for(a=0;a<i.length;a+=1){r=i[a];n=n||u(e,r)}return t&&n}function ji(e,t){var n=e.diff(t,"days",true);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Fi(e,t){if(arguments.length===1)if(!arguments[0]){e=undefined;t=undefined}else if(Oi(arguments[0])){e=arguments[0];t=undefined}else if(Wi(arguments[0])){t=arguments[0];e=undefined}var n=e||Jn(),i=hi(n,this).startOf("day"),a=l.calendarFormat(this,i)||"sameElse",r=t&&(Y(t[a])?t[a].call(this,n):t[a]);return this.format(r||this.localeData().calendar(a,this,Jn(n)))}function Bi(){return new L(this)}function Ni(e,t){var n=S(e)?e:Jn(e);if(!(this.isValid()&&n.isValid()))return false;t=ne(t)||"millisecond";if(t==="millisecond")return this.valueOf()>n.valueOf();else return n.valueOf()<this.clone().startOf(t).valueOf()}function zi(e,t){var n=S(e)?e:Jn(e);if(!(this.isValid()&&n.isValid()))return false;t=ne(t)||"millisecond";if(t==="millisecond")return this.valueOf()<n.valueOf();else return this.clone().endOf(t).valueOf()<n.valueOf()}function Ui(e,t,n,i){var a=S(e)?e:Jn(e),r=S(t)?t:Jn(t);if(!(this.isValid()&&a.isValid()&&r.isValid()))return false;i=i||"()";return(i[0]==="("?this.isAfter(a,n):!this.isBefore(a,n))&&(i[1]===")"?this.isBefore(r,n):!this.isAfter(r,n))}function Vi(e,t){var n=S(e)?e:Jn(e),i;if(!(this.isValid()&&n.isValid()))return false;t=ne(t)||"millisecond";if(t==="millisecond")return this.valueOf()===n.valueOf();else{i=n.valueOf();return this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()}}function Gi(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Ji(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function qi(e,t,n){var i,a,r;if(!this.isValid())return NaN;i=hi(e,this);if(!i.isValid())return NaN;a=(i.utcOffset()-this.utcOffset())*6e4;t=ne(t);switch(t){case"year":r=Ki(this,i)/12;break;case"month":r=Ki(this,i);break;case"quarter":r=Ki(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-a)/864e5;break;case"week":r=(this-i-a)/6048e5;break;default:r=this-i}return n?r:ue(r)}function Ki(e,t){if(e.date()<t.date())return-Ki(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(n,"months"),a,r;if(t-i<0){a=e.clone().add(n-1,"months");r=(t-i)/(i-a)}else{a=e.clone().add(n+1,"months");r=(t-i)/(a-i)}return-(n+r)||0}function Xi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function $i(e){if(!this.isValid())return null;var t=e!==true,n=t?this.clone().utc():this;if(n.year()<0||n.year()>9999)return N(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(Y(Date.prototype.toISOString))if(t)return this.toDate().toISOString();else return new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",N(n,"Z"));return N(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Zi(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,i,a,r;if(!this.isLocal()){e=this.utcOffset()===0?"moment.utc":"moment.parseZone";t="Z"}n="["+e+'("]';i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";a="-MM-DD[T]HH:mm:ss.SSS";r=t+'[")]';return this.format(n+i+a+r)}function Qi(e){if(!e)e=this.isUtc()?l.defaultFormatUtc:l.defaultFormat;var t=N(this,e);return this.localeData().postformat(t)}function ea(e,t){if(this.isValid()&&(S(e)&&e.isValid()||Jn(e).isValid()))return Di({to:this,from:e}).locale(this.locale()).humanize(!t);else return this.localeData().invalidDate()}function ta(e){return this.from(Jn(),e)}function na(e,t){if(this.isValid()&&(S(e)&&e.isValid()||Jn(e).isValid()))return Di({from:this,to:e}).locale(this.locale()).humanize(!t);else return this.localeData().invalidDate()}function ia(e){return this.to(Jn(),e)}function aa(e){var t;if(e===undefined)return this._locale._abbr;else{t=pn(e);if(t!=null)this._locale=t;return this}}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ra=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){if(e===undefined)return this.localeData();else return this.locale(e)});function sa(){return this._locale}var oa=1e3,ua=60*oa,da=60*ua,la=(365*400+97)*24*da;function ha(e,t){return(e%t+t)%t}function ca(e,t,n){if(e<100&&e>=0)return new Date(e+400,t,n)-la;else return new Date(e,t,n).valueOf()}function _a(e,t,n){if(e<100&&e>=0)return Date.UTC(e+400,t,n)-la;else return Date.UTC(e,t,n)}function fa(e){var t,n;e=ne(e);if(e===undefined||e==="millisecond"||!this.isValid())return this;n=this._isUTC?_a:ca;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf();t-=ha(t+(this._isUTC?0:this.utcOffset()*ua),da);break;case"minute":t=this._d.valueOf();t-=ha(t,ua);break;case"second":t=this._d.valueOf();t-=ha(t,oa);break}this._d.setTime(t);l.updateOffset(this,true);return this}function ma(e){var t,n;e=ne(e);if(e===undefined||e==="millisecond"||!this.isValid())return this;n=this._isUTC?_a:ca;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf();t+=da-ha(t+(this._isUTC?0:this.utcOffset()*ua),da)-1;break;case"minute":t=this._d.valueOf();t+=ua-ha(t,ua)-1;break;case"second":t=this._d.valueOf();t+=oa-ha(t,oa)-1;break}this._d.setTime(t);l.updateOffset(this,true);return this}function pa(){return this._d.valueOf()-(this._offset||0)*6e4}function ya(){return Math.floor(this.valueOf()/1e3)}function va(){return new Date(this.valueOf())}function ga(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ma(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function La(){return this.isValid()?this.toISOString():null}function Sa(){return p(this)}function ka(){return _({},m(this))}function wa(){return m(this).overflow}function ba(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Da(e,t){var n,i,a,r=this._eras||pn("en")._eras;for(n=0,i=r.length;n<i;++n){switch(typeof r[n].since){case"string":a=l(r[n].since).startOf("day");r[n].since=a.valueOf();break}switch(typeof r[n].until){case"undefined":r[n].until=+Infinity;break;case"string":a=l(r[n].until).startOf("day").valueOf();r[n].until=a.valueOf();break}}return r}function Ta(e,t,n){var i,a,r=this.eras(),s,o,u;e=e.toUpperCase();for(i=0,a=r.length;i<a;++i){s=r[i].name.toUpperCase();o=r[i].abbr.toUpperCase();u=r[i].narrow.toUpperCase();if(n)switch(t){case"N":case"NN":case"NNN":if(o===e)return r[i];break;case"NNNN":if(s===e)return r[i];break;case"NNNNN":if(u===e)return r[i];break}else if([s,o,u].indexOf(e)>=0)return r[i]}}function Ya(e,t){var n=e.since<=e.until?+1:-1;if(t===undefined)return l(e.since).year();else return l(e.since).year()+(t-e.offset)*n}function Ea(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){n=this.clone().startOf("day").valueOf();if(i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""}function Pa(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){n=this.clone().startOf("day").valueOf();if(i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""}function Ca(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){n=this.clone().startOf("day").valueOf();if(i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""}function Aa(){var e,t,n,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){n=a[e].since<=a[e].until?+1:-1;i=this.clone().startOf("day").valueOf();if(a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-l(a[e].since).year())*n+a[e].offset}return this.year()}function xa(e){if(!u(this,"_erasNameRegex"))Fa.call(this);return e?this._erasNameRegex:this._erasRegex}function Ra(e){if(!u(this,"_erasAbbrRegex"))Fa.call(this);return e?this._erasAbbrRegex:this._erasRegex}function Oa(e){if(!u(this,"_erasNarrowRegex"))Fa.call(this);return e?this._erasNarrowRegex:this._erasRegex}function Ia(e,t){return t.erasAbbrRegex(e)}function Ha(e,t){return t.erasNameRegex(e)}function Wa(e,t){return t.erasNarrowRegex(e)}function ja(e,t){return t._eraYearOrdinalRegex||De}function Fa(){var e=[],t=[],n=[],i=[],a,r,s=this.eras();for(a=0,r=s.length;a<r;++a){t.push(Ie(s[a].name));e.push(Ie(s[a].abbr));n.push(Ie(s[a].narrow));i.push(Ie(s[a].name));i.push(Ie(s[a].abbr));i.push(Ie(s[a].narrow))}this._erasRegex=new RegExp("^("+i.join("|")+")","i");this._erasNameRegex=new RegExp("^("+t.join("|")+")","i");this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i");this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function Ba(e,t){j(0,[e,e.length],0,t)}function Na(e){return qa.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function za(e){return qa.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ua(){return St(this.year(),1,4)}function Va(){return St(this.isoWeekYear(),1,4)}function Ga(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function Ja(){var e=this.localeData()._week;return St(this.weekYear(),e.dow,e.doy)}function qa(e,t,n,i,a){var r;if(e==null)return Lt(this,i,a).year;else{r=St(e,i,a);if(t>r)t=r;return Ka.call(this,e,t,n,i,a)}}function Ka(e,t,n,i,a){var r=Mt(e,t,n,i,a),s=vt(r.year,0,r.dayOfYear);this.year(s.getUTCFullYear());this.month(s.getUTCMonth());this.date(s.getUTCDate());return this}function Xa(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),xe("N",Ia),xe("NN",Ia),xe("NNN",Ia),xe("NNNN",Ha),xe("NNNNN",Wa),We(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,i){var a=n._locale.erasParse(e,i,n._strict);if(a)m(n).era=a;else m(n).invalidEra=e}),xe("y",De),xe("yy",De),xe("yyy",De),xe("yyyy",De),xe("yo",ja),We(["y","yy","yyy","yyyy"],Be),We(["yo"],function(e,t,n,i){var a;if(n._locale._eraYearOrdinalRegex)a=e.match(n._locale._eraYearOrdinalRegex);if(n._locale.eraYearOrdinalParse)t[Be]=n._locale.eraYearOrdinalParse(e,a);else t[Be]=parseInt(e,10)}),j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ba("gggg","weekYear"),Ba("ggggg","weekYear"),Ba("GGGG","isoWeekYear"),Ba("GGGGG","isoWeekYear"),te("weekYear","gg"),te("isoWeekYear","GG"),re("weekYear",1),re("isoWeekYear",1),xe("G",Te),xe("g",Te),xe("GG",Me,pe),xe("gg",Me,pe),xe("GGGG",we,ve),xe("gggg",we,ve),xe("GGGGG",be,ge),xe("ggggg",be,ge),je(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=de(e)}),je(["gg","GG"],function(e,t,n,i){t[i]=l.parseTwoDigitYear(e)}),j("Q",0,"Qo","quarter"),te("quarter","Q"),re("quarter",7),xe("Q",me),We("Q",function(e,t){t[Ne]=(de(e)-1)*3}),j("D",["DD",2],"Do","date"),te("date","D"),re("date",9),xe("D",Me),xe("DD",Me,pe),xe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),We(["D","DD"],ze),We("Do",function(e,t){t[ze]=de(e.match(Me)[0])});var $a=le("Date",true);function Za(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}j("DDD",["DDDD",3],"DDDo","dayOfYear"),te("dayOfYear","DDD"),re("dayOfYear",4),xe("DDD",ke),xe("DDDD",ye),We(["DDD","DDDD"],function(e,t,n){n._dayOfYear=de(e)}),j("m",["mm",2],0,"minute"),te("minute","m"),re("minute",14),xe("m",Me),xe("mm",Me,pe),We(["m","mm"],Ve);var Qa=le("Minutes",false);j("s",["ss",2],0,"second"),te("second","s"),re("second",15),xe("s",Me),xe("ss",Me,pe),We(["s","ss"],Ge);var er=le("Seconds",false),tr,nr;for(j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return this.millisecond()*10}),j(0,["SSSSS",5],0,function(){return this.millisecond()*100}),j(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),j(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),j(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),j(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),te("millisecond","ms"),re("millisecond",16),xe("S",ke,me),xe("SS",ke,pe),xe("SSS",ke,ye),tr="SSSS";tr.length<=9;tr+="S")xe(tr,De);function ir(e,t){t[Je]=de(("0."+e)*1e3)}for(tr="S";tr.length<=9;tr+="S")We(tr,ir);function ar(){return this._isUTC?"UTC":""}function rr(){return this._isUTC?"Coordinated Universal Time":""}nr=le("Milliseconds",false),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var sr=L.prototype;if(sr.add=Ai,sr.calendar=Fi,sr.clone=Bi,sr.diff=qi,sr.endOf=ma,sr.format=Qi,sr.from=ea,sr.fromNow=ta,sr.to=na,sr.toNow=ia,sr.get=_e,sr.invalidAt=wa,sr.isAfter=Ni,sr.isBefore=zi,sr.isBetween=Ui,sr.isSame=Vi,sr.isSameOrAfter=Gi,sr.isSameOrBefore=Ji,sr.isValid=Sa,sr.lang=ra,sr.locale=aa,sr.localeData=sa,sr.max=Kn,sr.min=qn,sr.parsingFlags=ka,sr.set=fe,sr.startOf=fa,sr.subtract=xi,sr.toArray=ga,sr.toObject=Ma,sr.toDate=va,sr.toISOString=$i,sr.inspect=Zi,typeof Symbol!=="undefined"&&Symbol.for!=null)sr[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"};function or(e){return Jn(e*1e3)}function ur(){return Jn.apply(null,arguments).parseZone()}function dr(e){return e}sr.toJSON=La,sr.toString=Xi,sr.unix=ya,sr.valueOf=pa,sr.creationData=ba,sr.eraName=Ea,sr.eraNarrow=Pa,sr.eraAbbr=Ca,sr.eraYear=Aa,sr.year=mt,sr.isLeapYear=pt,sr.weekYear=Na,sr.isoWeekYear=za,sr.quarter=sr.quarters=Xa,sr.month=dt,sr.daysInMonth=lt,sr.week=sr.weeks=Tt,sr.isoWeek=sr.isoWeeks=Yt,sr.weeksInYear=Ga,sr.weeksInWeekYear=Ja,sr.isoWeeksInYear=Ua,sr.isoWeeksInISOWeekYear=Va,sr.date=$a,sr.day=sr.days=zt,sr.weekday=Ut,sr.isoWeekday=Vt,sr.dayOfYear=Za,sr.hour=sr.hours=nn,sr.minute=sr.minutes=Qa,sr.second=sr.seconds=er,sr.millisecond=sr.milliseconds=nr,sr.utcOffset=_i,sr.utc=mi,sr.local=pi,sr.parseZone=yi,sr.hasAlignedHourOffset=vi,sr.isDST=gi,sr.isLocal=Li,sr.isUtcOffset=Si,sr.isUtc=ki,sr.isUTC=ki,sr.zoneAbbr=ar,sr.zoneName=rr,sr.dates=w("dates accessor is deprecated. Use date instead.",$a),sr.months=w("months accessor is deprecated. Use month instead",dt),sr.years=w("years accessor is deprecated. Use year instead",mt),sr.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fi),sr.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Mi);var lr=C.prototype;function hr(e,t,n,i){var a=pn(),r=f().set(i,t);return a[n](r,e)}function cr(e,t,n){if(h(e)){t=e;e=undefined}e=e||"";if(t!=null)return hr(e,t,n,"month");var i,a=[];for(i=0;i<12;i++)a[i]=hr(e,i,n,"month");return a}function _r(e,t,n,i){if(typeof e==="boolean"){if(h(t)){n=t;t=undefined}t=t||""}else{t=e;n=t;e=false;if(h(t)){n=t;t=undefined}t=t||""}var a=pn(),r=e?a._week.dow:0,s,o=[];if(n!=null)return hr(t,(n+r)%7,i,"day");for(s=0;s<7;s++)o[s]=hr(t,(s+r)%7,i,"day");return o}function fr(e,t){return cr(e,t,"months")}function mr(e,t){return cr(e,t,"monthsShort")}function pr(e,t,n){return _r(e,t,n,"weekdays")}function yr(e,t,n){return _r(e,t,n,"weekdaysShort")}function vr(e,t,n){return _r(e,t,n,"weekdaysMin")}lr.calendar=x,lr.longDateFormat=V,lr.invalidDate=J,lr.ordinal=X,lr.preparse=dr,lr.postformat=dr,lr.relativeTime=Z,lr.pastFuture=Q,lr.set=E,lr.eras=Da,lr.erasParse=Ta,lr.erasConvertYear=Ya,lr.erasAbbrRegex=Ra,lr.erasNameRegex=xa,lr.erasNarrowRegex=Oa,lr.months=at,lr.monthsShort=rt,lr.monthsParse=ot,lr.monthsRegex=ct,lr.monthsShortRegex=ht,lr.week=kt,lr.firstDayOfYear=Dt,lr.firstDayOfWeek=bt,lr.weekdays=Wt,lr.weekdaysMin=Ft,lr.weekdaysShort=jt,lr.weekdaysParse=Nt,lr.weekdaysRegex=Gt,lr.weekdaysShortRegex=Jt,lr.weekdaysMinRegex=qt,lr.isPM=en,lr.meridiem=an,_n("en",{eras:[{since:"0001-01-01",until:+Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=de(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),l.lang=w("moment.lang is deprecated. Use moment.locale instead.",_n),l.langData=w("moment.langData is deprecated. Use moment.localeData instead.",pn);var gr=Math.abs;function Mr(){var e=this._data;this._milliseconds=gr(this._milliseconds);this._days=gr(this._days);this._months=gr(this._months);e.milliseconds=gr(e.milliseconds);e.seconds=gr(e.seconds);e.minutes=gr(e.minutes);e.hours=gr(e.hours);e.months=gr(e.months);e.years=gr(e.years);return this}function Lr(e,t,n,i){var a=Di(t,n);e._milliseconds+=i*a._milliseconds;e._days+=i*a._days;e._months+=i*a._months;return e._bubble()}function Sr(e,t){return Lr(this,e,t,1)}function kr(e,t){return Lr(this,e,t,-1)}function wr(e){if(e<0)return Math.floor(e);else return Math.ceil(e)}function br(){var e=this._milliseconds,t=this._days,n=this._months,i=this._data,a,r,s,o,u;if(!(e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0)){e+=wr(Tr(n)+t)*864e5;t=0;n=0}i.milliseconds=e%1e3;a=ue(e/1e3);i.seconds=a%60;r=ue(a/60);i.minutes=r%60;s=ue(r/60);i.hours=s%24;t+=ue(s/24);u=ue(Dr(t));n+=u;t-=wr(Tr(u));o=ue(n/12);n%=12;i.days=t;i.months=n;i.years=o;return this}function Dr(e){return e*4800/146097}function Tr(e){return e*146097/4800}function Yr(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;e=ne(e);if(e==="month"||e==="quarter"||e==="year"){t=this._days+i/864e5;n=this._months+Dr(t);switch(e){case"month":return n;case"quarter":return n/3;case"year":return n/12}}else{t=this._days+Math.round(Tr(this._months));switch(e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}}function Er(){if(!this.isValid())return NaN;return this._milliseconds+this._days*864e5+this._months%12*2592e6+de(this._months/12)*31536e6}function Pr(e){return function(){return this.as(e)}}var Cr=Pr("ms"),Ar=Pr("s"),xr=Pr("m"),Rr=Pr("h"),Or=Pr("d"),Ir=Pr("w"),Hr=Pr("M"),Wr=Pr("Q"),jr=Pr("y");function Fr(){return Di(this)}function Br(e){e=ne(e);return this.isValid()?this[e+"s"]():NaN}function Nr(e){return function(){return this.isValid()?this._data[e]:NaN}}var zr=Nr("milliseconds"),Ur=Nr("seconds"),Vr=Nr("minutes"),Gr=Nr("hours"),Jr=Nr("days"),qr=Nr("months"),Kr=Nr("years");function Xr(){return ue(this.days()/7)}var $r=Math.round,Zr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Qr(e,t,n,i,a){return a.relativeTime(t||1,!!n,e,i)}function es(e,t,n,i){var a=Di(e).abs(),r=$r(a.as("s")),s=$r(a.as("m")),o=$r(a.as("h")),u=$r(a.as("d")),d=$r(a.as("M")),l=$r(a.as("w")),h=$r(a.as("y")),c=r<=n.ss&&["s",r]||r<n.s&&["ss",r]||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];if(n.w!=null)c=c||l<=1&&["w"]||l<n.w&&["ww",l];c=c||d<=1&&["M"]||d<n.M&&["MM",d]||h<=1&&["y"]||["yy",h];c[2]=t;c[3]=+e>0;c[4]=i;return Qr.apply(null,c)}function ts(e){if(e===undefined)return $r;if(typeof e==="function"){$r=e;return true}return false}function ns(e,t){if(Zr[e]===undefined)return false;if(t===undefined)return Zr[e];Zr[e]=t;if(e==="s")Zr.ss=t-1;return true}function is(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=false,i=Zr,a,r;if(typeof e==="object"){t=e;e=false}if(typeof e==="boolean")n=e;if(typeof t==="object"){i=Object.assign({},Zr,t);if(t.s!=null&&t.ss==null)i.ss=t.s-1}a=this.localeData();r=es(this,!n,i,a);if(n)r=a.pastFuture(+this,r);return a.postformat(r)}var as=Math.abs;function rs(e){return(e>0)-(e<0)||+e}function ss(){if(!this.isValid())return this.localeData().invalidDate();var e=as(this._milliseconds)/1e3,t=as(this._days),n=as(this._months),i,a,r,s,o=this.asSeconds(),u,d,l,h;if(!o)return"P0D";i=ue(e/60);a=ue(i/60);e%=60;i%=60;r=ue(n/12);n%=12;s=e?e.toFixed(3).replace(/\.?0+$/,""):"";u=o<0?"-":"";d=rs(this._months)!==rs(o)?"-":"";l=rs(this._days)!==rs(o)?"-":"";h=rs(this._milliseconds)!==rs(o)?"-":"";return u+"P"+(r?d+r+"Y":"")+(n?d+n+"M":"")+(t?l+t+"D":"")+(a||i||e?"T":"")+(a?h+a+"H":"")+(i?h+i+"M":"")+(e?h+s+"S":"")}var os=ai.prototype;return os.isValid=ni,os.abs=Mr,os.add=Sr,os.subtract=kr,os.as=Yr,os.asMilliseconds=Cr,os.asSeconds=Ar,os.asMinutes=xr,os.asHours=Rr,os.asDays=Or,os.asWeeks=Ir,os.asMonths=Hr,os.asQuarters=Wr,os.asYears=jr,os.valueOf=Er,os._bubble=br,os.clone=Fr,os.get=Br,os.milliseconds=zr,os.seconds=Ur,os.minutes=Vr,os.hours=Gr,os.days=Jr,os.weeks=Xr,os.months=qr,os.years=Kr,os.humanize=is,os.toISOString=ss,os.toString=ss,os.toJSON=ss,os.locale=aa,os.localeData=sa,os.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ss),os.lang=ra,j("X",0,0,"unix"),j("x",0,0,"valueOf"),xe("x",Te),xe("X",Pe),We("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),We("x",function(e,t,n){n._d=new Date(de(e))}),
//! moment.js
l.version="2.29.1",e(Jn),l.fn=sr,l.min=$n,l.max=Zn,l.now=Qn,l.utc=f,l.unix=or,l.months=fr,l.isDate=c,l.locale=_n,l.invalid=y,l.duration=Di,l.isMoment=S,l.weekdays=pr,l.parseZone=ur,l.localeData=pn,l.isDuration=ri,l.monthsShort=mr,l.weekdaysMin=vr,l.defineLocale=fn,l.updateLocale=mn,l.locales=yn,l.weekdaysShort=yr,l.normalizeUnits=ne,l.relativeTimeRounding=ts,l.relativeTimeThreshold=ns,l.calendarFormat=ji,l.prototype=sr,l.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:"GGGG-[W]WW",MONTH:"YYYY-MM"},l}()}.call(this,ls(275)(e))},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var i,a=n(251),r=(i=a)&&i.__esModule?i:{default:i};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,r.default)(e,i.key,i)}}t.default=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}},function(e,t){e=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(1)),a=r(n(2)),n=r(n(11));function r(e){return e&&e.__esModule?e:{default:e}}(0,a.default)(s,null,[{key:"e",value:function(e,t){t="["+(e=!e||s.FORCE_GLOBAL_TAG?s.GLOBAL_TAG:e)+"] > "+t;s.ENABLE_CALLBACK&&s.emitter.emit("log","error",t),s.ENABLE_ERROR&&(console.error?console.error(t):console.warn?console.warn(t):console.log(t))}},{key:"i",value:function(e,t){t="["+(e=!e||s.FORCE_GLOBAL_TAG?s.GLOBAL_TAG:e)+"] > "+t;s.ENABLE_CALLBACK&&s.emitter.emit("log","info",t),s.ENABLE_INFO&&(console.info?console.info(t):console.log(t))}},{key:"w",value:function(e,t){t="["+(e=!e||s.FORCE_GLOBAL_TAG?s.GLOBAL_TAG:e)+"] > "+t;s.ENABLE_CALLBACK&&s.emitter.emit("log","warn",t),s.ENABLE_WARN&&(console.warn?console.warn(t):console.log(t))}},{key:"d",value:function(e,t){t="["+(e=!e||s.FORCE_GLOBAL_TAG?s.GLOBAL_TAG:e)+"] > "+t;s.ENABLE_CALLBACK&&s.emitter.emit("log","debug",t),s.ENABLE_DEBUG&&(console.debug?console.debug(t):console.log(t))}},{key:"v",value:function(e,t){t="["+(e=!e||s.FORCE_GLOBAL_TAG?s.GLOBAL_TAG:e)+"] > "+t;s.ENABLE_CALLBACK&&s.emitter.emit("log","verbose",t),s.ENABLE_VERBOSE&&console.log(t)}}]),a=s;function s(){(0,i.default)(this,s)}a.GLOBAL_TAG="flv.js",a.FORCE_GLOBAL_TAG=!1,a.ENABLE_ERROR=!0,a.ENABLE_INFO=!0,a.ENABLE_WARN=!0,a.ENABLE_DEBUG=!0,a.ENABLE_VERBOSE=!0,a.ENABLE_CALLBACK=!1,a.emitter=new n.default,t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotImplementedException=t.InvalidArgumentException=t.IllegalStateException=t.RuntimeException=void 0;var i=u(n(21)),a=u(n(26)),r=u(n(27)),s=u(n(1)),o=u(n(2));function u(e){return e&&e.__esModule?e:{default:e}}n=t.RuntimeException=((0,o.default)(d,[{key:"toString",value:function(){return this.name+": "+this.message}},{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}}]),d);function d(e){(0,s.default)(this,d),this._message=e}t.IllegalStateException=((0,r.default)(l,n),(0,o.default)(l,[{key:"name",get:function(){return"IllegalStateException"}}]),l);function l(e){return(0,s.default)(this,l),(0,a.default)(this,(l.__proto__||(0,i.default)(l)).call(this,e))}t.InvalidArgumentException=((0,r.default)(h,n),(0,o.default)(h,[{key:"name",get:function(){return"InvalidArgumentException"}}]),h);function h(e){return(0,s.default)(this,h),(0,a.default)(this,(h.__proto__||(0,i.default)(h)).call(this,e))}t.NotImplementedException=((0,r.default)(c,n),(0,o.default)(c,[{key:"name",get:function(){return"NotImplementedException"}}]),c);function c(e){return(0,s.default)(this,c),(0,a.default)(this,(c.__proto__||(0,i.default)(c)).call(this,e))}},function(e,t){e=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(e,t,n){var i=n(50)("wks"),a=n(36),r=n(6).Symbol,s="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=s&&r[e]||(s?r:a)("Symbol."+e))}).store=i},function(e,t,n){var m=n(6),p=n(3),y=n(22),v=n(17),g=n(18),M="prototype",L=function(e,t,n){var i,a,r,s=e&L.F,o=e&L.G,u=e&L.S,d=e&L.P,l=e&L.B,h=e&L.W,c=o?p:p[t]||(p[t]={}),_=c[M],f=o?m:u?m[t]:(m[t]||{})[M];for(i in n=o?t:n)(a=!s&&f&&void 0!==f[i])&&g(c,i)||(r=(a?f:n)[i],c[i]=o&&"function"!=typeof f[i]?n[i]:l&&a?y(r,m):h&&f[i]==r?function(i){function e(e,t,n){if(this instanceof i){switch(arguments.length){case 0:return new i;case 1:return new i(e);case 2:return new i(e,t)}return new i(e,t,n)}return i.apply(this,arguments)}return e[M]=i[M],e}(r):d&&"function"==typeof r?y(Function.call,r):r,d&&((c.virtual||(c.virtual={}))[i]=r,e&L.R&&_&&!_[i]&&v(_,i,r)))};L.F=1,L.G=2,L.S=4,L.P=8,L.B=16,L.W=32,L.U=64,L.R=128,e.exports=L},function(e,t,n){"use strict";t.__esModule=!0;var i=s(n(262)),a=s(n(264)),r="function"==typeof a.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function s(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof a.default&&"symbol"===r(i.default)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":void 0===e?"undefined":r(e)}},function(e,t,n){var i=n(16);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";var i="object"==typeof Reflect?Reflect:null,u=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};var a=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},r=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(o,u){return new Promise(function(e,t){function n(e){o.removeListener(u,i),t(e)}function i(){"function"==typeof o.removeListener&&o.removeListener("error",n),e([].slice.call(arguments))}var a,r,s;p(o,u,i,{once:!0}),"error"!==u&&(r=n,s={once:!0},"function"==typeof(a=o).on&&p(a,"error",r,s))})},(s.EventEmitter=s).prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function d(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function h(e,t,n,i){var a,r;return d(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener||n),a=e._events),r=a[t]),void 0===r?(r=a[t]=n,++e._eventsCount):("function"==typeof r?r=a[t]=i?[n,r]:[r,n]:i?r.unshift(n):r.push(n),0<(n=l(e))&&r.length>n&&!r.warned&&(r.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=e,n.type=t,n.count=r.length,n=n,console&&console.warn&&console.warn(n))),e}function c(e,t,n){e={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},t=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(e);return t.listener=n,e.wrapFn=t}function _(e,t,n){e=e._events;if(void 0===e)return[];t=e[t];return void 0===t?[]:"function"==typeof t?n?[t.listener||t]:[t]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):m(t,t.length)}function f(e){var t=this._events;if(void 0!==t){e=t[e];if("function"==typeof e)return 1;if(void 0!==e)return e.length}return 0}function m(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function p(n,i,a,r){if("function"==typeof n.on)r.once?n.once(i,a):n.on(i,a);else{if("function"!=typeof n.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof n);n.addEventListener(i,function e(t){r.once&&n.removeEventListener(i,e),a(t)})}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i,a="error"===e,r=this._events;if(void 0!==r)a=a&&void 0===r.error;else if(!a)return!1;if(a){if((i=0<t.length?t[0]:i)instanceof Error)throw i;a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}e=r[e];if(void 0===e)return!1;if("function"==typeof e)u(e,this,t);else for(var s=e.length,o=m(e,s),n=0;n<s;++n)u(o[n],this,t);return!0},s.prototype.addListener=function(e,t){return h(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return h(this,e,t,!0)},s.prototype.once=function(e,t){return d(t),this.on(e,c(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return d(t),this.prependListener(e,c(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,i,a,r,s;if(d(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,r=n.length-1;0<=r;r--)if(n[r]===t||n[r].listener===t){s=n[r].listener,a=r;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,a),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events;if(void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){for(var i,a=Object.keys(n),r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;0<=r;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return _(this,e,!0)},s.prototype.rawListeners=function(e){return _(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},s.prototype.listenerCount=f,s.prototype.eventNames=function(){return 0<this._eventsCount?a(this._events):[]}},function(e,t,n){var i=n(10),a=n(70),r=n(46),s=Object.defineProperty;t.f=n(13)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),a)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(23)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseLoader=t.LoaderErrors=t.LoaderStatus=void 0;var i=s(n(1)),a=s(n(2)),r=n(5);function s(e){return e&&e.__esModule?e:{default:e}}var o=t.LoaderStatus={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4};t.LoaderErrors={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},t.BaseLoader=((0,a.default)(u,[{key:"destroy",value:function(){this._status=o.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===o.kConnecting||this._status===o.kBuffering}},{key:"open",value:function(e,t){throw new r.NotImplementedException("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new r.NotImplementedException("Unimplemented abstract function!")}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(e){this._onContentLengthKnown=e}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(e){this._onURLRedirect=e}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(e){this._onDataArrival=e}},{key:"onError",get:function(){return this._onError},set:function(e){this._onError=e}},{key:"onComplete",get:function(){return this._onComplete},set:function(e){this._onComplete=e}}]),u);function u(e){(0,i.default)(this,u),this._type=e||"undefined",this._status=o.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},function(e,t,n){e.exports={default:n(232),__esModule:!0}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var i=n(12),a=n(30);e.exports=n(13)?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(73),a=n(44);e.exports=function(e){return i(a(e))}},function(e,t,n){e.exports={default:n(284),__esModule:!0}},function(e,t,n){e.exports={default:n(294),__esModule:!0}},function(e,t,n){var r=n(35);e.exports=function(i,a,e){if(r(i),void 0===a)return i;switch(e){case 1:return function(e){return i.call(a,e)};case 2:return function(e,t){return i.call(a,e,t)};case 3:return function(e,t,n){return i.call(a,e,t,n)}}return function(){return i.apply(a,arguments)}}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports={}},function(e,t,n){var i=n(44);e.exports=function(e){return Object(i(e))}},function(e,t,n){"use strict";t.__esModule=!0;var i,a=n(9),r=(i=a)&&i.__esModule?i:{default:i};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,r.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";t.__esModule=!0;var i=s(n(40)),a=s(n(296)),r=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,r.default)(t)));e.prototype=(0,a.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";var i=n(233)(!0);n(69)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e=this._t,t=this._i;return t>=e.length?{value:void 0,done:!0}:(t=i(e,t),this._i+=t.length,{value:t,done:!1})})},function(e,t){e.exports=!0},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(72),a=n(51);e.exports=Object.keys||function(e){return i(e,a)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(21)),s=i(n(300));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function e(t,n,i){null===t&&(t=Function.prototype);var a=(0,s.default)(t,n);if(void 0!==a){if("value"in a)return a.value;a=a.get;return void 0!==a?a.call(i):void 0}t=(0,r.default)(t);if(null!==t)return e(t,n,i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(20),r=(i=a)&&i.__esModule?i:{default:i};var s={};!function(){var e,t=self.navigator.userAgent.toLowerCase(),n=/(edge)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(chrome)[ \/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||0<=t.indexOf("trident")&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(t)||[],i=/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(android)/.exec(t)||/(windows)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||[],t={browser:n[5]||n[3]||n[1]||"",version:n[2]||n[4]||"0",majorVersion:n[4]||n[2]||"0",platform:i[0]||""},n={};for(e in t.browser&&(n[t.browser]=!0,i=t.majorVersion.split("."),n.version={major:parseInt(t.majorVersion,10),string:t.version},1<i.length&&(n.version.minor=parseInt(i[1],10)),2<i.length&&(n.version.build=parseInt(i[2],10))),t.platform&&(n[t.platform]=!0),(n.chrome||n.opr||n.safari)&&(n.webkit=!0),(n.rv||n.iemobile)&&(n.rv&&delete n.rv,t.browser="msie",n.msie=!0),n.edge&&(delete n.edge,t.browser="msedge",n.msedge=!0),n.opr&&(t.browser="opera",n.opera=!0),n.safari&&n.android&&(n[t.browser="android"]=!0),n.name=t.browser,n.platform=t.platform,s)s.hasOwnProperty(e)&&delete s[e];(0,r.default)(s,n)}(),t.default=s},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){var i=n(12).f,a=n(18),r=n(7)("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},function(e,t,n){n(238);for(var i=n(6),a=n(17),r=n(24),s=n(7)("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(","),u=0;u<o.length;u++){var d=o[u],l=i[d],l=l&&l.prototype;l&&!l[s]&&a(l,s,d),r[d]=r.Array}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){e.exports={default:n(287),__esModule:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",VIDEO_RESOLUTION_CHANGED:"video_resolution_changed",MEDIA_SOURCE_ENDED:"media_source_ended",MEDIA_SOURCE_CLOSE:"media_source_close",VIDEO_FROZEN:"video_decoded_frame_frozen",MS_BUFFER_FULL:"media_source_buffer_full",LOADED_META_DATA:"loaded_meta_data"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint",VIDEO_RESOLUTION_CHANGED:"video_resolution_changed",PARSEDDATA_ARRIVED:"parseddata_arrived"}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?i:n)(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(16),a=n(6).document,r=i(a)&&i(a.createElement);e.exports=function(e){return r?a.createElement(e):{}}},function(e,t,n){var a=n(16);e.exports=function(e,t){if(!a(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!a(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!a(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!a(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){function i(){}var a=n(10),r=n(235),s=n(51),o=n(49)("IE_PROTO"),u="prototype",d=function(){var e=n(45)("iframe"),t=s.length;for(e.style.display="none",n(74).appendChild(e),e.src="javascript:",(e=e.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),d=e.F;t--;)delete d[u][s[t]];return d()};e.exports=Object.create||function(e,t){var n;return null!==e?(i[u]=a(e),n=new i,i[u]=null,n[o]=e):n=d(),void 0===t?n:r(n,t)}},function(e,t,n){var i=n(43),a=Math.min;e.exports=function(e){return 0<e?a(i(e),9007199254740991):0}},function(e,t,n){var i=n(50)("keys"),a=n(36);e.exports=function(e){return i[e]||(i[e]=a(e))}},function(e,t,n){var i=n(3),a=n(6),r="__core-js_shared__",s=a[r]||(a[r]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(29)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(32),a=n(7)("toStringTag"),r="Arguments"==i(function(){return arguments}());e.exports=function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(e=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?e:r?i(t):"Object"==(e=i(t))&&"function"==typeof t.callee?"Arguments":e}},function(e,t,n){var i=n(52),a=n(7)("iterator"),r=n(24);e.exports=n(3).getIteratorMethod=function(e){if(null!=e)return e[a]||e["@@iterator"]||r[i(e)]}},function(e,t,n){"use strict";var a=n(35);function i(e){var n,i;this.promise=new e(function(e,t){if(void 0!==n||void 0!==i)throw TypeError("Bad Promise constructor");n=e,i=t}),this.resolve=a(n),this.reject=a(i)}e.exports.f=function(e){return new i(e)}},function(mn,pn,e){var yn,t,n;
/*!
* jQuery JavaScript Library v1.12.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-05-20T17:17Z
*/
t="undefined"!=typeof window?window:this,n=function(L,e){function t(e,t){return t.toUpperCase()}var h=[],f=L.document,l=h.slice,m=h.concat,o=h.push,a=h.indexOf,n={},i=n.toString,p=n.hasOwnProperty,y={},S=function(e,t){return new S.fn.init(e,t)},r=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,s=/^-ms-/,u=/-([\da-z])/gi;function d(e){var t=!!e&&"length"in e&&e.length,n=S.type(e);return"function"!==n&&!S.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:"1.12.4",constructor:S,selector:"",length:0,toArray:function(){return l.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:l.call(this)},pushStack:function(e){e=S.merge(this.constructor(),e);return e.prevObject=this,e.context=this.context,e},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:o,sort:h.sort,splice:h.splice},S.extend=S.fn.extend=function(){var e,t,n,i,a,r=arguments[0]||{},s=1,o=arguments.length,u=!1;for("boolean"==typeof r&&(u=r,r=arguments[s]||{},s++),"object"==typeof r||S.isFunction(r)||(r={}),s===o&&(r=this,s--);s<o;s++)if(null!=(i=arguments[s]))for(n in i)a=r[n],r!==(t=i[n])&&(u&&t&&(S.isPlainObject(t)||(e=S.isArray(t)))?(a=e?(e=!1,a&&S.isArray(a)?a:[]):a&&S.isPlainObject(a)?a:{},r[n]=S.extend(u,a,t)):void 0!==t&&(r[n]=t));return r},S.extend({expando:"jQuery"+("1.12.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===S.type(e)},isArray:Array.isArray||function(e){return"array"===S.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!S.isArray(e)&&0<=t-parseFloat(t)+1},isEmptyObject:function(e){for(var t in e)return!1;return!0},isPlainObject:function(e){if(!e||"object"!==S.type(e)||e.nodeType||S.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(!y.ownFirst)for(var t in e)return p.call(e,t);for(t in e);return void 0===t||p.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e},globalEval:function(e){e&&S.trim(e)&&(L.execScript||function(e){L.eval.call(L,e)})(e)},camelCase:function(e){return e.replace(s,"ms-").replace(u,t)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(d(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(r,"")},makeArray:function(e,t){t=t||[];return null!=e&&(d(Object(e))?S.merge(t,"string"==typeof e?[e]:e):o.call(t,e)),t},inArray:function(e,t,n){var i;if(t){if(a)return a.call(t,e,n);for(i=t.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,i=0,a=e.length;i<n;)e[a++]=t[i++];if(n!=n)for(;void 0!==t[i];)e[a++]=t[i++];return e.length=a,e},grep:function(e,t,n){for(var i=[],a=0,r=e.length,s=!n;a<r;a++)!t(e[a],a)!=s&&i.push(e[a]);return i},map:function(e,t,n){var i,a,r=0,s=[];if(d(e))for(i=e.length;r<i;r++)null!=(a=t(e[r],r,n))&&s.push(a);else for(r in e)null!=(a=t(e[r],r,n))&&s.push(a);return m.apply([],s)},guid:1,proxy:function(e,t){var n,i;if("string"==typeof t&&(i=e[t],t=e,e=i),S.isFunction(e))return n=l.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(l.call(arguments)))}).guid=e.guid=e.guid||S.guid++,i},now:function(){return+new Date},support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=h[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var c=
/*!
* Sizzle CSS Selector Engine v2.2.1
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-10-17
*/
function(n){function h(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(65536+i):String.fromCharCode(i>>10|55296,1023&i|56320)}function t(){S()}var e,f,M,r,i,m,c,p,L,u,d,S,k,a,w,y,s,o,v,b="sizzle"+ +new Date,g=n.document,D=0,l=0,_=ae(),T=ae(),Y=ae(),E=function(e,t){return e===t&&(d=!0),0},P={}.hasOwnProperty,C=[],A=C.pop,x=C.push,R=C.push,O=C.slice,I=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",W="[\\x20\\t\\r\\n\\f]",j="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",F="\\["+W+"*("+j+")(?:"+W+"*([*^$|!~]?=)"+W+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+W+"*\\]",B=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",N=new RegExp(W+"+","g"),z=new RegExp("^"+W+"+|((?:^|[^\\\\])(?:\\\\.)*)"+W+"+$","g"),U=new RegExp("^"+W+"*,"+W+"*"),V=new RegExp("^"+W+"*([>+~]|"+W+")"+W+"*"),G=new RegExp("="+W+"*([^\\]'\"]*?)"+W+"*\\]","g"),J=new RegExp(B),q=new RegExp("^"+j+"$"),K={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+W+"*(even|odd|(([+-]|)(\\d*)n|)"+W+"*(?:([+-]|)"+W+"*(\\d+)|))"+W+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+W+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+W+"*((?:-\\d)?\\d*)"+W+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,$=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ne=new RegExp("\\\\([\\da-f]{1,6}"+W+"?|("+W+")|.)","ig");try{R.apply(C=O.call(g.childNodes),g.childNodes),C[g.childNodes.length].nodeType}catch(e){R={apply:C.length?function(e,t){x.apply(e,O.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ie(e,t,n,i){var a,r,s,o,u,d,l,h,c=t&&t.ownerDocument,_=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==_&&9!==_&&11!==_)return n;if(!i&&((t?t.ownerDocument||t:g)!==k&&S(t),t=t||k,w)){if(11!==_&&(d=Q.exec(e)))if(a=d[1]){if(9===_){if(!(s=t.getElementById(a)))return n;if(s.id===a)return n.push(s),n}else if(c&&(s=c.getElementById(a))&&v(t,s)&&s.id===a)return n.push(s),n}else{if(d[2])return R.apply(n,t.getElementsByTagName(e)),n;if((a=d[3])&&f.getElementsByClassName&&t.getElementsByClassName)return R.apply(n,t.getElementsByClassName(a)),n}if(f.qsa&&!Y[e+" "]&&(!y||!y.test(e))){if(1!==_)c=t,h=e;else if("object"!==t.nodeName.toLowerCase()){for((o=t.getAttribute("id"))?o=o.replace(te,"\\$&"):t.setAttribute("id",o=b),r=(l=m(e)).length,u=q.test(o)?"#"+o:"[id='"+o+"']";r--;)l[r]=u+" "+ce(l[r]);h=l.join(","),c=ee.test(e)&&le(t.parentNode)||t}if(h)try{return R.apply(n,c.querySelectorAll(h)),n}catch(e){}finally{o===b&&t.removeAttribute("id")}}}return p(e.replace(z,"$1"),t,n,i)}function ae(){var n=[];function i(e,t){return n.push(e+" ")>M.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function re(e){return e[b]=!0,e}function se(e){var t=k.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function oe(e,t){for(var n=e.split("|"),i=n.length;i--;)M.attrHandle[n[i]]=t}function ue(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(s){return re(function(r){return r=+r,re(function(e,t){for(var n,i=s([],e.length,r),a=i.length;a--;)e[n=i[a]]&&(e[n]=!(t[n]=e[n]))})})}function le(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=ie.support={},i=ie.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},S=ie.setDocument=function(e){var e=e?e.ownerDocument||e:g;return e!==k&&9===e.nodeType&&e.documentElement&&(a=(k=e).documentElement,w=!i(k),(e=k.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",t,!1):e.attachEvent&&e.attachEvent("onunload",t)),f.attributes=se(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=se(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=Z.test(k.getElementsByClassName),f.getById=se(function(e){return a.appendChild(e).id=b,!k.getElementsByName||!k.getElementsByName(b).length}),f.getById?(M.find.ID=function(e,t){if(void 0!==t.getElementById&&w){e=t.getElementById(e);return e?[e]:[]}},M.filter.ID=function(e){var t=e.replace(ne,h);return function(e){return e.getAttribute("id")===t}}):(delete M.find.ID,M.filter.ID=function(e){var t=e.replace(ne,h);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}}),M.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],a=0,r=t.getElementsByTagName(e);if("*"!==e)return r;for(;n=r[a++];)1===n.nodeType&&i.push(n);return i},M.find.CLASS=f.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&w)return t.getElementsByClassName(e)},s=[],y=[],(f.qsa=Z.test(k.querySelectorAll))&&(se(function(e){a.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+W+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+W+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+b+"-]").length||y.push("~="),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||y.push(".#.+[+~]")}),se(function(e){var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+W+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(f.matchesSelector=Z.test(o=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&se(function(e){f.disconnectedMatch=o.call(e,"div"),o.call(e,"[s!='']:x"),s.push("!=",B)}),y=y.length&&new RegExp(y.join("|")),s=s.length&&new RegExp(s.join("|")),e=Z.test(a.compareDocumentPosition),v=e||Z.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E=e?function(e,t){if(e===t)return d=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===k||e.ownerDocument===g&&v(g,e)?-1:t===k||t.ownerDocument===g&&v(g,t)?1:u?I(u,e)-I(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,a=e.parentNode,r=t.parentNode,s=[e],o=[t];if(!a||!r)return e===k?-1:t===k?1:a?-1:r?1:u?I(u,e)-I(u,t):0;if(a===r)return ue(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)o.unshift(n);for(;s[i]===o[i];)i++;return i?ue(s[i],o[i]):s[i]===g?-1:o[i]===g?1:0}),k},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==k&&S(e),t=t.replace(G,"='$1']"),f.matchesSelector&&w&&!Y[t+" "]&&(!s||!s.test(t))&&(!y||!y.test(t)))try{var n=o.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<ie(t,k,null,[e]).length},ie.contains=function(e,t){return(e.ownerDocument||e)!==k&&S(e),v(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==k&&S(e);var n=M.attrHandle[t.toLowerCase()],n=n&&P.call(M.attrHandle,t.toLowerCase())?n(e,t,!w):void 0;return void 0!==n?n:f.attributes||!w?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,n=[],i=0,a=0;if(d=!f.detectDuplicates,u=!f.sortStable&&e.slice(0),e.sort(E),d){for(;t=e[a++];)t===e[a]&&(i=n.push(a));for(;i--;)e.splice(n[i],1)}return u=null,e},r=ie.getText=function(e){var t,n="",i=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(M=ie.selectors={cacheLength:50,createPseudo:re,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ne,h),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,h),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&J.test(n)&&(t=m(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ne,h).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+W+")"+e+"("+W+"|$)"))&&_(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=ie.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(N," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,e,t,m,p){var y="nth"!==f.slice(0,3),v="last"!==f.slice(-4),g="of-type"===e;return 1===m&&0===p?function(e){return!!e.parentNode}:function(e,t,n){var i,a,r,s,o,u,d=y!=v?"nextSibling":"previousSibling",l=e.parentNode,h=g&&e.nodeName.toLowerCase(),c=!n&&!g,_=!1;if(l){if(y){for(;d;){for(s=e;s=s[d];)if(g?s.nodeName.toLowerCase()===h:1===s.nodeType)return!1;u=d="only"===f&&!u&&"nextSibling"}return!0}if(u=[v?l.firstChild:l.lastChild],v&&c){for(_=(o=(i=(a=(r=(s=l)[b]||(s[b]={}))[s.uniqueID]||(r[s.uniqueID]={}))[f]||[])[0]===D&&i[1])&&i[2],s=o&&l.childNodes[o];s=++o&&s&&s[d]||(_=o=0)||u.pop();)if(1===s.nodeType&&++_&&s===e){a[f]=[D,o,_];break}}else if(!1===(_=c?o=(i=(a=(r=(s=e)[b]||(s[b]={}))[s.uniqueID]||(r[s.uniqueID]={}))[f]||[])[0]===D&&i[1]:_))for(;(s=++o&&s&&s[d]||(_=o=0)||u.pop())&&((g?s.nodeName.toLowerCase()!==h:1!==s.nodeType)||!++_||(c&&((a=(r=s[b]||(s[b]={}))[s.uniqueID]||(r[s.uniqueID]={}))[f]=[D,_]),s!==e)););return(_-=p)===m||_%m==0&&0<=_/m}}},PSEUDO:function(e,r){var t,s=M.pseudos[e]||M.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return s[b]?s(r):1<s.length?(t=[e,e,"",r],M.setFilters.hasOwnProperty(e.toLowerCase())?re(function(e,t){for(var n,i=s(e,r),a=i.length;a--;)e[n=I(e,i[a])]=!(t[n]=i[a])}):function(e){return s(e,0,t)}):s}},pseudos:{not:re(function(e){var i=[],a=[],o=c(e.replace(z,"$1"));return o[b]?re(function(e,t,n,i){for(var a,r=o(e,null,i,[]),s=e.length;s--;)(a=r[s])&&(e[s]=!(t[s]=a))}):function(e,t,n){return i[0]=e,o(i,null,n,a),i[0]=null,!a.pop()}}),has:re(function(t){return function(e){return 0<ie(t,e).length}}),contains:re(function(t){return t=t.replace(ne,h),function(e){return-1<(e.textContent||e.innerText||r(e)).indexOf(t)}}),lang:re(function(n){return q.test(n||"")||ie.error("unsupported lang: "+n),n=n.replace(ne,h).toLowerCase(),function(e){var t;do{if(t=w?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!M.pseudos.empty(e)},header:function(e){return $.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:de(function(){return[0]}),last:de(function(e,t){return[t-1]}),eq:de(function(e,t,n){return[n<0?n+t:n]}),even:de(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:de(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:de(function(e,t,n){for(var i=n<0?n+t:n;0<=--i;)e.push(i);return e}),gt:de(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=M.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})M.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})M.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function he(){}function ce(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function _e(s,e,t){var o=e.dir,u=t&&"parentNode"===o,d=l++;return e.first?function(e,t,n){for(;e=e[o];)if(1===e.nodeType||u)return s(e,t,n)}:function(e,t,n){var i,a,r=[D,d];if(n){for(;e=e[o];)if((1===e.nodeType||u)&&s(e,t,n))return!0}else for(;e=e[o];)if(1===e.nodeType||u){if((a=(i=(a=e[b]||(e[b]={}))[e.uniqueID]||(a[e.uniqueID]={}))[o])&&a[0]===D&&a[1]===d)return r[2]=a[2];if((i[o]=r)[2]=s(e,t,n))return!0}}}function fe(a){return 1<a.length?function(e,t,n){for(var i=a.length;i--;)if(!a[i](e,t,n))return!1;return!0}:a[0]}function me(e,t,n,i,a){for(var r,s=[],o=0,u=e.length,d=null!=t;o<u;o++)(r=e[o])&&(n&&!n(r,i,a)||(s.push(r),d&&t.push(o)));return s}function pe(_,f,m,p,y,e){return p&&!p[b]&&(p=pe(p)),y&&!y[b]&&(y=pe(y,e)),re(function(e,t,n,i){var a,r,s,o=[],u=[],d=t.length,l=e||function(e,t,n){for(var i=0,a=t.length;i<a;i++)ie(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),h=!_||!e&&f?l:me(l,o,_,n,i),c=m?y||(e?_:d||p)?[]:t:h;if(m&&m(h,c,n,i),p)for(a=me(c,u),p(a,[],n,i),r=a.length;r--;)(s=a[r])&&(c[u[r]]=!(h[u[r]]=s));if(e){if(y||_){if(y){for(a=[],r=c.length;r--;)(s=c[r])&&a.push(h[r]=s);y(null,c=[],a,i)}for(r=c.length;r--;)(s=c[r])&&-1<(a=y?I(e,s):o[r])&&(e[a]=!(t[a]=s))}}else c=me(c===t?c.splice(d,c.length):c),y?y(null,t,c,i):R.apply(t,c)})}function ye(p,y){function e(e,t,n,i,a){var r,s,o,u=0,d="0",l=e&&[],h=[],c=L,_=e||g&&M.find.TAG("*",a),f=D+=null==c?1:Math.random()||.1,m=_.length;for(a&&(L=t===k||t||a);d!==m&&null!=(r=_[d]);d++){if(g&&r){for(s=0,t||r.ownerDocument===k||(S(r),n=!w);o=p[s++];)if(o(r,t||k,n)){i.push(r);break}a&&(D=f)}v&&((r=!o&&r)&&u--,e&&l.push(r))}if(u+=d,v&&d!==u){for(s=0;o=y[s++];)o(l,h,t,n);if(e){if(0<u)for(;d--;)l[d]||h[d]||(h[d]=A.call(i));h=me(h)}R.apply(i,h),a&&!e&&0<h.length&&1<u+y.length&&ie.uniqueSort(i)}return a&&(D=f,L=c),l}var v=0<y.length,g=0<p.length;return v?re(e):e}return he.prototype=M.filters=M.pseudos,M.setFilters=new he,m=ie.tokenize=function(e,t){var n,i,a,r,s,o,u,d=T[e+" "];if(d)return t?0:d.slice(0);for(s=e,o=[],u=M.preFilter;s;){for(r in n&&!(i=U.exec(s))||(i&&(s=s.slice(i[0].length)||s),o.push(a=[])),n=!1,(i=V.exec(s))&&(n=i.shift(),a.push({value:n,type:i[0].replace(z," ")}),s=s.slice(n.length)),M.filter)!(i=K[r].exec(s))||u[r]&&!(i=u[r](i))||(n=i.shift(),a.push({value:n,type:r,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ie.error(e):T(e,o).slice(0)},c=ie.compile=function(e,t){var n,i=[],a=[],r=Y[e+" "];if(!r){for(n=(t=t||m(e)).length;n--;)((r=function e(t){for(var i,n,a,r=t.length,s=M.relative[t[0].type],o=s||M.relative[" "],u=s?1:0,d=_e(function(e){return e===i},o,!0),l=_e(function(e){return-1<I(i,e)},o,!0),h=[function(e,t,n){return n=!s&&(n||t!==L)||((i=t).nodeType?d:l)(e,t,n),i=null,n}];u<r;u++)if(n=M.relative[t[u].type])h=[_e(fe(h),n)];else{if((n=M.filter[t[u].type].apply(null,t[u].matches))[b]){for(a=++u;a<r&&!M.relative[t[a].type];a++);return pe(1<u&&fe(h),1<u&&ce(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(z,"$1"),n,u<a&&e(t.slice(u,a)),a<r&&e(t=t.slice(a)),a<r&&ce(t))}h.push(n)}return fe(h)}(t[n]))[b]?i:a).push(r);(r=Y(e,ye(a,i))).selector=e}return r},p=ie.select=function(e,t,n,i){var a,r,s,o,u,d="function"==typeof e&&e,l=!i&&m(e=d.selector||e);if(n=n||[],1===l.length){if(2<(r=l[0]=l[0].slice(0)).length&&"ID"===(s=r[0]).type&&f.getById&&9===t.nodeType&&w&&M.relative[r[1].type]){if(!(t=(M.find.ID(s.matches[0].replace(ne,h),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(a=K.needsContext.test(e)?0:r.length;a--&&(s=r[a],!M.relative[o=s.type]);)if((u=M.find[o])&&(i=u(s.matches[0].replace(ne,h),ee.test(r[0].type)&&le(t.parentNode)||t))){if(r.splice(a,1),!(e=i.length&&ce(r)))return R.apply(n,i),n;break}}return(d||c(e,l))(i,t,!w,n,!t||ee.test(e)&&le(t.parentNode)||t),n},f.sortStable=b.split("").sort(E).join("")===b,f.detectDuplicates=!!d,S(),f.sortDetached=se(function(e){return 1&e.compareDocumentPosition(k.createElement("div"))}),se(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||oe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&se(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||oe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),se(function(e){return null==e.getAttribute("disabled")})||oe(H,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(t=e.getAttributeNode(t))&&t.specified?t.value:null}),ie}(L);S.find=c,S.expr=c.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=c.uniqueSort,S.text=c.getText,S.isXMLDoc=c.isXML,S.contains=c.contains;function _(e,t,n){for(var i=[],a=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&S(e).is(n))break;i.push(e)}return i}function v(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var g=S.expr.match.needsContext,M=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,k=/^.[^:#\[\.,]*$/;function w(e,n,i){if(S.isFunction(n))return S.grep(e,function(e,t){return!!n.call(e,t,e)!==i});if(n.nodeType)return S.grep(e,function(e){return e===n!==i});if("string"==typeof n){if(k.test(n))return S.filter(n,e,i);n=S.filter(n,e)}return S.grep(e,function(e){return-1<S.inArray(e,n)!==i})}S.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?S.find.matchesSelector(i,e)?[i]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n=[],i=this,a=i.length;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<a;t++)if(S.contains(i[t],this))return!0}));for(t=0;t<a;t++)S.find(e,i[t],n);return(n=this.pushStack(1<a?S.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(w(this,e||[],!1))},not:function(e){return this.pushStack(w(this,e||[],!0))},is:function(e){return!!w(this,"string"==typeof e&&g.test(e)?S(e):e||[],!1).length}});var b=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(S.fn.init=function(e,t,n){if(!e)return this;if(n=n||D,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):S.isFunction(e)?void 0!==n.ready?n.ready(e):e(S):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),S.makeArray(e,this));if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:b.exec(e))||!i[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(i[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),M.test(i[1])&&S.isPlainObject(t))for(var i in t)S.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if((n=f.getElementById(i[2]))&&n.parentNode){if(n.id!==i[2])return D.find(e);this.length=1,this[0]=n}return this.context=f,this.selector=e,this}).prototype=S.fn;var D=S(f),T=/^(?:parents|prev(?:Until|All))/,Y={children:!0,contents:!0,next:!0,prev:!0};function E(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t,n=S(e,this),i=n.length;return this.filter(function(){for(t=0;t<i;t++)if(S.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,i=0,a=this.length,r=[],s=g.test(e)||"string"!=typeof e?S(e,t||this.context):0;i<a;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&S.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(1<r.length?S.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?S.inArray(this[0],S(e)):S.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return _(e,"parentNode")},parentsUntil:function(e,t,n){return _(e,"parentNode",n)},next:function(e){return E(e,"nextSibling")},prev:function(e){return E(e,"previousSibling")},nextAll:function(e){return _(e,"nextSibling")},prevAll:function(e){return _(e,"previousSibling")},nextUntil:function(e,t,n){return _(e,"nextSibling",n)},prevUntil:function(e,t,n){return _(e,"previousSibling",n)},siblings:function(e){return v((e.parentNode||{}).firstChild,e)},children:function(e){return v(e.firstChild)},contents:function(e){return S.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:S.merge([],e.childNodes)}},function(i,a){S.fn[i]=function(e,t){var n=S.map(this,a,e);return(t="Until"!==i.slice(-5)?e:t)&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(Y[i]||(n=S.uniqueSort(n)),T.test(i)&&(n=n.reverse())),this.pushStack(n)}});var P,C,A=/\S+/g;function x(){f.addEventListener?(f.removeEventListener("DOMContentLoaded",R),L.removeEventListener("load",R)):(f.detachEvent("onreadystatechange",R),L.detachEvent("onload",R))}function R(){!f.addEventListener&&"load"!==L.event.type&&"complete"!==f.readyState||(x(),S.ready())}for(C in S.Callbacks=function(i){var n;i="string"==typeof i?(n={},S.each(i.match(A)||[],function(e,t){n[t]=!0}),n):S.extend({},i);function a(){for(s=i.once,t=r=!0;u.length;d=-1)for(e=u.shift();++d<o.length;)!1===o[d].apply(e[0],e[1])&&i.stopOnFalse&&(d=o.length,e=!1);i.memory||(e=!1),r=!1,s&&(o=e?[]:"")}var r,e,t,s,o=[],u=[],d=-1,l={add:function(){return o&&(e&&!r&&(d=o.length-1,u.push(e)),function n(e){S.each(e,function(e,t){S.isFunction(t)?i.unique&&l.has(t)||o.push(t):t&&t.length&&"string"!==S.type(t)&&n(t)})}(arguments),e&&!r&&a()),this},remove:function(){return S.each(arguments,function(e,t){for(var n;-1<(n=S.inArray(t,o,n));)o.splice(n,1),n<=d&&d--}),this},has:function(e){return e?-1<S.inArray(e,o):0<o.length},empty:function(){return o=o&&[],this},disable:function(){return s=u=[],o=e="",this},disabled:function(){return!o},lock:function(){return s=!0,e||l.disable(),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),r||a()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!t}};return l},S.extend({Deferred:function(e){var r=[["resolve","done",S.Callbacks("once memory"),"resolved"],["reject","fail",S.Callbacks("once memory"),"rejected"],["notify","progress",S.Callbacks("memory")]],a="pending",s={state:function(){return a},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var a=arguments;return S.Deferred(function(i){S.each(r,function(e,t){var n=S.isFunction(a[e])&&a[e];o[t[1]](function(){var e=n&&n.apply(this,arguments);e&&S.isFunction(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this===s?i.promise():this,n?[e]:arguments)})}),a=null}).promise()},promise:function(e){return null!=e?S.extend(e,s):s}},o={};return s.pipe=s.then,S.each(r,function(e,t){var n=t[2],i=t[3];s[t[1]]=n.add,i&&n.add(function(){a=i},r[1^e][2].disable,r[2][2].lock),o[t[0]]=function(){return o[t[0]+"With"](this===o?s:this,arguments),this},o[t[0]+"With"]=n.fireWith}),s.promise(o),e&&e.call(o,o),o},when:function(e){function t(t,n,i){return function(e){n[t]=this,i[t]=1<arguments.length?l.call(arguments):e,i===a?d.notifyWith(n,i):--u||d.resolveWith(n,i)}}var a,n,i,r=0,s=l.call(arguments),o=s.length,u=1!==o||e&&S.isFunction(e.promise)?o:0,d=1===u?e:S.Deferred();if(1<o)for(a=new Array(o),n=new Array(o),i=new Array(o);r<o;r++)s[r]&&S.isFunction(s[r].promise)?s[r].promise().progress(t(r,n,a)).done(t(r,i,s)).fail(d.reject):--u;return u||d.resolveWith(i,s),d.promise()}}),S.fn.ready=function(e){return S.ready.promise().done(e),this},S.extend({isReady:!1,readyWait:1,holdReady:function(e){e?S.readyWait++:S.ready(!0)},ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||(P.resolveWith(f,[S]),S.fn.triggerHandler&&(S(f).triggerHandler("ready"),S(f).off("ready")))}}),S.ready.promise=function(e){if(!P)if(P=S.Deferred(),"complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll)L.setTimeout(S.ready);else if(f.addEventListener)f.addEventListener("DOMContentLoaded",R),L.addEventListener("load",R);else{f.attachEvent("onreadystatechange",R),L.attachEvent("onload",R);var n=!1;try{n=null==L.frameElement&&f.documentElement}catch(e){}n&&n.doScroll&&!function t(){if(!S.isReady){try{n.doScroll("left")}catch(e){return L.setTimeout(t,50)}x(),S.ready()}}()}return P.promise(e)},S.ready.promise(),S(y))break;y.ownFirst="0"===C,y.inlineBlockNeedsLayout=!1,S(function(){var e,t,n=f.getElementsByTagName("body")[0];n&&n.style&&(e=f.createElement("div"),(t=f.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(t).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",y.inlineBlockNeedsLayout=e=3===e.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(t))}),function(){var e=f.createElement("div");y.deleteExpando=!0;try{delete e.test}catch(e){y.deleteExpando=!1}e=null}();function O(e){var t=S.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)}var I,H=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,W=/([A-Z])/g;function j(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(W,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:H.test(n)?S.parseJSON(n):n)}catch(e){}S.data(e,t,n)}else n=void 0}return n}function F(e){for(var t in e)if(("data"!==t||!S.isEmptyObject(e[t]))&&"toJSON"!==t)return;return 1}function B(e,t,n,i){if(O(e)){var a,r=S.expando,s=e.nodeType,o=s?S.cache:e,u=s?e[r]:e[r]&&r;if(u&&o[u]&&(i||o[u].data)||void 0!==n||"string"!=typeof t)return o[u=u||(s?e[r]=h.pop()||S.guid++:r)]||(o[u]=s?{}:{toJSON:S.noop}),"object"!=typeof t&&"function"!=typeof t||(i?o[u]=S.extend(o[u],t):o[u].data=S.extend(o[u].data,t)),u=o[u],i||(u.data||(u.data={}),u=u.data),void 0!==n&&(u[S.camelCase(t)]=n),"string"==typeof t?null==(a=u[t])&&(a=u[S.camelCase(t)]):a=u,a}}function N(e,t,n){if(O(e)){var i,a,r=e.nodeType,s=r?S.cache:e,o=r?e[S.expando]:S.expando;if(s[o]){if(t&&(i=n?s[o]:s[o].data)){a=(t=S.isArray(t)?t.concat(S.map(t,S.camelCase)):t in i||(t=S.camelCase(t))in i?[t]:t.split(" ")).length;for(;a--;)delete i[t[a]];if(n?!F(i):!S.isEmptyObject(i))return}(n||(delete s[o].data,F(s[o])))&&(r?S.cleanData([e],!0):y.deleteExpando||s!=s.window?delete s[o]:s[o]=void 0)}}}S.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?S.cache[e[S.expando]]:e[S.expando])&&!F(e)},data:function(e,t,n){return B(e,t,n)},removeData:function(e,t){return N(e,t)},_data:function(e,t,n){return B(e,t,n,!0)},_removeData:function(e,t){return N(e,t,!0)}}),S.fn.extend({data:function(e,t){var n,i,a,r=this[0],s=r&&r.attributes;if(void 0!==e)return"object"==typeof e?this.each(function(){S.data(this,e)}):1<arguments.length?this.each(function(){S.data(this,e,t)}):r?j(r,e,S.data(r,e)):void 0;if(this.length&&(a=S.data(r),1===r.nodeType&&!S._data(r,"parsedAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&j(r,i=S.camelCase(i.slice(5)),a[i]);S._data(r,"parsedAttrs",!0)}return a},removeData:function(e){return this.each(function(){S.removeData(this,e)})}}),S.extend({queue:function(e,t,n){var i;if(e)return i=S._data(e,t=(t||"fx")+"queue"),n&&(!i||S.isArray(n)?i=S._data(e,t,S.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){var n=S.queue(e,t=t||"fx"),i=n.length,a=n.shift(),r=S._queueHooks(e,t);"inprogress"===a&&(a=n.shift(),i--),a&&("fx"===t&&n.unshift("inprogress"),delete r.stop,a.call(e,function(){S.dequeue(e,t)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return S._data(e,n)||S._data(e,n,{empty:S.Callbacks("once memory").add(function(){S._removeData(e,t+"queue"),S._removeData(e,n)})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--a||r.resolveWith(s,[s])}var i,a=1,r=S.Deferred(),s=this,o=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(i=S._data(s[o],e+"queueHooks"))&&i.empty&&(a++,i.empty.add(n));return n(),r.promise(t)}}),y.shrinkWrapBlocks=function(){return null!=I?I:(I=!1,(t=f.getElementsByTagName("body")[0])&&t.style?(e=f.createElement("div"),(n=f.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(f.createElement("div")).style.width="5px",I=3!==e.offsetWidth),t.removeChild(n),I):void 0);var e,t,n};function z(e,t){return"none"===S.css(e=t||e,"display")||!S.contains(e.ownerDocument,e)}var U=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,V=new RegExp("^(?:([+-])=|)("+U+")([a-z%]*)$","i"),G=["Top","Right","Bottom","Left"];function J(e,t,n,i){var a,r=1,s=20,o=i?function(){return i.cur()}:function(){return S.css(e,t,"")},u=o(),d=n&&n[3]||(S.cssNumber[t]?"":"px"),l=(S.cssNumber[t]||"px"!==d&&+u)&&V.exec(S.css(e,t));if(l&&l[3]!==d)for(d=d||l[3],n=n||[],l=+u||1;l/=r=r||".5",S.style(e,t,l+d),r!==(r=o()/u)&&1!==r&&--s;);return n&&(l=+l||+u||0,a=n[1]?l+(n[1]+1)*n[2]:+n[2],i&&(i.unit=d,i.start=l,i.end=a)),a}var q=function(e,t,n,i,a,r,s){var o=0,u=e.length,d=null==n;if("object"===S.type(n))for(o in a=!0,n)q(e,t,o,n[o],!0,r,s);else if(void 0!==i&&(a=!0,S.isFunction(i)||(s=!0),t=d?s?(t.call(e,i),null):(d=t,function(e,t,n){return d.call(S(e),n)}):t))for(;o<u;o++)t(e[o],n,s?i:i.call(e[o],o,t(e[o],n)));return a?e:d?t.call(e):u?t(e[0],n):r},K=/^(?:checkbox|radio)$/i,X=/<([\w:-]+)/,$=/^$|\/(?:java|ecma)script/i,Z=/^\s+/,Q="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ee(e){var t=Q.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}pt=f.createElement("div"),ft=f.createDocumentFragment(),mt=f.createElement("input"),pt.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",y.leadingWhitespace=3===pt.firstChild.nodeType,y.tbody=!pt.getElementsByTagName("tbody").length,y.htmlSerialize=!!pt.getElementsByTagName("link").length,y.html5Clone="<:nav></:nav>"!==f.createElement("nav").cloneNode(!0).outerHTML,mt.type="checkbox",mt.checked=!0,ft.appendChild(mt),y.appendChecked=mt.checked,pt.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!pt.cloneNode(!0).lastChild.defaultValue,ft.appendChild(pt),(mt=f.createElement("input")).setAttribute("type","radio"),mt.setAttribute("checked","checked"),mt.setAttribute("name","t"),pt.appendChild(mt),y.checkClone=pt.cloneNode(!0).cloneNode(!0).lastChild.checked,y.noCloneEvent=!!pt.addEventListener,pt[S.expando]=1,y.attributes=!pt.getAttribute(S.expando);var te={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:y.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};function ne(e,t){var n,i,a=0,r=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],n=e.childNodes||e;null!=(i=n[a]);a++)!t||S.nodeName(i,t)?r.push(i):S.merge(r,ne(i,t));return void 0===t||t&&S.nodeName(e,t)?S.merge([e],r):r}function ie(e,t){for(var n,i=0;null!=(n=e[i]);i++)S._data(n,"globalEval",!t||S._data(t[i],"globalEval"))}te.optgroup=te.option,te.tbody=te.tfoot=te.colgroup=te.caption=te.thead,te.th=te.td;var ae=/<|&#?\w+;/,re=/<tbody/i;function se(e){K.test(e.type)&&(e.defaultChecked=e.checked)}function oe(e,t,n,i,a){for(var r,s,o,u,d,l,h,c=e.length,_=ee(t),f=[],m=0;m<c;m++)if((s=e[m])||0===s)if("object"===S.type(s))S.merge(f,s.nodeType?[s]:s);else if(ae.test(s)){for(u=u||_.appendChild(t.createElement("div")),d=(X.exec(s)||["",""])[1].toLowerCase(),h=te[d]||te._default,u.innerHTML=h[1]+S.htmlPrefilter(s)+h[2],r=h[0];r--;)u=u.lastChild;if(!y.leadingWhitespace&&Z.test(s)&&f.push(t.createTextNode(Z.exec(s)[0])),!y.tbody)for(r=(s="table"!==d||re.test(s)?"<table>"!==h[1]||re.test(s)?0:u:u.firstChild)&&s.childNodes.length;r--;)S.nodeName(l=s.childNodes[r],"tbody")&&!l.childNodes.length&&s.removeChild(l);for(S.merge(f,u.childNodes),u.textContent="";u.firstChild;)u.removeChild(u.firstChild);u=_.lastChild}else f.push(t.createTextNode(s));for(u&&_.removeChild(u),y.appendChecked||S.grep(ne(f,"input"),se),m=0;s=f[m++];)if(i&&-1<S.inArray(s,i))a&&a.push(s);else if(o=S.contains(s.ownerDocument,s),u=ne(_.appendChild(s),"script"),o&&ie(u),n)for(r=0;s=u[r++];)$.test(s.type||"")&&n.push(s);return u=null,_}!function(){var e,t,n=f.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})(y[e]=(t="on"+e)in L)||(n.setAttribute(t,"t"),y[e]=!1===n.attributes[t].expando);n=null}();var ue=/^(?:input|select|textarea)$/i,de=/^key/,le=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,he=/^(?:focusinfocus|focusoutblur)$/,ce=/^([^.]*)(?:\.(.+)|)/;function _e(){return!0}function fe(){return!1}function me(){try{return f.activeElement}catch(e){}}function pe(e,t,n,i,a,r){var s,o;if("object"==typeof t){for(o in"string"!=typeof n&&(i=i||n,n=void 0),t)pe(e,o,n,i,t[o],r);return e}if(null==i&&null==a?(a=n,i=n=void 0):null==a&&("string"==typeof n?(a=i,i=void 0):(a=i,i=n,n=void 0)),!1===a)a=fe;else if(!a)return e;return 1===r&&(s=a,(a=function(e){return S().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=S.guid++)),e.each(function(){S.event.add(this,t,a,i,n)})}S.event={global:{},add:function(e,t,n,i,a){var r,s,o,u,d,l,h,c,_,f=S._data(e);if(f){for(n.handler&&(n=(o=n).handler,a=o.selector),n.guid||(n.guid=S.guid++),(r=f.events)||(r=f.events={}),(d=f.handle)||((d=f.handle=function(e){return void 0===S||e&&S.event.triggered===e.type?void 0:S.event.dispatch.apply(d.elem,arguments)}).elem=e),s=(t=(t||"").match(A)||[""]).length;s--;)h=_=(l=ce.exec(t[s])||[])[1],c=(l[2]||"").split(".").sort(),h&&(u=S.event.special[h]||{},h=(a?u.delegateType:u.bindType)||h,u=S.event.special[h]||{},l=S.extend({type:h,origType:_,data:i,handler:n,guid:n.guid,selector:a,needsContext:a&&S.expr.match.needsContext.test(a),namespace:c.join(".")},o),(_=r[h])||((_=r[h]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,i,c,d)||(e.addEventListener?e.addEventListener(h,d,!1):e.attachEvent&&e.attachEvent("on"+h,d))),u.add&&(u.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),a?_.splice(_.delegateCount++,0,l):_.push(l),S.event.global[h]=!0);e=null}},remove:function(e,t,n,i,a){var r,s,o,u,d,l,h,c,_,f,m,p=S.hasData(e)&&S._data(e);if(p&&(l=p.events)){for(d=(t=(t||"").match(A)||[""]).length;d--;)if(_=m=(o=ce.exec(t[d])||[])[1],f=(o[2]||"").split(".").sort(),_){for(h=S.event.special[_]||{},c=l[_=(i?h.delegateType:h.bindType)||_]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=r=c.length;r--;)s=c[r],!a&&m!==s.origType||n&&n.guid!==s.guid||o&&!o.test(s.namespace)||i&&i!==s.selector&&("**"!==i||!s.selector)||(c.splice(r,1),s.selector&&c.delegateCount--,h.remove&&h.remove.call(e,s));u&&!c.length&&(h.teardown&&!1!==h.teardown.call(e,f,p.handle)||S.removeEvent(e,_,p.handle),delete l[_])}else for(_ in l)S.event.remove(e,_+t[d],n,i,!0);S.isEmptyObject(l)&&(delete p.handle,S._removeData(e,"events"))}},trigger:function(e,t,n,i){var a,r,s,o,u,d,l=[n||f],h=p.call(e,"type")?e.type:e,c=p.call(e,"namespace")?e.namespace.split("."):[],_=u=n=n||f;if(3!==n.nodeType&&8!==n.nodeType&&!he.test(h+S.event.triggered)&&(-1<h.indexOf(".")&&(h=(c=h.split(".")).shift(),c.sort()),r=h.indexOf(":")<0&&"on"+h,(e=e[S.expando]?e:new S.Event(h,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=c.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+c.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),o=S.event.special[h]||{},i||!o.trigger||!1!==o.trigger.apply(n,t))){if(!i&&!o.noBubble&&!S.isWindow(n)){for(s=o.delegateType||h,he.test(s+h)||(_=_.parentNode);_;_=_.parentNode)l.push(_),u=_;u===(n.ownerDocument||f)&&l.push(u.defaultView||u.parentWindow||L)}for(d=0;(_=l[d++])&&!e.isPropagationStopped();)e.type=1<d?s:o.bindType||h,(a=(S._data(_,"events")||{})[e.type]&&S._data(_,"handle"))&&a.apply(_,t),(a=r&&_[r])&&a.apply&&O(_)&&(e.result=a.apply(_,t),!1===e.result&&e.preventDefault());if(e.type=h,!i&&!e.isDefaultPrevented()&&(!o._default||!1===o._default.apply(l.pop(),t))&&O(n)&&r&&n[h]&&!S.isWindow(n)){(u=n[r])&&(n[r]=null),S.event.triggered=h;try{n[h]()}catch(e){}S.event.triggered=void 0,u&&(n[r]=u)}return e.result}},dispatch:function(e){e=S.event.fix(e);var t,n,i,a,r,s=l.call(arguments),o=(S._data(this,"events")||{})[e.type]||[],u=S.event.special[e.type]||{};if((s[0]=e).delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(r=S.event.handlers.call(this,e,o),t=0;(i=r[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(a.namespace)||(e.handleObj=a,e.data=a.data,void 0!==(a=((S.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s))&&!1===(e.result=a)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,a,r,s=[],o=t.delegateCount,u=e.target;if(o&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==e.type)){for(i=[],n=0;n<o;n++)void 0===i[a=(r=t[n]).selector+" "]&&(i[a]=r.needsContext?-1<S(a,this).index(u):S.find(a,this,null,[u]).length),i[a]&&i.push(r);i.length&&s.push({elem:u,handlers:i})}return o<t.length&&s.push({elem:this,handlers:t.slice(o)}),s},fix:function(e){if(e[S.expando])return e;var t,n,i,a=e.type,r=e,s=this.fixHooks[a];for(s||(this.fixHooks[a]=s=le.test(a)?this.mouseHooks:de.test(a)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,e=new S.Event(r),t=i.length;t--;)e[n=i[t]]=r[n];return e.target||(e.target=r.srcElement||f),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,r):e},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,a=t.button,r=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=(n=e.target.ownerDocument||f).documentElement,n=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&r&&(e.relatedTarget=r===e.target?t.toElement:r),e.which||void 0===a||(e.which=1&a?1:2&a?3:4&a?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==me()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===me()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(S.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return S.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n){e=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(e,null,t),e.isDefaultPrevented()&&n.preventDefault()}},S.removeEvent=f.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)}:function(e,t,n){t="on"+t;e.detachEvent&&(void 0===e[t]&&(e[t]=null),e.detachEvent(t,n))},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?_e:fe):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||S.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:fe,isPropagationStopped:fe,isImmediatePropagationStopped:fe,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=_e,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=_e,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=_e,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,a){S.event.special[e]={delegateType:a,bindType:a,handle:function(e){var t,n=e.relatedTarget,i=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=a),t}}}),y.submit||(S.event.special.submit={setup:function(){if(S.nodeName(this,"form"))return!1;S.event.add(this,"click._submit keypress._submit",function(e){e=e.target,e=S.nodeName(e,"input")||S.nodeName(e,"button")?S.prop(e,"form"):void 0;e&&!S._data(e,"submit")&&(S.event.add(e,"submit._submit",function(e){e._submitBubble=!0}),S._data(e,"submit",!0))})},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&S.event.simulate("submit",this.parentNode,e))},teardown:function(){if(S.nodeName(this,"form"))return!1;S.event.remove(this,"._submit")}}),y.change||(S.event.special.change={setup:function(){if(ue.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(S.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)}),S.event.add(this,"click._change",function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),S.event.simulate("change",this,e)})),!1;S.event.add(this,"beforeactivate._change",function(e){e=e.target;ue.test(e.nodeName)&&!S._data(e,"change")&&(S.event.add(e,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||S.event.simulate("change",this.parentNode,e)}),S._data(e,"change",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return S.event.remove(this,"._change"),!ue.test(this.nodeName)}}),y.focusin||S.each({focus:"focusin",blur:"focusout"},function(n,i){function a(e){S.event.simulate(i,e.target,S.event.fix(e))}S.event.special[i]={setup:function(){var e=this.ownerDocument||this,t=S._data(e,i);t||e.addEventListener(n,a,!0),S._data(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=S._data(e,i)-1;t?S._data(e,i,t):(e.removeEventListener(n,a,!0),S._removeData(e,i))}}}),S.fn.extend({on:function(e,t,n,i){return pe(this,e,t,n,i)},one:function(e,t,n,i){return pe(this,e,t,n,i,1)},off:function(e,t,n){var i,a;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,S(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=fe),this.each(function(){S.event.remove(this,e,n,t)});for(a in e)this.off(a,t,e[a]);return this},trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}});var ye=/ jQuery\d+="(?:null|\d+)"/g,ve=new RegExp("<(?:"+Q+")[\\s/>]","i"),ge=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Me=/<script|<style|<link/i,Le=/checked\s*(?:[^=]|=\s*.checked.)/i,Se=/^true\/(.*)/,ke=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,we=ee(f).appendChild(f.createElement("div"));function be(e,t){return S.nodeName(e,"table")&&S.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function De(e){return e.type=(null!==S.find.attr(e,"type"))+"/"+e.type,e}function Te(e){var t=Se.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ye(e,t){if(1===t.nodeType&&S.hasData(e)){var n,i,a,r=S._data(e),e=S._data(t,r),s=r.events;if(s)for(n in delete e.handle,e.events={},s)for(i=0,a=s[n].length;i<a;i++)S.event.add(t,n,s[n][i]);e.data&&(e.data=S.extend({},e.data))}}function Ee(n,i,a,r){i=m.apply([],i);var e,t,s,o,u,d,l=0,h=n.length,c=h-1,_=i[0],f=S.isFunction(_);if(f||1<h&&"string"==typeof _&&!y.checkClone&&Le.test(_))return n.each(function(e){var t=n.eq(e);f&&(i[0]=_.call(this,e,t.html())),Ee(t,i,a,r)});if(h&&(e=(d=oe(i,n[0].ownerDocument,!1,n,r)).firstChild,1===d.childNodes.length&&(d=e),e||r)){for(s=(o=S.map(ne(d,"script"),De)).length;l<h;l++)t=d,l!==c&&(t=S.clone(t,!0,!0),s&&S.merge(o,ne(t,"script"))),a.call(n[l],t,l);if(s)for(u=o[o.length-1].ownerDocument,S.map(o,Te),l=0;l<s;l++)t=o[l],$.test(t.type||"")&&!S._data(t,"globalEval")&&S.contains(u,t)&&(t.src?S._evalUrl&&S._evalUrl(t.src):S.globalEval((t.text||t.textContent||t.innerHTML||"").replace(ke,"")));d=e=null}return n}function Pe(e,t,n){for(var i,a=t?S.filter(t,e):e,r=0;null!=(i=a[r]);r++)n||1!==i.nodeType||S.cleanData(ne(i)),i.parentNode&&(n&&S.contains(i.ownerDocument,i)&&ie(ne(i,"script")),i.parentNode.removeChild(i));return e}S.extend({htmlPrefilter:function(e){return e.replace(ge,"<$1></$2>")},clone:function(e,t,n){var i,a,r,s,o,u=S.contains(e.ownerDocument,e);if(y.html5Clone||S.isXMLDoc(e)||!ve.test("<"+e.nodeName+">")?r=e.cloneNode(!0):(we.innerHTML=e.outerHTML,we.removeChild(r=we.firstChild)),!(y.noCloneEvent&&y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(i=ne(r),o=ne(e),s=0;null!=(a=o[s]);++s)i[s]&&function(e,t){var n,i,a;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!y.noCloneEvent&&t[S.expando]){for(i in(a=S._data(t)).events)S.removeEvent(t,i,a.handle);t.removeAttribute(S.expando)}"script"===n&&t.text!==e.text?(De(t).text=e.text,Te(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),y.html5Clone&&e.innerHTML&&!S.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&K.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}(a,i[s]);if(t)if(n)for(o=o||ne(e),i=i||ne(r),s=0;null!=(a=o[s]);s++)Ye(a,i[s]);else Ye(e,r);return 0<(i=ne(r,"script")).length&&ie(i,!u&&ne(e,"script")),i=o=a=null,r},cleanData:function(e,t){for(var n,i,a,r,s=0,o=S.expando,u=S.cache,d=y.attributes,l=S.event.special;null!=(n=e[s]);s++)if((t||O(n))&&(r=(a=n[o])&&u[a])){if(r.events)for(i in r.events)l[i]?S.event.remove(n,i):S.removeEvent(n,i,r.handle);u[a]&&(delete u[a],d||void 0===n.removeAttribute?n[o]=void 0:n.removeAttribute(o),h.push(a))}}}),S.fn.extend({domManip:Ee,detach:function(e){return Pe(this,e,!0)},remove:function(e){return Pe(this,e)},text:function(e){return q(this,function(e){return void 0===e?S.text(this):this.empty().append((this[0]&&this[0].ownerDocument||f).createTextNode(e))},null,e,arguments.length)},append:function(){return Ee(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||be(this,e).appendChild(e)})},prepend:function(){return Ee(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=be(this,e)).insertBefore(e,t.firstChild)})},before:function(){return Ee(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ee(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&S.cleanData(ne(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&S.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return q(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(ye,""):void 0;if("string"==typeof e&&!Me.test(e)&&(y.htmlSerialize||!ve.test(e))&&(y.leadingWhitespace||!Z.test(e))&&!te[(X.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ne(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Ee(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(ne(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,s){S.fn[e]=function(e){for(var t,n=0,i=[],a=S(e),r=a.length-1;n<=r;n++)t=n===r?this:this.clone(!0),S(a[n])[s](t),o.apply(i,t.get());return this.pushStack(i)}});var Ce,Ae={HTML:"block",BODY:"block"};function xe(e,t){e=S(t.createElement(e)).appendTo(t.body),t=S.css(e[0],"display");return e.detach(),t}function Re(e){var t=f,n=Ae[e];return n||("none"!==(n=xe(e,t))&&n||((t=((Ce=(Ce||S("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||Ce[0].contentDocument).document).write(),t.close(),n=xe(e,t),Ce.detach()),Ae[e]=n),n}function Oe(e,t,n,i){var a,r={};for(a in t)r[a]=e.style[a],e.style[a]=t[a];for(a in i=n.apply(e,i||[]),t)e.style[a]=r[a];return i}var Ie,He,We,je,Fe,Be,Ne,ze,Ue=/^margin/,Ve=new RegExp("^("+U+")(?!px)[a-z%]+$","i"),Ge=f.documentElement;function Je(){var e,t=f.documentElement;t.appendChild(Ne),ze.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",Ie=We=Be=!1,He=Fe=!0,L.getComputedStyle&&(e=L.getComputedStyle(ze),Ie="1%"!==(e||{}).top,Be="2px"===(e||{}).marginLeft,We="4px"===(e||{width:"4px"}).width,ze.style.marginRight="50%",He="4px"===(e||{marginRight:"4px"}).marginRight,(e=ze.appendChild(f.createElement("div"))).style.cssText=ze.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",ze.style.width="1px",Fe=!parseFloat((L.getComputedStyle(e)||{}).marginRight),ze.removeChild(e)),ze.style.display="none",(je=0===ze.getClientRects().length)&&(ze.style.display="",ze.innerHTML="<table><tr><td></td><td>t</td></tr></table>",ze.childNodes[0].style.borderCollapse="separate",(e=ze.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(je=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",je=0===e[0].offsetHeight)),t.removeChild(Ne)}Ne=f.createElement("div"),(ze=f.createElement("div")).style&&(ze.style.cssText="float:left;opacity:.5",y.opacity="0.5"===ze.style.opacity,y.cssFloat=!!ze.style.cssFloat,ze.style.backgroundClip="content-box",ze.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===ze.style.backgroundClip,(Ne=f.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",ze.innerHTML="",Ne.appendChild(ze),y.boxSizing=""===ze.style.boxSizing||""===ze.style.MozBoxSizing||""===ze.style.WebkitBoxSizing,S.extend(y,{reliableHiddenOffsets:function(){return null==Ie&&Je(),je},boxSizingReliable:function(){return null==Ie&&Je(),We},pixelMarginRight:function(){return null==Ie&&Je(),He},pixelPosition:function(){return null==Ie&&Je(),Ie},reliableMarginRight:function(){return null==Ie&&Je(),Fe},reliableMarginLeft:function(){return null==Ie&&Je(),Be}}));var qe,Ke,Xe=/^(top|right|bottom|left)$/;function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}L.getComputedStyle?(qe=function(e){var t=e.ownerDocument.defaultView;return(t=!t||!t.opener?L:t).getComputedStyle(e)},Ke=function(e,t,n){var i,a,r=e.style;return""!==(a=(n=n||qe(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==a||S.contains(e.ownerDocument,e)||(a=S.style(e,t)),n&&!y.pixelMarginRight()&&Ve.test(a)&&Ue.test(t)&&(i=r.width,e=r.minWidth,t=r.maxWidth,r.minWidth=r.maxWidth=r.width=a,a=n.width,r.width=i,r.minWidth=e,r.maxWidth=t),void 0===a?a:a+""}):Ge.currentStyle&&(qe=function(e){return e.currentStyle},Ke=function(e,t,n){var i,a,r,s=e.style;return null==(r=(n=n||qe(e))?n[t]:void 0)&&s&&s[t]&&(r=s[t]),Ve.test(r)&&!Xe.test(t)&&(i=s.left,(n=(a=e.runtimeStyle)&&a.left)&&(a.left=e.currentStyle.left),s.left="fontSize"===t?"1em":r,r=s.pixelLeft+"px",s.left=i,n&&(a.left=n)),void 0===r?r:r+""||"auto"});var Ze=/alpha\([^)]*\)/i,Qe=/opacity\s*=\s*([^)]*)/i,et=/^(none|table(?!-c[ea]).+)/,tt=new RegExp("^("+U+")(.*)$","i"),nt={position:"absolute",visibility:"hidden",display:"block"},it={letterSpacing:"0",fontWeight:"400"},at=["Webkit","O","Moz","ms"],rt=f.createElement("div").style;function st(e){if(e in rt)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=at.length;n--;)if((e=at[n]+t)in rt)return e}function ot(e,t){for(var n,i,a,r=[],s=0,o=e.length;s<o;s++)(i=e[s]).style&&(r[s]=S._data(i,"olddisplay"),n=i.style.display,t?(r[s]||"none"!==n||(i.style.display=""),""===i.style.display&&z(i)&&(r[s]=S._data(i,"olddisplay",Re(i.nodeName)))):(a=z(i),(n&&"none"!==n||!a)&&S._data(i,"olddisplay",a?n:S.css(i,"display"))));for(s=0;s<o;s++)(i=e[s]).style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?r[s]||"":"none"));return e}function ut(e,t,n){var i=tt.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function dt(e,t,n,i,a){for(var r=n===(i?"border":"content")?4:"width"===t?1:0,s=0;r<4;r+=2)"margin"===n&&(s+=S.css(e,n+G[r],!0,a)),i?("content"===n&&(s-=S.css(e,"padding"+G[r],!0,a)),"margin"!==n&&(s-=S.css(e,"border"+G[r]+"Width",!0,a))):(s+=S.css(e,"padding"+G[r],!0,a),"padding"!==n&&(s+=S.css(e,"border"+G[r]+"Width",!0,a)));return s}function lt(e,t,n){var i=!0,a="width"===t?e.offsetWidth:e.offsetHeight,r=qe(e),s=y.boxSizing&&"border-box"===S.css(e,"boxSizing",!1,r);if(a<=0||null==a){if(((a=Ke(e,t,r))<0||null==a)&&(a=e.style[t]),Ve.test(a))return a;i=s&&(y.boxSizingReliable()||a===e.style[t]),a=parseFloat(a)||0}return a+dt(e,t,n||(s?"border":"content"),i,r)+"px"}function ht(e,t,n,i,a){return new ht.prototype.init(e,t,n,i,a)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){e=Ke(e,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:y.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,r,s,o=S.camelCase(t),u=e.style;if(t=S.cssProps[o]||(S.cssProps[o]=st(o)||o),s=S.cssHooks[t]||S.cssHooks[o],void 0===n)return s&&"get"in s&&void 0!==(a=s.get(e,!1,i))?a:u[t];if("string"===(r=typeof n)&&(a=V.exec(n))&&a[1]&&(n=J(e,t,a),r="number"),null!=n&&n==n&&("number"===r&&(n+=a&&a[3]||(S.cssNumber[o]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),!(s&&"set"in s&&void 0===(n=s.set(e,n,i)))))try{u[t]=n}catch(e){}}},css:function(e,t,n,i){var a,r=S.camelCase(t);return t=S.cssProps[r]||(S.cssProps[r]=st(r)||r),"normal"===(a=void 0===(a=(r=S.cssHooks[t]||S.cssHooks[r])&&"get"in r?r.get(e,!0,n):a)?Ke(e,t,i):a)&&t in it&&(a=it[t]),""===n||n?(t=parseFloat(a),!0===n||isFinite(t)?t||0:a):a}}),S.each(["height","width"],function(e,a){S.cssHooks[a]={get:function(e,t,n){if(t)return et.test(S.css(e,"display"))&&0===e.offsetWidth?Oe(e,nt,function(){return lt(e,a,n)}):lt(e,a,n)},set:function(e,t,n){var i=n&&qe(e);return ut(0,t,n?dt(e,a,n,y.boxSizing&&"border-box"===S.css(e,"boxSizing",!1,i),i):0)}}}),y.opacity||(S.cssHooks.opacity={get:function(e,t){return Qe.test((t&&e.currentStyle?e.currentStyle:e.style).filter||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,a=S.isNumeric(t)?"alpha(opacity="+100*t+")":"",e=i&&i.filter||n.filter||"";((n.zoom=1)<=t||""===t)&&""===S.trim(e.replace(Ze,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=Ze.test(e)?e.replace(Ze,a):e+" "+a)}}),S.cssHooks.marginRight=$e(y.reliableMarginRight,function(e,t){if(t)return Oe(e,{display:"inline-block"},Ke,[e,"marginRight"])}),S.cssHooks.marginLeft=$e(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ke(e,"marginLeft"))||(S.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-Oe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(a,r){S.cssHooks[a+r]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[a+G[t]+r]=i[t]||i[t-2]||i[0];return n}},Ue.test(a)||(S.cssHooks[a+r].set=ut)}),S.fn.extend({css:function(e,t){return q(this,function(e,t,n){var i,a,r={},s=0;if(S.isArray(t)){for(i=qe(e),a=t.length;s<a;s++)r[t[s]]=S.css(e,t[s],!1,i);return r}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)},show:function(){return ot(this,!0)},hide:function(){return ot(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){z(this)?S(this).show():S(this).hide()})}}),(S.Tween=ht).prototype={constructor:ht,init:function(e,t,n,i,a,r){this.elem=e,this.prop=n,this.easing=a||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(S.cssNumber[n]?"":"px")},cur:function(){var e=ht.propHooks[this.prop];return(e&&e.get?e:ht.propHooks._default).get(this)},run:function(e){var t,n=ht.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:ht.propHooks._default).set(this),this}},ht.prototype.init.prototype=ht.prototype,ht.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=S.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[S.cssProps[e.prop]]&&!S.cssHooks[e.prop]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}},ht.propHooks.scrollTop=ht.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=ht.prototype.init,S.fx.step={};var ct,_t,ft,mt,pt,yt=/^(?:toggle|show|hide)$/,vt=/queueHooks$/;function gt(){return L.setTimeout(function(){ct=void 0}),ct=S.now()}function Mt(e,t){var n,i={height:e},a=0;for(t=t?1:0;a<4;a+=2-t)i["margin"+(n=G[a])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function Lt(e,t,n){for(var i,a=(St.tweeners[t]||[]).concat(St.tweeners["*"]),r=0,s=a.length;r<s;r++)if(i=a[r].call(n,t,e))return i}function St(a,e,t){var n,r,i=0,s=St.prefilters.length,o=S.Deferred().always(function(){delete u.elem}),u=function(){if(r)return!1;for(var e=ct||gt(),e=Math.max(0,d.startTime+d.duration-e),t=1-(e/d.duration||0),n=0,i=d.tweens.length;n<i;n++)d.tweens[n].run(t);return o.notifyWith(a,[d,t,e]),t<1&&i?e:(o.resolveWith(a,[d]),!1)},d=o.promise({elem:a,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:ct||gt(),duration:t.duration,tweens:[],createTween:function(e,t){e=S.Tween(a,d.opts,e,t,d.opts.specialEasing[e]||d.opts.easing);return d.tweens.push(e),e},stop:function(e){var t=0,n=e?d.tweens.length:0;if(r)return this;for(r=!0;t<n;t++)d.tweens[t].run(1);return e?(o.notifyWith(a,[d,1,0]),o.resolveWith(a,[d,e])):o.rejectWith(a,[d,e]),this}}),l=d.props;for(!function(e,t){var n,i,a,r,s;for(n in e)if(a=t[i=S.camelCase(n)],r=e[n],S.isArray(r)&&(a=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(s=S.cssHooks[i])&&"expand"in s)for(n in r=s.expand(r),delete e[i],r)n in e||(e[n]=r[n],t[n]=a);else t[i]=a}(l,d.opts.specialEasing);i<s;i++)if(n=St.prefilters[i].call(d,a,l,d.opts))return S.isFunction(n.stop)&&(S._queueHooks(d.elem,d.opts.queue).stop=S.proxy(n.stop,n)),n;return S.map(l,Lt,d),S.isFunction(d.opts.start)&&d.opts.start.call(a,d),S.fx.timer(S.extend(u,{elem:a,anim:d,queue:d.opts.queue})),d.progress(d.opts.progress).done(d.opts.done,d.opts.complete).fail(d.opts.fail).always(d.opts.always)}S.Animation=S.extend(St,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return J(n.elem,e,V.exec(t),n),n}]},tweener:function(e,t){for(var n,i=0,a=(e=S.isFunction(e)?(t=e,["*"]):e.match(A)).length;i<a;i++)n=e[i],St.tweeners[n]=St.tweeners[n]||[],St.tweeners[n].unshift(t)},prefilters:[function(t,e,n){var i,a,r,s,o,u,d,l=this,h={},c=t.style,_=t.nodeType&&z(t),f=S._data(t,"fxshow");for(i in n.queue||(null==(o=S._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,u=o.empty.fire,o.empty.fire=function(){o.unqueued||u()}),o.unqueued++,l.always(function(){l.always(function(){o.unqueued--,S.queue(t,"fx").length||o.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[c.overflow,c.overflowX,c.overflowY],"inline"===("none"===(d=S.css(t,"display"))?S._data(t,"olddisplay")||Re(t.nodeName):d)&&"none"===S.css(t,"float")&&(y.inlineBlockNeedsLayout&&"inline"!==Re(t.nodeName)?c.zoom=1:c.display="inline-block")),n.overflow&&(c.overflow="hidden",y.shrinkWrapBlocks()||l.always(function(){c.overflow=n.overflow[0],c.overflowX=n.overflow[1],c.overflowY=n.overflow[2]})),e)if(a=e[i],yt.exec(a)){if(delete e[i],r=r||"toggle"===a,a===(_?"hide":"show")){if("show"!==a||!f||void 0===f[i])continue;_=!0}h[i]=f&&f[i]||S.style(t,i)}else d=void 0;if(S.isEmptyObject(h))"inline"===("none"===d?Re(t.nodeName):d)&&(c.display=d);else for(i in f?"hidden"in f&&(_=f.hidden):f=S._data(t,"fxshow",{}),r&&(f.hidden=!_),_?S(t).show():l.done(function(){S(t).hide()}),l.done(function(){for(var e in S._removeData(t,"fxshow"),h)S.style(t,e,h[e])}),h)s=Lt(_?f[i]:0,i,l),i in f||(f[i]=s.start,_&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}],prefilter:function(e,t){t?St.prefilters.unshift(e):St.prefilters.push(e)}}),S.speed=function(e,t,n){var i=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||S.isFunction(e)&&e,duration:e,easing:n&&t||t&&!S.isFunction(t)&&t};return i.duration=S.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in S.fx.speeds?S.fx.speeds[i.duration]:S.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){S.isFunction(i.old)&&i.old.call(this),i.queue&&S.dequeue(this,i.queue)},i},S.fn.extend({fadeTo:function(e,t,n,i){return this.filter(z).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){var a=S.isEmptyObject(t),r=S.speed(e,n,i),i=function(){var e=St(this,S.extend({},t),r);(a||S._data(this,"finish"))&&e.stop(!0)};return i.finish=i,a||!1===r.queue?this.each(i):this.queue(r.queue,i)},stop:function(a,e,r){function s(e){var t=e.stop;delete e.stop,t(r)}return"string"!=typeof a&&(r=e,e=a,a=void 0),e&&!1!==a&&this.queue(a||"fx",[]),this.each(function(){var e=!0,t=null!=a&&a+"queueHooks",n=S.timers,i=S._data(this);if(t)i[t]&&i[t].stop&&s(i[t]);else for(t in i)i[t]&&i[t].stop&&vt.test(t)&&s(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=a&&n[t].queue!==a||(n[t].anim.stop(r),e=!1,n.splice(t,1));!e&&r||S.dequeue(this,a)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var e,t=S._data(this),n=t[s+"queue"],i=t[s+"queueHooks"],a=S.timers,r=n?n.length:0;for(t.finish=!0,S.queue(this,s,[]),i&&i.stop&&i.stop.call(this,!0),e=a.length;e--;)a[e].elem===this&&a[e].queue===s&&(a[e].anim.stop(!0),a.splice(e,1));for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,i){var a=S.fn[i];S.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?a.apply(this,arguments):this.animate(Mt(i,!0),e,t,n)}}),S.each({slideDown:Mt("show"),slideUp:Mt("hide"),slideToggle:Mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){S.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=S.timers,n=0;for(ct=S.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||S.fx.stop(),ct=void 0},S.fx.timer=function(e){S.timers.push(e),e()?S.fx.start():S.timers.pop()},S.fx.interval=13,S.fx.start=function(){_t=_t||L.setInterval(S.fx.tick,S.fx.interval)},S.fx.stop=function(){L.clearInterval(_t),_t=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(i,e){return i=S.fx&&S.fx.speeds[i]||i,this.queue(e=e||"fx",function(e,t){var n=L.setTimeout(e,i);t.stop=function(){L.clearTimeout(n)}})},c=f.createElement("input"),ft=f.createElement("div"),mt=f.createElement("select"),pt=mt.appendChild(f.createElement("option")),(ft=f.createElement("div")).setAttribute("className","t"),ft.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",U=ft.getElementsByTagName("a")[0],c.setAttribute("type","checkbox"),ft.appendChild(c),(U=ft.getElementsByTagName("a")[0]).style.cssText="top:1px",y.getSetAttribute="t"!==ft.className,y.style=/top/.test(U.getAttribute("style")),y.hrefNormalized="/a"===U.getAttribute("href"),y.checkOn=!!c.value,y.optSelected=pt.selected,y.enctype=!!f.createElement("form").enctype,mt.disabled=!0,y.optDisabled=!pt.disabled,(c=f.createElement("input")).setAttribute("value",""),y.input=""===c.getAttribute("value"),c.value="t",c.setAttribute("type","radio"),y.radioValue="t"===c.value;var kt=/\r/g,wt=/[\x20\t\r\n\f]+/g;S.fn.extend({val:function(t){var n,e,i,a=this[0];return arguments.length?(i=S.isFunction(t),this.each(function(e){1===this.nodeType&&(null==(e=i?t.call(this,e,S(this).val()):t)?e="":"number"==typeof e?e+="":S.isArray(e)&&(e=S.map(e,function(e){return null==e?"":e+""})),(n=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):a?(n=S.valHooks[a.type]||S.valHooks[a.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(a,"value"))?e:"string"==typeof(e=a.value)?e.replace(kt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:S.trim(S.text(e)).replace(wt," ")}},select:{get:function(e){for(var t,n=e.options,i=e.selectedIndex,a="select-one"===e.type||i<0,r=a?null:[],s=a?i+1:n.length,o=i<0?s:a?i:0;o<s;o++)if(((t=n[o]).selected||o===i)&&(y.optDisabled?!t.disabled:null===t.getAttribute("disabled"))&&(!t.parentNode.disabled||!S.nodeName(t.parentNode,"optgroup"))){if(t=S(t).val(),a)return t;r.push(t)}return r},set:function(e,t){for(var n,i,a=e.options,r=S.makeArray(t),s=a.length;s--;)if(i=a[s],-1<S.inArray(S.valHooks.option.get(i),r))try{i.selected=n=!0}catch(e){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),a}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(S.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},y.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var bt,Dt,Tt=S.expr.attrHandle,Yt=/^(?:checked|selected)$/i,Et=y.getSetAttribute,Pt=y.input;S.fn.extend({attr:function(e,t){return q(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var i,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?S.prop(e,t,n):(1===r&&S.isXMLDoc(e)||(t=t.toLowerCase(),a=S.attrHooks[t]||(S.expr.match.bool.test(t)?Dt:bt)),void 0!==n?null===n?void S.removeAttr(e,t):a&&"set"in a&&void 0!==(i=a.set(e,n,t))?i:(e.setAttribute(t,n+""),n):!(a&&"get"in a&&null!==(i=a.get(e,t)))&&null==(i=S.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&S.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,a=0,r=t&&t.match(A);if(r&&1===e.nodeType)for(;n=r[a++];)i=S.propFix[n]||n,S.expr.match.bool.test(n)?Pt&&Et||!Yt.test(n)?e[i]=!1:e[S.camelCase("default-"+n)]=e[i]=!1:S.attr(e,n,""),e.removeAttribute(Et?n:i)}}),Dt={set:function(e,t,n){return!1===t?S.removeAttr(e,n):Pt&&Et||!Yt.test(n)?e.setAttribute(!Et&&S.propFix[n]||n,n):e[S.camelCase("default-"+n)]=e[n]=!0,n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var r=Tt[t]||S.find.attr;Pt&&Et||!Yt.test(t)?Tt[t]=function(e,t,n){var i,a;return n||(a=Tt[t],Tt[t]=i,i=null!=r(e,t,n)?t.toLowerCase():null,Tt[t]=a),i}:Tt[t]=function(e,t,n){if(!n)return e[S.camelCase("default-"+t)]?t.toLowerCase():null}}),Pt&&Et||(S.attrHooks.value={set:function(e,t,n){if(!S.nodeName(e,"input"))return bt&&bt.set(e,t,n);e.defaultValue=t}}),Et||(bt={set:function(e,t,n){var i=e.getAttributeNode(n);if(i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n))return t}},Tt.id=Tt.name=Tt.coords=function(e,t,n){if(!n)return(t=e.getAttributeNode(t))&&""!==t.value?t.value:null},S.valHooks.button={get:function(e,t){t=e.getAttributeNode(t);if(t&&t.specified)return t.value},set:bt.set},S.attrHooks.contenteditable={set:function(e,t,n){bt.set(e,""!==t&&t,n)}},S.each(["width","height"],function(e,n){S.attrHooks[n]={set:function(e,t){if(""===t)return e.setAttribute(n,"auto"),t}}})),y.style||(S.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Ct=/^(?:input|select|textarea|button|object)$/i,At=/^(?:a|area)$/i;S.fn.extend({prop:function(e,t){return q(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return e=S.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),S.extend({prop:function(e,t,n){var i,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&S.isXMLDoc(e)||(t=S.propFix[t]||t,a=S.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(i=a.set(e,n,t))?i:e[t]=n:a&&"get"in a&&null!==(i=a.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||At.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.hrefNormalized||S.each(["href","src"],function(e,t){S.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),y.optSelected||(S.propHooks.selected={get:function(e){e=e.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),y.enctype||(S.propFix.enctype="encoding");var xt=/[\t\r\n\f]/g;function Rt(e){return S.attr(e,"class")||""}S.fn.extend({addClass:function(t){var e,n,i,a,r,s,o=0;if(S.isFunction(t))return this.each(function(e){S(this).addClass(t.call(this,e,Rt(this)))});if("string"==typeof t&&t)for(e=t.match(A)||[];n=this[o++];)if(s=Rt(n),i=1===n.nodeType&&(" "+s+" ").replace(xt," ")){for(r=0;a=e[r++];)i.indexOf(" "+a+" ")<0&&(i+=a+" ");s!==(s=S.trim(i))&&S.attr(n,"class",s)}return this},removeClass:function(t){var e,n,i,a,r,s,o=0;if(S.isFunction(t))return this.each(function(e){S(this).removeClass(t.call(this,e,Rt(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(A)||[];n=this[o++];)if(s=Rt(n),i=1===n.nodeType&&(" "+s+" ").replace(xt," ")){for(r=0;a=e[r++];)for(;-1<i.indexOf(" "+a+" ");)i=i.replace(" "+a+" "," ");s!==(s=S.trim(i))&&S.attr(n,"class",s)}return this},toggleClass:function(a,t){var r=typeof a;return"boolean"==typeof t&&"string"==r?t?this.addClass(a):this.removeClass(a):S.isFunction(a)?this.each(function(e){S(this).toggleClass(a.call(this,e,Rt(this),t),t)}):this.each(function(){var e,t,n,i;if("string"==r)for(t=0,n=S(this),i=a.match(A)||[];e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==a&&"boolean"!=r||((e=Rt(this))&&S._data(this,"__className__",e),S.attr(this,"class",!e&&!1!==a&&S._data(this,"__className__")||""))})},hasClass:function(e){for(var t,n=0,i=" "+e+" ";t=this[n++];)if(1===t.nodeType&&-1<(" "+Rt(t)+" ").replace(xt," ").indexOf(i))return!0;return!1}}),S.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),S.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var c=L.location,Ot=S.now(),It=/\?/,Ht=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;S.parseJSON=function(e){if(L.JSON&&L.JSON.parse)return L.JSON.parse(e+"");var a,r=null,t=S.trim(e+"");return t&&!S.trim(t.replace(Ht,function(e,t,n,i){return 0===(r=a&&t?0:r)?e:(a=n||t,r+=!i-!n,"")}))?Function("return "+t)():S.error("Invalid JSON: "+e)},S.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{L.DOMParser?t=(new L.DOMParser).parseFromString(e,"text/xml"):((t=new L.ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e))}catch(e){t=void 0}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+e),t};var Wt=/#.*$/,jt=/([?&])_=[^&]*/,Ft=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Bt=/^(?:GET|HEAD)$/,Nt=/^\/\//,zt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ut={},Vt={},Gt="*/".concat("*"),Jt=c.href,qt=zt.exec(Jt.toLowerCase())||[];function Kt(r){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,a=e.toLowerCase().match(A)||[];if(S.isFunction(t))for(;n=a[i++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(r[n]=r[n]||[]).unshift(t)):(r[n]=r[n]||[]).push(t)}}function Xt(t,i,a,r){var s={},o=t===Vt;function u(e){var n;return s[e]=!0,S.each(t[e]||[],function(e,t){t=t(i,a,r);return"string"!=typeof t||o||s[t]?o?!(n=t):void 0:(i.dataTypes.unshift(t),u(t),!1)}),n}return u(i.dataTypes[0])||!s["*"]&&u("*")}function $t(e,t){var n,i,a=S.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((a[i]?e:n=n||{})[i]=t[i]);return n&&S.extend(!0,e,n),e}function Zt(e){if(!S.contains(e.ownerDocument||f,e))return!0;for(;e&&1===e.nodeType;){if("none"===((t=e).style&&t.style.display||S.css(t,"display"))||"hidden"===e.type)return!0;e=e.parentNode}var t;return!1}S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Jt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(qt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Gt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":S.parseJSON,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?$t($t(e,S.ajaxSettings),t):$t(S.ajaxSettings,e)},ajaxPrefilter:Kt(Ut),ajaxTransport:Kt(Vt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var n,u,d,l,h,c,i,_=S.ajaxSetup({},t=t||{}),f=_.context||_,m=_.context&&(f.nodeType||f.jquery)?S(f):S.event,p=S.Deferred(),y=S.Callbacks("once memory"),v=_.statusCode||{},a={},r={},g=0,s="canceled",M={readyState:0,getResponseHeader:function(e){var t;if(2===g){if(!i)for(i={};t=Ft.exec(d);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===g?d:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return g||(e=r[n]=r[n]||e,a[e]=t),this},overrideMimeType:function(e){return g||(_.mimeType=e),this},statusCode:function(e){if(e)if(g<2)for(var t in e)v[t]=[v[t],e[t]];else M.always(e[M.status]);return this},abort:function(e){e=e||s;return c&&c.abort(e),o(0,e),this}};if(p.promise(M).complete=y.add,M.success=M.done,M.error=M.fail,_.url=((e||_.url||Jt)+"").replace(Wt,"").replace(Nt,qt[1]+"//"),_.type=t.method||t.type||_.method||_.type,_.dataTypes=S.trim(_.dataType||"*").toLowerCase().match(A)||[""],null==_.crossDomain&&(e=zt.exec(_.url.toLowerCase()),_.crossDomain=!(!e||e[1]===qt[1]&&e[2]===qt[2]&&(e[3]||("http:"===e[1]?"80":"443"))===(qt[3]||("http:"===qt[1]?"80":"443")))),_.data&&_.processData&&"string"!=typeof _.data&&(_.data=S.param(_.data,_.traditional)),Xt(Ut,_,t,M),2===g)return M;for(n in(h=S.event&&_.global)&&0==S.active++&&S.event.trigger("ajaxStart"),_.type=_.type.toUpperCase(),_.hasContent=!Bt.test(_.type),u=_.url,_.hasContent||(_.data&&(u=_.url+=(It.test(u)?"&":"?")+_.data,delete _.data),!1===_.cache&&(_.url=jt.test(u)?u.replace(jt,"$1_="+Ot++):u+(It.test(u)?"&":"?")+"_="+Ot++)),_.ifModified&&(S.lastModified[u]&&M.setRequestHeader("If-Modified-Since",S.lastModified[u]),S.etag[u]&&M.setRequestHeader("If-None-Match",S.etag[u])),(_.data&&_.hasContent&&!1!==_.contentType||t.contentType)&&M.setRequestHeader("Content-Type",_.contentType),M.setRequestHeader("Accept",_.dataTypes[0]&&_.accepts[_.dataTypes[0]]?_.accepts[_.dataTypes[0]]+("*"!==_.dataTypes[0]?", "+Gt+"; q=0.01":""):_.accepts["*"]),_.headers)M.setRequestHeader(n,_.headers[n]);if(_.beforeSend&&(!1===_.beforeSend.call(f,M,_)||2===g))return M.abort();for(n in s="abort",{success:1,error:1,complete:1})M[n](_[n]);if(c=Xt(Vt,_,t,M)){if(M.readyState=1,h&&m.trigger("ajaxSend",[M,_]),2===g)return M;_.async&&0<_.timeout&&(l=L.setTimeout(function(){M.abort("timeout")},_.timeout));try{g=1,c.send(a,o)}catch(e){if(!(g<2))throw e;o(-1,e)}}else o(-1,"No Transport");function o(e,t,n,i){var a,r,s,o=t;2!==g&&(g=2,l&&L.clearTimeout(l),c=void 0,d=i||"",M.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){for(var i,a,r,s,o=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===a&&(a=e.mimeType||t.getResponseHeader("Content-Type"));if(a)for(s in o)if(o[s]&&o[s].test(a)){u.unshift(s);break}if(u[0]in n)r=u[0];else{for(s in n){if(!u[0]||e.converters[s+" "+u[0]]){r=s;break}i=i||s}r=r||i}if(r)return r!==u[0]&&u.unshift(r),n[r]}(_,M,n)),s=function(e,t,n,i){var a,r,s,o,u,d={},l=e.dataTypes.slice();if(l[1])for(s in e.converters)d[s.toLowerCase()]=e.converters[s];for(r=l.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!u&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=r,r=l.shift())if("*"===r)r=u;else if("*"!==u&&u!==r){if(!(s=d[u+" "+r]||d["* "+r]))for(a in d)if((o=a.split(" "))[1]===r&&(s=d[u+" "+o[0]]||d["* "+o[0]])){!0===s?s=d[a]:!0!==d[a]&&(r=o[0],l.unshift(o[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+r}}}return{state:"success",data:t}}(_,s,M,i),i?(_.ifModified&&((n=M.getResponseHeader("Last-Modified"))&&(S.lastModified[u]=n),(n=M.getResponseHeader("etag"))&&(S.etag[u]=n)),204===e||"HEAD"===_.type?o="nocontent":304===e?o="notmodified":(o=s.state,a=s.data,i=!(r=s.error))):(r=o,!e&&o||(o="error",e<0&&(e=0))),M.status=e,M.statusText=(t||o)+"",i?p.resolveWith(f,[a,o,M]):p.rejectWith(f,[M,o,r]),M.statusCode(v),v=void 0,h&&m.trigger(i?"ajaxSuccess":"ajaxError",[M,_,i?a:r]),y.fireWith(f,[M,o]),h&&(m.trigger("ajaxComplete",[M,_]),--S.active||S.event.trigger("ajaxStop")))}return M},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,a){S[a]=function(e,t,n,i){return S.isFunction(t)&&(i=i||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:a,dataType:i,data:t,success:n},S.isPlainObject(e)&&e))}}),S._evalUrl=function(e){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},S.fn.extend({wrapAll:function(t){return S.isFunction(t)?this.each(function(e){S(this).wrapAll(t.call(this,e))}):(this[0]&&(e=S(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)),this);var e},wrapInner:function(n){return S.isFunction(n)?this.each(function(e){S(this).wrapInner(n.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=S.isFunction(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){S.nodeName(this,"body")||S(this).replaceWith(this.childNodes)}).end()}}),S.expr.filters.hidden=function(e){return y.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:Zt(e)},S.expr.filters.visible=function(e){return!S.expr.filters.hidden(e)};var Qt=/%20/g,en=/\[\]$/,tn=/\r?\n/g,nn=/^(?:submit|button|image|reset|file)$/i,an=/^(?:input|select|textarea|keygen)/i;S.param=function(e,t){function n(e,t){t=S.isFunction(t)?t():null==t?"":t,a[a.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)}var i,a=[];if(void 0===t&&(t=S.ajaxSettings&&S.ajaxSettings.traditional),S.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){n(this.name,this.value)});else for(i in e)!function n(i,e,a,r){if(S.isArray(e))S.each(e,function(e,t){a||en.test(i)?r(i,t):n(i+"["+("object"==typeof t&&null!=t?e:"")+"]",t,a,r)});else if(a||"object"!==S.type(e))r(i,e);else for(var t in e)n(i+"["+t+"]",e[t],a,r)}(i,e[i],t,n);return a.join("&").replace(Qt,"+")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&an.test(this.nodeName)&&!nn.test(e)&&(this.checked||!K.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:S.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(tn,"\r\n")}}):{name:t.name,value:n.replace(tn,"\r\n")}}).get()}}),S.ajaxSettings.xhr=void 0!==L.ActiveXObject?function(){return this.isLocal?un():8<f.documentMode?on():/^(get|post|head|put|delete|options)$/i.test(this.type)&&on()||un()}:on;var rn=0,sn={},c=S.ajaxSettings.xhr();function on(){try{return new L.XMLHttpRequest}catch(e){}}function un(){try{return new L.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}L.attachEvent&&L.attachEvent("onunload",function(){for(var e in sn)sn[e](void 0,!0)}),y.cors=!!c&&"withCredentials"in c,(c=y.ajax=!!c)&&S.ajaxTransport(function(u){var d;if(!u.crossDomain||y.cors)return{send:function(e,r){var t,s=u.xhr(),o=++rn;if(s.open(u.type,u.url,u.async,u.username,u.password),u.xhrFields)for(t in u.xhrFields)s[t]=u.xhrFields[t];for(t in u.mimeType&&s.overrideMimeType&&s.overrideMimeType(u.mimeType),u.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)void 0!==e[t]&&s.setRequestHeader(t,e[t]+"");s.send(u.hasContent&&u.data||null),d=function(e,t){var n,i,a;if(d&&(t||4===s.readyState))if(delete sn[o],d=void 0,s.onreadystatechange=S.noop,t)4!==s.readyState&&s.abort();else{a={},n=s.status,"string"==typeof s.responseText&&(a.text=s.responseText);try{i=s.statusText}catch(e){i=""}n||!u.isLocal||u.crossDomain?1223===n&&(n=204):n=a.text?200:404}a&&r(n,i,a,s.getAllResponseHeaders())},u.async?4===s.readyState?L.setTimeout(d):s.onreadystatechange=sn[o]=d:d()},abort:function(){d&&d(void 0,!0)}}}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),S.ajaxTransport("script",function(t){if(t.crossDomain){var i,a=f.head||S("head")[0]||f.documentElement;return{send:function(e,n){(i=f.createElement("script")).async=!0,t.scriptCharset&&(i.charset=t.scriptCharset),i.src=t.url,i.onload=i.onreadystatechange=function(e,t){!t&&i.readyState&&!/loaded|complete/.test(i.readyState)||(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),i=null,t||n(200,"success"))},a.insertBefore(i,a.firstChild)},abort:function(){i&&i.onload(void 0,!0)}}}});var dn=[],ln=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=dn.pop()||S.expando+"_"+Ot++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var i,a,r,s=!1!==e.jsonp&&(ln.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&ln.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=S.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(ln,"$1"+i):!1!==e.jsonp&&(e.url+=(It.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return r||S.error(i+" was not called"),r[0]},e.dataTypes[0]="json",a=L[i],L[i]=function(){r=arguments},n.always(function(){void 0===a?S(L).removeProp(i):L[i]=a,e[i]&&(e.jsonpCallback=t.jsonpCallback,dn.push(i)),r&&S.isFunction(a)&&a(r[0]),r=a=void 0}),"script"}),S.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||f;var i=M.exec(e),n=!n&&[];return i?[t.createElement(i[1])]:(i=oe([e],t,n),n&&n.length&&S(n).remove(),S.merge([],i.childNodes))};var hn=S.fn.load;function cn(e){return S.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}S.fn.load=function(e,t,n){if("string"!=typeof e&&hn)return hn.apply(this,arguments);var i,a,r,s=this,o=e.indexOf(" ");return-1<o&&(i=S.trim(e.slice(o,e.length)),e=e.slice(0,o)),S.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(a="POST"),0<s.length&&S.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done(function(e){r=arguments,s.html(i?S("<div>").append(S.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.expr.filters.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var i,a,r,s,o=S.css(e,"position"),u=S(e),d={};"static"===o&&(e.style.position="relative"),r=u.offset(),i=S.css(e,"top"),s=S.css(e,"left"),s=("absolute"===o||"fixed"===o)&&-1<S.inArray("auto",[i,s])?(a=(o=u.position()).top,o.left):(a=parseFloat(i)||0,parseFloat(s)||0),null!=(t=S.isFunction(t)?t.call(e,n,S.extend({},r)):t).top&&(d.top=t.top-r.top+a),null!=t.left&&(d.left=t.left-r.left+s),"using"in t?t.using.call(e,d):u.css(d)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n={top:0,left:0},i=this[0],a=i&&i.ownerDocument;return a?(e=a.documentElement,S.contains(e,i)?(void 0!==i.getBoundingClientRect&&(n=i.getBoundingClientRect()),a=cn(a),{top:n.top+(a.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(a.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):n):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===S.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),(n=!S.nodeName(e[0],"html")?e.offset():n).top+=S.css(e[0],"borderTopWidth",!0),n.left+=S.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-S.css(i,"marginTop",!0),left:t.left-n.left-S.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!S.nodeName(e,"html")&&"static"===S.css(e,"position");)e=e.offsetParent;return e||Ge})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,a){var r=/Y/.test(a);S.fn[t]=function(e){return q(this,function(e,t,n){var i=cn(e);if(void 0===n)return i?a in i?i[a]:i.document.documentElement[t]:e[t];i?i.scrollTo(r?S(i).scrollLeft():n,r?n:S(i).scrollTop()):e[t]=n},t,e,arguments.length,null)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=$e(y.pixelPosition,function(e,t){if(t)return t=Ke(e,n),Ve.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(r,s){S.each({padding:"inner"+r,content:s,"":"outer"+r},function(i,e){S.fn[e]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),a=i||(!0===e||!0===t?"margin":"border");return q(this,function(e,t,n){var i;return S.isWindow(e)?e.document.documentElement["client"+r]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+r],i["scroll"+r],e.body["offset"+r],i["offset"+r],i["client"+r])):void 0===n?S.css(e,t,a):S.style(e,t,n,a)},s,n?e:void 0,n,null)}})}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),S.fn.size=function(){return this.length},S.fn.andSelf=S.fn.addBack,void 0===(yn=function(){return S}.apply(pn,[]))||(mn.exports=yn);var _n=L.jQuery,fn=L.$;return S.noConflict=function(e){return L.$===S&&(L.$=fn),e&&L.jQuery===S&&(L.jQuery=_n),S},e||(L.jQuery=L.$=S),S},"object"==typeof mn.exports?mn.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)},function(e,t,n){e.exports={default:n(259),__esModule:!0}},function(e,t,n){t.f=n(7)},function(e,t,n){var i=n(6),a=n(3),r=n(29),s=n(57),o=n(12).f;e.exports=function(e){var t=a.Symbol||(a.Symbol=!r&&i.Symbol||{});"_"==e.charAt(0)||e in t||o(t,e,{value:s.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(39),a=n(30),r=n(19),s=n(46),o=n(18),u=n(70),d=Object.getOwnPropertyDescriptor;t.f=n(13)?d:function(e,t){if(e=r(e),t=s(t,!0),u)try{return d(e,t)}catch(e){}if(o(e,t))return a(!i.f.call(e,t),e[t])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="0x12f9",a=i+"0",a=(t.ERR_COM_PARAM=a+"0001",t.ERR_COM_NOT_PLAYING=a+"0002",t.ERR_COM_NOT_PLAYBACK=a+"0003",t.ERR_COM_IS_MSE=a+"0004",t.ERR_COM_IS_JSDECODER=a+"0005",t.ERR_COM_LOAD_JSDECODER_ERROR=a+"0006",i+"1"),a=(t.ERR_STREAM_WS_ERROR=a+"0000",t.ERR_STREAM_OPEN_FAILED=a+"0010",t.ERR_STREAM_INTERRUPT=a+"0011",t.ERR_STREAM_CMD_FAILED=a+"0012",t.ERR_STREAM_SOUND_NOTHAS=a+"0014",t.ERR_STREAM_WS_UNFIND=a+"0015",t.ERR_STREAM_WS_UNCONNECT=a+"0016",t.ERR_STREAM_INTEL_UNSUPPORT=a+"0017",t.ERR_PLAYBACK_FRAMEFORWARD=a+"0020",t.ERR_PLAYBACK_MAX_RATE=a+"0021",t.ERR_PLAYBACK_MIN_RATE=a+"0022",i+"2");t.ERR_PLAY_FILESYS_UNSUPPORT=a+"0000",t.ERR_PLAY_FILESYS_QUOTA=a+"0010",t.ERR_PLAY_FILESYS_REQUEST=a+"0011",t.ERR_PLAY_FILESYS_GETFILE=a+"0012",t.ERR_PLAY_FILESYS_CREATE=a+"0013",t.ERR_PLAY_FILESYS_WRITE=a+"0014",t.ERR_PLAY_FILESYS_ALREADY_WRITING=a+"0015",t.ERR_CAPTURE_RAM="0x12f930010",t.ERR_JSDECODER=i+"400",t.ERR_TALK_GETUSERMEDIA_UNDEFINE="0x12f950000",t.ERR_TALK_UNSUPPORT_AUDIOTYPE="0x12f9500001"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}(0,a(n(2)).default)(r,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(e){0===this._firstCheckpoint?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var e=(this._now()-this._lastCheckpoint)/1e3;return this._intervalBytes/(e=0==e?1:e)/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:500<=this._now()-this._lastCheckpoint?this.currentKBps:0}},{key:"averageKBps",get:function(){var e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024}}]),n=r;function r(){(0,i.default)(this,r),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}t.default=n},function(e,t,n){var a=n(8),r=n(3),s=n(23);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],i={};i[e]=t(n),a(a.S+a.F*s(function(){n(1)}),"Object",i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultConfig=void 0;var i,a=n(20),r=(i=a)&&i.__esModule?i:{default:i};t.createDefaultConfig=function(){return(0,r.default)({},s)};var s=t.defaultConfig={enableWorker:!1,enableStashBuffer:!1,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:180,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:180,autoCleanupMinBackwardDuration:120,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0,videoStateMonitorInterval:1e3,enableDurationMonitor:!1,lowLatencyThreshold:1.5,highLatencyThreshold:10,decreaseDurationStep:.4,enableVideoFrozenMonitor:!1,frozenTimesThreshold:5,enableConstVideoViewSize:!1,constVideoViewWidth:1920,constVideoViewHeight:1080,latencyDetectInterval:6e4,latencyDetectThreshold:2,latencyDetectAdjustStep:.1,enableAudioGain:!0,audioGainLevel:2}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(1)),a=o(n(2)),r=o(n(11)),s=o(n(4));function o(e){return e&&e.__esModule?e:{default:e}}(0,a.default)(u,null,[{key:"getConfig",value:function(){return{globalTag:s.default.GLOBAL_TAG,forceGlobalTag:s.default.FORCE_GLOBAL_TAG,enableVerbose:s.default.ENABLE_VERBOSE,enableDebug:s.default.ENABLE_DEBUG,enableInfo:s.default.ENABLE_INFO,enableWarn:s.default.ENABLE_WARN,enableError:s.default.ENABLE_ERROR,enableCallback:s.default.ENABLE_CALLBACK}}},{key:"applyConfig",value:function(e){s.default.GLOBAL_TAG=e.globalTag,s.default.FORCE_GLOBAL_TAG=e.forceGlobalTag,s.default.ENABLE_VERBOSE=e.enableVerbose,s.default.ENABLE_DEBUG=e.enableDebug,s.default.ENABLE_INFO=e.enableInfo,s.default.ENABLE_WARN=e.enableWarn,s.default.ENABLE_ERROR=e.enableError,s.default.ENABLE_CALLBACK=e.enableCallback}},{key:"_notifyChange",value:function(){var e,t=u.emitter;0<t.listenerCount("change")&&(e=u.getConfig(),t.emit("change",e))}},{key:"registerListener",value:function(e){u.emitter.addListener("change",e)}},{key:"removeListener",value:function(e){u.emitter.removeListener("change",e)}},{key:"addLogListener",value:function(e){s.default.emitter.addListener("log",e),0<s.default.emitter.listenerCount("log")&&(s.default.ENABLE_CALLBACK=!0,u._notifyChange())}},{key:"removeLogListener",value:function(e){s.default.emitter.removeListener("log",e),0===s.default.emitter.listenerCount("log")&&(s.default.ENABLE_CALLBACK=!1,u._notifyChange())}},{key:"forceGlobalTag",get:function(){return s.default.FORCE_GLOBAL_TAG},set:function(e){s.default.FORCE_GLOBAL_TAG=e,u._notifyChange()}},{key:"globalTag",get:function(){return s.default.GLOBAL_TAG},set:function(e){s.default.GLOBAL_TAG=e,u._notifyChange()}},{key:"enableAll",get:function(){return s.default.ENABLE_VERBOSE&&s.default.ENABLE_DEBUG&&s.default.ENABLE_INFO&&s.default.ENABLE_WARN&&s.default.ENABLE_ERROR},set:function(e){s.default.ENABLE_VERBOSE=e,s.default.ENABLE_DEBUG=e,s.default.ENABLE_INFO=e,s.default.ENABLE_WARN=e,s.default.ENABLE_ERROR=e,u._notifyChange()}},{key:"enableDebug",get:function(){return s.default.ENABLE_DEBUG},set:function(e){s.default.ENABLE_DEBUG=e,u._notifyChange()}},{key:"enableVerbose",get:function(){return s.default.ENABLE_VERBOSE},set:function(e){s.default.ENABLE_VERBOSE=e,u._notifyChange()}},{key:"enableInfo",get:function(){return s.default.ENABLE_INFO},set:function(e){s.default.ENABLE_INFO=e,u._notifyChange()}},{key:"enableWarn",get:function(){return s.default.ENABLE_WARN},set:function(e){s.default.ENABLE_WARN=e,u._notifyChange()}},{key:"enableError",get:function(){return s.default.ENABLE_ERROR},set:function(e){s.default.ENABLE_ERROR=e,u._notifyChange()}}]),a=u;function u(){(0,i.default)(this,u)}a.emitter=new r.default,t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}(0,a(n(2)).default)(r,[{key:"isComplete",value:function(){var e=!1===this.hasAudio||!0===this.hasAudio&&null!=this.audioCodec&&null!=this.audioSampleRate&&null!=this.audioChannelCount,t=!1===this.hasVideo||!0===this.hasVideo&&null!=this.videoCodec&&null!=this.width&&null!=this.height&&null!=this.fps&&null!=this.profile&&null!=this.level&&null!=this.refFrames&&null!=this.chromaFormat&&null!=this.sarNum&&null!=this.sarDen;return null!=this.mimeType&&null!=this.duration&&null!=this.metadata&&null!=this.hasKeyframesIndex&&e&&t}},{key:"isSeekable",value:function(){return!0===this.hasKeyframesIndex}},{key:"getNearestKeyframe",value:function(e){if(null==this.keyframesIndex)return null;var t=this.keyframesIndex,e=this._search(t.times,e);return{index:e,milliseconds:t.times[e],fileposition:t.filepositions[e]}}},{key:"_search",value:function(e,t){var n,i=0,a=e.length-1,r=0,s=a;for(t<e[0]&&(i=0,r=s+1);r<=s;){if((n=r+Math.floor((s-r)/2))===a||t>=e[n]&&t<e[n+1]){i=n;break}e[n]<t?r=n+1:s=n-1}return i}}]),n=r;function r(){(0,i.default)(this,r),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"}},function(e,t){},function(e,t,n){"use strict";function v(){return this}var g=n(29),M=n(8),L=n(71),S=n(17),k=n(24),w=n(234),b=n(37),D=n(75),T=n(7)("iterator"),Y=!([].keys&&"next"in[].keys()),E="values";e.exports=function(e,t,n,i,a,r,s){w(n,t,i);function o(e){if(!Y&&e in f)return f[e];switch(e){case"keys":case E:return function(){return new n(this,e)}}return function(){return new n(this,e)}}var u,d,l,h=t+" Iterator",c=a==E,_=!1,f=e.prototype,m=f[T]||f["@@iterator"]||a&&f[a],p=m||o(a),y=a?c?o("entries"):p:void 0,i="Array"==t&&f.entries||m;if(i&&(l=D(i.call(new e)))!==Object.prototype&&l.next&&(b(l,h,!0),g||"function"==typeof l[T]||S(l,T,v)),c&&m&&m.name!==E&&(_=!0,p=function(){return m.call(this)}),g&&!s||!Y&&!_&&f[T]||S(f,T,p),k[t]=p,k[h]=v,a)if(u={values:c?p:o(E),keys:r?p:o("keys"),entries:y},s)for(d in u)d in f||L(f,d,u[d]);else M(M.P+M.F*(Y||_),t,u);return u}},function(e,t,n){e.exports=!n(13)&&!n(23)(function(){return 7!=Object.defineProperty(n(45)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=n(17)},function(e,t,n){var s=n(18),o=n(19),u=n(236)(!1),d=n(49)("IE_PROTO");e.exports=function(e,t){var n,i=o(e),a=0,r=[];for(n in i)n!=d&&s(i,n)&&r.push(n);for(;t.length>a;)s(i,n=t[a++])&&(~u(r,n)||r.push(n));return r}},function(e,t,n){var i=n(32);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){n=n(6).document;e.exports=n&&n.documentElement},function(e,t,n){var i=n(18),a=n(25),r=n(49)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=a(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var a=n(10);e.exports=function(t,e,n,i){try{return i?e(a(n)[0],n[1]):e(n)}catch(e){n=t.return;throw void 0!==n&&a(n.call(t)),e}}},function(e,t,n){var i=n(24),a=n(7)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[a]===e)}},function(e,t,n){var i=n(10),a=n(35),r=n(7)("species");e.exports=function(e,t){var n,e=i(e).constructor;return void 0===e||null==(n=i(e)[r])?t:a(n)}},function(e,t,n){function i(){var e,t=+this;y.hasOwnProperty(t)&&(e=y[t],delete y[t],e())}function a(e){i.call(e.data)}var r,s=n(22),o=n(244),u=n(74),d=n(45),l=n(6),h=l.process,c=l.setImmediate,_=l.clearImmediate,f=l.MessageChannel,m=l.Dispatch,p=0,y={},v="onreadystatechange";c&&_||(c=function(e){for(var t=[],n=1;n<arguments.length;)t.push(arguments[n++]);return y[++p]=function(){o("function"==typeof e?e:Function(e),t)},r(p),p},_=function(e){delete y[e]},"process"==n(32)(h)?r=function(e){h.nextTick(s(i,e,1))}:m&&m.now?r=function(e){m.now(s(i,e,1))}:f?(f=(n=new f).port2,n.port1.onmessage=a,r=s(f.postMessage,f,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",a,!1)):r=v in d("script")?function(e){u.appendChild(d("script"))[v]=function(){u.removeChild(this),i.call(e)}}:function(e){setTimeout(s(i,e,1),0)}),e.exports={set:c,clear:_}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var i=n(10),a=n(16),r=n(54);e.exports=function(e,t){if(i(e),a(t)&&t.constructor===e)return t;e=r.f(e);return(0,e.resolve)(t),e.promise}},function(e,t,n){var r=n(7)("iterator"),s=!1;try{var i=[7][r]();i.return=function(){s=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!s)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oTool=void 0;var i=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}(0,a(n(2)).default)(r,[{key:"$",value:function(e){var t=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,n=/^(?:\s*(<[\w\W]+>)[^>]*|.([\w-]*))$/;if(t.test(e)){t=t.exec(e);return document.getElementById(t[2])}if(n.test(e)){for(var i=n.exec(e),a=document.getElementsByTagName("*"),r=[],s=0,o=a.length;s<o;s++)a[s].className.match(new RegExp("(\\s|^)"+i[2]+"(\\s|$)"))&&r.push(a[s]);return r}}},{key:"dateFormat",value:function(e,t){var n,i={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),i)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?i[n]:("00"+i[n]).substr((""+i[n]).length)));return t}},{key:"downloadFile",value:function(e,t){var n=e;e instanceof Blob||e instanceof File||(n=new Blob([e]));e=window.URL.createObjectURL(n),n=window.document.createElement("a");n.href=e,n.download=t;t=document.createEvent("MouseEvents");t.initEvent("click",!0,!0),n.dispatchEvent(t)}},{key:"createxmlDoc",value:function(){for(var t,e=["MSXML2.DOMDocument","MSXML2.DOMDocument.5.0","MSXML2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","Microsoft.XmlDom"],n=0,i=e.length;n<i;n++)try{t=new ActiveXObject(e[n]);break}catch(e){t=document.implementation.createDocument("","",null);break}return t.async="false",t}},{key:"parseXmlFromStr",value:function(e){if(null===e||""===e)return null;var t=this.createxmlDoc();return"Netscape"===navigator.appName||"Opera"===navigator.appName?t=(new DOMParser).parseFromString(e,"text/xml"):t.loadXML(e),t}},{key:"encode",value:function(e){var t,n,i,a,r,s,o="",u=0;for(e=this._utf8_encode(e);u<e.length;)i=(s=e.charCodeAt(u++))>>2,a=(3&s)<<4|(t=e.charCodeAt(u++))>>4,r=(15&t)<<2|(n=e.charCodeAt(u++))>>6,s=63&n,isNaN(t)?r=s=64:isNaN(n)&&(s=64),o=o+this._keyStr.charAt(i)+this._keyStr.charAt(a)+this._keyStr.charAt(r)+this._keyStr.charAt(s);return o}},{key:"decode",value:function(e){var t,n,i,a,r,s,o="",u=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");u<e.length;)i=this._keyStr.indexOf(e.charAt(u++)),t=(15&(a=this._keyStr.indexOf(e.charAt(u++))))<<4|(r=this._keyStr.indexOf(e.charAt(u++)))>>2,n=(3&r)<<6|(s=this._keyStr.indexOf(e.charAt(u++))),o+=String.fromCharCode(i<<2|a>>4),64!==r&&(o+=String.fromCharCode(t)),64!==s&&(o+=String.fromCharCode(n));return o=this._utf8_decode(o)}},{key:"_utf8_encode",value:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t+=String.fromCharCode(i):(127<i&&i<2048?t+=String.fromCharCode(i>>6|192):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128)),t+=String.fromCharCode(63&i|128))}return t}},{key:"_utf8_decode",value:function(e){for(var t,n="",i=0,a=0,r=0;i<e.length;)(a=e.charCodeAt(i))<128?(n+=String.fromCharCode(a),i++):191<a&&a<224?(r=e.charCodeAt(i+1),n+=String.fromCharCode((31&a)<<6|63&r),i+=2):(r=e.charCodeAt(i+1),t=e.charCodeAt(i+2),n+=String.fromCharCode((15&a)<<12|(63&r)<<6|63&t),i+=3);return n}},{key:"isFirefox",value:function(){var e=!1,t=navigator.userAgent.toLowerCase(),n="";return t.match(/firefox\/([\d.]+)/)&&(n=t.match(/firefox\/([\d.]+)/)[1],-1<parseInt(n.split(".")[0],10)&&(e=!0)),e}},{key:"isSafari",value:function(){var e=!1,t=navigator.userAgent.toLowerCase(),n="";return t.match(/version\/([\d.]+).safari./)&&(n=t.match(/version\/([\d.]+).safari./)[1],-1<parseInt(n.split(".")[0],10)&&(e=!0)),e}},{key:"isEdge",value:function(){return-1<navigator.userAgent.toLowerCase().indexOf("edge")}},{key:"dataURLtoBlob",value:function(e){for(var t=e.split(","),e=t[0].match(/:(.*?);/)[1],n=atob(t[1]),i=n.length,a=new Uint8Array(i);i--;)a[i]=n.charCodeAt(i);return new Blob([a],{type:e})}},{key:"intToHexString",value:function(e){e=e.toString(16);return e=1===e.length?"0"+e:e}}]),n=r;function r(){(0,i.default)(this,r),this._keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}t.oTool=new n},function(e,t,n){var i=n(255),a=n(256),n=a;n.v1=i,n.v4=a,e.exports=n},function(e,t){var n,i,a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);a?(n=new Uint8Array(16),e.exports=function(){return a(n),n}):(i=new Array(16),e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i})},function(e,t){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);e.exports=function(e,t){return t=t||0,[n[e[t++]],n[e[t++]],n[e[t++]],n[e[t++]],"-",n[e[t++]],n[e[t++]],"-",n[e[t++]],n[e[t++]],"-",n[e[t++]],n[e[t++]],"-",n[e[t++]],n[e[t++]],n[e[t++]],n[e[t++]],n[e[t++]],n[e[t++]]].join("")}},function(e,t,n){var i=n(72),a=n(51).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,a)}},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){if(e<12)return n?"vm":"VM";else return 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(e){return e+(e===1||e===8||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},o=function(e){return e===0?0:e===1?1:e===2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},u={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(s){return function(e,t,n,i){var a=o(e),r=u[s][o(e)];if(a===2)r=r[t?0:1];return r.replace(/%d/i,e)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],r;e.defineLocale("ar",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:true,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(e){return"م"===e},meridiem:function(e,t,n){if(e<12)return"ص";else return"م"},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(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var o=function(e){return e===0?0:e===1?1:e===2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},u={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},t=function(s){return function(e,t,n,i){var a=o(e),r=u[s][o(e)];if(a===2)r=r[t?0:1];return r.replace(/%d/i,e)}},n=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],i;e.defineLocale("ar-dz",{months:n,monthsShort:n,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:true,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(e){return"م"===e},meridiem:function(e,t,n){if(e<12)return"ص";else return"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:t("s"),ss:t("s"),m:t("m"),mm:t("m"),h:t("h"),hh:t("h"),d:t("d"),dd:t("d"),M:t("M"),MM:t("M"),y:t("y"),yy:t("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:true,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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},o=function(e){return e===0?0:e===1?1:e===2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},u={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},n=function(s){return function(e,t,n,i){var a=o(e),r=u[s][o(e)];if(a===2)r=r[t?0:1];return r.replace(/%d/i,e)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],a;e.defineLocale("ar-ly",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:true,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(e){return"م"===e},meridiem:function(e,t,n){if(e<12)return"ص";else return"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:n("s"),ss:n("s"),m:n("m"),mm:n("m"),h:n("h"),hh:n("h"),d:n("d"),dd:n("d"),M:n("M"),MM:n("M"),y:n("y"),yy:n("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:true,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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i;e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:true,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(e){return"م"===e},meridiem:function(e,t,n){if(e<12)return"ص";else return"م"},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(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:true,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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var a={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ı"},t;e.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:true,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:"bir neçə saniyə",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(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){if(e<4)return"gecə";else if(e<12)return"səhər";else if(e<17)return"gündüz";else return"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(e===0)return e+"-ıncı";var t=e%10,n=e%100-t,i=e>=100?100:null;return e+(a[t]||a[n]||a[i])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function a(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function t(e,t,n){var i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};if(n==="m")return t?"хвіліна":"хвіліну";else if(n==="h")return t?"гадзіна":"гадзіну";else return e+" "+a(i[n],+e)}var n;e.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:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){if(e<4)return"ночы";else if(e<12)return"раніцы";else if(e<17)return"дня";else return"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return(e%10===2||e%10===3)&&e%100!==12&&e%100!==13?e+"-і":e+"-ы";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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 дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;if(e===0)return e+"-ев";else if(n===0)return e+"-ен";else if(n>10&&n<20)return e+"-ти";else if(t===1)return e+"-ви";else if(t===2)return e+"-ри";else if(t===7||t===8)return e+"-ми";else return e+"-ти"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},i;e.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(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="রাত"&&e>=4||t==="দুপুর"&&e<5||t==="বিকাল")return e+12;else return e},meridiem:function(e,t,n){if(e<4)return"রাত";else if(e<10)return"সকাল";else if(e<17)return"দুপুর";else if(e<20)return"বিকাল";else return"রাত"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},i;e.defineLocale("bn-bd",{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(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="রাত")return e<4?e:e+12;else if(t==="ভোর")return e;else if(t==="সকাল")return e;else if(t==="দুপুর")return e>=3?e:e+12;else if(t==="বিকাল")return e+12;else if(t==="সন্ধ্যা")return e+12},meridiem:function(e,t,n){if(e<4)return"রাত";else if(e<6)return"ভোর";else if(e<12)return"সকাল";else if(e<15)return"দুপুর";else if(e<18)return"বিকাল";else if(e<20)return"সন্ধ্যা";else return"রাত"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"},i;e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:true,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(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="མཚན་མོ"&&e>=4||t==="ཉིན་གུང"&&e<5||t==="དགོང་དག")return e+12;else return e},meridiem:function(e,t,n){if(e<4)return"མཚན་མོ";else if(e<10)return"ཞོགས་ཀས";else if(e<17)return"ཉིན་གུང";else if(e<20)return"དགོང་དག";else return"མཚན་མོ"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var i={mm:"munutenn",MM:"miz",dd:"devezh"};return e+" "+a(i[n],e)}function n(e){switch(i(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function i(e){if(e>9)return i(e%10);return e}function a(e,t){if(t===2)return r(e);return e}function r(e){var t={m:"v",b:"v",d:"z"};if(t[e.charAt(0)]===undefined)return e;return t[e.charAt(0)]+e.substring(1)}var s=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],o=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,u=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,d=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,l=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],h=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],c=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i],_;e.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("_"),weekdaysParse:c,fullWeekdaysParse:l,shortWeekdaysParse:h,minWeekdaysParse:c,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:u,monthsShortStrictRegex:d,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},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:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){var t=e===1?"añ":"vet";return e+t},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return e==="g.m."},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var i=e+" ";switch(n){case"ss":if(e===1)i+="sekunda";else if(e===2||e===3||e===4)i+="sekunde";else i+="sekundi";return i;case"m":return t?"jedna minuta":"jedne minute";case"mm":if(e===1)i+="minuta";else if(e===2||e===3||e===4)i+="minute";else i+="minuta";return i;case"h":return t?"jedan sat":"jednog sata";case"hh":if(e===1)i+="sat";else if(e===2||e===3||e===4)i+="sata";else i+="sati";return i;case"dd":if(e===1)i+="dan";else i+="dana";return i;case"MM":if(e===1)i+="mjesec";else if(e===2||e===3||e===4)i+="mjeseca";else i+="mjeseci";return i;case"yy":if(e===1)i+="godina";else if(e===2||e===3||e===4)i+="godine";else i+="godina";return i}}var n;e.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:true,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:true,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:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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:true,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:true,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 "+(this.hours()!==1?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(this.hours()!==1?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(this.hours()!==1?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(this.hours()!==1?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(this.hours()!==1?"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(e,t){var n=e===1?"r":e===2?"n":e===3?"r":e===4?"t":"è";if(t==="w"||t==="W")n="a";return e+n},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),i=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],a=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,r;function s(e){return e>1&&e<5&&~~(e/10)!==1}function o(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"pár sekund":"pár sekundami";case"ss":if(t||i)return a+(s(e)?"sekundy":"sekund");else return a+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":if(t||i)return a+(s(e)?"minuty":"minut");else return a+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":if(t||i)return a+(s(e)?"hodiny":"hodin");else return a+"hodinami";case"d":return t||i?"den":"dnem";case"dd":if(t||i)return a+(s(e)?"dny":"dní");else return a+"dny";case"M":return t||i?"měsíc":"měsícem";case"MM":if(t||i)return a+(s(e)?"měsíce":"měsíců");else return a+"měsíci";case"y":return t||i?"rok":"rokem";case"yy":if(t||i)return a+(s(e)?"roky":"let");else return a+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,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:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e){var t=/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран";return e+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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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:true,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(e){var t=e,n="",i=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];if(t>20)if(t===40||t===50||t===60||t===80||t===100)n="fed";else n="ain";else if(t>0)n=i[t];return e+n},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}var n;e.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:true,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:true,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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}var n;e.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:true,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:true,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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}var n;e.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:true,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:true,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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],i;e.defineLocale("dv",{months:t,monthsShort:t,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(e){return"މފ"===e},meridiem:function(e,t,n){if(e<12)return"މކ";else return"މފ"},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(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function a(e){return typeof Function!=="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}var t;e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){if(!e)return this._monthsNominativeEl;else if(typeof t==="string"&&/D/.test(t.substring(0,t.indexOf("MMMM"))))return this._monthsGenitiveEl[e.month()];else return this._monthsNominativeEl[e.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){if(e>11)return n?"μμ":"ΜΜ";else return n?"πμ":"ΠΜ"},isPM:function(e){return(e+"").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(e,t){var n=this._calendarEl[e],i=t&&t.hours();if(a(n))n=n.apply(t);return n.replace("{}",i%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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e){var t=e%10,n=~~(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n},week:{dow:0,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e){var t=e%10,n=~~(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e){var t=e%10,n=~~(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e){var t=e%10,n=~~(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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",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(e){var t=e%10,n=~~(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("en-in",{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(e){var t=e%10,n=~~(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e){var t=e%10,n=~~(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("en-sg",{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(e){var t=e%10,n=~~(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_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:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return e.charAt(0).toLowerCase()==="p"},meridiem:function(e,t,n){if(e>11)return n?"p.t.m.":"P.T.M.";else return n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),t=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(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,r;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){if(!e)return n;else if(/-MMM-/.test(t))return i[e.month()];else return n[e.month()]},monthsRegex:a,monthsShortRegex:a,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:t,longMonthsParse:t,shortMonthsParse:t,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:true,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"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"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",w:"una semana",ww:"%d semanas",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},invalidDate:"Fecha inválida"})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),t=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(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,r;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){if(!e)return n;else if(/-MMM-/.test(t))return i[e.month()];else return n[e.month()]},monthsRegex:a,monthsShortRegex:a,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:t,longMonthsParse:t,shortMonthsParse:t,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:true,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"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"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",w:"una semana",ww:"%d semanas",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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),t=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(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,r;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){if(!e)return n;else if(/-MMM-/.test(t))return i[e.month()];else return n[e.month()]},monthsRegex:a,monthsShortRegex:a,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:t,longMonthsParse:t,shortMonthsParse:t,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:true,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"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"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",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),t=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(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,r;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){if(!e)return n;else if(/-MMM-/.test(t))return i[e.month()];else return n[e.month()]},monthsRegex:a,monthsShortRegex:a,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:t,longMonthsParse:t,shortMonthsParse:t,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:true,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/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"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"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",w:"una semana",ww:"%d semanas",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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){var a={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};if(t)return a[n][2]?a[n][2]:a[n][1];return i?a[n][0]:a[n][1]}var n;e.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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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:true,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:true,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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},i;e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:true,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(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){if(e<12)return"قبل از ظهر";else return"بعد از ظهر"},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(e){return e.replace(/[۰-۹]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var n="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),i=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",n[7],n[8],n[9]],t;function a(e,t,n,i){var a="";switch(n){case"s":return i?"muutaman sekunnin":"muutama sekunti";case"ss":a=i?"sekunnin":"sekuntia";break;case"m":return i?"minuutin":"minuutti";case"mm":a=i?"minuutin":"minuuttia";break;case"h":return i?"tunnin":"tunti";case"hh":a=i?"tunnin":"tuntia";break;case"d":return i?"päivän":"päivä";case"dd":a=i?"päivän":"päivää";break;case"M":return i?"kuukauden":"kuukausi";case"MM":a=i?"kuukauden":"kuukautta";break;case"y":return i?"vuoden":"vuosi";case"yy":a=i?"vuoden":"vuotta";break}a=r(e,i)+" "+a;return a}function r(e,t){return e<10?t?i[e]:n[e]:e}e.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:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("fil",{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(e){return e},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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 minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,i=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,a=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],r;e.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("_"),monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,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:true,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",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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:true,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:true,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(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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:true,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:true,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(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var n="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),t;e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,t){if(!e)return n;else if(/-MMM-/.test(t))return i[e.month()];else return n[e.month()]},monthsParseExact:true,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:true,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(e){return e+(e===1||e===8||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t,n,i,a,r,s;e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:true,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],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:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=e===1?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t,n,i,a,r,s;e.defineLocale("gd",{months:["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"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:true,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],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(e){var t=e===1?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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:true,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:true,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 "+(this.hours()!==1?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(this.hours()!==1?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(this.hours()!==1?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(this.hours()!==1?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(this.hours()!==1?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){if(e.indexOf("un")===0)return"n"+e;return"en "+e},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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){var a={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return i?a[n][0]:a[n][1]}var n;e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:true,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:true,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, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM 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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="राती")return e<4?e:e+12;else if(t==="सकाळीं")return e;else if(t==="दनपारां")return e>12?e:e+12;else if(t==="सांजे")return e+12},meridiem:function(e,t,n){if(e<4)return"राती";else if(e<12)return"सकाळीं";else if(e<16)return"दनपारां";else if(e<20)return"सांजे";else return"राती"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){var a={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return i?a[n][0]:a[n][1]}var n;e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:true,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:true,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 Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="rati")return e<4?e:e+12;else if(t==="sokallim")return e;else if(t==="donparam")return e>12?e:e+12;else if(t==="sanje")return e+12},meridiem:function(e,t,n){if(e<4)return"rati";else if(e<12)return"sokallim";else if(e<16)return"donparam";else if(e<20)return"sanje";else return"rati"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"},i;e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:true,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(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="રાત")return e<4?e:e+12;else if(t==="સવાર")return e;else if(t==="બપોર")return e>=10?e:e+12;else if(t==="સાંજ")return e+12},meridiem:function(e,t,n){if(e<4)return"રાત";else if(e<10)return"સવાર";else if(e<17)return"બપોર";else if(e<20)return"સાંજ";else return"રાત"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e){if(e===2)return"שעתיים";return e+" שעות"},d:"יום",dd:function(e){if(e===2)return"יומיים";return e+" ימים"},M:"חודש",MM:function(e){if(e===2)return"חודשיים";return e+" חודשים"},y:"שנה",yy:function(e){if(e===2)return"שנתיים";else if(e%10===0&&e!==10)return e+" שנה";return e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){if(e<5)return"לפנות בוקר";else if(e<10)return"בבוקר";else if(e<12)return n?'לפנה"צ':"לפני הצהריים";else if(e<18)return n?'אחה"צ':"אחרי הצהריים";else return"בערב"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},i=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],a=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],r;e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".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 बजे"},monthsParse:i,longMonthsParse:i,shortMonthsParse:a,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,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(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="रात")return e<4?e:e+12;else if(t==="सुबह")return e;else if(t==="दोपहर")return e>=10?e:e+12;else if(t==="शाम")return e+12},meridiem:function(e,t,n){if(e<4)return"रात";else if(e<10)return"सुबह";else if(e<17)return"दोपहर";else if(e<20)return"शाम";else return"रात"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var i=e+" ";switch(n){case"ss":if(e===1)i+="sekunda";else if(e===2||e===3||e===4)i+="sekunde";else i+="sekundi";return i;case"m":return t?"jedna minuta":"jedne minute";case"mm":if(e===1)i+="minuta";else if(e===2||e===3||e===4)i+="minute";else i+="minuta";return i;case"h":return t?"jedan sat":"jednog sata";case"hh":if(e===1)i+="sat";else if(e===2||e===3||e===4)i+="sata";else i+="sati";return i;case"dd":if(e===1)i+="dan";else i+="dana";return i;case"MM":if(e===1)i+="mjesec";else if(e===2||e===3||e===4)i+="mjeseca";else i+="mjeseci";return i;case"yy":if(e===1)i+="godina";else if(e===2||e===3||e===4)i+="godine";else i+="godina";return i}}var n;e.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:true,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:true,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do 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:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [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:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" "),n;function i(e,t,n,i){var a=e;switch(n){case"s":return i||t?"néhány másodperc":"néhány másodperce";case"ss":return a+(i||t)?" másodperc":" másodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return a+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" óra":" órája");case"hh":return a+(i||t?" óra":" órája");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return a+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" hónap":" hónapja");case"MM":return a+(i||t?" hónap":" hónapja");case"y":return"egy"+(i||t?" év":" éve");case"yy":return a+(i||t?" év":" éve")}return""}function a(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.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("_"),monthsParseExact:true,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(e){return e.charAt(1).toLowerCase()==="u"},meridiem:function(e,t,n){if(e<12)return n===true?"de":"DE";else return n===true?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return a.call(this,true)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return a.call(this,false)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){if(e<4)return"գիշերվա";else if(e<12)return"առավոտվա";else if(e<17)return"ցերեկվա";else return"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":if(e===1)return e+"-ին";return e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e,t){if(e===12)e=0;if(t==="pagi")return e;else if(t==="siang")return e>=11?e:e+12;else if(t==="sore"||t==="malam")return e+12},meridiem:function(e,t,n){if(e<11)return"pagi";else if(e<15)return"siang";else if(e<19)return"sore";else return"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:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function r(e){if(e%100===11)return true;else if(e%10===1)return false;return true}function t(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":if(r(e))return a+(t||i?"sekúndur":"sekúndum");return a+"sekúnda";case"m":return t?"mínúta":"mínútu";case"mm":if(r(e))return a+(t||i?"mínútur":"mínútum");else if(t)return a+"mínúta";return a+"mínútu";case"hh":if(r(e))return a+(t||i?"klukkustundir":"klukkustundum");return a+"klukkustund";case"d":if(t)return"dagur";return i?"dag":"degi";case"dd":if(r(e)){if(t)return a+"dagar";return a+(i?"daga":"dögum")}else if(t)return a+"dagur";return a+(i?"dag":"degi");case"M":if(t)return"mánuður";return i?"mánuð":"mánuði";case"MM":if(r(e)){if(t)return a+"mánuðir";return a+(i?"mánuði":"mánuðum")}else if(t)return a+"mánuður";return a+(i?"mánuð":"mánuði");case"y":return t||i?"ár":"ári";case"yy":if(r(e))return a+(t||i?"ár":"árum");return a+(t||i?"ár":"ári")}}var n;e.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:t,ss:t,m:t,mm:t,h:"klukkustund",hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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:function(){return"[Oggi a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",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",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("it-ch",{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(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return t[1]==="元"?1:parseInt(t[1]||e,10)},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(e){return e==="午後"},meridiem:function(e,t,n){if(e<12)return"午前";else return"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){if(e.week()!==this.week())return"[来週]dddd LT";else return"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){if(this.week()!==e.week())return"[先週]dddd LT";else return"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return e===1?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},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年"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e,t){if(e===12)e=0;if(t==="enjing")return e;else if(t==="siyang")return e>=11?e:e+12;else if(t==="sonten"||t==="ndalu")return e+12},meridiem:function(e,t,n){if(e<11)return"enjing";else if(e<15)return"siyang";else if(e<19)return"sonten";else return"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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},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:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,function(e,t,n){return n==="ი"?t+"ში":t+n+"ში"})},past:function(e){if(/(წამი|წუთი|საათი|დღე|თვე)/.test(e))return e.replace(/(ი|ე)$/,"ის წინ");if(/წელი/.test(e))return e.replace(/წელი$/,"წლის წინ");return e},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(e){if(e===0)return e;if(e===1)return e+"-ლი";if(e<20||e<=100&&e%20===0||e%100===0)return"მე-"+e;return e+"-ე"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var i={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},t;e.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(e){var t=e%10,n=e>=100?100:null;return e+(i[e]||i[t]||i[n])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"},i;e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:true,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(e){return e==="ល្ងាច"},meridiem:function(e,t,n){if(e<12)return"ព្រឹក";else return"ល្ងាច"},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(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"},i;e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:true,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(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="ರಾತ್ರಿ")return e<4?e:e+12;else if(t==="ಬೆಳಿಗ್ಗೆ")return e;else if(t==="ಮಧ್ಯಾಹ್ನ")return e>=10?e:e+12;else if(t==="ಸಂಜೆ")return e+12},meridiem:function(e,t,n){if(e<4)return"ರಾತ್ರಿ";else if(e<10)return"ಬೆಳಿಗ್ಗೆ";else if(e<17)return"ಮಧ್ಯಾಹ್ನ";else if(e<20)return"ಸಂಜೆ";else return"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return e==="오후"},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"],a;e.defineLocale("ku",{months:i,monthsShort:i,weekdays:"یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه".split("_"),weekdaysShort:"یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:true,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(e){return/ئێواره/.test(e)},meridiem:function(e,t,n){if(e<12)return"بهیانی";else return"ئێواره"},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(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var i={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"},t;e.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(e){var t=e%10,n=e>=100?100:null;return e+(i[e]||i[t]||i[n])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){var a={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 t?a[n][0]:a[n][1]}function n(e){var t=e.substr(0,e.indexOf(" "));if(a(t))return"a "+e;return"an "+e}function i(e){var t=e.substr(0,e.indexOf(" "));if(a(t))return"viru "+e;return"virun "+e}function a(e){e=parseInt(e,10);if(isNaN(e))return false;if(e<0)return true;else if(e<10){if(4<=e&&e<=7)return true;return false}else if(e<100){var t=e%10,n=e/10;if(t===0)return a(n);return a(t)}else if(e<1e4){while(e>=10)e=e/10;return a(e)}else{e=e/1e3;return a(e)}}var r;e.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:true,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:true,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:i,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:true,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(e){return e==="ຕອນແລງ"},meridiem:function(e,t,n){if(e<12)return"ຕອນເຊົ້າ";else return"ຕອນແລງ"},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(e){return"ທີ່"+e}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={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"},n;function i(e,t,n,i){if(t)return"kelios sekundės";else return i?"kelių sekundžių":"kelias sekundes"}function r(e,t,n,i){return t?o(n)[0]:i?o(n)[1]:o(n)[2]}function s(e){return e%10===0||e>10&&e<20}function o(e){return t[e].split("_")}function a(e,t,n,i){var a=e+" ";if(e===1)return a+r(e,t,n[0],i);else if(t)return a+(s(e)?o(n)[1]:o(n)[0]);else if(i)return a+o(n)[1];else return a+(s(e)?o(n)[1]:o(n)[2])}e.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:true,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:i,ss:a,m:r,mm:a,h:r,hh:a,d:r,dd:a,M:r,MM:a,y:r,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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("_")},t;function a(e,t,n){if(n)return t%10===1&&t%100!==11?e[2]:e[3];else return t%10===1&&t%100!==11?e[0]:e[1]}function n(e,t,n){return e+" "+a(i[n],e,t)}function r(e,t,n){return a(i[n],e,t)}function s(e,t){return t?"dažas sekundes":"dažām sekundēm"}e.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:true,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:r,mm:n,h:r,hh:n,d:r,dd:n,M:r,MM:n,y:r,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var a={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(e,t){return e===1?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,t,n){var i=a.words[n];if(n.length===1)return t?i[0]:i[1];else return e+" "+a.correctGrammaticalCase(e,i)}},t;e.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:true,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:true,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(){var e=["[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"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:a.translate,m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:"dan",dd:a.translate,M:"mjesec",MM:a.translate,y:"godinu",yy:a.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e){var t=e%10,n=e%100;if(e===0)return e+"-ев";else if(n===0)return e+"-ен";else if(n>10&&n<20)return e+"-ти";else if(t===1)return e+"-ви";else if(t===2)return e+"-ри";else if(t===7||t===8)return e+"-ми";else return e+"-ти"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:true,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(e,t){if(e===12)e=0;if(t==="രാത്രി"&&e>=4||t==="ഉച്ച കഴിഞ്ഞ്"||t==="വൈകുന്നേരം")return e+12;else return e},meridiem:function(e,t,n){if(e<4)return"രാത്രി";else if(e<12)return"രാവിലെ";else if(e<17)return"ഉച്ച കഴിഞ്ഞ്";else if(e<20)return"വൈകുന്നേരം";else return"രാത്രി"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}var n;e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:true,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:true,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(e){return e==="ҮХ"},meridiem:function(e,t,n){if(e<12)return"ҮӨ";else return"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},i;function a(e,t,n,i){var a="";if(t)switch(n){case"s":a="काही सेकंद";break;case"ss":a="%d सेकंद";break;case"m":a="एक मिनिट";break;case"mm":a="%d मिनिटे";break;case"h":a="एक तास";break;case"hh":a="%d तास";break;case"d":a="एक दिवस";break;case"dd":a="%d दिवस";break;case"M":a="एक महिना";break;case"MM":a="%d महिने";break;case"y":a="एक वर्ष";break;case"yy":a="%d वर्षे";break}else switch(n){case"s":a="काही सेकंदां";break;case"ss":a="%d सेकंदां";break;case"m":a="एका मिनिटा";break;case"mm":a="%d मिनिटां";break;case"h":a="एका तासा";break;case"hh":a="%d तासां";break;case"d":a="एका दिवसा";break;case"dd":a="%d दिवसां";break;case"M":a="एका महिन्या";break;case"MM":a="%d महिन्यां";break;case"y":a="एका वर्षा";break;case"yy":a="%d वर्षां";break}return a.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:true,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:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="पहाटे"||t==="सकाळी")return e;else if(t==="दुपारी"||t==="सायंकाळी"||t==="रात्री")return e>=12?e:e+12},meridiem:function(e,t,n){if(e>=0&&e<6)return"पहाटे";else if(e<12)return"सकाळी";else if(e<17)return"दुपारी";else if(e<20)return"सायंकाळी";else return"रात्री"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e,t){if(e===12)e=0;if(t==="pagi")return e;else if(t==="tengahari")return e>=11?e:e+12;else if(t==="petang"||t==="malam")return e+12},meridiem:function(e,t,n){if(e<11)return"pagi";else if(e<15)return"tengahari";else if(e<19)return"petang";else return"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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e,t){if(e===12)e=0;if(t==="pagi")return e;else if(t==="tengahari")return e>=11?e:e+12;else if(t==="petang"||t==="malam")return e+12},meridiem:function(e,t,n){if(e<11)return"pagi";else if(e<15)return"tengahari";else if(e<19)return"petang";else return"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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},i;e.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(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:true,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:true,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",w:"en uke",ww:"%d uker",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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},i;e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:true,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:true,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(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="राति")return e<4?e:e+12;else if(t==="बिहान")return e;else if(t==="दिउँसो")return e>=10?e:e+12;else if(t==="साँझ")return e+12},meridiem:function(e,t,n){if(e<3)return"राति";else if(e<12)return"बिहान";else if(e<16)return"दिउँसो";else if(e<20)return"साँझ";else return"राति"},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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),t=[/^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],a=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,r;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){if(!e)return n;else if(/-MMM-/.test(t))return i[e.month()];else return n[e.month()]},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,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:true,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",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(e===1||e===8||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),t=[/^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],a=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,r;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){if(!e)return n;else if(/-MMM-/.test(t))return i[e.month()];else return n[e.month()]},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,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:true,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(e){return e+(e===1||e===8||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:true,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:true,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",w:"ei veke",ww:"%d veker",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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:true,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:true,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] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=e===1?"r":e===2?"n":e===3?"r":e===4?"t":"è";if(t==="w"||t==="W")n="a";return e+n},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"},i;e.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(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="ਰਾਤ")return e<4?e:e+12;else if(t==="ਸਵੇਰ")return e;else if(t==="ਦੁਪਹਿਰ")return e>=10?e:e+12;else if(t==="ਸ਼ਾਮ")return e+12},meridiem:function(e,t,n){if(e<4)return"ਰਾਤ";else if(e<10)return"ਸਵੇਰ";else if(e<17)return"ਦੁਪਹਿਰ";else if(e<20)return"ਸ਼ਾਮ";else return"ਰਾਤ"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var n="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),t=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i],a;function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!==1}function s(e,t,n){var i=e+" ";switch(n){case"ss":return i+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return i+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(r(e)?"godziny":"godzin");case"ww":return i+(r(e)?"tygodnie":"tygodni");case"MM":return i+(r(e)?"miesiące":"miesięcy");case"yy":return i+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,t){if(!e)return n;else if(/D MMMM/.test(t))return i[e.month()];else return n[e.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:t,longMonthsParse:t,shortMonthsParse:t,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:s,m:s,mm:s,h:s,hh:s,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:s,M:"miesiąc",MM:s,y:"rok",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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:true,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 this.day()===0||this.day()===6?"[Ú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",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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:true,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 this.day()===0||this.day()===6?"[Ú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º",invalidDate:"Data inválida"})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var i={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"},a=" ";if(e%100>=20||e>=100&&e%100===0)a=" de ";return e+a+i[n]}var n;e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:true,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:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function a(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function t(e,t,n){var i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};if(n==="m")return t?"минута":"минуту";else return e+" "+a(i[n],+e)}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],i;e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,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(e){if(e.week()!==this.week())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"}else if(this.day()===2)return"[Во] dddd, [в] LT";else return"[В] dddd, [в] LT"},lastWeek:function(e){if(e.week()!==this.week())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"}else if(this.day()===2)return"[Во] dddd, [в] LT";else return"[В] dddd, [в] LT"},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,w:"неделя",ww:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){if(e<4)return"ночи";else if(e<12)return"утра";else if(e<17)return"дня";else return"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"],i;e.defineLocale("sd",{months:t,monthsShort:t,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(e){return"شام"===e},meridiem:function(e,t,n){if(e<12)return"صبح";return"شام"},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(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:true,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(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return e==="ප.ව."||e==="පස් වරු"},meridiem:function(e,t,n){if(e>11)return n?"ප.ව.":"පස් වරු";else return n?"පෙ.ව.":"පෙර වරු"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),i;function r(e){return e>1&&e<5}function a(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":if(t||i)return a+(r(e)?"sekundy":"sekúnd");else return a+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":if(t||i)return a+(r(e)?"minúty":"minút");else return a+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":if(t||i)return a+(r(e)?"hodiny":"hodín");else return a+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":if(t||i)return a+(r(e)?"dni":"dní");else return a+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":if(t||i)return a+(r(e)?"mesiace":"mesiacov");else return a+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":if(t||i)return a+(r(e)?"roky":"rokov");else return a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,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:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":if(e===1)a+=t?"sekundo":"sekundi";else if(e===2)a+=t||i?"sekundi":"sekundah";else if(e<5)a+=t||i?"sekunde":"sekundah";else a+="sekund";return a;case"m":return t?"ena minuta":"eno minuto";case"mm":if(e===1)a+=t?"minuta":"minuto";else if(e===2)a+=t||i?"minuti":"minutama";else if(e<5)a+=t||i?"minute":"minutami";else a+=t||i?"minut":"minutami";return a;case"h":return t?"ena ura":"eno uro";case"hh":if(e===1)a+=t?"ura":"uro";else if(e===2)a+=t||i?"uri":"urama";else if(e<5)a+=t||i?"ure":"urami";else a+=t||i?"ur":"urami";return a;case"d":return t||i?"en dan":"enim dnem";case"dd":if(e===1)a+=t||i?"dan":"dnem";else if(e===2)a+=t||i?"dni":"dnevoma";else a+=t||i?"dni":"dnevi";return a;case"M":return t||i?"en mesec":"enim mesecem";case"MM":if(e===1)a+=t||i?"mesec":"mesecem";else if(e===2)a+=t||i?"meseca":"mesecema";else if(e<5)a+=t||i?"mesece":"meseci";else a+=t||i?"mesecev":"meseci";return a;case"y":return t||i?"eno leto":"enim letom";case"yy":if(e===1)a+=t||i?"leto":"letom";else if(e===2)a+=t||i?"leti":"letoma";else if(e<5)a+=t||i?"leta":"leti";else a+=t||i?"let":"leti";return a}}var n;e.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:true,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:true,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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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:true,meridiemParse:/PD|MD/,isPM:function(e){return e.charAt(0)==="M"},meridiem:function(e,t,n){return e<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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var a={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(e,t){return e===1?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,t,n){var i=a.words[n];if(n.length===1)return t?i[0]:i[1];else return e+" "+a.correctGrammaticalCase(e,i)}},t;e.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:true,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:true,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. 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(){var e=["[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"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:a.translate,m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:"dan",dd:a.translate,M:"mesec",MM:a.translate,y:"godinu",yy:a.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var a={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return e===1?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,t,n){var i=a.words[n];if(n.length===1)return t?i[0]:i[1];else return e+" "+a.correctGrammaticalCase(e,i)}},t;e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:true,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:true,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. 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(){var e=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:a.translate,m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:"дан",dd:a.translate,M:"месец",MM:a.translate,y:"годину",yy:a.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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:true,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(e,t,n){if(e<11)return"ekuseni";else if(e<15)return"emini";else if(e<19)return"entsambama";else return"ebusuku"},meridiemHour:function(e,t){if(e===12)e=0;if(t==="ekuseni")return e;else if(t==="emini")return e>=11?e:e+12;else if(t==="entsambama"||t==="ebusuku"){if(e===0)return 0;return e+12}},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e){var t=e%10,n=~~(e%100/10)===1?":e":t===1?":a":t===2?":a":t===3?":e":":e";return e+n},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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:true,longDateFormat:{LT:"hh:mm A",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:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},i;e.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(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){if(e<2)return" யாமம்";else if(e<6)return" வைகறை";else if(e<10)return" காலை";else if(e<14)return" நண்பகல்";else if(e<18)return" எற்பாடு";else if(e<22)return" மாலை";else return" யாமம்"},meridiemHour:function(e,t){if(e===12)e=0;if(t==="யாமம்")return e<2?e:e+12;else if(t==="வைகறை"||t==="காலை")return e;else if(t==="நண்பகல்")return e>=10?e:e+12;else return e+12},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:true,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(e,t){if(e===12)e=0;if(t==="రాత్రి")return e<4?e:e+12;else if(t==="ఉదయం")return e;else if(t==="మధ్యాహ్నం")return e>=10?e:e+12;else if(t==="సాయంత్రం")return e+12},meridiem:function(e,t,n){if(e<4)return"రాత్రి";else if(e<10)return"ఉదయం";else if(e<17)return"మధ్యాహ్నం";else if(e<20)return"సాయంత్రం";else return"రాత్రి"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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:"segundu balun",ss:"segundu %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(e){var t=e%10,n=~~(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var i={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"},t;e.defineLocale("tg",{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:"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(e,t){if(e===12)e=0;if(t==="шаб")return e<4?e:e+12;else if(t==="субҳ")return e;else if(t==="рӯз")return e>=11?e:e+12;else if(t==="бегоҳ")return e+12},meridiem:function(e,t,n){if(e<4)return"шаб";else if(e<11)return"субҳ";else if(e<16)return"рӯз";else if(e<19)return"бегоҳ";else return"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var t=e%10,n=e>=100?100:null;return e+(i[e]||i[t]||i[n])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:true,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:true,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(e){return e==="หลังเที่ยง"},meridiem:function(e,t,n){if(e<12)return"ก่อนเที่ยง";else return"หลังเที่ยง"},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 วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var r={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"},t;e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".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 sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,t){switch(t){case"d":case"D":case"Do":case"DD":return e;default:if(e===0)return e+"'unjy";var n=e%10,i=e%100-n,a=e>=100?100:null;return e+(r[n]||r[i]||r[a])}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e){return e},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var r="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_"),t;function n(e){var t=e;t=e.indexOf("jaj")!==-1?t.slice(0,-3)+"leS":e.indexOf("jar")!==-1?t.slice(0,-3)+"waQ":e.indexOf("DIS")!==-1?t.slice(0,-3)+"nem":t+" pIq";return t}function i(e){var t=e;t=e.indexOf("jaj")!==-1?t.slice(0,-3)+"Hu’":e.indexOf("jar")!==-1?t.slice(0,-3)+"wen":e.indexOf("DIS")!==-1?t.slice(0,-3)+"ben":t+" ret";return t}function a(e,t,n,i){var a=s(e);switch(n){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}function s(e){var t=Math.floor(e%1e3/100),n=Math.floor(e%100/10),i=e%10,a="";if(t>0)a+=r[t]+"vatlh";if(n>0)a+=(a!==""?" ":"")+r[n]+"maH";if(i>0)a+=(a!==""?" ":"")+r[i];return a===""?"pagh":a}e.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:true,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:n,past:i,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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var r={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ı"},t;e.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("_"),meridiem:function(e,t,n){if(e<12)return n?"öö":"ÖÖ";else return n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return e==="ös"||e==="ÖS"},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",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,t){switch(t){case"d":case"D":case"Do":case"DD":return e;default:if(e===0)return e+"'ıncı";var n=e%10,i=e%100-n,a=e>=100?100:null;return e+(r[n]||r[i]||r[a])}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;function n(e,t,n,i){var a={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",""+e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",""+e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",""+e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",""+e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",""+e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",""+e+" ars"]};return i?a[n][0]:t?a[n][0]:a[n][1]}e.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(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){if(e>11)return n?"d'o":"D'O";else return 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: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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e,t){if(e===12)e=0;if(t==="يېرىم كېچە"||t==="سەھەر"||t==="چۈشتىن بۇرۇن")return e;else if(t==="چۈشتىن كېيىن"||t==="كەچ")return e+12;else return e>=11?e:e+12},meridiem:function(e,t,n){var i=e*100+t;if(i<600)return"يېرىم كېچە";else if(i<900)return"سەھەر";else if(i<1130)return"چۈشتىن بۇرۇن";else if(i<1230)return"چۈش";else if(i<1800)return"چۈشتىن كېيىن";else return"كەچ"},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(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function a(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function t(e,t,n){var i={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};if(n==="m")return t?"хвилина":"хвилину";else if(n==="h")return t?"година":"годину";else return e+" "+a(i[n],+e)}function n(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},i;if(e===true)return n["nominative"].slice(1,7).concat(n["nominative"].slice(0,1));if(!e)return n["nominative"];i=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative";return n[i][e.day()]}function i(e){return function(){return e+"о"+(this.hours()===11?"б":"")+"] LT"}}var r;e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:n,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:i("[Сьогодні "),nextDay:i("[Завтра "),lastDay:i("[Вчора "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[Минулої] dddd [").call(this);case 1:case 2:case 4:return i("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){if(e<4)return"ночі";else if(e<12)return"ранку";else if(e<17)return"дня";else return"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"],i;e.defineLocale("ur",{months:t,monthsShort:t,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(e){return"شام"===e},meridiem:function(e,t,n){if(e<12)return"صبح";return"شام"},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(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:true,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:true,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){if(e<12)return n?"sa":"SA";else return 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 trước 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",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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:true,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:true,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(e){var t=e%10,n=~~(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e,t){if(e===12)e=0;if(t==="凌晨"||t==="早上"||t==="上午")return e;else if(t==="下午"||t==="晚上")return e+12;else return e>=11?e:e+12},meridiem:function(e,t,n){var i=e*100+t;if(i<600)return"凌晨";else if(i<900)return"早上";else if(i<1130)return"上午";else if(i<1230)return"中午";else if(i<1800)return"下午";else return"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){if(e.week()!==this.week())return"[下]dddLT";else return"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){if(this.week()!==e.week())return"[上]dddLT";else return"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e,t){if(e===12)e=0;if(t==="凌晨"||t==="早上"||t==="上午")return e;else if(t==="中午")return e>=11?e:e+12;else if(t==="下午"||t==="晚上")return e+12},meridiem:function(e,t,n){var i=e*100+t;if(i<600)return"凌晨";else if(i<900)return"早上";else if(i<1200)return"上午";else if(i===1200)return"中午";else if(i<1800)return"下午";else return"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},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 年"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.defineLocale("zh-mo",{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:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="凌晨"||t==="早上"||t==="上午")return e;else if(t==="中午")return e>=11?e:e+12;else if(t==="下午"||t==="晚上")return e+12},meridiem:function(e,t,n){var i=e*100+t;if(i<600)return"凌晨";else if(i<900)return"早上";else if(i<1130)return"上午";else if(i<1230)return"中午";else if(i<1800)return"下午";else return"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},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 年"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t;e.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(e,t){if(e===12)e=0;if(t==="凌晨"||t==="早上"||t==="上午")return e;else if(t==="中午")return e>=11?e:e+12;else if(t==="下午"||t==="晚上")return e+12},meridiem:function(e,t,n){var i=e*100+t;if(i<600)return"凌晨";else if(i<900)return"早上";else if(i<1130)return"上午";else if(i<1230)return"中午";else if(i<1800)return"下午";else return"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},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 年"}})}(n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=s(n(1)),a=s(n(2)),r=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}(0,a.default)(o,[{key:"D",value:function(){var e;this._config.openDebug&&(e=console).debug.apply(e,["["+this.TAG+"] %c"+(0,r.default)().format("YYYY-MM-DD HH:mm:ss.SSS")+"%c","color: blue","color: black"].concat(Array.prototype.slice.call(arguments)))}},{key:"I",value:function(){var e;(e=console).info.apply(e,["["+this.TAG+"] %c"+(0,r.default)().format("YYYY-MM-DD HH:mm:ss.SSS")+"%c","color: blue","color: black"].concat(Array.prototype.slice.call(arguments)))}},{key:"W",value:function(){var e;(e=console).info.apply(e,["["+this.TAG+"] %c"+(0,r.default)().format("YYYY-MM-DD HH:mm:ss.SSS")+"%c","color: blue","color: black"].concat(Array.prototype.slice.call(arguments)))}},{key:"E",value:function(){var e;(e=console).error.apply(e,["["+this.TAG+"] %c"+(0,r.default)().format("YYYY-MM-DD HH:mm:ss.SSS")+"%c","color: blue","color: black"].concat(Array.prototype.slice.call(arguments)))}}]),a=o;function o(e){(0,i.default)(this,o),this._bus=e,this.TAG=e.TAG||"Debug",this._config=e._config||e.options||{}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=s(n(20)),a=s(n(40)),r=s(n(1));function s(e){return e&&e.__esModule?e:{default:e}}var o=((0,s(n(2)).default)(u,null,[{key:"install",value:function(){Object.setPrototypeOf=a.default||function(e,t){return e.__proto__=t,e},Object.assign=i.default||function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var a in i)i.hasOwnProperty(a)&&(t[a]=i[a])}return t},"function"!=typeof self.Promise&&n(290).polyfill()}}]),u);function u(){(0,r.default)(this,u)}o.install(),t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=m(n(1)),a=m(n(2)),r=m(n(4)),s=m(n(62)),o=n(14),u=m(n(299)),d=m(n(303)),l=(m(n(304)),m(n(305))),h=m(n(306)),c=m(n(307)),_=m(n(308)),f=n(5);function m(e){return e&&e.__esModule?e:{default:e}}(0,a.default)(p,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"_selectSeekHandler",value:function(){var e=this._config;if("range"===e.seekType)this._seekHandler=new c.default(this._config.rangeLoadZeroStart);else if("param"===e.seekType){var t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new _.default(t,n)}else{if("custom"!==e.seekType)throw new f.InvalidArgumentException("Invalid seekType in config: "+e.seekType);if("function"!=typeof e.customSeekHandler)throw new f.InvalidArgumentException("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}}},{key:"_selectLoader",value:function(){if(null!=this._config.customLoader)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=h.default;else if(u.default.isSupported())this._loaderClass=u.default;else if(d.default.isSupported())this._loaderClass=d.default;else{if(!l.default.isSupported())throw new f.RuntimeException("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=l.default}}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),!1===this._loader.needStashBuffer&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(e){this._currentRange={from:0,to:-1},e&&(this._currentRange.from=e),this._speedSampler.reset(),e||(this._fullRequestFlag=!0)}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),0!==this._stashUsed?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){var e;this._paused&&(this._paused=!1,e=this._resumeFrom,this._resumeFrom=0,this._internalSeek(e,!0))}},{key:"seek",value:function(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)}},{key:"_internalSeek",value:function(e,t){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(t),this._loader.destroy(),this._loader=null;e={from:e,to:-1};this._currentRange={from:e.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,e),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(e){if(!e||"string"!=typeof e||0===e.length)throw new f.InvalidArgumentException("Url must be a non-empty string!");this._dataSource.url=e}},{key:"_expandBuffer",value:function(e){for(var t,n,i=this._stashSize;i+1048576<e;)i*=2;(i+=1048576)!==this._bufferSize&&(t=new ArrayBuffer(i),0<this._stashUsed&&(n=new Uint8Array(this._stashBuffer,0,this._stashUsed),new Uint8Array(t,0,i).set(n,0)),this._stashBuffer=t,this._bufferSize=i)}},{key:"_normalizeSpeed",value:function(e){var t,n=this._speedNormalizeList,i=n.length-1,a=0,r=i;if(e<n[0])return n[0];for(;a<=r;){if((t=a+Math.floor((r-a)/2))===i||e>=n[t]&&e<n[t+1])return n[t];n[t]<e?a=t+1:r=t-1}}},{key:"_adjustStashSize",value:function(e){var t=0,e=1024*(t=8192<(t=this._config.isLive||e<512?e:512<=e&&e<=1024?Math.floor(1.5*e):2*e)?8192:t)+1048576;this._bufferSize<e&&this._expandBuffer(e),this._stashSize=1024*t}},{key:"_dispatchChunks",value:function(e,t){return this._currentRange.to=t+e.byteLength-1,this._onDataArrival(e,t)}},{key:"_onURLRedirect",value:function(e){this._redirectedURL=e,this._onRedirect&&this._onRedirect(e)}},{key:"_onContentLengthKnown",value:function(e){e&&this._fullRequestFlag&&(this._totalLength=e,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(e,t,n){if(!this._onDataArrival)throw new f.IllegalStateException("IOController: No existing consumer (onDataArrival) callback!");var i,a,r,s,o;this._paused||(this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(e.byteLength),0!==(i=this._speedSampler.lastSecondKBps)&&(a=this._normalizeSpeed(i),this._speedNormalized!==a&&(this._speedNormalized=a,this._adjustStashSize(a))),this._enableStash?(0===this._stashUsed&&0===this._stashByteStart&&(this._stashByteStart=t),this._stashUsed+e.byteLength<=this._stashSize?(new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength):(i=new Uint8Array(this._stashBuffer,0,this._bufferSize),0<this._stashUsed?(a=this._stashBuffer.slice(0,this._stashUsed),(r=this._dispatchChunks(a,this._stashByteStart))<a.byteLength?0<r&&(a=new Uint8Array(a,r),i.set(a,0),this._stashUsed=a.byteLength,this._stashByteStart+=r):(this._stashUsed=0,this._stashByteStart+=r),this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),i=new Uint8Array(this._stashBuffer,0,this._bufferSize)),i.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength):(s=this._dispatchChunks(e,t))<e.byteLength&&((r=e.byteLength-s)>this._bufferSize&&(this._expandBuffer(r),i=new Uint8Array(this._stashBuffer,0,this._bufferSize)),i.set(new Uint8Array(e,s),0),this._stashUsed+=r,this._stashByteStart=t+s))):0===this._stashUsed?(o=this._dispatchChunks(e,t))<e.byteLength&&((s=e.byteLength-o)>this._bufferSize&&this._expandBuffer(s),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,o),0),this._stashUsed+=s,this._stashByteStart=t+o):(this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength),(t=new Uint8Array(this._stashBuffer,0,this._bufferSize)).set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength,(o=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart))<this._stashUsed&&0<o&&(e=new Uint8Array(this._stashBuffer,o),t.set(e,0)),this._stashUsed-=o,this._stashByteStart+=o))}},{key:"_flushStashBuffer",value:function(e){if(0<this._stashUsed){var t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),i=t.byteLength-n;if(n<t.byteLength){if(!e)return 0<n&&(e=new Uint8Array(this._stashBuffer,0,this._bufferSize),t=new Uint8Array(t,n),e.set(t,0),this._stashUsed=t.byteLength,this._stashByteStart+=n),0;r.default.w(this.TAG,i+" bytes unconsumed data remain when flush buffer, dropped")}return this._stashUsed=0,this._stashByteStart=0,i}return 0}},{key:"_onLoaderComplete",value:function(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(e,t){switch(r.default.e(this.TAG,"Loader error, code = "+t.code+", msg = "+t.msg),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=o.LoaderErrors.UNRECOVERABLE_EARLY_EOF),e){case o.LoaderErrors.EARLY_EOF:if(!this._config.isLive&&this._totalLength){var n=this._currentRange.to+1;return void(n<this._totalLength&&(r.default.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(n,!1)))}e=o.LoaderErrors.UNRECOVERABLE_EARLY_EOF;break;case o.LoaderErrors.UNRECOVERABLE_EARLY_EOF:case o.LoaderErrors.CONNECTING_TIMEOUT:case o.LoaderErrors.HTTP_STATUS_CODE_INVALID:case o.LoaderErrors.EXCEPTION:}if(!this._onError)throw new f.RuntimeException("IOException: "+t.msg);this._onError(e,t)}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(e){this._extraData=e}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(e){this._onDataArrival=e}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(e){this._onSeeked=e}},{key:"onError",get:function(){return this._onError},set:function(e){this._onError=e}},{key:"onComplete",get:function(){return this._onComplete},set:function(e){this._onComplete=e}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(e){this._onRedirect=e}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(e){this._onRecoveredEarlyEof=e}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return null!=this._redirectedURL||null!=this._dataSource.redirectedURL}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===l.default?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}}]),a=p;function p(e,t,n){(0,i.default)(this,p),this.TAG="IOController",this._config=t,this._extraData=n,this._stashInitialSize=65536,null!=t.stashInitialSize&&0<t.stashInitialSize&&(this._stashInitialSize=t.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=3145728,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,!(this._enableStash=!0)===t.enableStashBuffer&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(e.url),this._refTotalLength=e.filesize||null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new s.default,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=y(n(40)),a=y(n(20)),r=y(n(15)),s=y(n(1)),o=y(n(2)),u=y(n(11)),d=y(n(4)),l=y(n(34)),h=y(n(66)),c=y(n(311)),_=y(n(323)),f=y(n(67)),m=y(n(225)),p=y(n(42));n(14);function y(e){return e&&e.__esModule?e:{default:e}}(0,o.default)(v,[{key:"destroy",value:function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(e,t){this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(e,t){this._currentSegmentIndex=e;var n=this._mediaDataSource.segments[e],e=this._ioctl=new m.default(n,this._config,e);e.onError=this._onIOException.bind(this),e.onSeeked=this._onIOSeeked.bind(this),e.onComplete=this._onIOComplete.bind(this),e.onRedirect=this._onIORedirect.bind(this),e.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):e.onDataArrival=this._onInitChunkArrival.bind(this),e.open(t)}},{key:"stop",value:function(){this._internalAbort(),this._disableStatisticsReporter()}},{key:"_internalAbort",value:function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}},{key:"pause",value:function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}},{key:"resume",value:function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}},{key:"seek",value:function(e){var t,n,i;null!=this._mediaInfo&&this._mediaInfo.isSeekable()&&((t=this._searchSegmentIndexContains(e))===this._currentSegmentIndex?null==(n=this._mediaInfo.segments[t])?this._pendingSeekTime=e:(i=n.getNearestKeyframe(e),this._remuxer.seek(i.milliseconds),this._ioctl.seek(i.fileposition),this._pendingResolveSeekPoint=i.milliseconds):null==(i=this._mediaInfo.segments[t])?(this._pendingSeekTime=e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(t)):(i=i.getNearestKeyframe(e),this._internalAbort(),this._remuxer.seek(e),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[t].timestampBase,this._loadSegment(t,i.fileposition),this._pendingResolveSeekPoint=i.milliseconds,this._reportSegmentMediaInfo(t)),this._enableStatisticsReporter())}},{key:"_searchSegmentIndexContains",value:function(e){for(var t=this._mediaDataSource.segments,n=t.length-1,i=0;i<t.length;i++)if(e<t[i].timestampBase){n=i-1;break}return n}},{key:"_onInitChunkArrival",value:function(e,t){var n,i=this,a=null;return 0<t?(this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,this._demuxer.parseChunks(e,t)):(a=c.default.probe(e)).match?(this._demuxer=new c.default(a,this._config),this._remuxer||(this._remuxer=new _.default(this._config)),null==(n=this._mediaDataSource).duration||isNaN(n.duration)||(this._demuxer.overridedDuration=n.duration),"boolean"==typeof n.hasAudio&&(this._demuxer.overridedHasAudio=n.hasAudio),"boolean"==typeof n.hasVideo&&(this._demuxer.overridedHasVideo=n.hasVideo),this._demuxer.timestampBase=n.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._demuxer.onVideoResolutionChanged=this._onVideoResolutionChanged.bind(this),this._demuxer.onParsedData=this._onParsedData.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),this._demuxer.parseChunks(e,t)):(a=null,d.default.e(this.TAG,"Non-FLV, Unsupported media type!"),r.default.resolve().then(function(){i._internalAbort()}),this._emitter.emit(p.default.DEMUX_ERROR,f.default.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),0)}},{key:"_onMediaInfo",value:function(e){var t=this;null==this._mediaInfo&&(this._mediaInfo=(0,a.default)({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,(0,i.default)(this._mediaInfo,h.default.prototype));e=(0,a.default)({},e);(0,i.default)(e,h.default.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=e,this._reportSegmentMediaInfo(this._currentSegmentIndex),null!=this._pendingSeekTime&&r.default.resolve().then(function(){var e=t._pendingSeekTime;t._pendingSeekTime=null,t.seek(e)})}},{key:"_onMetaDataArrived",value:function(e){this._emitter.emit(p.default.METADATA_ARRIVED,e)}},{key:"_onScriptDataArrived",value:function(e){this._emitter.emit(p.default.SCRIPTDATA_ARRIVED,e)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(e){e+=1;e<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(e)):(this._remuxer.flushStashedSamples(),this._emitter.emit(p.default.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(e){var t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(p.default.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(e,t){d.default.e(this.TAG,"IOException: type = "+e+", code = "+t.code+", msg = "+t.msg),this._emitter.emit(p.default.IO_ERROR,e,t),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(e,t){d.default.e(this.TAG,"DemuxException: type = "+e+", info = "+t),this._emitter.emit(p.default.DEMUX_ERROR,e,t)}},{key:"_onRemuxerInitSegmentArrival",value:function(e,t){this._emitter.emit(p.default.INIT_SEGMENT,e,t)}},{key:"_onRemuxerMediaSegmentArrival",value:function(e,t){null==this._pendingSeekTime&&(this._emitter.emit(p.default.MEDIA_SEGMENT,e,t),null!=this._pendingResolveSeekPoint&&"video"===e&&(e=t.info.syncPoints,t=this._pendingResolveSeekPoint,this._pendingResolveSeekPoint=null,l.default.safari&&0<e.length&&e[0].originalDts===t&&(t=e[0].pts),this._emitter.emit(p.default.RECOMMEND_SEEKPOINT,t)))}},{key:"_enableStatisticsReporter",value:function(){null==this._statisticsReporter&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(e){e=this._mediaInfo.segments[e],e=(0,a.default)({},e);e.duration=this._mediaInfo.duration,e.segmentCount=this._mediaInfo.segmentCount,delete e.segments,delete e.keyframesIndex,this._emitter.emit(p.default.MEDIA_INFO,e)}},{key:"_reportStatisticsInfo",value:function(){var e={};e.url=this._ioctl.currentURL,e.hasRedirect=this._ioctl.hasRedirect,e.hasRedirect&&(e.redirectedURL=this._ioctl.currentRedirectedURL),e.speed=this._ioctl.currentSpeed,e.loaderType=this._ioctl.loaderType,e.currentSegmentIndex=this._currentSegmentIndex,e.totalSegmentCount=this._mediaDataSource.segments.length,e.bps_audio=e.bps_video=0,this._demuxer&&this._demuxer._bpsInfo&&(e.bps_video=this._demuxer._bpsInfo.bps_video,e.bps_audio=this._demuxer._bpsInfo.bps_audio),this._emitter.emit(p.default.STATISTICS_INFO,e)}},{key:"_onVideoResolutionChanged",value:function(e){this._emitter.emit(p.default.VIDEO_RESOLUTION_CHANGED,e)}},{key:"_onParsedData",value:function(e,t){this._emitter.emit(p.default.PARSEDDATA_ARRIVED,e,t)}}]),o=v;function v(t,n){(0,s.default)(this,v),this.TAG="TransmuxingController",this._emitter=new u.default,this._config=n,t.segments||(t.segments=[{duration:t.duration,filesize:t.filesize,url:t.url}]),"boolean"!=typeof t.cors&&(t.cors=!0),"boolean"!=typeof t.withCredentials&&(t.withCredentials=!1),this._mediaDataSource=t;var i=this._currentSegmentIndex=0;this._mediaDataSource.segments.forEach(function(e){e.timestampBase=i,i+=e.duration,e.cors=t.cors,e.withCredentials=t.withCredentials,n.referrerPolicy&&(e.referrerPolicy=n.referrerPolicy)}),isNaN(i)||this._mediaDataSource.duration===i||(this._mediaDataSource.duration=i),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MediaSegmentInfoList=t.IDRSampleList=t.MediaSegmentInfo=t.SampleInfo=void 0;var i=a(n(2)),s=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}t.SampleInfo=function e(t,n,i,a,r){(0,s.default)(this,e),this.dts=t,this.pts=n,this.duration=i,this.originalDts=a,this.isSyncPoint=r,this.fileposition=null},t.MediaSegmentInfo=((0,i.default)(r,[{key:"appendSyncPoint",value:function(e){e.isSyncPoint=!0,this.syncPoints.push(e)}}]),r);function r(){(0,s.default)(this,r),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}t.IDRSampleList=((0,i.default)(o,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(e){var t=this._list;0!==e.length&&(0<t.length&&e[0].originalDts<t[t.length-1].originalDts&&this.clear(),Array.prototype.push.apply(t,e))}},{key:"getLastSyncPointBeforeDts",value:function(e){if(0==this._list.length)return null;var t,n=this._list,i=0,a=n.length-1,r=0,s=a;for(e<n[0].dts&&(i=0,r=s+1);r<=s;){if((t=r+Math.floor((s-r)/2))===a||e>=n[t].dts&&e<n[t+1].dts){i=t;break}n[t].dts<e?r=t+1:s=t-1}return this._list[i]}}]),o);function o(){(0,s.default)(this,o),this._list=[]}t.MediaSegmentInfoList=((0,i.default)(u,[{key:"isEmpty",value:function(){return 0===this._list.length}},{key:"clear",value:function(){this._list=[],this._lastAppendLocation=-1}},{key:"_searchNearestSegmentBefore",value:function(e){var t=this._list;if(0===t.length)return-2;var n,i=t.length-1,a=0,r=i,s=0;if(e<t[0].originalBeginDts)return s=-1;for(;a<=r;){if((n=a+Math.floor((r-a)/2))===i||e>t[n].lastSample.originalDts&&e<t[n+1].originalBeginDts){s=n;break}t[n].originalBeginDts<e?a=n+1:r=n-1}return s}},{key:"_searchNearestSegmentAfter",value:function(e){return this._searchNearestSegmentBefore(e)+1}},{key:"append",value:function(e){var t=this._list,n=e,i=this._lastAppendLocation,e=0;-1!==i&&i<t.length&&n.originalBeginDts>=t[i].lastSample.originalDts&&(i===t.length-1||i<t.length-1&&n.originalBeginDts<t[i+1].originalBeginDts)?e=i+1:0<t.length&&(e=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=e,this._list.splice(e,0,n)}},{key:"getLastSegmentBefore",value:function(e){e=this._searchNearestSegmentBefore(e);return 0<=e?this._list[e]:null}},{key:"getLastSampleBefore",value:function(e){e=this.getLastSegmentBefore(e);return null!=e?e.lastSample:null}},{key:"getLastSyncPointBefore",value:function(e){for(var t=this._searchNearestSegmentBefore(e),n=this._list[t].syncPoints;0===n.length&&0<t;)n=this._list[--t].syncPoints;return 0<n.length?n[n.length-1]:null}},{key:"type",get:function(){return this._type}},{key:"length",get:function(){return this._list.length}}]),u);function u(e){(0,s.default)(this,u),this._type=e,this._list=[],this._lastAppendLocation=-1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full",SOURCE_END:"source_end",SOURCE_CLOSE:"source_close"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(1)),a=o(n(2)),r=o(n(11)),s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(n(61));function o(e){return e&&e.__esModule?e:{default:e}}var u="stashbuffer_changed",d="fileWrite_end";window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem;(0,a.default)(l,[{key:"write",value:function(e){this._stash(e)}},{key:"download",value:function(){this._fileEntry&&this._fileWriter&&(1!==this._fileWriter.readyState?this._fileEntry.file(function(e){this._downloadFile(e)}.bind(this)):this._emitter.once(d,this.download.apply(this)))}},{key:"_quota",value:function(){window.webkitStorageInfo.requestQuota(window.TEMPORARY,this._storageQuota,this._quotaSuccess.bind(this),this._errorHandlerQuta)}},{key:"_errorHandlerQuota",value:function(e){console.error(s.ERR_PLAY_FILESYS_QUOTA,e)}},{key:"_quotaSuccess",value:function(e){window.requestFileSystem(window.TEMPORARY,e,this._initFs.bind(this),this._errorHandlerRequestFileSystem)}},{key:"_errorHandlerRequestFileSystem",value:function(e){console.error(s.ERR_PLAY_FILESYS_REQUEST,e)}},{key:"_initFs",value:function(e){this._fileSystem=e,this._fileSystem.root.getFile(this._fileName,{create:!0,exclusive:!0},this._getFileSuccess.bind(this),this._errorHandlerGetFile)}},{key:"_errorHandlerGetFile",value:function(e){console.error(s.ERR_PLAY_FILESYS_GETFILE,e)}},{key:"_getFileSuccess",value:function(e){e.isFile&&(e.createWriter(this._initFileWriter.bind(this),this._errorHandlerCreateWriter),this._fileEntry=e)}},{key:"_errorHandlerCreateWriter",value:function(e){console.error(s.ERR_PLAY_FILESYS_CREATE,e)}},{key:"_initFileWriter",value:function(e){e.onwriteend=this._fileWriteEnd.bind(this),e.onerror=this._fileWriteError.bind(this),this._fileWriter=e,this._isStart=!0,this._emitter.on(u,this._stashBufferChanged.bind(this))}},{key:"_stashBufferChanged",value:function(){var e;(0===this._fileWriter.readyState||2===this._fileWriter.readyState)&&0<this._stashUsed&&(this._fileWriter.seek(this._fileWriter.length),e=this._stashBuffer.slice(0,this._stashUsed),this._fileWriter.write(new Blob([e])),this._bufferSize=this._defaultBufferSize,this._stashBuffer=new Uint8Array(this._bufferSize),this._stashUsed=0)}},{key:"_fileWriteEnd",value:function(e){this._emitter.listeners(d)&&this._emitter.emit(d)}},{key:"_fileWriteError",value:function(e){console.error(s.ERR_PLAY_FILESYS_WRITE,e)}},{key:"_errorHandler",value:function(e){console.error(e)}},{key:"_stash",value:function(e){this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength),this._stashBuffer.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength,this._emitter.listeners(u)&&this._emitter.emit(u)}},{key:"_expandBuffer",value:function(e){this._bufferSize=e;e=this._stashBuffer.slice(0,this._stashUsed);this._stashBuffer=new Uint8Array(this._bufferSize),this._stashBuffer.set(e,0)}},{key:"_downloadFile",value:function(e){var t=e;e instanceof Blob||e instanceof File||(t=new Blob([e]));e=window.URL.createObjectURL(t),t=window.document.createElement("a");t.href=e,t.download=this._fileName;e=document.createEvent("MouseEvents");e.initEvent("click",!0,!0),t.dispatchEvent(e)}},{key:"onReady",set:function(e){this._fileWriterReady=e}}]),a=l;function l(e,t){(0,i.default)(this,l),this._fileName=e,this._storageQuota=268435456,this._fileSystem=null,this._fileEntry=null,this._fileWriter=null,this._isStart=!1,this._emitter=new r.default,this._defaultBufferSize=134217728,this._bufferSize=this._defaultBufferSize,this._stashBuffer=new Uint8Array(this._bufferSize),this._stashUsed=0,this._stash(t),this._quota()}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorDetails=t.ErrorTypes=void 0;var i,a=n(14),r=n(67),n=(i=r)&&i.__esModule?i:{default:i};t.ErrorTypes={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},t.ErrorDetails={NETWORK_EXCEPTION:a.LoaderErrors.EXCEPTION,NETWORK_STATUS_CODE_INVALID:a.LoaderErrors.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:a.LoaderErrors.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:a.LoaderErrors.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:n.default.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:n.default.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:n.default.CODEC_UNSUPPORTED}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSPlugin=void 0;var m=L(n(15)),i=L(n(1)),a=L(n(2)),p=L(n(55)),h=n(83),r=n(254),u=n(277),d=n(278),s=n(279),o=n(280),l=n(281),c=L(n(282)),_=L(n(0)),f=L(n(11)),y=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(n(61)),v=L(n(330)),g=L(n(223)),M=L(n(41));function L(e){return e&&e.__esModule?e:{default:e}}var S=0,k=4194304,w=!1,b=null,a=((0,a.default)(D,[{key:"_getOSDTime",value:function(e,t,n,i,a,r,s){var o=void 0,o=h.oTool.isSafari()||h.oTool.isEdge()?t+"/"+n+"/"+i+" "+a+":"+r+":"+s:t+"-"+n+"-"+i+" "+a+":"+r+":"+s;this.aWndList[e].iCurentOSDTime=new Date(o).getTime()}},{key:"_getWndIndexFromPort",value:function(e){for(var t=this.aWndList.length,n=-1,i=0;i<t;i++)if(this.aWndList[i].oPlayCtrl&&e===this.aWndList[i].oPlayCtrl.iPort){n=i;break}return n}},{key:"_listenBrowserVisibility",value:function(){var e=this;document.addEventListener("visibilitychange",function(){document.hidden?e.isBrowserVisible=!1:e.isBrowserVisible=!0},!1)}},{key:"_createWindows",value:function(e,t){var n=this.oJSPlugin.width(),i=this.oJSPlugin.height();if(n&&i)e=n,t=i;else{if(!e||!t)return self.console.error(new Error("JsPlugin create frame failed with variable width or height"));this.oJSPlugin.width(e),this.oJSPlugin.height(t)}this.options.iWidth=n,this.options.iHeight=i;var a=this.options.iWidth%this.options.iCurrentSplit,r=this.options.iHeight%this.options.iCurrentSplit,s=(this.options.iWidth-a-2*this.options.iCurrentSplit)/this.options.iCurrentSplit,o=(this.options.iHeight-r-2*this.options.iCurrentSplit)/this.options.iCurrentSplit,u=(this.options.iWidth-a)/this.options.iCurrentSplit,d=(this.options.iHeight-r)/this.options.iCurrentSplit,l=this.options.iCurrentSplit;this.oJSPlugin=(0,p.default)("#"+this.options.szId);for(var h='<div class="parent-wnd" style="overflow:hidden;width:100%; height:100%; position: relative;">',c=0;c<this.iMaxWndNum;c++){e=s+(c%l==l-1?a:0),t=o+(c+l>=Math.pow(l,2)?r:0);var _=u+(c%l==l-1?a:0),f=d+(c+l>=Math.pow(l,2)?r:0);h+='<div id="player-container-'+c+'" style="position: relative; float: left; background-color: '+this.options.oStyle.background+"; width: "+_+"px; height: "+f+'px"><canvas id="'+this.options.szId+"_playCanvas"+c+'" class="play-window" wid="'+c+'" width="'+2*_+'" height="'+2*f+'" style="transform: scale(0.5); transform-origin: 0 0;"></canvas><video autoplay muted id="playWindow'+c+'" class="play-window" style="object-fit: fill;" wid="'+c+'" width="'+_+'" height="'+f+'"></video>'+(0===c?'<img style="display:none;" id="playImg'+c+'" src="">':"")+'<canvas id="canvas_draw'+c+'" class="draw-window" style="border:1px solid '+this.options.oStyle.border+';position:absolute; top:0; left:0;" wid="'+c+'" width='+e+" height="+t+"></canvas></div>"}this.oJSPlugin.html(h+="</div>"),this.oJSPlugin.find("video.play-window").hide(),this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(0).find(".draw-window").eq(0).css("border","1px solid "+this.options.oStyle.borderSelect)}},{key:"_updateWnd",value:function(){for(var e=this.oJSPlugin.find(".parent-wnd").eq(0).children().length,t=this.options.iWidth%this.options.iCurrentSplit,n=this.options.iHeight%this.options.iCurrentSplit,i=(this.options.iWidth-t-2*this.options.iCurrentSplit)/this.options.iCurrentSplit,a=(this.options.iHeight-n-2*this.options.iCurrentSplit)/this.options.iCurrentSplit,r=(this.options.iWidth-t)/this.options.iCurrentSplit,s=(this.options.iHeight-n)/this.options.iCurrentSplit,o=this.options.iCurrentSplit,u=0;u<e;u++){var d=i+(u%o==o-1?t:0),l=a+(u+o>=Math.pow(o,2)?n:0),h=r+(u%o==o-1?t:0),c=s+(u+o>=Math.pow(o,2)?n:0);this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(u).width(h),this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(u).height(c),this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(u).find(".draw-window").attr("width",d),this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(u).find(".draw-window").attr("height",l),this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(u).find(".play-window").attr("width",h),this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(u).find(".play-window").attr("height",c),this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(u).find("canvas.play-window").attr("width",2*h),this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(u).find("canvas.play-window").attr("height",2*c),this.aWndList[u].oPlayCtrl&&this.aWndList[u].oPlayCtrl.PlayM4_SetCanvasSize&&this.aWndList[u].oPlayCtrl.PlayM4_SetCanvasSize(2*h,2*c)}var _=this.iCurrentWndIndex;this.oJSPlugin.find(".parent-wnd").eq(_).find(".draw-window").css("border","1px solid "+this.options.oStyle.border),this.oJSPlugin.find(".parent-wnd").eq(_).children().eq(0).find(".draw-window").eq(0).css("border","1px solid "+this.options.oStyle.borderSelect)}},{key:"_dealWndSelect",value:function(t){var n=this;this.iCurrentWndIndex!==t&&(this.iCurrentWndIndex=t,(this.aWndList[t].bEZoom||this.aWndList[t].b3DZoom)&&(this.oJSPlugin.find(".draw-window").unbind(),this.oDrawCanvas.setDrawStatus(!1),this.oDrawCanvas=null,this.oDrawCanvas=new l.ESCanvas("canvas_draw"+t),this.oDrawCanvas.setShapeType("Rect"),this.oDrawCanvas.setDrawStyle("#ff0000","",0),this.aWndList[t].bEZoom?this.oDrawCanvas.setDrawStatus(!0,function(e){e.startPos&&e.endPos&&(e.startPos[0]>e.endPos[0]?n.aWndList[t].oPlayCtrl.PlayM4_SetDisplayRegion&&n.aWndList[t].oPlayCtrl.PlayM4_SetDisplayRegion(null,!1):n.aWndList[t].oPlayCtrl.PlayM4_SetDisplayRegion&&n.aWndList[t].oPlayCtrl.PlayM4_SetDisplayRegion({left:e.startPos[0],top:e.startPos[1],right:e.endPos[0],bottom:e.endPos[1]},!0))}):this.aWndList[t].b3DZoom&&this.oDrawCanvas.setDrawStatus(!0,function(e){n.fDrawCallback(e)})))}},{key:"_initCallbackEvent",value:function(){this.oEventCallback={loadEventHandler:function(){window.loadEventHandler&&window.loadEventHandler()},windowEventSelect:function(e){window.getSelectWndInfo&&window.getSelectWndInfo(e)},pluginErrorHandler:function(e,t,n){window.pluginEventHandler&&window.pluginEventHandler(e,t,n)},windowEventOver:function(e){window.windowEventOver&&window.windowEventOver(e)},windowEventOut:function(e){window.windowEventOut&&window.windowEventOut(e)},windowEventUp:function(e){window.windowEventUp&&window.windowEventUp(e)},windowFullCcreenChange:function(e){window.windowFullCcreenChange&&window.windowFullCcreenChange(e)},firstFrameDisplay:function(e,t,n){window.firstFrameDisplay&&window.firstFrameDisplay(e,t,n)},performanceLack:function(){window.performanceLack&&window.performanceLack()},StreamEnd:function(){window.StreamEnd&&window.StreamEnd()},mouseEvent:function(){}}}},{key:"_initEvent",value:function(){var s=this;this._initCallbackEvent(),this.oJSPlugin.find(".parent-wnd").eq(0).children().each(function(i){var a=this,r=!1;(0,p.default)(a).unbind().bind("mousedown",function(){s.oJSPlugin.find(".parent-wnd").eq(0).find(".draw-window").css("border","1px solid "+s.options.oStyle.border),s.oJSPlugin.find(".parent-wnd").eq(0).children().eq(i).find(".draw-window").eq(0).css("border","1px solid "+s.options.oStyle.borderSelect),s.oEventCallback.windowEventSelect(parseInt(s.oJSPlugin.find(".parent-wnd").eq(0).children().eq(i).find(".play-window").eq(0).attr("wid"),10)),s._dealWndSelect(parseInt(s.oJSPlugin.find(".parent-wnd").eq(0).children().eq(i).find(".play-window").eq(0).attr("wid"),10))}),(0,p.default)(a).bind("mouseover",function(e){s.oEventCallback.windowEventOver(i),e.stopPropagation()}),(0,p.default)(a).bind("mouseout",function(e){s.oEventCallback.windowEventOut(i),e.stopPropagation()}),(0,p.default)(a).bind("mousedown",function(e){r=!0;var t=e.offsetX/s.oDrawCanvas.m_iCanvasWidth,n=e.offsetY/s.oDrawCanvas.m_iCanvasHeight;2===e.button?s.oEventCallback.mouseEvent(4,t,n):0===e.button&&s.oEventCallback.mouseEvent(1,t,n),e.stopPropagation()}),(0,p.default)(a).bind("mousemove",function(e){var t=e.offsetX/s.oDrawCanvas.m_iCanvasWidth,n=e.offsetY/s.oDrawCanvas.m_iCanvasHeight;r?s.oEventCallback.mouseEvent(7,t,n):s.oEventCallback.mouseEvent(6,t,n),e.stopPropagation()}),(0,p.default)(a).bind("mousewheel",function(e){var t=e.offsetX/s.oDrawCanvas.m_iCanvasWidth,n=e.offsetY/s.oDrawCanvas.m_iCanvasHeight;s.oEventCallback.mouseEvent(8,t,n),e.stopPropagation()}),(0,p.default)(a).bind("mouseup",function(e){r=!1,s.oEventCallback.windowEventUp(i);var t=e.offsetX/s.oDrawCanvas.m_iCanvasWidth,n=e.offsetY/s.oDrawCanvas.m_iCanvasHeight;2===e.button?s.oEventCallback.mouseEvent(5,t,n):0===e.button&&s.oEventCallback.mouseEvent(3,t,n)}),(0,p.default)(a).bind("dblclick",function(e){var t=s.iCurrentWndIndex;if(s.aWndList[t].bPlay&&s.options.bSupporDoubleClickFull){var n=document.fullscreen||document.webkitIsFullScreen||document.mozFullScreen||!1,t=(1===s.aWndList[t].iMode?(0,p.default)(a).find("video.play-window"):(0,p.default)(a).find("canvas.play-window")).get(0);if(n){if(s.oJSPlugin.find(".parent-wnd").eq(0).width()===(0,p.default)(window).width())return;document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen&&document.mozCancelFullScreen()}else t.requestFullScreen?t.requestFullScreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.mozRequestFullScreen&&t.mozRequestFullScreen();n=e.offsetX/s.oDrawCanvas.m_iCanvasWidth,t=e.offsetX/s.oDrawCanvas.m_iCanvasHeight;s.oEventCallback.mouseEvent(2,n,t),e.stopPropagation()}})}),void 0!==document.fullScreen?document.addEventListener("fullscreenchange",function(){var e=document.fullscreen||!1;s.oEventCallback.windowFullCcreenChange(e),s.JS_Resize()}):void 0!==document.webkitIsFullScreen?document.addEventListener("webkitfullscreenchange",function(){var e=document.webkitIsFullScreen||!1;s.oEventCallback.windowFullCcreenChange(e),s.JS_Resize()}):void 0!==document.mozFullScreen&&document.addEventListener("mozfullscreenchange",function(){var e=document.mozFullScreen||!1;s.oEventCallback.windowFullCcreenChange(e),s.JS_Resize()})}},{key:"_initPlayCtrlOnlyAudio",value:function(e,t){t=new Uint8Array(t);t[10]=0,t[11]=0,this.aWndList[e].oPlayCtrl.PlayM4_OpenStream(t,40,2097152),""!==this.aWndList[e].szSecretKey&&(this.aWndList[e].oPlayCtrl.PlayM4_SetSecretKey(1,this.aWndList[e].szSecretKey,128),this.aWndList[e].szSecretKey=""),this.aWndList[e].oPlayCtrl.PlayM4_SetStreamOpenMode(0),this.aWndList[e].oPlayCtrl.PlayM4_Play(null)}},{key:"flvtohikHead",value:function(){var e=new Uint8Array(40);return e[0]=73,e[1]=77,e[2]=75,e[3]=72,e[4]=3,e[5]=1,e[6]=0,e[7]=0,e[8]=10,e[9]=0,e[10]=0,e[11]=1,e[12]=1,e[13]=32,e[14]=1,e[15]=12,e[16]=128,e[17]=62,e[21]=125,e}},{key:"_changeHVAGHead",value:function(e){var t=new Uint8Array(40);return t[0]=73,t[1]=77,t[2]=75,t[3]=72,t[4]=3,t[5]=1,t[6]=0,t[7]=0,192===e[8]&&0===e[9]?t[8]=4:t[8]=2,t[9]=0,100===e[24]&&97===e[25]&&104===e[26]&&117===e[27]&&97===e[28]&&(t[8]=1,t[9]=128),(0!==e[11]&&1!==e[11]||192!==e[10])&&2===e[11]&&192===e[10]?(t[10]=3,t[11]=0):(t[10]=0,t[11]=1),1===e[13]&&192===e[12]?(t[12]=16,t[13]=113):2===e[13]&&192===e[12]?(t[12]=17,t[13]=113):3===e[13]&&192===e[12]?(t[12]=33,t[13]=114):4===e[13]&&192===e[12]?(t[12]=96,t[13]=114):5===e[13]&&192===e[12]?(t[12]=1,t[13]=32):6===e[13]&&192===e[12]?(t[12]=0,t[13]=32):7===e[13]&&192===e[12]?(t[12]=0,t[13]=112):(t[12]=16,t[13]=113),t}},{key:"_parseHead",value:function(e,t){1===t[8]&&0===t[9]?this.aWndList[e]._videoInfo.systemFormt="HIK":2===t[8]&&0===t[9]?this.aWndList[e]._videoInfo.systemFormt="PS":4===t[8]&&0===t[9]?this.aWndList[e]._videoInfo.systemFormt="RTP":8===t[8]&&0===t[9]?this.aWndList[e]._videoInfo.systemFormt="GB":16===t[8]&&0===t[9]?this.aWndList[e]._videoInfo.systemFormt="RAW":1===t[8]&&128===t[9]?this.aWndList[e]._videoInfo.systemFormt="DAHUA":this.aWndList[e]._videoInfo.systemFormt="unkonw",1===t[11]&&0===t[10]||0===t[11]&&1===t[10]?this.aWndList[e]._videoInfo.VideType="H264":0===t[11]&&5===t[10]?this.aWndList[e]._videoInfo.VideType="H265":0===t[11]&&6===t[10]?this.aWndList[e]._videoInfo.VideType="SAC":0===t[11]&&2===t[10]?this.aWndList[e]._videoInfo.VideType="MPEG2":0===t[11]&&3===t[10]?this.aWndList[e]._videoInfo.VideType="MPEG4":this.aWndList[e]._videoInfo.VideType="unkonw",113===t[13]&&16===t[12]?this.aWndList[e]._videoInfo.audioType="G711_U":113===t[13]&&17===t[12]?this.aWndList[e]._videoInfo.audioType="G711_A":114===t[13]&&33===t[12]?this.aWndList[e]._videoInfo.audioType="G7221":114===t[13]&&96===t[12]?this.aWndList[e]._videoInfo.audioType="G7260":114===t[13]&&98===t[12]?this.aWndList[e]._videoInfo.audioType="G7262":114===t[13]&&144===t[12]?this.aWndList[e]._videoInfo.audioType="G729":32===t[13]&&1===t[12]?this.aWndList[e]._videoInfo.audioType="AAC":16===t[13]&&0===t[12]?this.aWndList[e]._videoInfo.audioType="ADPCM":32===t[13]&&0===t[12]?this.aWndList[e]._videoInfo.audioType="MP2L2":0===t[13]&&0===t[12]?this.aWndList[e]._videoInfo.audioType="without":this.aWndList[e]._videoInfo.audioType="unknow"}},{key:"_stripRtpHead",value:function(e){var t,n=new Uint8Array(e),i=32&n[0],a=16&n[0],r=15&n[0],s=0,e=0;return 32==i&&(s=n[n.byteLength-1]),t=4*parseInt(r,10),16==a&&(e=4*new window.DataView(n,12+t+1,2).getUint32(0,2)+4),n.length<=12+t+e?-1:n.slice(12+t+e,n.length-s)}},{key:"_openStream",value:function(e,a,r,s,o){var u=this,d=this.aWndList[r];return new m.default(function(n,i){var t=s&&o;d.szPlayType=t?"playback":"realplay",u.oStreamClient.openStream(e,a,async function(e){var t;e.bHead?(d.oSdpInfo=e,t=d.aHead=new Uint8Array(e.buf),u._log.D("headData arrive",t),d.isGB=0===t[7]&&196===t[8]&&100===t[24]&&98===t[25]&&51===t[26]&&51===t[27],72===t[0]&&86===t[1]&&65===t[2]&&71===t[3]?(d.isHVAGHead=!0,d.aHVAGHead=new Uint8Array(e.buf),d.aHead=u._changeHVAGHead(e.buf)):d.isHVAGHead=!1,70===t[0]&&76===t[1]&&86===t[2]?(d.iMode=1,d.isFlv=!0,u._createFlvPlayer(r)):(u._parseHead(r,d.aHead),u.aWndList[r]._bpsCalculator||(u.aWndList[r]._bpsCalculator=window.setInterval(u._calculateRealtimeBitrate.bind(u),1e3,r)),t=1,d.oPlayCtrl?1!==(t=u._playCtrlLoad(r))&&(u._log.E(t+": jsdecoder open stream faild."),u.oEventCallback.pluginErrorHandler(r,t),i(t)):(b||"2"!==u._decoderVersion||1===(t=await u._decoder2Loaded())||b||(u._log.E(t+": load jsdecoder faild."),u.oEventCallback.pluginErrorHandler(r,t),i(t)),u._createPlayCtrl(r))),d._emiter.on("firstframeload",function(){n()},{once:!0})):e.cmd&&"end"===e.cmd?(u.oEventCallback.StreamEnd(),u.JS_Stop(r)):d.bPlay&&u._feedData(r,e)},function(e){u.aWndList[r].bPlay&&(u._closeStreamAndDestory(r),u.oEventCallback.pluginErrorHandler(r,y.ERR_STREAM_INTERRUPT,e))}).then(function(e){u.aWndList[r].szStreamUUID=e,u.oStreamClient.startPlay(e,s,o).then(function(){t?(u.aWndList[r].szPlayType="playback",u.aWndList[r].iRate=1,u.aWndList[r].oPlayCtrl&&u.aWndList[r].oPlayCtrl.PlayM4_PlayRate(u.aWndList[r].iRate)):u.aWndList[r].szPlayType="realplay"},function(e){var t="0x0"+e.errorCode.toString(16);u.oEventCallback.pluginErrorHandler(r,t,e),u._log.E(t+": 取流失败,详情根据错误码在运管后台进行查询."),i(t)})}).catch(function(e){u.oEventCallback.pluginErrorHandler(r,y.ERR_STREAM_WS_ERROR,e),i(y.ERR_STREAM_WS_ERROR)})})}},{key:"JS_GetPluginVersion",value:function(){var t=this;return new m.default(function(e){e(t.szPluginVersion)})}},{key:"JS_SetWindowControlCallback",value:function(t){var n=this;return new m.default(function(e){n.oEventCallback=p.default.extend(n.oEventCallback,t),e()})}},{key:"JS_SetSecretKey",value:function(n,i){var a=this;return new m.default(function(e,t){!(n<0)&&""!==i&&void 0!==i?(a.aWndList[n].szSecretKey=i,e()):t()})}},{key:"JS_ArrangeWindow",value:function(n){var i=this;return new m.default(function(e){if(n<i.options.iMaxSplit?i.options.iCurrentSplit=n:i.options.iCurrentSplit=i.options.iMaxSplit,h.oTool.isFirefox())for(var t=0;t<i.options.iMaxSplit*i.options.iMaxSplit;t++)i.aWndList[t].oPlayCtrl&&i.aWndList[t].oPlayCtrl.PlayM4_ClearCanvas&&i.aWndList[t].oPlayCtrl.PlayM4_ClearCanvas();i._updateWnd(),i.oEventCallback.windowEventSelect(0),i._dealWndSelect(0),e()})}},{key:"JS_Play",value:function(n,i,a,r,s){var o=this;(a<0||a>this.iMaxWndNum-1)&&(a=this.iCurrentWndIndex);var e=0;i.mode&&(e=i.mode);var t=n;return 1!==e&&this._supportInfo.MSE&&(t=/\?/g.test(n)?n+"&streamform=flv":n+"?streamform=flv"),n=t,i.playURL&&(i.playURL=n),i.mode="media",-1!==t.search("wss://")&&(i.proxy=n.split("/proxy/").pop().split("/").shift()),this.aWndList[a].szUrl=n,this.aWndList[a].oParams=i,this.aWndList[a].szStartTime=r||"",this.aWndList[a].szStopTime=s||"",this.aWndList[a].pointSignNumber=n.split("realplay/").pop().split("/").shift(),new m.default(function(e,t){if(a<0||a>o.iMaxWndNum-1)return o.oEventCallback.pluginErrorHandler(a,y.ERR_COM_PARAM),void t(y.ERR_COM_PARAM);o.aWndList[a].bPlay?o.JS_Stop(a).then(function(){o._openStream(n,i,a,r,s).then(function(){e()},function(e){t(e)})}):o._openStream(n,i,a,r,s).then(function(){e()},function(e){t(e)})})}},{key:"JS_Seek",value:function(i,a,r){var s=this;return new m.default(function(e,t){var n;(i=!i&&0!==i?s.iCurrentWndIndex:i)<0||i>s.iMaxWndNum-1?t():0===(n=s._checkPlayback(i))?s.oStreamClient.seek(s.aWndList[i].szStreamUUID,a,r).then(function(){e()},function(e){t(e)}):t(n)})}},{key:"JS_GetSdkVersion",value:function(){return this.aWndList[0].oPlayCtrl.PlayM4_GetSdkVersion()}},{key:"JS_DestroyWorker",value:function(){var t=this;return new m.default(function(e){t.aWndList.forEach(function(e){e.oPlayCtrl=null}),e()})}},{key:"JS_Stop",value:function(i){var a=this;return i||0===i||(i=this.iCurrentWndIndex),new m.default(function(e,t){var n=a._checkPlay(i);0!==n&&t(n),a.aWndList[i]._bpsCalculator&&(self.clearInterval(a.aWndList[i]._bpsCalculator),a.aWndList[i]._bpsCalculator=null,a.aWndList[i]._bpsInfo={lastVideoBytes:0,bps_video:0,data_updated_time:0,time_gap_factor:1}),a.aWndList[i].szStorageUUID&&a.JS_StopSave(i),a.aWndList[i].bEZoom&&a.JS_DisableZoom(i),i===a.iCurrentSoundWnd&&(a.JS_CloseSound(),a.aWndList[i].MSEVolume=.5),a._closeStreamAndDestory(i),a.aWndList[i].isPause=!1,a.aWndList[i].bFirstFrame=!1,a.aWndList[i]._emiter.removeAllListeners(),e()})}},{key:"JS_Pause",value:function(i){var a=this;return i||0===i||(i=this.iCurrentWndIndex),new m.default(function(t,n){var e=a._checkPlayback(i);if(0===e)return a.aWndList[i].bFrameForward?(a._log.E(y.ERR_PLAYBACK_FRAMEFORWARD+": status singleFrame not support this handle."),void n(y.ERR_PLAYBACK_FRAMEFORWARD)):!0===a.aWndList[i].isPause?t():void a.oStreamClient.pause(a.aWndList[i].szStreamUUID).then(function(){var e;1===a.aWndList[i].iMode?(e=a.oJSPlugin.find("video.play-window").eq(i)).get(0).pause&&e.get(0).pause():a.aWndList[i].oPlayCtrl.PlayM4_Pause&&a.aWndList[i].oPlayCtrl.PlayM4_Pause(!0),a.aWndList[i].isPause=!0,t()},function(e){n(e)});n(e)})}},{key:"JS_Resume",value:function(i){var a=this;return i||0===i||(i=this.iCurrentWndIndex),new m.default(function(t,n){var e=a._checkPlay(i);return 0!==e?n(e):(a.aWndList[i].bFrameForward&&("2"===a._decoderVersion?a.aWndList[i].oPlayCtrl.PlayM4_OneByOne_Play&&a.aWndList[i].oPlayCtrl.PlayM4_OneByOne_Play():a.aWndList[i].oPlayCtrl.PlayM4_Play(a.options.szId+"_playCanvas"+i),a.aWndList[i].bFrameForward=!1),!1===a.aWndList[i].isPause?t():void a.oStreamClient.resume(a.aWndList[i].szStreamUUID).then(function(){var e;1===a.aWndList[i].iMode?(e=a.oJSPlugin.find("video.play-window").eq(i)).get(0).play&&e.get(0).play():(1!==a.iCurrentPlayRate&&(a.aWndList[i].iRate=a.iCurrentPlayRate,a.oStreamClient.setPlayRate(a.aWndList[i].szStreamUUID,a.aWndList[i].iRate),a.aWndList[i].oPlayCtrl.PlayM4_PlayRate&&a.aWndList[i].oPlayCtrl.PlayM4_PlayRate(a.aWndList[i].iRate),1<a.iCurrentPlayRate?a.aWndList[i].oPlayCtrl.PlayM4_SetDecodeFrameType&&a.aWndList[i].oPlayCtrl.PlayM4_SetDecodeFrameType(1):a.aWndList[i].oPlayCtrl.PlayM4_SetDecodeFrameType&&a.aWndList[i].oPlayCtrl.PlayM4_SetDecodeFrameType(S)),a.aWndList[i].oPlayCtrl&&a.aWndList[i].oPlayCtrl.PlayM4_Pause(!1)),a.aWndList[i].isPause=!1,t()},function(e){n(e)}))})}},{key:"JS_Slow",value:function(i){var a=this;return i||0===i||(i=this.iCurrentWndIndex),new m.default(function(t,n){var e=a._checkPlayback(i);return 0!==e?n(e):a.aWndList[i].bFrameForward?(a._log.E(y.ERR_PLAYBACK_FRAMEFORWARD+": status singleFrame not support this handle."),n(y.ERR_PLAYBACK_FRAMEFORWARD)):-8===a.aWndList[i].iRate?(a._log.E(y.ERR_PLAYBACK_MIN_RATE+": current rate is the min."),void n(y.ERR_PLAYBACK_MIN_RATE)):(a.aWndList[i].iRate<0&&-8<a.aWndList[i].iRate&&(a.aWndList[i].iRate*=2),1===a.aWndList[i].iRate&&(a.aWndList[i].iRate*=-2),1<a.aWndList[i].iRate&&(a.aWndList[i].iRate/=2),1!==a.aWndList[i].iRate&&a.JS_CloseSound(),void a.oStreamClient.setPlayRate(a.aWndList[i].szStreamUUID,a.aWndList[i].iRate).then(function(){var e;1===a.aWndList[i].iMode?(e=a.oJSPlugin.find("video.play-window").eq(i).get(0),a.aWndList[i].iRate<0?e.playbackRate=1/Math.abs(a.aWndList[i].iRate):e.playbackRate=a.aWndList[i].iRate):(a.aWndList[i].iRate<=2&&"2"===a._decoderVersion||a.aWndList[i].iRate<2&&"2"!==a._decoderVersion?a.aWndList[i].oPlayCtrl.PlayM4_SetDecodeFrameType&&a.aWndList[i].oPlayCtrl.PlayM4_SetDecodeFrameType(S):a.aWndList[i].oPlayCtrl.PlayM4_SetDecodeFrameType(1),a.aWndList[i].oPlayCtrl.PlayM4_PlayRate&&a.aWndList[i].oPlayCtrl.PlayM4_PlayRate(a.aWndList[i].iRate),a.aWndList[i].oPlayCtrl.PlayM4_Slow&&a.aWndList[i].oPlayCtrl.PlayM4_Slow(a.aWndList[i].iRate)),t(a.aWndList[i].iRate)},function(e){n(e)}))})}},{key:"JS_Fast",value:function(i){var a=this;return i||0===i||(i=this.iCurrentWndIndex),new m.default(function(t,n){var e=a._checkPlayback(i);return 0!==e?n(e):a.aWndList[i].bFrameForward?(a._log.E(y.ERR_PLAYBACK_FRAMEFORWARD+": status singleFrame not support this handle."),n(y.ERR_PLAYBACK_FRAMEFORWARD)):8===a.aWndList[i].iRate?(a._log.E(y.ERR_PLAYBACK_MAX_RATE+": current rate is the max."),n(y.ERR_PLAYBACK_MAX_RATE)):(-2===a.aWndList[i].iRate?a.aWndList[i].iRate=1:a.aWndList[i].iRate<-2?a.aWndList[i].iRate/=2:0<a.aWndList[i].iRate&&a.aWndList[i].iRate<8&&(a.aWndList[i].iRate*=2),1!==a.aWndList[i].iRate&&a.JS_CloseSound(),void a.oStreamClient.setPlayRate(a.aWndList[i].szStreamUUID,a.aWndList[i].iRate).then(function(){var e;1===a.aWndList[i].iMode?(a.aWndList[i].oMSE.closeLatencyMonitor(),e=a.oJSPlugin.find("video.play-window").eq(i).get(0),a.aWndList[i].iRate<0?e.playbackRate=1/Math.abs(a.aWndList[i].iRate):e.playbackRate=a.aWndList[i].iRate):(a.aWndList[i].iRate<=2&&"2"===a._decoderVersion||a.aWndList[i].iRate<2&&"2"!==a._decoderVersion?a.aWndList[i].oPlayCtrl.PlayM4_SetDecodeFrameType&&a.aWndList[i].oPlayCtrl.PlayM4_SetDecodeFrameType(S):a.aWndList[i].oPlayCtrl.PlayM4_SetDecodeFrameType&&a.aWndList[i].oPlayCtrl.PlayM4_SetDecodeFrameType(1),a.aWndList[i].oPlayCtrl.PlayM4_PlayRate&&a.aWndList[i].oPlayCtrl.PlayM4_PlayRate(a.aWndList[i].iRate),a.aWndList[i].oPlayCtrl.PlayM4_Fast&&a.aWndList[i].oPlayCtrl.PlayM4_Fast(a.aWndList[i].iRate)),t(a.aWndList[i].iRate)},function(e){n(e)}))})}},{key:"JS_Transmission",value:function(e,i){var a=this;return new m.default(function(t,n){!(e<0||e>a.iMaxWndNum-1)&&a.aWndList[e].szStreamUUID?a.oStreamClient.transmission(a.aWndList[e].szStreamUUID,i).then(function(e){t(e)},function(e){n(e)}):n()})}},{key:"JS_FrameForward",value:function(i){var a=this,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;return new m.default(function(e,t){i||0===i||(i=a.iCurrentWndIndex);var n=a._checkPlayback(i);return 0!==n?t(n):1===a.aWndList[i].iMode?(a._log.E(y.ERR_COM_IS_MSE+": MSE unsupport this function."),t(y.ERR_COM_IS_MSE)):(1!==a.aWndList[i].iRate?(a.aWndList[i].iRate=1,a.iCurrentPlayRate=a.aWndList[i].iRate,a.oStreamClient.setPlayRate(a.aWndList[i].szStreamUUID,a.aWndList[i].iRate).then(function(){a.aWndList[i].oPlayCtrl.PlayM4_PlayRate&&a.aWndList[i].oPlayCtrl.PlayM4_PlayRate(a.aWndList[i].iRate),a.aWndList[i].oPlayCtrl.PlayM4_SetDecodeFrameType&&a.aWndList[i].oPlayCtrl.PlayM4_SetDecodeFrameType(S),a.aWndList[i].oPlayCtrl.PlayM4_OneByOne&&a.aWndList[i].oPlayCtrl.PlayM4_OneByOne(r),a.aWndList[i].bFrameForward=!0},function(e){t(e)})):(a.aWndList[i].oPlayCtrl.PlayM4_SetDecodeFrameType&&a.aWndList[i].oPlayCtrl.PlayM4_SetDecodeFrameType(S),a.aWndList[i].oPlayCtrl.PlayM4_OneByOne&&a.aWndList[i].oPlayCtrl.PlayM4_OneByOne(r),a.aWndList[i].bFrameForward=!0),void e())})}},{key:"JS_GetOSDTime",value:function(i){var a=this;return i||0===i||(i=this.iCurrentWndIndex),new m.default(function(n,e){var t;i<0||i>a.iMaxWndNum-1?e(-1):0===(t=a._checkPlay(i))?1===a.aWndList[i].iMode?n(a.aWndList[i].iCurentOSDTime):"1"===a._decoderVersion?a.aWndList[i].oPlayCtrl.PlayM4_GetOSDTime&&a.aWndList[i].oPlayCtrl.PlayM4_GetOSDTime(function(e){var t=h.oTool.isSafari()||h.oTool.isEdge()?"/":" ",t=Date.parse(e.replace(/-/g,t));n(t)}):(a.aWndList[i].oPlayCtrl.PlayM4_GetFrameInfo&&a.aWndList[i].oPlayCtrl.PlayM4_GetFrameInfo(function(e){a.aWndList[i].oPlayCtrl.iYUVWidth=e.width,a.aWndList[i].oPlayCtrl.iYUVHeight=e.height,a._getOSDTime(i,e.year,e.month,e.day,e.hour,e.minute,e.second),a.aWndList[i]._videoInfo.height=e.height,a.aWndList[i]._videoInfo.width=e.width,a.aWndList[i]._videoInfo.frameRate=e.frameRate}),n(a.aWndList[i].iCurentOSDTime)):e(t)})}},{key:"JS_OpenSound",value:function(r){var s=this;return r||0===r||(r=this.iCurrentWndIndex),new m.default(function(e,t){var n,i,a=s._checkPlay(r);0===a?(n=s.iCurrentSoundWnd)!==r?1===s.aWndList[r].iMode?s.aWndList[r].oMSE._mediaInfo.hasAudio?(n!==r&&(s.oJSPlugin.find("video.play-window").eq(n)[0].muted=!0,(i=s.oJSPlugin.find("video.play-window").eq(r)[0]).volume=s.aWndList[r].MSEVolume,i.muted=!1,i.paused&&i.play()),s.iCurrentSoundWnd=r,e()):t(y.ERR_STREAM_SOUND_NOTHAS):(-1!==n&&s.aWndList[n].oPlayCtrl.PlayM4_StopSound&&s.aWndList[n].oPlayCtrl.PlayM4_StopSound(),s.aWndList[r].oPlayCtrl.PlayM4_PlaySound&&1!==s.aWndList[r].oPlayCtrl.PlayM4_PlaySound(r)?t(y.ERR_JSDECODER+s.aWndList[r].oPlayCtrl.PlayM4_GetLastError().toString()):(s.iCurrentSoundWnd=r,e())):e():t(a)})}},{key:"JS_GetVolume",value:function(t){var i=this;return t||0===t||(t=this.iCurrentWndIndex),new m.default(function(n){var e;1===i.aWndList[t].iMode?(e=100*i.oJSPlugin.find("video.play-window").eq(t).get(0).volume,n(e)):i.aWndList[t].oPlayCtrl.PlayM4_GetVolume&&i.aWndList[t].oPlayCtrl.PlayM4_GetVolume(function(e){var t=e;"2"===i._decoderVersion&&(t=Math.ceil(e/655)),n(t)})})}},{key:"JS_SetVolume",value:function(i,a){var r=this;return new m.default(function(e,t){if(1===r.aWndList[i].iMode){try{var n=r.oJSPlugin.find("video.play-window").eq(i).get(0);n.volume=a/100,r.aWndList[i].MSEVolume=n.volume}catch(e){t(e)}e()}else{r.aWndList[i].oPlayCtrl.PlayM4_SetVolume||t();n=a;"2"===r._decoderVersion&&(n=Math.ceil(655*a)),0===r.aWndList[i].oPlayCtrl.PlayM4_SetVolume(n)?t(y.ERR_JSDECODER+r.aWndList[i].oPlayCtrl.PlayM4_GetLastError().toString()):e()}})}},{key:"JS_CloseSound",value:function(){var a=this;return new m.default(function(e,t){var n,i=a.iCurrentSoundWnd;i<0||i>a.iMaxWndNum-1?e():0===(n=a._checkPlay(i))?1===a.aWndList[i].iMode?(a.oJSPlugin.find("video.play-window").eq(i)[0].muted=!0,a.iCurrentSoundWnd=-1,e()):a.aWndList[i].oPlayCtrl.PlayM4_StopSound&&1!==a.aWndList[i].oPlayCtrl.PlayM4_StopSound()?t(y.ERR_JSDECODER+a.aWndList[i].oPlayCtrl.PlayM4_GetLastError().toString()):(a.iCurrentSoundWnd=-1,e()):t(n)})}},{key:"JS_EnableZoom",value:function(i){var a=this;return i||0===i||(i=this.iCurrentWndIndex),new m.default(function(e,t){var n=a._checkPlay(i);return 0!==n?t(n):1===a.aWndList[i].iMode?(a._log.E(y.ERR_COM_IS_MSE+": MSE unsupport this function."),t(y.ERR_COM_IS_MSE)):(a.oJSPlugin.find(".draw-window").unbind(),a.oDrawCanvas=new l.ESCanvas("canvas_draw"+i),a.oDrawCanvas.setShapeType("Rect"),a.oDrawCanvas.setDrawStyle("#ff0000","",0),a.oDrawCanvas.setDrawStatus(!0,function(e){e.startPos&&e.endPos&&(e.startPos[0]>e.endPos[0]?a.aWndList[i].oPlayCtrl.PlayM4_SetDisplayRegion&&a.aWndList[i].oPlayCtrl.PlayM4_SetDisplayRegion(null,!1):a.aWndList[i].oPlayCtrl.PlayM4_SetDisplayRegion&&a.aWndList[i].oPlayCtrl.PlayM4_SetDisplayRegion({left:e.startPos[0],top:e.startPos[1],right:e.endPos[0],bottom:e.endPos[1]},!0))}),a.aWndList[i].bEZoom=!0,void e())})}},{key:"JS_DisableZoom",value:function(i){var a=this;return i||0===i||(i=this.iCurrentWndIndex),new m.default(function(e,t){var n=a._checkPlay(i);return 0!==n?t(n):1===a.aWndList[i].iMode?(a._log.E(y.ERR_COM_IS_MSE+": MSE unsupport this function."),t(y.ERR_COM_IS_MSE)):(a.oDrawCanvas.setDrawStatus(!1),a.oDrawCanvas.clearAllShape(),void(a.aWndList[i].oPlayCtrl.PlayM4_SetDisplayRegion&&1!==a.aWndList[i].oPlayCtrl.PlayM4_SetDisplayRegion(null,!1)?t(y.ERR_JSDECODER+a.aWndList[i].oPlayCtrl.PlayM4_GetLastError().toString()):(a.aWndList[i].bEZoom=!1,e())))})}},{key:"JS_Enable3DZoom",value:function(n,i){var a=this;return new m.default(function(e,t){!(n<0||n>a.iMaxWndNum-1)&&a.aWndList[n].bPlay?(a.oJSPlugin.find(".draw-window").unbind(),a.fDrawCallback=i,a.oDrawCanvas=new l.ESCanvas("canvas_draw"+n),a.oDrawCanvas.setShapeType("Rect"),a.oDrawCanvas.setDrawStyle("#ff0000","",0),a.oDrawCanvas.setDrawStatus(!0,function(e){i(e)}),a.aWndList[n].b3DZoom=!0,e()):t()})}},{key:"JS_Disable3DZoom",value:function(n){var i=this;return new m.default(function(e,t){!(n<0||n>i.iMaxWndNum-1)&&i.aWndList[n].bPlay?(i.oDrawCanvas.setDrawStatus(!1),i.aWndList[n].b3DZoom=!1,e()):t()})}},{key:"JS_CapturePicture",value:function(s,o,u,d){var l=this;return new m.default(function(t,n){var e,i,a,r=l._checkPlay(s);0===r?(u=u||"JPEG",1===l.aWndList[s].iMode?(e="BMP"===u?"bmp":"jpeg",i=l.oJSPlugin.find("video.play-window").eq(s).get(0),(a=document.createElement("canvas")).width=i.videoWidth,a.height=i.videoHeight,a.getContext("2d").drawImage(i,0,0,a.width,a.height),a=a.toDataURL("image/"+u),a=h.oTool.dataURLtoBlob(a),d?d(a):h.oTool.downloadFile(a,o+"."+e),t()):"BMP"===u?l.aWndList[s].oPlayCtrl.PlayM4_GetBMP&&l.aWndList[s].oPlayCtrl.PlayM4_GetBMP(function(e){6===e?(l._log.E(y.ERR_CAPTURE_RAM+": capture failed, memory not enough."),n(y.ERR_CAPTURE_RAM)):(d?d(e):h.oTool.downloadFile(e,o+".BMP"),t())}):"JPEG"===u&&l.aWndList[s].oPlayCtrl.PlayM4_GetJPEG&&l.aWndList[s].oPlayCtrl.PlayM4_GetJPEG(function(e){6===e?(l._log.E(y.ERR_CAPTURE_RAM+": capture failed, memory not enough."),n(y.ERR_CAPTURE_RAM)):(d?d(e):h.oTool.downloadFile(e,o+".jpeg"),t())})):n(r)})}},{key:"JS_CapturePictureV2",value:function(l,h,c,_){var f=this;return new m.default(async function(e,r){var t=f._checkPlay(l);if(0===t){var s=null,n=f.aWndList[l];if(1===n.iMode){var i=f.oJSPlugin.find("video.play-window").eq(l).get(0),a=i.videoWidth,o=i.videoHeight,u=document.createElement("canvas");u.width=a,u.height=o,u.getContext("2d").drawImage(i,0,0,a,o),s=u.toDataURL("image/"+c)}else{var d=function(e){if(6===e)return f._log.E(y.ERR_CAPTURE_RAM+": capture failed, memory not enough."),void r(y.ERR_CAPTURE_RAM);for(var t="",n=e.byteLength,i=0;i<n;i++)t+=String.fromCharCode(e[i]);var a=window.btoa(t);s="data:image/"+c.toLowerCase()+";base64,"+a};switch(c){case"BMP":await n.oPlayCtrl.PlayM4_GetBMP(d);break;case"JPEG":await n.oPlayCtrl.PlayM4_GetJPEG(d)}}if(_)return _(s),void e();a=s.split(";").shift().split("/").pop();a!==c.toLowerCase()&&console.warn("Current Browser is not support to capture '"+c+"' image type, auto capture '"+a.toUpperCase()+"' image.");o=document.createEvent("MouseEvents");o.initEvent("click",!1,!1);u=document.createElement("a");u.href=s,u.download=h+"."+a,u.dispatchEvent(o),e()}else r(t)})}},{key:"JS_StopRealPlayAll",value:function(){var n=this;return new m.default(function(e){n.aWndList.forEach(function(e,t){e.bPlay&&n.JS_Stop(t),e.bPlay=!1}),n.iCurrentSoundWnd=-1,e()})}},{key:"JS_StartSave",value:function(s,o,u){var d=this;return new m.default(function(t,e){var n=0;u&&(n=u.iPackage);var i,a,r=d._checkPlay(s);0===r?d.aWndList[s].szStorageUUID?e(y.ERR_PLAY_FILESYS_ALREADY_WRITING):(o.indexOf(".mp4")<0&&(o+=".mp4"),i=d.aWndList[s].aHead,a=0,"playback"===d.aWndList[s].szPlayType&&(a=1),d.aWndList[s].isFlv?d.aWndList[s].oMSE.openFileSystem(o):d.oStorageManager.startRecord(o,i,2,a,{cbEventHandler:function(e){d._closeStreamAndDestory(s),d.oEventCallback.pluginErrorHandler(s,e)},iPackage:n}).then(function(e){d.aWndList[s].szStorageUUID=e,t()},function(){e()})):e(r)})}},{key:"JS_StartSaveEx",value:function(s,o,u,d){var l=this;return new m.default(function(t,e){var n=0;d&&(n=d.iPackage);var i,a,r=l._checkPlay(s);0===r?l.aWndList[s].szStorageUUID?e(y.ERR_PLAY_FILESYS_ALREADY_WRITING):(o.indexOf(".mp4")<0&&(o+=".mp4"),i=l.aWndList[s].aHead,a=0,"playback"===l.aWndList[s].szPlayType&&(a=1),l.aWndList[s].isFlv&&(i=l.flvtohikHead()),(5===u&&33===i[12]&&114===i[13]||98===i[12]&&114===i[13]||0===i[12]&&32===i[13])&&(i[12]=0,i[13]=0),l.oStorageManager.startRecord(o,i,u,a,{cbEventHandler:function(e){l._closeStreamAndDestory(s),l.oEventCallback.pluginErrorHandler(s,e)},iPackage:n}).then(function(e){l.aWndList[s].szStorageUUID=e,l.aWndList[s].isFlv&&l.aWndList[s].oMSE.setRecordFlag(!0),t()},function(){e()})):e(r)})}},{key:"JS_StopSave",value:function(n){var i=this;return new m.default(function(e,t){if(i.aWndList[n].isFlv&&!i.aWndList[n].szStorageUUID)try{i.aWndList[n].oMSE.downloadFile(),e()}catch(e){t(e)}else i.aWndList[n].isFlv&&i.aWndList[n].oMSE.setRecordFlag(!1),i.aWndList[n].szStorageUUID?i.oStorageManager.stopRecord(i.aWndList[n].szStorageUUID).then(function(){i.aWndList[n].szStorageUUID="",e()},function(e){t(e)}):t()})}},{key:"JS_SetDrawStatus",value:function(n){var i=this;return new m.default(function(e,t){i.oDrawCanvas?(i.oDrawCanvas.setDrawStatus(n),e()):t()})}},{key:"JS_ClearRegion",value:function(){var n=this;return new m.default(function(e,t){n.oDrawCanvas?(n.oDrawCanvas.clearAllShape(),e()):t()})}},{key:"JS_SetGridInfo",value:function(n){var i=this;return new m.default(function(e){if(null==n)return-1;var t="#ff0000";n.drawColor&&(t=n.drawColor),i.oDrawCanvas.setDrawStyle(t),i.oDrawCanvas.setShapesInfoByType("Grid",[{szGridMap:n.gridMap,iGridColNum:n.gridColNum,iGridRowNum:n.gridRowNum}]),e()})}},{key:"JS_GetGridInfo",value:function(){var n=this;return new m.default(function(e){n.oDrawCanvas||e({});var t=n.oDrawCanvas.getShapesInfoByType("Grid")[0];t||e({iGridRowNum:18,iGridColNum:22,szGridMap:""}),e({gridColNum:t.iGridColNum,gridRowNum:t.iGridRowNum,gridMap:t.szGridMap})})}},{key:"JS_SetDrawShapeInfo",value:function(n,i){var a=this;return new m.default(function(e,t){void 0!==n&&""!==n?(a.oDrawCanvas.setShapeType(n),a.oDrawCanvas.setDrawStyle(i.szDrawColor||"",i.szFillColor||"",i.iTranslucent||0),i.iMaxShapeSupport&&0<i.iMaxShapeSupport&&a.oDrawCanvas.setMaxShapeSupport(i.iMaxShapeSupport),i.iMaxPointSupport&&0<i.iMaxPointSupport&&a.oDrawCanvas.setCurrentShapeInfo({szId:"",szTips:"",iMinClosed:3,iMaxPointNum:i.iMaxPointSupport,iPolygonType:1,szDrawColor:i.szDrawColor||"",szFillColor:i.szFillColor||"",iTranslucent:i.iTranslucent||0}),e()):t()})}},{key:"JS_SetPolygonInfo",value:function(r){var s=this;return new m.default(function(e,t){if(void 0!==r&&r.length){var n=[];if(0<r.length)for(var i=0,a=r.length;i<a;i++)0<r[i].aPoint.length&&n.push(r[i]);0<n.length?(s.oDrawCanvas.setShapesInfoByType("Polygon",n),e()):t()}else t()})}},{key:"JS_GetPolygonInfo",value:function(){var s=this;return new m.default(function(e){for(var t=[],n=s.oDrawCanvas.getShapesInfoByType("Polygon"),i=0,a=n.length;i<a;i++){var r=n[i],r={aPoint:r.aPoint,bClosed:r.bClosed,szTips:r.szTips};t.push(r)}e(t)})}},{key:"JS_SetLineInfo",value:function(r){var s=this;return new m.default(function(e,t){if(void 0!==r&&r.length){var n=[];if(0<r.length)for(var i=0,a=r.length;i<a;i++)0<r[i].aPoint.length&&n.push(r[i]);0<n.length?(s.oDrawCanvas.setShapesInfoByType("Line",n),e()):t()}else t()})}},{key:"JS_GetLineInfo",value:function(){var s=this;return new m.default(function(e){for(var t=[],n=s.oDrawCanvas.getShapesInfoByType("Line"),i=0,a=n.length;i<a;i++){var r=n[i],r={iLineType:r.iLineType,aPoint:r.aPoint,szTips:r.szTips};t.push(r)}e(t)})}},{key:"JS_SetRectInfo",value:function(r){var s=this;return new m.default(function(e,t){if(void 0!==r&&r.length){var n=[];if(0<r.length)for(var i=0,a=r.length;i<a;i++)0<r[i].aPoint.length&&n.push(r[i]);0<n.length?(s.oDrawCanvas.setShapesInfoByType("Rect",n),e()):t()}else t()})}},{key:"JS_GetRectInfo",value:function(){var s=this;return new m.default(function(e){for(var t=[],n=s.oDrawCanvas.getShapesInfoByType("Rect"),i=0,a=n.length;i<a;i++){var r=n[i],r={aPoint:r.aPoint,szTips:r.szTips};t.push(r)}e(t)})}},{key:"JS_FullScreenDisplay",value:function(n){var i=this;return new m.default(function(e){var t;n&&((t=i.oJSPlugin.get(0)).requestFullScreen?t.requestFullScreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.mozRequestFullScreen&&t.mozRequestFullScreen()),i.bPluginFull=n,e()})}},{key:"JS_FullScreenSingle",value:function(a){var r=this;return-1===a&&(a=this.iCurrentWndIndex),new m.default(function(e,t){if(r.aWndList[a].bPlay){var n=document.fullscreen||document.webkitIsFullScreen||document.mozFullScreen||!1,i=(1===r.aWndList[a].iMode?(0,p.default)("#player-container-"+a).find("video.play-window"):(0,p.default)("#player-container-"+a).find("canvas.play-window")).get(0);if(n){if(r.oJSPlugin.find(".parent-wnd").eq(0).width()===(0,p.default)(window).width())return void t();document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen&&document.mozCancelFullScreen()}else i.requestFullScreen?i.requestFullScreen():i.webkitRequestFullScreen?i.webkitRequestFullScreen():i.mozRequestFullScreen&&i.mozRequestFullScreen();e()}else t()})}},{key:"JS_Resize",value:function(a,r){var s=this;return new m.default(function(i){setTimeout(function(){var e,t=document.fullscreen||document.webkitIsFullScreen||document.mozFullScreen||!1;if(a&&r?s.oJSPlugin.css({width:a,height:r}):(a=s.oJSPlugin.width(),r=s.oJSPlugin.height()),s.options.iWidth=a,s.options.iHeight=r,h.oTool.isFirefox())for(var n=0;n<s.options.iMaxSplit*s.options.iMaxSplit;n++)s.aWndList[n].oPlayCtrl&&s.aWndList[n].oPlayCtrl.PlayM4_ClearCanvas&&s.aWndList[n].oPlayCtrl.PlayM4_ClearCanvas();s._updateWnd(),t&&0===s.aWndList[s.iCurrentWndIndex].iMode&&(a=(0,p.default)(window).width(),r=(0,p.default)(window).height(),s.oJSPlugin.find("#"+s.options.szId+"_playCanvas"+s.iCurrentWndIndex).attr("width",a),s.oJSPlugin.find("#"+s.options.szId+"_playCanvas"+s.iCurrentWndIndex).attr("height",r),(e=s.aWndList[s.iCurrentWndIndex]).oPlayCtrl&&e.oPlayCtrl.PlayM4_SetCanvasSize&&e.oPlayCtrl.PlayM4_SetCanvasSize(a,r)),t||(s.oVideoWindow=null,s.bPluginFull=!1),s.oDrawCanvas.resizeCanvas(),s.oDrawCanvas.canvasRedraw(),i()},80)})}},{key:"JS_SelectWnd",value:function(t){var n=this;return new m.default(function(e){n.oJSPlugin.find(".parent-wnd").eq(0).children().eq(t).mousedown(),e()})}},{key:"JS_SetOptions",value:function(t){var n=this;return new m.default(function(e){!1===t.bSupportSound&&(n.options.bSupportSound=t.bSupportSound),!1===t.bSupporDoubleClickFull&&(n.options.bSupporDoubleClickFull=t.bSupporDoubleClickFull),!0===t.bOnlySupportMSE&&(n.options.bOnlySupportMSE=t.bOnlySupportMSE),!0===t.bOnlySupportJSDecoder&&(n.options.bOnlySupportJSDecoder=t.bOnlySupportJSDecoder),e()})}},{key:"JS_SetLogFlag",value:function(n){var i=this;return new m.default(function(e){for(var t=0;t<i.iMaxWndNum;t++)i.aWndList[t].oPlayCtrl&&i.aWndList[t].oPlayCtrl.PlayM4_OpenPlayerSDKPrintLog(n);e()})}},{key:"JS_SetDecodeThreadNum",value:function(n){var i=this;return new m.default(function(e){for(var t=0;t<i.iMaxWndNum;t++)i.aWndList[t].oPlayCtrl&&i.aWndList[t].oPlayCtrl.SetDecodeThreadNum(n);e()})}},{key:"JS_RenderPrivateData",value:function(e,t){var n=this.iCurrentWndIndex,i=this.aWndList[n],a=this._checkPlay(n);return 0!==a||(1===this.aWndList[n].iMode&&(a=y.ERR_COM_IS_MSE,this._log.E(y.ERR_COM_IS_MSE+": MSE unsupport this function.")),1!==i.oPlayCtrl.PlayM4_RenderPrivateData(e,t)&&(a=y.ERR_JSDECODER+i.oPlayCtrl.PlayM4_GetLastError().toString(),this._log.E(a+": 播放库智能信息接口报错:"))),a}},{key:"JS_RenderPrivateDataEx",value:function(e,t,n){var i=this.iCurrentWndIndex,a=this.aWndList[i],r=this._checkPlay(i);return 0!==r||(1===this.aWndList[i].iMode&&(r=y.ERR_COM_IS_MSE,this._log.E(y.ERR_COM_IS_MSE+": MSE unsupport this function.")),1!==a.oPlayCtrl.PlayM4_RenderPrivateDataEx(e,t,n)&&(r=y.ERR_JSDECODER+a.oPlayCtrl.PlayM4_GetLastError().toString(),this._log.E(r+": 播放库智能信息接口报错:",r))),r}},{key:"JS_RenderALLPrivateData",value:function(e,n){e||0===e||(e=this.iCurrentWndIndex);var i=this.aWndList[e],a=this._checkPlay(e);if(0!==a)return a;if(0!==i.iMode||"2"!==this._decoderVersion)return a=y.ERR_STREAM_INTEL_UNSUPPORT;return[{typeCode:"0x00000001",desc:"智能分析(默认开)",children:[]},{typeCode:"0x00000002",desc:"移动侦测(默认开)",children:[]},{typeCode:"0x00000004",desc:"pos 信息叠加(默认关)",children:[]},{typeCode:"0x00000008",desc:"图片叠加(默认关)",children:[]},{typeCode:"0x00000010",desc:"火点信息(默认开)",children:[{typeCode:"0x00000001",desc:"火点框显示"},{typeCode:"0x00000002",desc:"火点最高温显示"},{typeCode:"0x00000004",desc:"最高温位置显示"},{typeCode:"0x00000008",desc:"最高温度距离"}]},{typeCode:"0x00000020",desc:"温度信息(默认关)",children:[{typeCode:"0x00000001",desc:"框测温"},{typeCode:"0x00000002",desc:"线测温"},{typeCode:"0x00000004",desc:"点测温"}]},{typeCode:"0x00000040",desc:"轨迹信息(默认关)",children:[{typeCode:"0x00000001",desc:"人的轨迹信息"},{typeCode:"0x00000002",desc:"车的轨迹信息"}]},{typeCode:"0x00000080",desc:"烟火屏蔽和废气监测(默认关)",children:[{typeCode:"0x00000001",desc:"烟火屏蔽"},{typeCode:"0x00000002",desc:"规则废气检测"},{typeCode:"0x00000004",desc:"目标废气检测"}]}].forEach(function(t){1===i.oPlayCtrl.PlayM4_RenderPrivateData(t.typeCode,n)?n&&t.children&&0<t.children.length&&t.children.forEach(function(e){1===i.oPlayCtrl.PlayM4_RenderPrivateDataEx(t.typeCode,e.typeCode,n)||(console.warn("trigger intelligence sub "+e.typeCode+" "+(n?"open":"close")+" failed"),a=1)}):(console.warn("trigger intelligence main "+t.typeCode+" "+(n?"open":"close")+" failed"),a=1)}),a}},{key:"_checkPlay",value:function(e){return e<0||e>this.iMaxWndNum-1?(this._log.E(y.ERR_COM_PARAM+": unexpected window index."),y.ERR_COM_PARAM):this.aWndList[e].bPlay?0:(this._log.E(y.ERR_COM_NOT_PLAYING+": this window is not playing."),y.ERR_COM_NOT_PLAYING)}},{key:"_checkPlayback",value:function(e){var t=this._checkPlay(e);return 0===t&&"playback"!==this.aWndList[e].szPlayType&&(this._log.E(y.ERR_COM_NOT_PLAYBACK+": this function was only supported by playback."),t=y.ERR_COM_NOT_PLAYBACK),t}},{key:"_createFlvPlayer",value:function(i){var a=this,n=this.aWndList[i];n.oMSE&&(n.bPlay=!1,n.oMSE.destroy());var e=this.oJSPlugin.find("video.play-window").eq(i),t=this.oJSPlugin.find("canvas.play-window").eq(i);e.show(),t.hide();t=n.oMSE=c.default.createPlayer({isLive:!0,type:"flv"},{enableWorker:!1,lazyLoadMaxDuration:180,seekType:"range",isLive:!0,autoCleanupMaxBackwardDuration:60,autoCleanupMinBackwardDuration:30,statisticsInfoReportInterval:1e3,enableDurationMonitor:!0,lowLatencyThreshold:3,decreaseDurationStep:2,enableAudioGain:!1,WDInfo:{index:i,pointSignNumber:n.pointSignNumber}});t.on(M.default.ERROR,function(e,t,n){a.oEventCallback.pluginErrorHandler(i,n.code,n.message),a.JS_Stop(i)}),t.on(M.default.MS_BUFFER_FULL,function(){a.oEventCallback.pluginErrorHandler(i,M.default.MS_BUFFER_FULL)});var r=e.get(0);r.addEventListener("error",function(e){window.console.error("[iWndNum-"+i+"] mediaElement error: ",e.target.error),a.oEventCallback.pluginErrorHandler(i,e.target.error)});var s=this,e=function e(t){console.info("[debug] %c"+(0,_.default)().format("YYYY-MM-DD HH:mm:ss.SSS")+"%c 硬解首帧已经加载","color: blue","color: black",r.paused,r.autoplay),r.removeEventListener("loadeddata",e),n._emiter.emit("firstframeload"),s.oEventCallback.firstFrameDisplay(i,n._videoInfo.width,n._videoInfo.height)};r.addEventListener("loadeddata",e);e=function e(t){console.info("[debug] %c"+(0,_.default)().format("YYYY-MM-DD HH:mm:ss.SSS")+"%c canplay, seekable: ","color: blue","color: black",[r.seekable.start(0),r.seekable.end(0)]),r.removeEventListener("canplay",e)};r.addEventListener("canplay",e);e=function e(t){console.info("[debug] %c"+(0,_.default)().format("YYYY-MM-DD HH:mm:ss.SSS")+"%c playing, seekable: ","color: blue","color: black",[r.seekable.start(0),r.seekable.end(0)]),r.removeEventListener("playing",e)};r.addEventListener("playing",e),n._receivedLength=0,t.attachMediaElement(r),t.load(),n.bPlay=!0,t.onParsedData=this._onParsedData.bind(this)}},{key:"_createPlayCtrl",value:function(a){var r=this;console.info("[debug] %c"+(0,_.default)().format("YYYY-MM-DD HH:mm:ss.SSS")+"%c _createPlayCtrl load start code","color: blue","color: black");var s=this.aWndList[a],o=this._playCtrlLoad.bind(this);this.oJSPlugin.find("video.play-window").eq(a).hide(),this.oJSPlugin.find("canvas.play-window").eq(a).show(),"2"===this._decoderVersion?b&&(s.oPlayCtrl=new u.JSPlayCtrl(this.options.szId+"_playCanvas"+a,b,function(e){e.instance;var t=e.cmd,e=(e.data,e.errorCode,e.status);"OnebyOne"===t&&(e&&s.isPause&&(r.oStreamClient.resume(s.szStreamUUID),s.isPause=!1),e||s.isPause||(r.oStreamClient.pause(s.szStreamUUID),s.isPause=!0))},a),s.bLoad=!0,this._playCtrlLoad(a)):s.oPlayCtrl=new d.JSPlayCtrl(this.options.szBasePath+"playctrl1/",function(e){e.instance;var t=e.cmd,n=e.errorCode,i=e.status;switch(t){case"loaded":console.info("[debug] %c"+(0,_.default)().format("YYYY-MM-DD HH:mm:ss.SSS")+"%c JSDecoder1.0 load end","color: blue","color: black"),s.bLoad||o(a),s.bLoad=!0;break;case"OnebyOne":i&&s.isPause&&(r.oStreamClient.resume(s.szStreamUUID),s.isPause=!1),i||s.isPause||(r.oStreamClient.pause(s.szStreamUUID),s.isPause=!0);break;case"GetFrameData":return void(16===n&&(r._closeStreamAndDestory(a),r.oEventCallback.pluginErrorHandler(a,2001)))}},a),console.info("[debug] %c"+(0,_.default)().format("YYYY-MM-DD HH:mm:ss.SSS")+"%c _createPlayCtrl load end code","color: blue","color: black")}},{key:"_playCtrlLoad",value:function(e){var t=this.aWndList[e];if("2"===this._decoderVersion){var n="playback"===t.szPlayType?1:0,i=t.isHVAGHead?t.aHVAGHead:t.aHead;if(t.oPlayCtrl.PlayM4_SetStreamOpenMode(n),t.oPlayCtrl.PlayM4_OpenStream(i,40,2097152),1!==t.oPlayCtrl.PlayM4_Play())return y.ERR_JSDECODER+t.oPlayCtrl.PlayM4_GetLastError().toString();t.bPlay=!0,t.oPlayCtrl.iBufferValue=t.oPlayCtrl.PlayM4_GetBufferValue(1),this._supportInfo.webGL2&&t.oPlayCtrl.PlayM4_SetAntialias(1)}else{i=4===t.aHead[8]?0:1;if(t.oPlayCtrl.PlayM4_OpenStream(t.aHead,40,2097152),t.oPlayCtrl.PlayM4_SetStreamOpenMode(i),t.oPlayCtrl.PlayM4_SetInputBufSize(k),1!==t.oPlayCtrl.PlayM4_Play(this.options.szId+"_playCanvas"+e))return y.ERR_JSDECODER+t.oPlayCtrl.PlayM4_GetLastError().toString();t.bPlay=!0}return console.info("[debug] %c"+(0,_.default)().format("YYYY-MM-DD HH:mm:ss.SSS")+"%c oPlayCtrl load end code","color: blue","color: black"),1}},{key:"_feedData",value:function(n,e){var t,i,a,r,s=this,o=e.type,u=e.statusString,d=e.buf,l=this.aWndList[n],h=this.oEventCallback.pluginErrorHandler.bind(this),d=l.isGB?this._stripRtpHead(d):d;l.isFlv?(l.oMSE.onLoaderChunkArrival(d,l._receivedLength),l._receivedLength+=d.byteLength):"2"===this._decoderVersion?(a=new Uint8Array(d),1===(r=l.oPlayCtrl.PlayM4_InputData(a,a.byteLength))?l.iDecodeType!==S&&l.oPlayCtrl.PlayM4_GetSourceBufferRemain()<l.oPlayCtrl.iBufferValue/2&&(l.oPlayCtrl.PlayM4_SetDecodeFrameType(S),l.iDecodeType=S):11===r?(l.oPlayCtrl.PlayM4_GetSourceBufferRemain(),1===l.iDecodeType||l.bFrameForward||(l.oPlayCtrl.PlayM4_SetDecodeFrameType(1),l.iDecodeType=1,this.oEventCallback.performanceLack())):this.oEventCallback.pluginErrorHandler(n,y.ERR_JSDECODER+l.oPlayCtrl.PlayM4_GetLastError().toString(),"PlayM4_InputData oError"),l.bFirstFrame||l.oPlayCtrl.PlayM4_GetFrameInfo(function(e){var t=s._getWndIndexFromPort(e.port);e.width&&e.height&&t===n&&(l.bFirstFrame=!0,l.oPlayCtrl.iYUVWidth=e.width,l.oPlayCtrl.iYUVHeight=e.height,s._getOSDTime(n,e.year,e.month,e.day,e.hour,e.minute,e.second),l._videoInfo.height=e.height,l._videoInfo.width=e.width,l._videoInfo.frameRate=e.frameRate,l._emiter.emit("firstframeload"),s.oEventCallback.firstFrameDisplay(n,l.oPlayCtrl.iYUVWidth,l.oPlayCtrl.iYUVHeight),console.info("[debug] %c"+(0,_.default)().format("YYYY-MM-DD HH:mm:ss.SSS")+"%c jsdecoder2.0软解首帧已经加载","color: blue","color: black"),l.oPlayCtrl.PlayM4_SetDisplayBuf(6))})):(t=new Uint8Array(d),2!==(e=(i=l.oPlayCtrl).PlayM4_GetYUVBufSize())||l.bFirstFrame||(l.bFirstFrame=!0,i.PlayM4_GetFrameResolution(function(e,t){l._videoInfo.height=t,l._videoInfo.width=e,l._emiter.emit("firstframeload"),s.oEventCallback.firstFrameDisplay(l,e,t),console.info("[debug] %c"+(0,_.default)().format("YYYY-MM-DD HH:mm:ss.SSS")+"%c jsdecoder1.0软解首帧已经加载","color: blue","color: black")})),a=i.PlayM4_GetInputBufSize(),r=i.PlayM4_GetDecodeFrameType(),.5*k<a&&a<.8*k&&1===l.iRate&&(1===r||l.bFrameForward||(i.PlayM4_SetDecodeFrameType(1),this.oEventCallback.performanceLack())),10<e&&e<15&&(1===r||l.bFrameForward||(i.PlayM4_SetDecodeFrameType(1),this.oEventCallback.performanceLack())),e<10&&a<.5*k&&r!==S&&1===l.iRate&&i.PlayM4_SetDecodeFrameType(S),u?(this._closeStreamAndDestory(n),h(n,1001,u)):o&&"exception"===o?(this._closeStreamAndDestory(n),h(n,1002,o)):l.oPlayCtrl.PlayM4_InputData(t,t.byteLength)),l.szStorageUUID&&0===l.iMode&&this.oStorageManager.inputData(l.szStorageUUID,d),this.aWndList[n]._bpsCalculator&&this.aWndList[n]._bpsInfo&&(this.aWndList[n]._bpsInfo.lastVideoBytes+=d.byteLength,0!==this.aWndList[n]._bpsInfo.data_updated_time&&(d=(d=(Date.now()-this.aWndList[n]._bpsInfo.data_updated_time)/1e3)<1?1:Math.round(d),this.aWndList[n]._bpsInfo.time_gap_factor=d),this.aWndList[n]._bpsInfo.data_updated_time=Date.now())}},{key:"_closeStreamAndDestory",value:function(e){var t=this.aWndList[e];t.szStreamUUID&&(this.oStreamClient.stop(t.szStreamUUID),t.szStreamUUID=""),t.bPlay=!1,t.iRate=1,t.isGB=!1,t.bFrameForward=!1,this.aWndList[e].iCurentOSDTime=-1,t.isFlv&&t.oMSE?(t.oMSE.destroy&&t.oMSE.destroy(),t.oMSE=null,t.isFlv=!1,t.iMode=0,t._receivedLength=0):t.oPlayCtrl&&(this._supportInfo.webGL2&&"2"===this._decoderVersion&&t.oPlayCtrl.PlayM4_SetAntialias(0),"1"===this._decoderVersion?t.oPlayCtrl.PlayM4_Destroy():t.oPlayCtrl.PlayM4_Stop(),t.oPlayCtrl=null,t.bLoad=!1)}},{key:"_onParsedData",value:function(e,t){var n=this.iCurrentWndIndex;switch(t){case 1:this.aWndList[n].szStorageUUID&&this.oStorageManager.inputData(this.aWndList[n].szStorageUUID,e);break;case 2:var i=h.oTool.isSafari()||h.oTool.isEdge()?"/":" ",i=Date.parse(e.replace(/-/g,i));this.aWndList[n].iCurentOSDTime=new Date(i).getTime();break;case 3:this.aWndList[n]._videoInfo=e}}},{key:"_loadTalk",value:function(i){var a,r,s,S=this,k=void 0,w=void 0,o="",u="",d="",l=window.navigator,h=new(window.AudioContext||window.webkitAudioContext);return this.bTalkLoaded=!1,new m.default(async function(L,t){var e,n;o=-1!==i.search("wss://")?(e=i.indexOf("/proxy/")+7,n=i.indexOf("/",e),u=i.substring(e,n),i.replace("wss:","ws:").replace(u,"").replace("/proxy/","")):i,await S.oStreamClient.openStream(i,{playURL:o,proxy:u,mode:"media"},async function(e){e.bHead?(a=e.oParams.iAudioType,r=e.oParams.iAudioBitRate,k=e.oParams.iAudioSamplingRate,w=e.oParams.iAudioBitWidth,s=e.oParams.iChannel,6<a&&(S.oEventCallback.pluginErrorHandler(0,y.ERR_TALK_UNSUPPORT_AUDIOTYPE),S._log.E(y.ERR_TALK_UNSUPPORT_AUDIOTYPE+": 不支持该音频格式"),t(y.ERR_TALK_UNSUPPORT_AUDIOTYPE)),S.bTalkLoaded||(S.oTalkPlayCtrl.Talk_CreateAudEncode(a),S.oTalkPlayCtrl.Talk_SetAudEncodeParam(k,s,r,w),S.oTalkPlayCtrl.Talk_RegisterAudEncodeCB(function(e){S.bStartTalkSuc&&S.oStreamClient.transmission(d,e)}),S.bTalkLoaded=!0),S.oTalkPlayCtrl.Talk_CreateAuDecode(),S.oTalkPlayCtrl.Talk_SetAudDecodeParam(k,s,r,w,a),S.oTalkPlayCtrl.Talk_OpenStreamDecodeData()):S.oTalkPlayCtrl&&S.oTalkPlayCtrl.Talk_InputAudDecodeData(e.buf,e.buf.byteLength)},function(){}).then(async function(e){S.szTalkStreamId=e,d=e,await S.oStreamClient.startPlay(e,"","","startTalk").then(function(){S.bStartTalkSuc=!0,L()},function(e){e="0x0"+e.errorCode.toString(16);S._log.E(e+": 取流失败,详情根据错误码在运管后台进行查询."),t(e)})},function(e){t(e)}),void 0===l.mediaDevices&&(l.mediaDevices={}),void 0===l.mediaDevices.getUserMedia&&(l.mediaDevices.getUserMedia=function(e){if(!(l.getUserMedia||l.webkitGetUserMedia||l.mozGetUserMedia||l.msGetUserMedia))return m.default.reject(new Error("getUserMedia is not implemented in this browser"))}),l.mediaDevices.getUserMedia({audio:!0}).then(function(g){if(!S.bStartTalkSuc)return g.getTracks().forEach(function(e){e.stop()}),L();var e=h.createMediaStreamSource(g),t=e.context,n=t.createScriptProcessor(512,1,1),M=[];n.onaudioprocess=function(e){if(!S.bStartTalkSuc)return g.getTracks().forEach(function(e){e.stop()}),L();for(var t=e.inputBuffer.getChannelData(0),n=48e3/k,i=t.length/n,a=new window.Float32Array(i),r=0,s=0;r<i;)a[r]=t[s],s+=n,r++;var o=a.length,u=null;if(16===w)for(var e=new window.ArrayBuffer(2*o),u=new window.DataView(e),d=0,l=0;l<a.length;l++,d+=2){var h=Math.max(-1,Math.min(1,a[l]));u.setInt16(d,h<0?32768*h:32767*h,!0)}else if(8===w){o=new window.ArrayBuffer(o);u=new window.DataView(o);for(var c=0,_=0;_<a.length;_++,c++){var f=Math.max(-1,Math.min(1,a[_])),f=f<0?32768*f:32767*f,f=parseInt(255/(65535/(32768+f)),10);u.setInt8(c,f,!0)}}if(S.bTalkLoaded&&null!==u.buffer)for(var m=new Uint8Array(u.buffer),p=M.length,y=0,v=m.byteLength;y<v;y++)M[p++]=m[y],640===M.length&&(S.bTalkLoaded&&S.oTalkPlayCtrl.Talk_InputAudEncodeData(new Uint8Array(M),640),p=M.length=0)},e.connect(n),n.connect(t.destination)},function(e){S.oEventCallback.pluginErrorHandler(0,y.ERR_TALK_GETUSERMEDIA_UNDEFINE),t(y.ERR_TALK_GETUSERMEDIA_UNDEFINE),S._log.E(y.ERR_TALK_GETUSERMEDIA_UNDEFINE+": 采集音频接口失败",e)})})}},{key:"JS_StartTalk",value:function(i){var a=this;return new m.default(async function(n,e){var t="",t="2"===a._decoderVersion?a.options.szBasePath+"talkW/AudioInterCom.js":a.options.szBasePath+"talk/AudioInterCom.js";null===a.oTalkPlayCtrl?a.oTalkPlayCtrl=new s.JSTalkCtrl(t,function(e){var t=e.cmd;e.status,e.errorCode;"loaded"===t&&(a._loadTalk(i),console.info("[debug] %c"+(0,_.default)().format("YYYY-MM-DD HH:mm:ss.SSS")+"%c oTalkPlayCtrl load end code","color: blue","color: black"),n())}):a.JS_StopTalk().then(function(){a.oTalkPlayCtrl=new s.JSTalkCtrl(t,function(e){var t=e.cmd;e.status,e.errorCode;"loaded"===t&&(a._loadTalk(i),console.info("[debug] %c"+(0,_.default)().format("YYYY-MM-DD HH:mm:ss.SSS")+"%c oTalkPlayCtrl load end code","color: blue","color: black"),n())})})})}},{key:"JS_StopTalk",value:function(){var n=this;return new m.default(function(e,t){n.oTalkPlayCtrl&&(n.bTalkLoaded=!1,n.bStartTalkSuc=!1,n.oStreamClient.stop(n.szTalkStreamId),n.szTalkStreamId="",n.oTalkPlayCtrl.Talk_DestroyAudEncode(),n.oTalkPlayCtrl.Talk_DestroyAudDecode(),n.oTalkPlayCtrl=null,e())})}},{key:"JS_TalkSetVolume",value:function(n){var i=this;return new m.default(function(e,t){i.oTalkPlayCtrl&&0===i.oTalkPlayCtrl.Talk_SetVolume(n/100)?t(i.oTalkPlayCtrl.Talk_GetLastError()+y.ERR_TALK):e()})}},{key:"JS_TalkGetVolume",value:function(){var e=this;return new m.default(function(t){e.oTalkPlayCtrl&&e.oTalkPlayCtrl.Talk_GetVolume(function(e){e=Math.round(100*e);t(e)})})}},{key:"JS_SetTalkLogFlag",value:function(t){var n=this;return new m.default(function(e){n.oTalkPlayCtrl&&n.oTalkPlayCtrl.Talk_SetTalkLogFlag(t),e()})}},{key:"JS_GetVideoInfo",value:function(i){var a=this;return i||0===i||(i=this.iCurrentWndIndex),new m.default(function(e,t){var n;i<0||i>a.iMaxWndNum-1?t():(0!==(n=a._checkPlay(i))&&t(n),e(a.aWndList[i]._videoInfo))})}},{key:"JS_SetConnectTimeOut",value:function(n,i){var a=this;return n||0===n||(n=this.iCurrentWndIndex),new m.default(function(e,t){n<0||n>a.iMaxWndNum-1?t():a.oStreamClient.setTimeOut(i).then(function(){e()},function(e){t(e)})})}},{key:"_support",value:function(){var e=!!window.MediaSource,t=(i=document.createElement("canvas"),!(!window.WebGLRenderingContext||!i.getContext("webgl"))),n=(a=document.createElement("canvas"),!(!window.WebGL2RenderingContext||!a.getContext("webgl2"))),i=!!window.SharedArrayBuffer,a=!!window.OffscreenCanvas;return{MSE:e,webGL1:t,webGL2:n,SharedArrayBuffer:i,OffscreenCanvas:a,"decoder1.0":t,"decoder2.0":t&&i&&a}}},{key:"_decoder2Loaded",value:function(){return new m.default(function(e,t){var n=0,i=window.setInterval(function(){4e3<=n&&(clearInterval(i),t(y.ERR_COM_LOAD_JSDECODER_ERROR)),b&&(clearInterval(i),console.log("clearInterval"),e(1)),n+=100},100)})}},{key:"_calculateRealtimeBitrate",value:function(e){this.aWndList[e]._bpsInfo&&(this.aWndList[e]._bpsInfo.time_gap_factor<1&&(this._bpsInfo.time_gap_factor=1),0!==this.aWndList[e]._bpsInfo.lastVideoBytes&&(this.aWndList[e]._bpsInfo.bps_video=8*this.aWndList[e]._bpsInfo.lastVideoBytes/1024/this.aWndList[e]._bpsInfo.time_gap_factor,this.aWndList[e]._bpsInfo.lastVideoBytes=0),this.aWndList[e]._videoInfo.bitRate=this.aWndList[e]._bpsInfo.bps_video)}},{key:"currentWindowIndex",get:function(){return this.iCurrentWndIndex}},{key:"fileSysSwitch",set:function(e){if("boolean"!=typeof e)return console.error("fileSysSwitch set should get a Boolean");this._fileSysSwitch=e}}]),D);function D(e){(0,i.default)(this,D),this.TAG="JSPlugin";this.options=p.default.extend({szId:"playWnd",iWidth:400,iHeight:300,iMaxSplit:1,iCurrentSplit:1,szBasePath:"./",bSupportSound:!0,bSupporDoubleClickFull:!0,bOnlySupportMSE:!1,bOnlySupportJSDecoder:!1,openDebug:!0},e);var t=p.default.extend(t={border:"#343434",borderSelect:"#FFCC00",background:"#000"},e.oStyle);this.options.oStyle=t,this._log=new g.default(this),this.options.iCurrentSplit>this.options.iMaxSplit&&(this.options.iCurrentSplit=this.options.iMaxSplit),this.iCurrentPlayRate=1,this.iCurrentSoundWnd=-1,this.iMaxWndNum=this.options.iMaxSplit*this.options.iMaxSplit,this.bPluginFull=!1,this.oVideoWindow=null,this.iCurrentWndIndex=-1,this.fDrawCallback=null,this.szPluginVersion="V2.0.0",this.isBrowserVisible=!0,this._decoderVersion="1","/"!==this.options.szBasePath.charAt(this.options.szBasePath.length-1)&&(this.options.szBasePath=this.options.szBasePath+"/"),this.oStorageManager=new o.StorageManager(this.options.szBasePath+"transform/"),this.oStreamClient=new r.StreamClient(this.options),this.oJSPlugin=(0,p.default)("#"+this.options.szId),this._listenBrowserVisibility(),this._createWindows(),this.aWndList=[];for(var n=0;n<this.iMaxWndNum;n++)this.aWndList[n]={},this.aWndList[n].bPlay=!1,this.aWndList[n].bLoad=!1,this.aWndList[n].stashArray=[],this.aWndList[n].stashFeeding=!1,this.aWndList[n].szPlayType="",this.aWndList[n].szStorageUUID="",this.aWndList[n].szStreamUUID="",this.aWndList[n].aHead=[],this.aWndList[n].isGB=!1,this.aWndList[n].isHVAGHead=!1,this.aWndList[n].aHVAGHead=[],this.aWndList[n].iRate=1,this.aWndList[n].bEZoom=!1,this.aWndList[n].b3DZoom=!1,this.aWndList[n].szSecretKey="",this.aWndList[n].bFrameForward=!1,this.aWndList[n].aSamples=[],this.aWndList[n].iRevBufferTimes=0,this.aWndList[n].nalPackage=[0,0,0,1,97],this.aWndList[n].iMode=0,this.aWndList[n].iCurentOSDTime=-1,this.aWndList[n].oSdpInfo={},this.aWndList[n].iLastDuaration=-1,this.aWndList[n].iCurDuaration=-1,this.aWndList[n].iTimeInterval=-1,this.aWndList[n].isPause=!1,this.aWndList[n].MSEVolume=.5,this.aWndList[n].iBufferValue=0,this.aWndList[n].iDecodeType=S,this.aWndList[n]._videoInfo={VideType:"h264",audioType:"without",width:0,height:0,frameRate:25,bitRate:2048,systemFormt:"ps"},this.aWndList[n].bFirstFrame=!1,this.aWndList[n].iDecodeType=S,this.oTalkPlayCtrl=null,this.szTalkStreamId="",this.bTalkLoaded=!1,this.bStartTalkSuc=!1,this.szAudioStorageUUID="",this.aWndList[n]._bpsCalculator=null,this.aWndList[n]._bpsInfo={lastVideoBytes:0,bps_video:0,data_updated_time:0,time_gap_factor:1},this.aWndList[n]._emiter=new f.default;this._browserInfo=new v.default,this._supportInfo=this._support(),console.log("Support: ",this._supportInfo),this._decoderVersion=this._supportInfo["decoder2.0"]?"2":"1","2"!==this._decoderVersion||b||w||(e=this.options.szBasePath+"playctrl2/Decoder.js",(t=document.createElement("script")).type="text/javascript",t.src=e,w=!0,t.onload=function(){window.JSPlayerModule().then(function(e){b=e,console.info("[debug] %c"+(0,_.default)().format("YYYY-MM-DD HH:mm:ss.SSS")+"%c JSDecoder2.0 load end ","color: blue","color: black")})},document.body.appendChild(t)),this.oDrawCanvas=new l.ESCanvas("canvas_draw0"),this._initEvent(),this.oEventCallback.windowEventSelect(0),this._dealWndSelect(0)}t.JSPlugin=a},function(e,t,n){n(68),n(28),n(38),n(241),n(249),n(250),e.exports=n(3).Promise},function(e,t,n){var s=n(43),o=n(44);e.exports=function(r){return function(e,t){var n,i=String(o(e)),a=s(t),e=i.length;return a<0||e<=a?r?"":void 0:(t=i.charCodeAt(a))<55296||56319<t||a+1===e||(n=i.charCodeAt(a+1))<56320||57343<n?r?i.charAt(a):t:r?i.slice(a,a+2):n-56320+(t-55296<<10)+65536}}},function(e,t,n){"use strict";var i=n(47),a=n(30),r=n(37),s={};n(17)(s,n(7)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(s,{next:a(1,n)}),r(e,t+" Iterator")}},function(e,t,n){var s=n(12),o=n(10),u=n(31);e.exports=n(13)?Object.defineProperties:function(e,t){o(e);for(var n,i=u(t),a=i.length,r=0;r<a;)s.f(e,n=i[r++],t[n]);return e}},function(e,t,n){var u=n(19),d=n(48),l=n(237);e.exports=function(o){return function(e,t,n){var i,a=u(e),r=d(a.length),s=l(n,r);if(o&&t!=t){for(;s<r;)if((i=a[s++])!=i)return!0}else for(;s<r;s++)if((o||s in a)&&a[s]===t)return o||s||0;return!o&&-1}}},function(e,t,n){var i=n(43),a=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?a(e+t,0):r(e,t)}},function(e,t,n){"use strict";var i=n(239),a=n(240),r=n(24),s=n(19);e.exports=n(69)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,a(1)):a(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";function i(){}function h(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t}function a(l,t){var n;l._n||(l._n=!0,n=l._c,S(function(){for(var u=l._v,d=1==l._s,e=0;n.length>e;)!function(e){var t,n,i,a=d?e.ok:e.fail,r=e.resolve,s=e.reject,o=e.domain;try{a?(d||(2==l._h&&H(l),l._h=1),!0===a?t=u:(o&&o.enter(),t=a(u),o&&(o.exit(),i=!0)),t===e.promise?s(Y("Promise-chain cycle")):(n=h(t))?n.call(t,r,s):r(t)):s(u)}catch(e){o&&!i&&o.exit(),s(e)}}(n[e++]);l._c=[],l._n=!1,t&&!l._h&&O(l)}))}function r(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),a(t,!0))}var s,o,u,d,l=n(29),c=n(6),_=n(22),f=n(52),m=n(8),p=n(16),y=n(35),v=n(242),g=n(243),M=n(78),L=n(79).set,S=n(245)(),k=n(54),w=n(80),b=n(246),D=n(81),T="Promise",Y=c.TypeError,E=c.process,P=E&&E.versions,C=P&&P.v8||"",A=c[T],x="process"==f(E),R=o=k.f,f=!!function(){try{var e=A.resolve(1),t=(e.constructor={})[n(7)("species")]=function(e){e(i,i)};return(x||"function"==typeof PromiseRejectionEvent)&&e.then(i)instanceof t&&0!==C.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(e){}}(),O=function(a){L.call(c,function(){var e,t,n=a._v,i=I(a);if(i&&(e=w(function(){x?E.emit("unhandledRejection",n,a):(t=c.onunhandledrejection)?t({promise:a,reason:n}):(t=c.console)&&t.error&&t.error("Unhandled promise rejection",n)}),a._h=x||I(a)?2:1),a._a=void 0,i&&e.e)throw e.v})},I=function(e){return 1!==e._h&&0===(e._a||e._c).length},H=function(t){L.call(c,function(){var e;x?E.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},W=function(e){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===e)throw Y("Promise can't be resolved itself");(n=h(e))?S(function(){var t={_w:i,_d:!1};try{n.call(e,_(W,t,1),_(r,t,1))}catch(e){r.call(t,e)}}):(i._v=e,i._s=1,a(i,!1))}catch(e){r.call({_w:i,_d:!1},e)}}};f||(A=function(e){v(this,A,T,"_h"),y(e),s.call(this);try{e(_(W,this,1),_(r,this,1))}catch(e){r.call(this,e)}},(s=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(247)(A.prototype,{then:function(e,t){var n=R(M(this,A));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=x?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&a(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),u=function(){var e=new s;this.promise=e,this.resolve=_(W,e,1),this.reject=_(r,e,1)},k.f=R=function(e){return e===A||e===d?new u:o(e)}),m(m.G+m.W+m.F*!f,{Promise:A}),n(37)(A,T),n(248)(T),d=n(3)[T],m(m.S+m.F*!f,T,{reject:function(e){var t=R(this);return(0,t.reject)(e),t.promise}}),m(m.S+m.F*(l||!f),T,{resolve:function(e){return D(l&&this===d?A:this,e)}}),m(m.S+m.F*!(f&&n(82)(function(e){A.all(e).catch(i)})),T,{all:function(e){var s=this,t=R(s),o=t.resolve,u=t.reject,n=w(function(){var i=[],a=0,r=1;g(e,!1,function(e){var t=a++,n=!1;i.push(void 0),r++,s.resolve(e).then(function(e){n||(n=!0,i[t]=e,--r||o(i))},u)}),--r||o(i)});return n.e&&u(n.v),t.promise},race:function(e){var t=this,n=R(t),i=n.reject,a=w(function(){g(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return a.e&&i(a.v),n.promise}})},function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var h=n(22),c=n(76),_=n(77),f=n(10),m=n(48),p=n(53),y={},v={};(t=e.exports=function(e,t,n,i,a){var r,s,o,u,a=a?function(){return e}:p(e),d=h(n,i,t?2:1),l=0;if("function"!=typeof a)throw TypeError(e+" is not iterable!");if(_(a)){for(r=m(e.length);l<r;l++)if((u=t?d(f(s=e[l])[0],s[1]):d(e[l]))===y||u===v)return u}else for(o=a.call(e);!(s=o.next()).done;)if((u=c(o,d,s.value,t))===y||u===v)return u}).BREAK=y,t.RETURN=v},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var o=n(6),u=n(79).set,d=o.MutationObserver||o.WebKitMutationObserver,l=o.process,h=o.Promise,c="process"==n(32)(l);e.exports=function(){function e(){var e,t;for(c&&(e=l.domain)&&e.exit();n;){t=n.fn,n=n.next;try{t()}catch(e){throw n?a():i=void 0,e}}i=void 0,e&&e.enter()}var n,i,t,a,r,s;return a=c?function(){l.nextTick(e)}:!d||o.navigator&&o.navigator.standalone?h&&h.resolve?(t=h.resolve(void 0),function(){t.then(e)}):function(){u.call(o,e)}:(r=!0,s=document.createTextNode(""),new d(e).observe(s,{characterData:!0}),function(){s.data=r=!r}),function(e){e={fn:e,next:void 0};i&&(i.next=e),n||(n=e,a()),i=e}}},function(e,t,n){n=n(6).navigator;e.exports=n&&n.userAgent||""},function(e,t,n){var a=n(17);e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:a(e,i,t[i]);return e}},function(e,t,n){"use strict";var i=n(6),a=n(3),r=n(12),s=n(13),o=n(7)("species");e.exports=function(e){e=("function"==typeof a[e]?a:i)[e];s&&e&&!e[o]&&r.f(e,o,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var i=n(8),a=n(3),r=n(6),s=n(78),o=n(81);i(i.P+i.R,"Promise",{finally:function(t){var n=s(this,a.Promise||r.Promise),e="function"==typeof t;return this.then(e?function(e){return o(n,t()).then(function(){return e})}:t,e?function(e){return o(n,t()).then(function(){throw e})}:t)}})},function(e,t,n){"use strict";var i=n(8),a=n(54),r=n(80);i(i.S,"Promise",{try:function(e){var t=a.f(this),e=r(e);return(e.e?t.reject:t.resolve)(e.v),t.promise}})},function(e,t,n){e.exports={default:n(252),__esModule:!0}},function(e,t,n){n(253);var i=n(3).Object;e.exports=function(e,t,n){return i.defineProperty(e,t,n)}},function(e,t,n){var i=n(8);i(i.S+i.F*!n(13),"Object",{defineProperty:n(12).f})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamClient=void 0;var d=_(n(15)),i=_(n(1)),a=_(n(2)),r=_(n(84)),s=n(257),o=n(258),u=n(260),l=n(274),h=(_(n(0)),_(n(11))),M=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(n(61)),c=_(n(223));function _(e){return e&&e.__esModule?e:{default:e}}var f,L,S,k,w,b,a=(f=new s.DirectDeviceCustom,L=new o.DirectDevice,S=new u.LiveMedia,k=new l.LocalService,(w=!(b=6e3),a.default)(m,[{key:"openStream",value:function(e,h,c,t){var _=this,n=!1;-1<e.indexOf("[")&&(n=!0);var i=e.split("://"),e=i[0],f="",m=7681,p=1,y=0,y=n?(f=i[1].split("]:")[0]+"]",m=Math.floor(i[1].split("]:")[1].split("/")[0]),p=Math.floor(i[1].split("]:")[1].split("/")[1]/100),Math.floor(i[1].split("]:")[1].split("/")[1]%100)-1):(f=i[1].split(":")[0],m=Math.floor(i[1].split(":")[1].split("/")[0]),p=Math.floor(i[1].split(":")[1].split("/")[1]/100),Math.floor(i[1].split(":")[1].split("/")[1]%100)-1);0===p&&(y=0);n="&sessionID=";(h=h||{}).token&&!h.playURL&&(n="&token=");var i=h.sessionID||h.session||(h.playURL?"":h.token)||"",v=new window.WebSocket(e+"://"+f+":"+m+(h.mode?"/"+h.mode:"")+"?version="+this.szProtocolVersion+"&cipherSuites="+this.iCiphersuites+n+i+(h.proxy?"&proxy="+h.proxy:""));v.binaryType="arraybuffer";var g=r.default.v4();return new d.default(function(d,l){setTimeout(function(){_.isConnect||(v.close(1e3,"CLOSE"),l())},b),v.onopen=function(){_.isConnect=!0,_._log.D("websocket onopen")},v.onmessage=function(e){if("string"==typeof e.data){var t,n=_.getIndex(g),i=JSON.parse(e.data);return(i&&i.hasOwnProperty("statusCode")&&(0===i.statusCode?-1===n?d():_.aWebsocket[n].resolve():-1===n?l(i):_.aWebsocket[n].reject(i)),!w&&i.cmd&&"end"===i.cmd)?(w=!0,_._log.D("回放结束,媒体流关闭"),void c({cmd:"end"})):i&&i.version&&i.cipherSuite?(_._log.D("websocket onmessage: PKD",i),_.szProtocolVersion=i.version,_.iCiphersuites=parseInt(i.cipherSuite,10),i&&i.PKD&&i.rand?_.aWebsocket.push(S.createClientObject(v,g,i.PKD,i.rand,h)):(t="live://"+f+":"+m+"/"+p+"/"+y,-1===_.iCiphersuites?_.aWebsocket.push(k.createClientObject(v,g,t,h)):_.aWebsocket.push(L.createClientObject(v,g,t))),void d(g)):void(i&&i.sdp&&(_._log.D("websocket onmessage: sdp",i),n=L.getMediaFromSdp(i.sdp),t=L.getSdpParams(i.sdp),a=L.getSDPInfo(i.sdp),c({bHead:!0,oParams:t,buf:n,iClockFrequency:a.iClockFrequency,iCurrentTime:a.iCurrentTime}),-1!==(a=_.aWebsocket.findIndex(function(e){return e.id===g}))&&_.aWebsocket[a].resolve()))}var a={},r=e.data;if(64===r.byteLength||40===r.byteLength){for(var s=-1,o=r.byteLength,u=0;u<o;u++)if(73===r[u]&&77===r[u+1]&&75===r[u+2]&&72===r[u+3]){s=u;break}a=-1!==s?{bHead:!0,buf:r.slice(s,s+40)}:{bHead:!1,buf:r}}else a={bHead:!1,buf:r};c(a),e=a=r=null},v.onclose=function(e){var t;1e3!==e.code&&1005!==e.code||-1!==(t=_.aWebsocket.findIndex(function(e){return e.id===g}))&&(_._log.I("Stream closed",e),_.aWebsocket[t].resolve(),_.aWebsocket.splice(t,1))},v.onerror=function(e){_._log.E(M.ERR_STREAM_WS_ERROR)}})}},{key:"startPlay",value:function(e,i,a,r){var s=this;w=!1;var o=this.getIndex(e);return i&&a&&"0.1"===this.szProtocolVersion&&(i=i.replace("-","").replace(":",""),a=a.replace("-","").replace(":","")),new d.default(function(e,t){if(-1<o){s.aWebsocket[o].resolve=e,s.aWebsocket[o].reject=t;var n=null;i&&a?"0.1"!==s.szProtocolVersion?0===s.iCiphersuites?n=S.playbackCmd(s.aWebsocket[o],i,a):1===s.iCiphersuites?n=L.playbackCmd(i,a,s.aWebsocket[o].playURL):-1===s.iCiphersuites&&(n=k.playbackCmd(s.aWebsocket[o],i,a)):n=f.playbackCmd(i,a,s.aWebsocket[o].iCurChannel,s.aWebsocket[o].iCurStream):0===s.aWebsocket[o].iCurChannel&&"0.1"===s.szProtocolVersion?n=f.zeroPlayCmd(s.aWebsocket[o].iCurChannel,s.aWebsocket[o].iCurStream):"0.1"!==s.szProtocolVersion?0===s.iCiphersuites?n=S.playCmd(s.aWebsocket[o],r):1===s.iCiphersuites?n=L.playCmd(s.aWebsocket[o].playURL):-1===s.iCiphersuites&&(n=k.playCmd(s.aWebsocket[o])):n=f.playCmd(s.aWebsocket[o].iCurChannel,s.aWebsocket[o].iCurStream);try{s.aWebsocket[o].socket.send(n)}catch(e){s._log.E(M.ERR_STREAM_CMD_FAILED),t(e)}"0.1"===s.szProtocolVersion&&e()}else"0.1"===s.szProtocolVersion&&t()})}},{key:"singleFrame",value:function(){}},{key:"setPlayRate",value:function(r,s){var o=this;return new d.default(function(e,t){for(var n=0,i=o.aWebsocket.length;n<i;n++)if(o.aWebsocket[n].id===r){if("0.1"===o.szProtocolVersion){var a=f.playRateCmd(s);o.aWebsocket[n].socket.send(a),e();break}o.aWebsocket[n].resolve=e,o.aWebsocket[n].reject=t;a=L.playRateCmd(s);o.aWebsocket[n].socket.send(a)}})}},{key:"seek",value:function(r,s,o){var u=this;return new d.default(function(e,t){for(var n,i=0,a=u.aWebsocket.length;i<a;i++)u.aWebsocket[i].id===r&&(u.aWebsocket[i].resolve=e,u.aWebsocket[i].reject=t,n=S.seekCmd(s,o),u.aWebsocket[i].socket.send(n))})}},{key:"pause",value:function(r){var s=this;return new d.default(function(e,t){for(var n=0,i=s.aWebsocket.length;n<i;n++)if(s.aWebsocket[n].id===r){if("0.1"===s.szProtocolVersion){var a=f.pauseCmd();s.aWebsocket[n].socket.send(a),e();break}s.aWebsocket[n].resolve=e,s.aWebsocket[n].reject=t;a=L.pauseCmd();s.aWebsocket[n].socket.send(a)}})}},{key:"transmission",value:function(a,r){var s=this;return new d.default(function(e,t){for(var n=0,i=s.aWebsocket.length;n<i;n++)s.aWebsocket[n].id===a&&(s.aWebsocket[n].resolve=e,s.aWebsocket[n].reject=t,s.aWebsocket[n].socket.send(r))})}},{key:"resume",value:function(r){var s=this;return new d.default(function(e,t){for(var n=0,i=s.aWebsocket.length;n<i;n++)if(s.aWebsocket[n].id===r){if("0.1"===s.szProtocolVersion){var a=f.resumeCmd();s.aWebsocket[n].socket.send(a),e();break}s.aWebsocket[n].resolve=e,s.aWebsocket[n].reject=t;a=L.resumeCmd();s.aWebsocket[n].socket.send(a)}})}},{key:"stop",value:function(a){var r=this;return new d.default(function(e,t){var n=r.aWebsocket.find(function(e){return e.id===a});if(!n)return r._log.E(M.ERR_STREAM_WS_UNFIND+": can't find related websocket, check the index."),t(M.ERR_STREAM_WS_UNFIND);if(1!==n.socket.readyState)return r._log.E(M.ERR_STREAM_WS_UNCONNECT+": websocket is not connect, check the index."),t(M.ERR_STREAM_WS_UNCONNECT);try{n.resolve=e;var i=S.stopCmd();n.socket.send(i),n.stoping=!0,e()}catch(e){r._log.E(M.ERR_STREAM_CMD_FAILED+": send signalCmd to websocket failed."),t(M.ERR_STREAM_CMD_FAILED)}})}},{key:"stopAll",value:function(){for(var e=0,t=this.aWebsocket.length;e<t;e++)this.aWebsocket[e].socket.close(1e3,"CLOSE"),this.aWebsocket[e].stoping=!0}},{key:"setTimeOut",value:function(n){return new d.default(function(e,t){b=1e3*n,e()})}}]),m);function m(e){var a=this;(0,i.default)(this,m),this.TAG="StreamClient",this._config=e,this._log=new c.default(this),this._emiter=new h.default,this.szProtocolVersion="0.1",this.iCiphersuites=0,this.aWebsocket=[],this.ERRORS={},this.getIndex=function(e){for(var t=-1,n=0,i=a.aWebsocket.length;n<i;n++)if(a.aWebsocket[n].id===e){t=n;break}return t},this.isConnect=!1}t.StreamClient=a},function(e,t,n){var l,h,c=n(85),_=n(86),f=0,m=0;e.exports=function(e,t,n){var i=t&&n||0,a=t||[],r=(e=e||{}).node||l,s=void 0!==e.clockseq?e.clockseq:h;null!=r&&null!=s||(u=c(),null==r&&(r=l=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=h=16383&(u[6]<<8|u[7])));var o=void 0!==e.msecs?e.msecs:(new Date).getTime(),n=void 0!==e.nsecs?e.nsecs:m+1,u=o-f+(n-m)/1e4;if(u<0&&void 0===e.clockseq&&(s=s+1&16383),1e4<=(n=(u<0||f<o)&&void 0===e.nsecs?0:n))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f=o,h=s,n=(1e4*(268435455&(o+=122192928e5))+(m=n))%4294967296,a[i++]=n>>>24&255,a[i++]=n>>>16&255,a[i++]=n>>>8&255,a[i++]=255&n,o=o/4294967296*1e4&268435455,a[i++]=o>>>8&255,a[i++]=255&o,a[i++]=o>>>24&15|16,a[i++]=o>>>16&255,a[i++]=s>>>8|128,a[i++]=255&s;for(var d=0;d<6;++d)a[i+d]=r[d];return t||_(a)}},function(e,t,n){var s=n(85),o=n(86);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||s)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var r=0;r<16;++r)t[i+r]=a[r];return t||o(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectDeviceCustom=void 0;var i=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}(0,a(n(2)).default)(r,[{key:"createClientObject",value:function(e,t,n,i){return{socket:e,id:t,iCurChannel:n,iCurStream:i,resolve:null,reject:null,stoping:!1}}},{key:"zeroPlayCmd",value:function(e,t){return new Uint8Array([0,0,0,44,0,0,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,e+1,0,0,0,t,0,0,4,0])}},{key:"playCmd",value:function(e,t){return new Uint8Array([0,0,0,44,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,e,0,0,0,t,0,0,4,0])}},{key:"playbackCmd",value:function(e,t,n,i){var a=e.split("T")[0],r=e.split("T")[1],s="0"+parseInt(a.substring(0,4),10).toString(16),o=parseInt(a.substring(4,6),10),u=parseInt(a.substring(6),10),d=parseInt(r.substring(0,2),10),l=parseInt(r.substring(2,4),10),h=parseInt(r.substring(4,6),10),c=t.split("T")[0],e=t.split("T")[1],a="0"+parseInt(c.substring(0,4),10).toString(16),r=parseInt(c.substring(4,6),10),t=parseInt(e.substring(0,2),10),c=parseInt(e.substring(2,4),10),e=parseInt(e.substring(4,6),10),i=[0,0,0,96,0,0,0,0,0,0,0,0,0,3,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n,0,0,parseInt(s.substring(0,2),16),parseInt(s.substring(2,4),16),0,0,0,o,0,0,0,u,0,0,0,d,0,0,0,l,0,0,0,h,0,0,parseInt(a.substring(0,2),16),parseInt(a.substring(2,4),16),0,0,0,r,0,0,0,u,0,0,0,t,0,0,0,c,0,0,0,e,0,0,0,0,0,0,0,0,i,0,0,0];return new Uint8Array(i)}},{key:"playRateCmd",value:function(e){for(var t=(parseInt(e,10)>>>0).toString(16).toLocaleUpperCase().toString(16),n=t.length;n<8;n++)t="0"+t;for(var i=[0,0,0,0],a=0,r=t.length;a<r;a+=2)i[Math.floor(a/2)]=parseInt(t.substring(a,a+2),16);e=[0,0,0,36,0,0,0,0,0,0,0,0,0,3,1,47,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i[0],i[1],i[2],i[3]];return new Uint8Array(e)}},{key:"pauseCmd",value:function(){return new Uint8Array([0,0,0,32,0,0,0,0,0,0,0,0,0,3,1,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])}},{key:"resumeCmd",value:function(){return new Uint8Array([0,0,0,32,0,0,0,0,0,0,0,0,0,3,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])}}]),n=r;function r(){(0,i.default)(this,r)}t.DirectDeviceCustom=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectDevice=void 0;var i=r(n(56)),a=r(n(1));function r(e){return e&&e.__esModule?e:{default:e}}(0,r(n(2)).default)(s,[{key:"createClientObject",value:function(e,t,n){return{socket:e,id:t,playURL:n,resolve:null,reject:null,stoping:!1}}},{key:"getMediaFromSdp",value:function(e){for(var t=e.indexOf("MEDIAINFO=")+10,n=e.slice(t,t+80),i=[],a=0,r=n.length/2;a<r;a++)i[a]=parseInt(n.slice(2*a,2*a+2),16);return new Uint8Array(i)}},{key:"sdpParamsReverse",value:function(e){for(var t=[],n=0,i=e.length/2;n<i;n++)t[n]=e.slice(2*n,2*n+2);return t=parseInt(t.reverse().join(""),16)}},{key:"getSdpParams",value:function(e){var t=e.indexOf("MEDIAINFO=")+10,t=e.slice(t,t+80),n=this.sdpParamsReverse(t.slice(24,28)),i=this.sdpParamsReverse(t.slice(40,48)),a=this.sdpParamsReverse(t.slice(32,40)),r=parseInt(t.slice(30,32),16),s=parseInt(t.slice(29,30),16);switch(n){case 28945:case 49154:n=1,0===i&&(i=64e3),0===a&&(a=8e3),0===r&&(r=16),0===s&&(s=1);break;case 28944:case 49153:n=2,0===i&&(i=64e3),0===a&&(a=8e3),0===r&&(r=16),0===s&&(s=1);break;case 29217:case 49155:n=3,0===i&&(i=16e3),0===a&&(a=16e3),0===r&&(r=16),0===s&&(s=1);break;case 29280:case 29282:case 49156:n=4,0===i&&(i=16e3),0===a&&(a=8e3),0===r&&(r=16),0===s&&(s=1);break;case 8193:case 49157:n=6,0===i&&(i=32e3),0===a&&(a=16e3),0===r&&(r=16),0===s&&(s=1)}return{iAudioType:n,iAudioBitRate:i,iAudioSamplingRate:a,iAudioBitWidth:r,iChannel:s}}},{key:"getSDPInfo",value:function(e){var t=e.indexOf("rtpmap:96 H264/")+15,n=e.slice(t,t+5),i=parseInt(n,10),n=e.indexOf("o=- ")+4,n=e.slice(n,n+16),t=parseInt(n,10)/1e3,n=60*(new Date).getTimezoneOffset()*1e3;return{iClockFrequency:i,iCurrentTime:Math.floor(t+n)}}},{key:"playCmd",value:function(e){return(0,i.default)({sequence:0,cmd:"realplay",url:e})}},{key:"playbackCmd",value:function(e,t,n){return(0,i.default)({sequence:0,cmd:"playback",url:n,startTime:e,endTime:t})}},{key:"playRateCmd",value:function(e){return(0,i.default)({sequence:0,cmd:"speed",rate:e})}},{key:"pauseCmd",value:function(){return(0,i.default)({sequence:0,cmd:"pause"})}},{key:"resumeCmd",value:function(){return(0,i.default)({sequence:0,cmd:"resume"})}}]),n=s;function s(){(0,a.default)(this,s)}t.DirectDevice=n},function(e,t,n){var n=n(3),i=n.JSON||(n.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LiveMedia=void 0;var i=u(n(56)),a=u(n(1)),r=u(n(2)),s=u(n(261)),o=u(n(273));function u(e){return e&&e.__esModule?e:{default:e}}(0,r.default)(d,[{key:"createClientObject",value:function(e,t,n,i,a){var r=o.default.AES.encrypt((new Date).getTime().toString(),o.default.enc.Hex.parse("1234567891234567123456789123456712345678912345671234567891234567"),{mode:o.default.mode.CBC,iv:o.default.enc.Hex.parse("12345678912345671234567891234567"),padding:o.default.pad.Pkcs7}).ciphertext.toString();r.length<64&&(r+=r);var s=o.default.AES.encrypt((new Date).getTime().toString(),o.default.enc.Hex.parse("12345678912345671234567891234567"),{mode:o.default.mode.CBC,iv:o.default.enc.Hex.parse("12345678912345671234567891234567"),padding:o.default.pad.Pkcs7}).ciphertext.toString();return{socket:e,id:t,PKD:n,rand:i,playURL:a.playURL||"",auth:a.auth||"",token:a.token||"",key:r,iv:s,resolve:null,reject:null,stoping:!1}}},{key:"playCmd",value:function(e,t){e={sequence:0,cmd:t||"realplay",url:e.playURL,key:s.default.encrypt(e.iv+":"+e.key,e.PKD).cipher.split("?")[0],authorization:o.default.AES.encrypt(e.rand+":"+e.auth,o.default.enc.Hex.parse(e.key),{mode:o.default.mode.CBC,iv:o.default.enc.Hex.parse(e.iv),padding:o.default.pad.Pkcs7}).ciphertext.toString(),token:o.default.AES.encrypt(e.token,o.default.enc.Hex.parse(e.key),{mode:o.default.mode.CBC,iv:o.default.enc.Hex.parse(e.iv),padding:o.default.pad.Pkcs7}).ciphertext.toString()};return(0,i.default)(e)}},{key:"playbackCmd",value:function(e,t,n){n={sequence:0,cmd:"playback",url:e.playURL,key:s.default.encrypt(e.iv+":"+e.key,e.PKD).cipher.split("?")[0],authorization:o.default.AES.encrypt(e.rand+":"+e.auth,o.default.enc.Hex.parse(e.key),{mode:o.default.mode.CBC,iv:o.default.enc.Hex.parse(e.iv),padding:o.default.pad.Pkcs7}).ciphertext.toString(),token:o.default.AES.encrypt(e.token,o.default.enc.Hex.parse(e.key),{mode:o.default.mode.CBC,iv:o.default.enc.Hex.parse(e.iv),padding:o.default.pad.Pkcs7}).ciphertext.toString(),startTime:t,endTime:n};return(0,i.default)(n)}},{key:"seekCmd",value:function(e,t){return(0,i.default)({sequence:0,cmd:"seek",startTime:e,endTime:t})}},{key:"stopCmd",value:function(){return(0,i.default)({sequence:0,cmd:"stop"})}}]),r=d;function d(){(0,a.default)(this,d)}t.LiveMedia=r},function(e,t,n){"use strict";var a,r=n(9),s=(a=r)&&a.__esModule?a:{default:a};var o="Netscape",u=40;function m(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function p(){return new m(null)}n="Microsoft Internet Explorer"==o?(m.prototype.am=function(e,t,n,i,a,r){var s=32767&t;for(t>>=15;0<=--r;){var o=32767&this[e],u=this[e++]>>15,d=t*o+u*s,a=((o=s*o+((32767&d)<<15)+n[i]+(1073741823&a))>>>30)+(d>>>15)+t*u+(a>>>30);n[i++]=1073741823&o}return a},30):"Netscape"!=o?(m.prototype.am=function(e,t,n,i,a,r){for(;0<=--r;){var s=t*this[e++]+n[i]+a,a=Math.floor(s/67108864);n[i++]=67108863&s}return a},26):(m.prototype.am=function(e,t,n,i,a,r){var s=16383&t;for(t>>=14;0<=--r;){var o=16383&this[e],u=this[e++]>>14,d=t*o+u*s,a=((o=s*o+((16383&d)<<14)+n[i]+a)>>28)+(d>>14)+t*u;n[i++]=268435455&o}return a},28),m.prototype.DB=n,m.prototype.DM=(1<<n)-1,m.prototype.DV=1<<n;m.prototype.FV=Math.pow(2,52),m.prototype.F1=52-n,m.prototype.F2=2*n-52;for(var d="0123456789abcdefghijklmnopqrstuvwxyz",l=[],h="0".charCodeAt(0),c=0;c<=9;++c)l[h++]=c;for(h="a".charCodeAt(0),c=10;c<36;++c)l[h++]=c;for(h="A".charCodeAt(0),c=10;c<36;++c)l[h++]=c;function _(e){return d.charAt(e)}function f(e,t){t=l[e.charCodeAt(t)];return null==t?-1:t}function y(e){var t=p();return t.fromInt(e),t}function g(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),e>>1!=0&&(n+=1),n}function M(e){this.m=e}function L(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function S(e,t){return e&t}function k(e,t){return e|t}function w(e,t){return e^t}function b(e,t){return e&~t}function D(){}function T(e){return e}function Y(e){this.r2=p(),this.q3=p(),m.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}M.prototype.convert=function(e){return e.s<0||0<=e.compareTo(this.m)?e.mod(this.m):e},M.prototype.revert=function(e){return e},M.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},M.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},M.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},L.prototype.convert=function(e){var t=p();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&0<t.compareTo(m.ZERO)&&this.m.subTo(t,t),t},L.prototype.revert=function(e){var t=p();return e.copyTo(t),this.reduce(t),t},L.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],i=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,i,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),0<=e.compareTo(this.m)&&e.subTo(this.m,e)},L.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},L.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},m.prototype.copyTo=function(e){for(var t=this.t-1;0<=t;--t)e[t]=this[t];e.t=this.t,e.s=this.s},m.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,0<e?this[0]=e:e<-1?this[0]=e+DV:this.t=0},m.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.s=this.t=0;for(var i=e.length,a=!1,r=0;0<=--i;){var s=8==n?255&e[i]:f(e,i);s<0?"-"==e.charAt(i)&&(a=!0):(a=!1,0==r?this[this.t++]=s:r+n>this.DB?(this[this.t-1]|=(s&(1<<this.DB-r)-1)<<r,this[this.t++]=s>>this.DB-r):this[this.t-1]|=s<<r,(r+=n)>=this.DB&&(r-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,0<r&&(this[this.t-1]|=(1<<this.DB-r)-1<<r)),this.clamp(),a&&m.ZERO.subTo(this,this)},m.prototype.clamp=function(){for(var e=this.s&this.DM;0<this.t&&this[this.t-1]==e;)--this.t},m.prototype.dlShiftTo=function(e,t){for(var n=this.t-1;0<=n;--n)t[n+e]=this[n];for(n=e-1;0<=n;--n)t[n]=0;t.t=this.t+e,t.s=this.s},m.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},m.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,i=this.DB-n,a=(1<<i)-1,r=Math.floor(e/this.DB),s=this.s<<n&this.DM,o=this.t-1;0<=o;--o)t[o+r+1]=this[o]>>i|s,s=(this[o]&a)<<n;for(o=r-1;0<=o;--o)t[o]=0;t[r]=s,t.t=this.t+r+1,t.s=this.s,t.clamp()},m.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var i=e%this.DB,a=this.DB-i,r=(1<<i)-1;t[0]=this[n]>>i;for(var s=n+1;s<this.t;++s)t[s-n-1]|=(this[s]&r)<<a,t[s-n]=this[s]>>i;0<i&&(t[this.t-n-1]|=(this.s&r)<<a),t.t=this.t-n,t.clamp()}},m.prototype.subTo=function(e,t){for(var n=0,i=0,a=Math.min(e.t,this.t);n<a;)i+=this[n]-e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i-=e.s;n<this.t;)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<e.t;)i-=e[n],t[n++]=i&this.DM,i>>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[n++]=this.DV+i:0<i&&(t[n++]=i),t.t=n,t.clamp()},m.prototype.multiplyTo=function(e,t){var n=this.abs(),i=e.abs(),a=n.t;for(t.t=a+i.t;0<=--a;)t[a]=0;for(a=0;a<i.t;++a)t[a+n.t]=n.am(0,i[a],t,a,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&m.ZERO.subTo(t,t)},m.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;0<=--n;)e[n]=0;for(n=0;n<t.t-1;++n){var i=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,i,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}0<e.t&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},m.prototype.divRemTo=function(e,t,n){var i=e.abs();if(!(i.t<=0)){var a=this.abs();if(a.t<i.t)null!=t&&t.fromInt(0),null!=n&&this.copyTo(n);else{null==n&&(n=p());var r=p(),s=this.s,e=e.s,o=this.DB-g(i[i.t-1]);if(0<o?(i.lShiftTo(o,r),a.lShiftTo(o,n)):(i.copyTo(r),a.copyTo(n)),0!=(a=r[(i=r.t)-1])){var u=a*(1<<this.F1)+(1<i?r[i-2]>>this.F2:0),d=this.FV/u,u=(1<<this.F1)/u,l=1<<this.F2,h=n.t,c=h-i,_=null==t?p():t;for(r.dlShiftTo(c,_),0<=n.compareTo(_)&&(n[n.t++]=1,n.subTo(_,n)),m.ONE.dlShiftTo(i,_),_.subTo(r,r);r.t<i;)r[r.t++]=0;for(;0<=--c;){var f=n[--h]==a?this.DM:Math.floor(n[h]*d+(n[h-1]+l)*u);if((n[h]+=r.am(0,f,n,c,0,i))<f)for(r.dlShiftTo(c,_),n.subTo(_,n);n[h]<--f;)n.subTo(_,n)}null!=t&&(n.drShiftTo(i,t),s!=e&&m.ZERO.subTo(t,t)),n.t=i,n.clamp(),0<o&&n.rShiftTo(o,n),s<0&&m.ZERO.subTo(n,n)}}}},m.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return 0<(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)?this.DV-t:-t},m.prototype.isEven=function(){return 0==(0<this.t?1&this[0]:this.s)},m.prototype.exp=function(e,t){if(4294967295<e||e<1)return m.ONE;var n,i=p(),a=p(),r=t.convert(this),s=g(e)-1;for(r.copyTo(i);0<=--s;)t.sqrTo(i,a),0<(e&1<<s)?t.mulTo(a,r,i):(n=i,i=a,a=n);return t.revert(i)},m.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);if(16==e)e=4;else if(8==e)e=3;else if(2==e)e=1;else if(32==e)e=5;else if(64==e)e=6;else{if(4!=e)return this.toRadix(e);e=2}var t,n=(1<<e)-1,i=!1,a="",r=this.t,s=this.DB-r*this.DB%e;if(0<r--)for(s<this.DB&&0<(t=this[r]>>s)&&(i=!0,a=_(t));0<=r;)s<e?(t=(this[r]&(1<<s)-1)<<e-s,t|=this[--r]>>(s+=this.DB-e)):(t=this[r]>>(s-=e)&n,s<=0&&(s+=this.DB,--r)),(i=0<t?!0:i)&&(a+=_(t));return i?a:"0"},m.prototype.negate=function(){var e=p();return m.ZERO.subTo(this,e),e},m.prototype.abs=function(){return this.s<0?this.negate():this},m.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return t;for(;0<=--n;)if(0!=(t=this[n]-e[n]))return t;return 0},m.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+g(this[this.t-1]^this.s&this.DM)},m.prototype.mod=function(e){var t=p();return this.abs().divRemTo(e,null,t),this.s<0&&0<t.compareTo(m.ZERO)&&e.subTo(t,t),t},m.prototype.modPowInt=function(e,t){return t=new(e<256||t.isEven()?M:L)(t),this.exp(e,t)},m.ZERO=y(0),m.ONE=y(1),D.prototype.convert=T,D.prototype.revert=T,D.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},D.prototype.sqrTo=function(e,t){e.squareTo(t)},Y.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=p();return e.copyTo(t),this.reduce(t),t},Y.prototype.revert=function(e){return e},Y.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);0<=e.compareTo(this.m);)e.subTo(this.m,e)},Y.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},Y.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var E,P,C,A,x,R=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],O=67108864/R[R.length-1];function I(e){var t,n,o=this,i=e.length,a=0,r=o.i=o.j=o.m=0;for(o.S=[],o.c=[],i||(e=[i++]);a<256;)o.S[a]=a++;for(a=0;a<256;a++)r=r+(t=o.S[a])+e[a%i]&255,n=o.S[r],o.S[a]=n,o.S[r]=t;o.g=function(e){var t=o.S,n=o.i+1&255,i=t[n],a=o.j+i&255,r=t[a];t[n]=r,t[a]=i;for(var s=t[i+r&255];--e;)r=t[a=a+(i=t[n=n+1&255])&255],t[n]=r,t[a]=i,s=256*s+t[i+r&255];return o.i=n,o.j=a,s},o.g(256)}function H(e,t,n,i){for(e+="",i=n=0;i<e.length;i++){var a=t,r=255&i,s=(n^=19*t[255&i])+e.charCodeAt(i);a[r]=255&s}for(i in e="",t)e+=String.fromCharCode(t[i]);return e}function W(){}function j(){this.j=this.i=0,this.S=[]}m.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},m.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||36<e)return"0";var t=this.chunkSize(e),n=y(t=Math.pow(e,t)),i=p(),a=p(),r="";for(this.divRemTo(n,i,a);0<i.signum();)r=(t+a.intValue()).toString(e).substr(1)+r,i.divRemTo(n,i,a);return a.intValue().toString(e)+r},m.prototype.fromRadix=function(e,t){this.fromInt(0);for(var n=this.chunkSize(t=null==t?10:t),i=Math.pow(t,n),a=!1,r=0,s=0,o=0;o<e.length;++o){var u=f(e,o);u<0?"-"==e.charAt(o)&&0==this.signum()&&(a=!0):(s=t*s+u,++r>=n&&(this.dMultiply(i),this.dAddOffset(s,0),s=r=0))}0<r&&(this.dMultiply(Math.pow(t,r)),this.dAddOffset(s,0)),a&&m.ZERO.subTo(this,this)},m.prototype.fromNumber=function(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(m.ONE.shiftLeft(e-1),k,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(m.ONE.shiftLeft(e-1),this);else{var i=7&e;(n=[]).length=1+(e>>3),t.nextBytes(n),0<i?n[0]&=(1<<i)-1:n[0]=0,this.fromString(n,256)}},m.prototype.bitwiseTo=function(e,t,n){for(var i,a=Math.min(e.t,this.t),r=0;r<a;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=a;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=a;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},m.prototype.changeBit=function(e,t){return e=m.ONE.shiftLeft(e),this.bitwiseTo(e,t,e),e},m.prototype.addTo=function(e,t){for(var n=0,i=0,a=Math.min(e.t,this.t);n<a;)i+=this[n]+e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i+=e.s;n<this.t;)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<e.t;)i+=e[n],t[n++]=i&this.DM,i>>=this.DB;i+=e.s}t.s=i<0?-1:0,0<i?t[n++]=i:i<-1&&(t[n++]=this.DV+i),t.t=n,t.clamp()},m.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},m.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},m.prototype.multiplyLowerTo=function(e,t,n){var i,a=Math.min(this.t+e.t,t);for(n.s=0,n.t=a;0<a;)n[--a]=0;for(i=n.t-this.t;a<i;++a)n[a+this.t]=this.am(0,e[a],n,a,0,this.t);for(i=Math.min(e.t,t);a<i;++a)this.am(0,e[a],n,a,0,t-a);n.clamp()},m.prototype.multiplyUpperTo=function(e,t,n){var i=n.t=this.t+e.t- --t;for(n.s=0;0<=--i;)n[i]=0;for(i=Math.max(t-this.t,0);i<e.t;++i)n[this.t+i-t]=this.am(t-i,e[i],n,0,0,this.t+i-t);n.clamp(),n.drShiftTo(1,n)},m.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(0<this.t)if(0==t)n=this[0]%e;else for(var i=this.t-1;0<=i;--i)n=(t*n+this[i])%e;return n},m.prototype.millerRabin=function(e){var t=this.subtract(m.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var i=t.shiftRight(n);R.length<(e=e+1>>1)&&(e=R.length);for(var a=p(),r=0;r<e;++r){a.fromInt(R[Math.floor(Math.random()*R.length)]);var s=a.modPow(i,this);if(0!=s.compareTo(m.ONE)&&0!=s.compareTo(t)){for(var o=1;o++<n&&0!=s.compareTo(t);)if(0==(s=s.modPowInt(2,this)).compareTo(m.ONE))return!1;if(0!=s.compareTo(t))return!1}}return!0},m.prototype.clone=function(){var e=p();return this.copyTo(e),e},m.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},m.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},m.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},m.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},m.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n,i=this.DB-e*this.DB%8,a=0;if(0<e--)for(i<this.DB&&(n=this[e]>>i)!=(this.s&this.DM)>>i&&(t[a++]=n|this.s<<this.DB-i);0<=e;)i<8?(n=(this[e]&(1<<i)-1)<<8-i,n|=this[--e]>>(i+=this.DB-8)):(n=this[e]>>(i-=8)&255,i<=0&&(i+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==a&&(128&this.s)!=(128&n)&&++a,(0<a||n!=this.s)&&(t[a++]=n);return t},m.prototype.equals=function(e){return 0==this.compareTo(e)},m.prototype.min=function(e){return this.compareTo(e)<0?this:e},m.prototype.max=function(e){return 0<this.compareTo(e)?this:e},m.prototype.and=function(e){var t=p();return this.bitwiseTo(e,S,t),t},m.prototype.or=function(e){var t=p();return this.bitwiseTo(e,k,t),t},m.prototype.xor=function(e){var t=p();return this.bitwiseTo(e,w,t),t},m.prototype.andNot=function(e){var t=p();return this.bitwiseTo(e,b,t),t},m.prototype.not=function(){for(var e=p(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},m.prototype.shiftLeft=function(e){var t=p();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},m.prototype.shiftRight=function(e){var t=p();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},m.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+function(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}(this[e]);return this.s<0?this.t*this.DB:-1},m.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=function(e){for(var t=0;0!=e;)e&=e-1,++t;return t}(this[n]^t);return e},m.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},m.prototype.setBit=function(e){return this.changeBit(e,k)},m.prototype.clearBit=function(e){return this.changeBit(e,b)},m.prototype.flipBit=function(e){return this.changeBit(e,w)},m.prototype.add=function(e){var t=p();return this.addTo(e,t),t},m.prototype.subtract=function(e){var t=p();return this.subTo(e,t),t},m.prototype.multiply=function(e){var t=p();return this.multiplyTo(e,t),t},m.prototype.divide=function(e){var t=p();return this.divRemTo(e,t,null),t},m.prototype.remainder=function(e){var t=p();return this.divRemTo(e,null,t),t},m.prototype.divideAndRemainder=function(e){var t=p(),n=p();return this.divRemTo(e,t,n),[t,n]},m.prototype.modPow=function(e,t){var n=e.bitLength(),i=y(1);if(n<=0)return i;var a=n<18?1:n<48?3:n<144?4:n<768?5:6,r=new(n<8?M:t.isEven()?Y:L)(t),s=[],o=3,u=a-1,d=(1<<a)-1;if(s[1]=r.convert(this),1<a)for(n=p(),r.sqrTo(s[1],n);o<=d;)s[o]=p(),r.mulTo(n,s[o-2],s[o]),o+=2;for(var l,h=e.t-1,c=!0,_=p(),n=g(e[h])-1;0<=h;){for(u<=n?l=e[h]>>n-u&d:(l=(e[h]&(1<<n+1)-1)<<u-n,0<h&&(l|=e[h-1]>>this.DB+n-u)),o=a;0==(1&l);)l>>=1,--o;if((n-=o)<0&&(n+=this.DB,--h),c)s[l].copyTo(i),c=!1;else{for(;1<o;)r.sqrTo(i,_),r.sqrTo(_,i),o-=2;0<o?r.sqrTo(i,_):(o=i,i=_,_=o),r.mulTo(_,s[l],i)}for(;0<=h&&0==(e[h]&1<<n);)r.sqrTo(i,_),o=i,i=_,_=o,--n<0&&(n=this.DB-1,--h)}return r.revert(i)},m.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return m.ZERO;for(var n=e.clone(),i=this.clone(),a=y(1),r=y(0),s=y(0),o=y(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),t?(a.isEven()&&r.isEven()||(a.addTo(this,a),r.subTo(e,r)),a.rShiftTo(1,a)):r.isEven()||r.subTo(e,r),r.rShiftTo(1,r);for(;i.isEven();)i.rShiftTo(1,i),t?(s.isEven()&&o.isEven()||(s.addTo(this,s),o.subTo(e,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);0<=n.compareTo(i)?(n.subTo(i,n),t&&a.subTo(s,a),r.subTo(o,r)):(i.subTo(n,i),t&&s.subTo(a,s),o.subTo(r,o))}return 0!=i.compareTo(m.ONE)?m.ZERO:0<=o.compareTo(e)?o.subtract(e):o.signum()<0?(o.addTo(e,o),o.signum()<0?o.add(e):o):o},m.prototype.pow=function(e){return this.exp(e,new D)},m.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),e=e.s<0?e.negate():e.clone();t.compareTo(e)<0&&(n=t,t=e,e=n);var n=t.getLowestSetBit(),i=e.getLowestSetBit();if(i<0)return t;for(0<(i=n<i?n:i)&&(t.rShiftTo(i,t),e.rShiftTo(i,e));0<t.signum();)0<(n=t.getLowestSetBit())&&t.rShiftTo(n,t),0<(n=e.getLowestSetBit())&&e.rShiftTo(n,e),0<=t.compareTo(e)?(t.subTo(e,t),t.rShiftTo(1,t)):(e.subTo(t,e),e.rShiftTo(1,e));return 0<i&&e.lShiftTo(i,e),e},m.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=R[R.length-1]){for(t=0;t<R.length;++t)if(n[0]==R[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<R.length;){for(var i=R[t],a=t+1;a<R.length&&i<O;)i*=R[a++];for(i=n.modInt(i);t<a;)if(i%R[t++]==0)return!1}return n.millerRabin(e)},m.prototype.square=function(){var e=p();return this.squareTo(e),e},E=[],P=Math,C=52,P.seedrandom=function(e,t){var n=[],e=H(function e(t,n,i,a,r){if(i=[],r=void 0===t?"undefined":(0,s.default)(t),n&&"object"==r)for(a in t)if(a.indexOf("S")<5)try{i.push(e(t[a],n-1))}catch(e){}return i.length?i:t+("string"!=r?"\0":"")}(t?[e,E]:arguments.length?e:[(new Date).getTime(),E,window],3),n),i=new I(n);return H(i.S,E),P.random=function(){for(var e=i.g(6),t=x,n=0;e<C;)e=256*(e+n),t*=256,n=i.g(1);for(;A<=e;)e/=2,t/=2,n>>>=1;return(e+n)/t},e},x=P.pow(256,6),C=P.pow(2,C),A=2*C,H(P.random(),E),W.prototype.nextBytes=function(e){for(var t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random())},j.prototype.init=function(e){for(var t,n,i=0;i<256;++i)this.S[i]=i;for(i=t=0;i<256;++i)t=t+this.S[i]+e[i%e.length]&255,n=this.S[i],this.S[i]=this.S[t],this.S[t]=n;this.j=this.i=0},j.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]};var F,B=256;function N(){var e;e=(new Date).getTime(),z[U++]^=255&e,z[U++]^=e>>8&255,z[U++]^=e>>16&255,z[U++]^=e>>24&255,B<=U&&(U-=B)}if(null==z){var z=[],U=0;if("Netscape"==o&&u<"5"&&window.crypto)for(var V=window.crypto.random(32),G=0;G<V.length;++G)z[U++]=255&V.charCodeAt(G);for(;U<B;)G=Math.floor(65536*Math.random()),z[U++]=G>>>8,z[U++]=255&G;U=0,N()}function J(){if(null==F){for(N(),(F=new j).init(z),U=0;U<z.length;++U)z[U]=0;U=0}return F.next()}function q(){}q.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=J()};var K=function(e){return function(e){for(var t="",n=0;n<4*e.length;n++)t+="0123456789abcdef".charAt(e[n>>2]>>8*(3-n%4)+4&15)+"0123456789abcdef".charAt(e[n>>2]>>8*(3-n%4)&15);return t}(function(e,t){var n,i,a,r,s,o,u,d,l,h,c,_,f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],m=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],p=Array(64);for(e[t>>5]|=128<<24-t%32,e[15+(64+t>>9<<4)]=t,l=0;l<e.length;l+=16){for(n=m[0],i=m[1],a=m[2],r=m[3],s=m[4],o=m[5],u=m[6],d=m[7],h=0;h<64;h++)p[h]=h<16?e[h+l]:y(y(y(v(p[h-2],17)^v(p[h-2],19)^p[h-2]>>>10,p[h-7]),v(p[h-15],7)^v(p[h-15],18)^p[h-15]>>>3),p[h-16]),c=y(y(y(y(d,v(s,6)^v(s,11)^v(s,25)),s&o^~s&u),f[h]),p[h]),_=y(v(n,2)^v(n,13)^v(n,22),n&i^n&a^i&a),d=u,u=o,o=s,s=y(r,c),r=a,a=i,i=n,n=y(c,_);m[0]=y(n,m[0]),m[1]=y(i,m[1]),m[2]=y(a,m[2]),m[3]=y(r,m[3]),m[4]=y(s,m[4]),m[5]=y(o,m[5]),m[6]=y(u,m[6]),m[7]=y(d,m[7])}return m}(function(e){for(var t=[],n=0;n<8*e.length;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<24-n%32;return t}(e=function(e){for(var e=e.replace(/\r\n/g,"\n"),t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t+=String.fromCharCode(i):(127<i&&i<2048?t+=String.fromCharCode(i>>6|192):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128)),t+=String.fromCharCode(63&i|128))}return t}(e=e)),8*e.length));function y(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function v(e,t){return e>>>t|e<<32-t}};u=function(e){function t(e,t){return e<<t|e>>>32-t}function n(e){for(var t="",n=7;0<=n;n--)t+=(e>>>4*n&15).toString(16);return t}for(var i,a,r,s,o,u=Array(80),d=1732584193,l=4023233417,h=2562383102,c=271733878,_=3285377520,f=(e=function(e){for(var e=e.replace(/\r\n/g,"\n"),t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t+=String.fromCharCode(i):(127<i&&i<2048?t+=String.fromCharCode(i>>6|192):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128)),t+=String.fromCharCode(63&i|128))}return t}(e)).length,m=[],p=0;p<f-3;p+=4)i=e.charCodeAt(p)<<24|e.charCodeAt(p+1)<<16|e.charCodeAt(p+2)<<8|e.charCodeAt(p+3),m.push(i);switch(f%4){case 0:p=2147483648;break;case 1:p=e.charCodeAt(f-1)<<24|8388608;break;case 2:p=e.charCodeAt(f-2)<<24|e.charCodeAt(f-1)<<16|32768;break;case 3:p=e.charCodeAt(f-3)<<24|e.charCodeAt(f-2)<<16|e.charCodeAt(f-1)<<8|128}for(m.push(p);m.length%16!=14;)m.push(0);for(m.push(f>>>29),m.push(f<<3&4294967295),e=0;e<m.length;e+=16){for(p=0;p<16;p++)u[p]=m[e+p];for(p=16;p<=79;p++)u[p]=t(u[p-3]^u[p-8]^u[p-14]^u[p-16],1);for(i=d,f=l,a=h,r=c,s=_,p=0;p<=19;p++)o=t(i,5)+(f&a|~f&r)+s+u[p]+1518500249&4294967295,s=r,r=a,a=t(f,30),f=i,i=o;for(p=20;p<=39;p++)o=t(i,5)+(f^a^r)+s+u[p]+1859775393&4294967295,s=r,r=a,a=t(f,30),f=i,i=o;for(p=40;p<=59;p++)o=t(i,5)+(f&a|f&r|a&r)+s+u[p]+2400959708&4294967295,s=r,r=a,a=t(f,30),f=i,i=o;for(p=60;p<=79;p++)o=t(i,5)+(f^a^r)+s+u[p]+3395469782&4294967295,s=r,r=a,a=t(f,30),f=i,i=o;d=d+i&4294967295,l=l+f&4294967295,h=h+a&4294967295,c=c+r&4294967295,_=_+s&4294967295}return(o=n(d)+n(l)+n(h)+n(c)+n(_)).toLowerCase()};function X(e,t){return new m(e,t)}function $(){this.n=null,this.e=0,this.coeff=this.dmq1=this.dmp1=this.q=this.p=this.d=null}$.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},$.prototype.setPublic=function(e,t){null!=e&&null!=t&&0<e.length&&0<t.length?(this.n=X(e,16),this.e=parseInt(t,16)):alert("Invalid RSA public key")},$.prototype.encrypt=function(e){return null==(e=function(e,t){if(t<e.length+11)throw"Message too long for RSA (n="+t+", l="+e.length+")";for(var n=[],i=e.length-1;0<=i&&0<t;){var a=e.charCodeAt(i--);a<128?n[--t]=a:127<a&&a<2048?(n[--t]=63&a|128,n[--t]=a>>6|192):(n[--t]=63&a|128,n[--t]=a>>6&63|128,n[--t]=a>>12|224)}for(n[--t]=0,i=new q,a=[];2<t;){for(a[0]=0;0==a[0];)i.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new m(n)}(e,this.n.bitLength()+7>>3))||null==(e=this.doPublic(e))?null:0==(1&(e=e.toString(16)).length)?e:"0"+e},$.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),e=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(e)<0;)t=t.add(this.p);return t.subtract(e).multiply(this.coeff).mod(this.p).multiply(this.q).add(e)},$.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&0<e.length&&0<t.length?(this.n=X(e,16),this.e=parseInt(t,16),this.d=X(n,16)):alert("Invalid RSA private key")},$.prototype.setPrivateEx=function(e,t,n,i,a,r,s,o){null!=e&&null!=t&&0<e.length&&0<t.length?(this.n=X(e,16),this.e=parseInt(t,16),this.d=X(n,16),this.p=X(i,16),this.q=X(a,16),this.dmp1=X(r,16),this.dmq1=X(s,16),this.coeff=X(o,16)):alert("Invalid RSA private key")},$.prototype.generate=function(e,t){var n=new W,i=e>>1;this.e=parseInt(t,16);for(var a=new m(t,16);;){for(;this.p=new m(e-i,1,n),0!=this.p.subtract(m.ONE).gcd(a).compareTo(m.ONE)||!this.p.isProbablePrime(10););for(;this.q=new m(i,1,n),0!=this.q.subtract(m.ONE).gcd(a).compareTo(m.ONE)||!this.q.isProbablePrime(10););this.p.compareTo(this.q)<=0&&(r=this.p,this.p=this.q,this.q=r);var r=this.p.subtract(m.ONE),s=this.q.subtract(m.ONE),o=r.multiply(s);if(0==o.gcd(a).compareTo(m.ONE)){this.n=this.p.multiply(this.q),this.d=a.modInverse(o),this.dmp1=this.d.mod(r),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},$.prototype.decrypt=function(e){return null==(e=this.doPrivate(X(e,16)))?null:function(e,t){for(var n=e.toByteArray(),i=0;i<n.length&&0==n[i];)++i;if(n.length-i!=t-1||2!=n[i])return null;for(++i;0!=n[i];)if(++i>=n.length)return null;for(var a="";++i<n.length;){var r=255&n[i];r<128?a+=String.fromCharCode(r):191<r&&r<224?(a+=String.fromCharCode((31&r)<<6|63&n[i+1]),++i):(a+=String.fromCharCode((15&r)<<12|(63&n[i+1])<<6|63&n[i+2]),i+=2)}return a}(e,this.n.bitLength()+7>>3)};var Z=[];Z.sha1="3021300906052b0e03021a05000414",Z.sha256="3031300d060960864801650304020105000420";var Q=[];function ee(e,t,n){t/=4;for(var e=(0,Q[n])(e),n="00"+Z[n]+e,e="",t=t-4-n.length,i=0;i<t;i+=2)e+="ff";return sPaddedMessageHex="0001"+e+n}function te(e,t,n){return i=e,e=t,t=n,(n=new $).setPublic(e,t),n.doPublic(i).toString(16).replace(/^1f+00/,"");var i}function ne(e){for(var t in Z){var n=Z[t],i=n.length;if(e.substring(0,i)==n)return[t,e.substring(i)]}return[]}Q.sha1=u,Q.sha256=K,$.prototype.signString=function(e,t){return t=ee(e,this.n.bitLength(),t),this.doPrivate(X(t,16)).toString(16)},$.prototype.signStringWithSHA1=function(e){return e=ee(e,this.n.bitLength(),"sha1"),this.doPrivate(X(e,16)).toString(16)},$.prototype.signStringWithSHA256=function(e){return e=ee(e,this.n.bitLength(),"sha256"),this.doPrivate(X(e,16)).toString(16)},$.prototype.verifyString=function(e,t){return t=t.replace(/[ \n]+/g,""),0!=(t=ne(this.doPublic(X(t,16)).toString(16).replace(/^1f+00/,""))).length&&t[1]==(t=(0,Q[t[0]])(e))},$.prototype.verifyHexSignatureForMessage=function(e,t){var n,i=X(e,16);return n=t,e=i,t=this.n.toString(16),i=this.e.toString(16),0!=(t=ne(e=te(e,t,i))).length&&(e=t[1])==(n=(0,Q[t[0]])(n))};var ie,ae,re=ae={Sbox:[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],ShiftRowTab:[0,5,10,15,4,9,14,3,8,13,2,7,12,1,6,11],Init:function(){ae.Sbox_Inv=Array(256);for(var e=0;e<256;e++)ae.Sbox_Inv[ae.Sbox[e]]=e;for(ae.ShiftRowTab_Inv=Array(16),e=0;e<16;e++)ae.ShiftRowTab_Inv[ae.ShiftRowTab[e]]=e;for(ae.xtime=Array(256),e=0;e<128;e++)ae.xtime[e]=e<<1,ae.xtime[128+e]=e<<1^27},Done:function(){delete ae.Sbox_Inv,delete ae.ShiftRowTab_Inv,delete ae.xtime},ExpandKey:function(e){var t,n=e.length,i=1;switch(n){case 16:t=176;break;case 24:t=208;break;case 32:t=240;break;default:alert("my.ExpandKey: Only key lengths of 16, 24 or 32 bytes allowed!")}for(var a=n;a<t;a+=4){var r=e.slice(a-4,a);a%n==0?(r=[ae.Sbox[r[1]]^i,ae.Sbox[r[2]],ae.Sbox[r[3]],ae.Sbox[r[0]]],256<=(i<<=1)&&(i^=283)):24<n&&a%n==16&&(r=[ae.Sbox[r[0]],ae.Sbox[r[1]],ae.Sbox[r[2]],ae.Sbox[r[3]]]);for(var s=0;s<4;s++)e[a+s]=e[a+s-n]^r[s]}},Encrypt:function(e,t){var n=t.length;ae.AddRoundKey(e,t.slice(0,16));for(var i=16;i<n-16;i+=16)ae.SubBytes(e,ae.Sbox),ae.ShiftRows(e,ae.ShiftRowTab),ae.MixColumns(e),ae.AddRoundKey(e,t.slice(i,i+16));ae.SubBytes(e,ae.Sbox),ae.ShiftRows(e,ae.ShiftRowTab),ae.AddRoundKey(e,t.slice(i,n))},Decrypt:function(e,t){var n=t.length;for(ae.AddRoundKey(e,t.slice(n-16,n)),ae.ShiftRows(e,ae.ShiftRowTab_Inv),ae.SubBytes(e,ae.Sbox_Inv),n-=32;16<=n;n-=16)ae.AddRoundKey(e,t.slice(n,n+16)),ae.MixColumns_Inv(e),ae.ShiftRows(e,ae.ShiftRowTab_Inv),ae.SubBytes(e,ae.Sbox_Inv);ae.AddRoundKey(e,t.slice(0,16))},SubBytes:function(e,t){for(var n=0;n<16;n++)e[n]=t[e[n]]},AddRoundKey:function(e,t){for(var n=0;n<16;n++)e[n]^=t[n]},ShiftRows:function(e,t){for(var n=[].concat(e),i=0;i<16;i++)e[i]=n[t[i]]},MixColumns:function(e){for(var t=0;t<16;t+=4){var n=e[t+0],i=e[t+1],a=e[t+2],r=e[t+3],s=n^i^a^r;e[t+0]^=s^ae.xtime[n^i],e[t+1]^=s^ae.xtime[i^a],e[t+2]^=s^ae.xtime[a^r],e[t+3]^=s^ae.xtime[r^n]}},MixColumns_Inv:function(e){for(var t=0;t<16;t+=4){var n=e[t+0],i=e[t+1],a=e[t+2],r=e[t+3],s=n^i^a^r,o=ae.xtime[s],u=ae.xtime[ae.xtime[o^n^a]]^s;s^=ae.xtime[ae.xtime[o^i^r]],e[t+0]^=u^ae.xtime[n^i],e[t+1]^=s^ae.xtime[i^a],e[t+2]^=u^ae.xtime[a^r],e[t+3]^=s^ae.xtime[r^n]}}},u=(ie={},re.Init(),ie.b256to64=function(e){for(var t,n,i="",a=0,r=e.length,s=0;s<r;s++)n=e.charCodeAt(s),0==a?(i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>2&63),t=(3&n)<<4):1==a?(i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t|n>>4&15),t=(15&n)<<2):2==a&&(i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t|n>>6&3),i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&n)),3==(a+=1)&&(a=0);return 0<a&&(i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t),i+="="),1==a&&(i+="="),i},ie.b64to256=function(e){for(var t,n="",i=0,a=0,r=e.length,s=0;s<r;s++)0<=(t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e.charAt(s)))&&(i&&(n+=String.fromCharCode(a|t>>6-i&255)),a=t<<(i=i+2&7)&255);return n},ie.b16to64=function(e){var t,n,i="";for(e.length%2==1&&(e="0"+e),t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>2)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((3&n)<<4));0<(3&i.length);)i+="=";return i},ie.b64to16=function(e){for(var t,n="",i=0,a=0;a<e.length&&"="!=e.charAt(a);++a)v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e.charAt(a)),v<0||(i=0==i?(n+=_(v>>2),t=3&v,1):1==i?(n+=_(t<<2|v>>4),t=15&v,2):2==i?(n+=_(t),n+=_(v>>2),t=3&v,3):(n+=_(t<<2|v>>4),n+=_(15&v),0));return 1==i&&(n+=_(t<<2)),n},ie.string2bytes=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n));return t},ie.bytes2string=function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},ie.blockXOR=function(e,t){for(var n=Array(16),i=0;i<16;i++)n[i]=e[i]^t[i];return n},ie.blockIV=function(){var e=new q,t=Array(16);return e.nextBytes(t),t},ie.pad16=function(e){var t=e.slice(0),n=(16-e.length%16)%16;for(i=e.length;i<e.length+n;i++)t.push(0);return t},ie.depad=function(e){for(e=e.slice(0);0==e[e.length-1];)e=e.slice(0,e.length-1);return e},ie.encryptAESCBC=function(e,t){var n=t.slice(0);re.ExpandKey(n);for(var i=ie.string2bytes(e),i=ie.pad16(i),a=ie.blockIV(),r=0;r<i.length/16;r++){var s=i.slice(16*r,16*r+16),o=a.slice(16*r,16*r+16),s=ie.blockXOR(o,s);re.Encrypt(s,n),a=a.concat(s)}return n=ie.bytes2string(a),ie.b256to64(n)},ie.decryptAESCBC=function(e,t){var n=t.slice(0);re.ExpandKey(n);for(var e=ie.b64to256(e),i=ie.string2bytes(e),a=[],r=1;r<i.length/16;r++){var s=i.slice(16*r,16*r+16),o=i.slice(16*(r-1),16*(r-1)+16);re.Decrypt(s,n),s=ie.blockXOR(o,s),a=a.concat(s)}return a=ie.depad(a),ie.bytes2string(a)},ie.wrap60=function(e){for(var t="",n=0;n<e.length;n++)n%60==0&&0!=n&&(t+="\n"),t+=e[n];return t},ie.generateAESKey=function(){var e=Array(16);return(new q).nextBytes(e),e},ie.generateRSAKey=function(e,t){Math.seedrandom(K(e));e=new $;return e.generate(t,"10001"),e},ie.publicKeyString=function(e){return pubkey=e.n.toString(16)},ie.publicKeyID=function(e){function o(e,t){var n=2147483648&e,i=2147483648&t,a=1073741824&e,r=1073741824&t,t=(1073741823&e)+(1073741823&t);return a&r?2147483648^t^n^i:a|r?1073741824&t?3221225472^t^n^i:1073741824^t^n^i:t^n^i}function t(e,t,n,i,a,r,s){return e=o(e,o(o(t&n|~t&i,a),s)),o(e<<r|e>>>32-r,t)}function n(e,t,n,i,a,r,s){return e=o(e,o(o(t&i|n&~i,a),s)),o(e<<r|e>>>32-r,t)}function i(e,t,n,i,a,r,s){return e=o(e,o(o(t^n^i,a),s)),o(e<<r|e>>>32-r,t)}function a(e,t,n,i,a,r,s){return e=o(e,o(o(n^(t|~i),a),s)),o(e<<r|e>>>32-r,t)}function r(e){for(var t="",n="",i=0;i<=3;i++)t+=(n="0"+(n=e>>>8*i&255).toString(16)).substr(n.length-2,2);return t}var s,u,d,l,h=function(e){for(var t,n=e.length,i=n+8,a=16*((i-i%64)/64+1),r=Array(a-1),s=0;s<n;)t=s%4*8,r[(s-s%4)/4]|=e.charCodeAt(s)<<t,s++;return r[(s-s%4)/4]|=128<<s%4*8,r[a-2]=n<<3,r[a-1]=n>>>29,r}(e=function(e){for(var e=e.replace(/\r\n/g,"\n"),t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t+=String.fromCharCode(i):(127<i&&i<2048?t+=String.fromCharCode(i>>6|192):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128)),t+=String.fromCharCode(63&i|128))}return t}(e)),c=1732584193,_=4023233417,f=2562383102,m=271733878;for(e=0;e<h.length;e+=16)c=t(s=c,u=_,d=f,l=m,h[e+0],7,3614090360),m=t(m,c,_,f,h[e+1],12,3905402710),f=t(f,m,c,_,h[e+2],17,606105819),_=t(_,f,m,c,h[e+3],22,3250441966),c=t(c,_,f,m,h[e+4],7,4118548399),m=t(m,c,_,f,h[e+5],12,1200080426),f=t(f,m,c,_,h[e+6],17,2821735955),_=t(_,f,m,c,h[e+7],22,4249261313),c=t(c,_,f,m,h[e+8],7,1770035416),m=t(m,c,_,f,h[e+9],12,2336552879),f=t(f,m,c,_,h[e+10],17,4294925233),_=t(_,f,m,c,h[e+11],22,2304563134),c=t(c,_,f,m,h[e+12],7,1804603682),m=t(m,c,_,f,h[e+13],12,4254626195),f=t(f,m,c,_,h[e+14],17,2792965006),c=n(c,_=t(_,f,m,c,h[e+15],22,1236535329),f,m,h[e+1],5,4129170786),m=n(m,c,_,f,h[e+6],9,3225465664),f=n(f,m,c,_,h[e+11],14,643717713),_=n(_,f,m,c,h[e+0],20,3921069994),c=n(c,_,f,m,h[e+5],5,3593408605),m=n(m,c,_,f,h[e+10],9,38016083),f=n(f,m,c,_,h[e+15],14,3634488961),_=n(_,f,m,c,h[e+4],20,3889429448),c=n(c,_,f,m,h[e+9],5,568446438),m=n(m,c,_,f,h[e+14],9,3275163606),f=n(f,m,c,_,h[e+3],14,4107603335),_=n(_,f,m,c,h[e+8],20,1163531501),c=n(c,_,f,m,h[e+13],5,2850285829),m=n(m,c,_,f,h[e+2],9,4243563512),f=n(f,m,c,_,h[e+7],14,1735328473),c=i(c,_=n(_,f,m,c,h[e+12],20,2368359562),f,m,h[e+5],4,4294588738),m=i(m,c,_,f,h[e+8],11,2272392833),f=i(f,m,c,_,h[e+11],16,1839030562),_=i(_,f,m,c,h[e+14],23,4259657740),c=i(c,_,f,m,h[e+1],4,2763975236),m=i(m,c,_,f,h[e+4],11,1272893353),f=i(f,m,c,_,h[e+7],16,4139469664),_=i(_,f,m,c,h[e+10],23,3200236656),c=i(c,_,f,m,h[e+13],4,681279174),m=i(m,c,_,f,h[e+0],11,3936430074),f=i(f,m,c,_,h[e+3],16,3572445317),_=i(_,f,m,c,h[e+6],23,76029189),c=i(c,_,f,m,h[e+9],4,3654602809),m=i(m,c,_,f,h[e+12],11,3873151461),f=i(f,m,c,_,h[e+15],16,530742520),c=a(c,_=i(_,f,m,c,h[e+2],23,3299628645),f,m,h[e+0],6,4096336452),m=a(m,c,_,f,h[e+7],10,1126891415),f=a(f,m,c,_,h[e+14],15,2878612391),_=a(_,f,m,c,h[e+5],21,4237533241),c=a(c,_,f,m,h[e+12],6,1700485571),m=a(m,c,_,f,h[e+3],10,2399980690),f=a(f,m,c,_,h[e+10],15,4293915773),_=a(_,f,m,c,h[e+1],21,2240044497),c=a(c,_,f,m,h[e+8],6,1873313359),m=a(m,c,_,f,h[e+15],10,4264355552),f=a(f,m,c,_,h[e+6],15,2734768916),_=a(_,f,m,c,h[e+13],21,1309151649),c=a(c,_,f,m,h[e+4],6,4149444226),m=a(m,c,_,f,h[e+11],10,3174756917),f=a(f,m,c,_,h[e+2],15,718787259),_=a(_,f,m,c,h[e+9],21,3951481745),c=o(c,s),_=o(_,u),f=o(f,d),m=o(m,l);return(r(c)+r(_)+r(f)+r(m)).toLowerCase()},ie.publicKeyFromString=function(e){var e=e.split("|")[0],t=new $;return t.setPublic(e,"10001"),t},ie.encrypt=function(e,t,n){var i="";try{i+=ie.publicKeyFromString(t).encrypt(e)+"?"}catch(e){return{status:"Invalid public key"}}return{status:"success",cipher:i}},ie.decrypt=function(e,t){e=e.split("?");return{status:"success",plaintext:t.decrypt(e[0]),signature:"unsigned"}},ie);e.exports=u},function(e,t,n){e.exports={default:n(263),__esModule:!0}},function(e,t,n){n(28),n(38),e.exports=n(57).f("iterator")},function(e,t,n){e.exports={default:n(265),__esModule:!0}},function(e,t,n){n(266),n(68),n(271),n(272),e.exports=n(3).Symbol},function(e,t,n){"use strict";function i(e){var t=V[e]=Y(H[F]);return t._k=e,t}function a(e,t){S(e);for(var n,i=M(t=b(t)),a=0,r=i.length;a<r;)Q(e,n=i[a++],t[n]);return e}function r(e){var t=z.call(this,e=D(e,!0));return!(this===J&&u(V,e)&&!u(G,e))&&(!(t||!u(this,e)||!u(V,e)||u(this,B)&&this[B][e])||t)}function s(e,t){if(e=b(e),t=D(t,!0),e!==J||!u(V,t)||u(G,t)){var n=R(e,t);return!n||!u(V,t)||u(e,B)&&e[B][t]||(n.enumerable=!0),n}}var o=n(6),u=n(18),d=n(13),l=n(8),h=n(71),c=n(267).KEY,_=n(23),f=n(50),m=n(37),p=n(36),y=n(7),v=n(57),g=n(58),M=n(268),L=n(269),S=n(10),k=n(16),w=n(25),b=n(19),D=n(46),T=n(30),Y=n(47),E=n(270),P=n(60),C=n(59),A=n(12),x=n(31),R=P.f,O=A.f,I=E.f,H=o.Symbol,W=o.JSON,j=W&&W.stringify,F="prototype",B=y("_hidden"),N=y("toPrimitive"),z={}.propertyIsEnumerable,U=f("symbol-registry"),V=f("symbols"),G=f("op-symbols"),J=Object[F],q="function"==typeof H&&!!C.f,K=o.QObject,X=!K||!K[F]||!K[F].findChild,$=d&&_(function(){return 7!=Y(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=R(J,t);i&&delete J[t],O(e,t,n),i&&e!==J&&O(J,t,i)}:O,Z=q&&"symbol"==typeof H.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof H},Q=function(e,t,n){return e===J&&Q(G,t,n),S(e),t=D(t,!0),S(n),u(V,t)?(n.enumerable?(u(e,B)&&e[B][t]&&(e[B][t]=!1),n=Y(n,{enumerable:T(0,!1)})):(u(e,B)||O(e,B,T(1,{})),e[B][t]=!0),$(e,t,n)):O(e,t,n)},f=function(e){for(var t,n=I(b(e)),i=[],a=0;n.length>a;)u(V,t=n[a++])||t==B||t==c||i.push(t);return i},K=function(e){for(var t,n=e===J,i=I(n?G:b(e)),a=[],r=0;i.length>r;)!u(V,t=i[r++])||n&&!u(J,t)||a.push(V[t]);return a};q||(h((H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor!");var t=p(0<arguments.length?arguments[0]:void 0),n=function(e){this===J&&n.call(G,e),u(this,B)&&u(this[B],t)&&(this[B][t]=!1),$(this,t,T(1,e))};return d&&X&&$(J,t,{configurable:!0,set:n}),i(t)})[F],"toString",function(){return this._k}),P.f=s,A.f=Q,n(87).f=E.f=f,n(39).f=r,C.f=K,d&&!n(29)&&h(J,"propertyIsEnumerable",r,!0),v.f=function(e){return i(y(e))}),l(l.G+l.W+l.F*!q,{Symbol:H});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)y(ee[te++]);for(var ne=x(y.store),ie=0;ne.length>ie;)g(ne[ie++]);l(l.S+l.F*!q,"Symbol",{for:function(e){return u(U,e+="")?U[e]:U[e]=H(e)},keyFor:function(e){if(!Z(e))throw TypeError(e+" is not a symbol!");for(var t in U)if(U[t]===e)return t},useSetter:function(){X=!0},useSimple:function(){X=!1}}),l(l.S+l.F*!q,"Object",{create:function(e,t){return void 0===t?Y(e):a(Y(e),t)},defineProperty:Q,defineProperties:a,getOwnPropertyDescriptor:s,getOwnPropertyNames:f,getOwnPropertySymbols:K});K=_(function(){C.f(1)});l(l.S+l.F*K,"Object",{getOwnPropertySymbols:function(e){return C.f(w(e))}}),W&&l(l.S+l.F*(!q||_(function(){var e=H();return"[null]"!=j([e])||"{}"!=j({a:e})||"{}"!=j(Object(e))})),"JSON",{stringify:function(e){for(var t,n,i=[e],a=1;a<arguments.length;)i.push(arguments[a++]);if(n=t=i[1],(k(t)||void 0!==e)&&!Z(e))return L(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Z(t))return t}),i[1]=t,j.apply(W,i)}}),H[F][N]||n(17)(H[F],N,H[F].valueOf),m(H,"Symbol"),m(Math,"Math",!0),m(o.JSON,"JSON",!0)},function(e,t,n){function i(e){o(e,a,{value:{i:"O"+ ++u,w:{}}})}var a=n(36)("meta"),r=n(16),s=n(18),o=n(12).f,u=0,d=Object.isExtensible||function(){return!0},l=!n(23)(function(){return d(Object.preventExtensions({}))}),h=e.exports={KEY:a,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,a)){if(!d(e))return"F";if(!t)return"E";i(e)}return e[a].i},getWeak:function(e,t){if(!s(e,a)){if(!d(e))return!0;if(!t)return!1;i(e)}return e[a].w},onFreeze:function(e){return l&&h.NEED&&d(e)&&!s(e,a)&&i(e),e}}},function(e,t,n){var o=n(31),u=n(59),d=n(39);e.exports=function(e){var t=o(e),n=u.f;if(n)for(var i,a=n(e),r=d.f,s=0;a.length>s;)r.call(e,i=a[s++])&&t.push(i);return t}},function(e,t,n){var i=n(32);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(19),a=n(87).f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"[object Window]"==r.call(e)?function(e){try{return a(e)}catch(e){return s.slice()}}(e):a(i(e))}},function(e,t,n){n(58)("asyncIterator")},function(e,t,n){n(58)("observable")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u,i,a,r,d,s,Y=function(o){function n(){}var e={},t=e.lib={},i=t.Base={extend:function(e){n.prototype=this;var t=new n;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),(t.init.prototype=t).$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=t.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||r).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes;if(e=e.sigBytes,this.clamp(),i%4)for(var a=0;a<e;a++)t[i+a>>>2]|=(n[a>>>2]>>>24-a%4*8&255)<<24-(i+a)%4*8;else if(65535<n.length)for(a=0;a<e;a+=4)t[i+a>>>2]=n[a>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=o.ceil(t/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(4294967296*o.random()|0);return new u.init(t,e)}}),a=e.enc={},r=a.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],i=0;i<e;i++){var a=t[i>>>2]>>>24-i%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new u.init(n,t/2)}},s=a.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],i=0;i<e;i++)n.push(String.fromCharCode(t[i>>>2]>>>24-i%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new u.init(n,t)}},d=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(s.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return s.parse(unescape(encodeURIComponent(e)))}},l=t.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,n=t.words,i=t.sigBytes,a=this.blockSize,r=i/(4*a),r=e?o.ceil(r):o.max((0|r)-this._minBufferSize,0),i=o.min(4*(e=r*a),i);if(e){for(var s=0;s<e;s+=a)this._doProcessBlock(n,s);s=n.splice(0,e),t.sigBytes-=i}return new u.init(s,i)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});t.Hasher=l.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){l.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(n){return function(e,t){return new n.init(t).finalize(e)}},_createHmacHelper:function(n){return function(e,t){return new h.HMAC.init(n,t).finalize(e)}}});var h=e.algo={};return e}(Math);u=Y.lib.WordArray,Y.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp(),e=[];for(var a=0;a<n;a+=3)for(var r=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<n;s++)e.push(i.charAt(r>>>6*(3-s)&63));if(t=i.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var t=e.length,n=this._map;!(r=n.charAt(64))||-1!=(r=e.indexOf(r))&&(t=r);for(var i,a,r=[],s=0,o=0;o<t;o++)o%4&&(i=n.indexOf(e.charAt(o-1))<<o%4*2,a=n.indexOf(e.charAt(o))>>>6-o%4*2,r[s>>>2]|=(i|a)<<24-s%4*8,s++);return u.create(r,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(r){function k(e,t,n,i,a,r,s){return((e=e+(t&n|~t&i)+a+s)<<r|e>>>32-r)+t}function w(e,t,n,i,a,r,s){return((e=e+(t&i|n&~i)+a+s)<<r|e>>>32-r)+t}function b(e,t,n,i,a,r,s){return((e=e+(t^n^i)+a+s)<<r|e>>>32-r)+t}function D(e,t,n,i,a,r,s){return((e=e+(n^(t|~i))+a+s)<<r|e>>>32-r)+t}for(var e=Y,t=(i=e.lib).WordArray,n=i.Hasher,i=e.algo,T=[],a=0;a<64;a++)T[a]=4294967296*r.abs(r.sin(a+1))|0;i=i.MD5=n.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=e[a=t+n];e[a]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var n=this._hash.words,a=e[t+0],i=e[t+1],r=e[t+2],s=e[t+3],o=e[t+4],u=e[t+5],d=e[t+6],l=e[t+7],h=e[t+8],c=e[t+9],_=e[t+10],f=e[t+11],m=e[t+12],p=e[t+13],y=e[t+14],v=e[t+15],g=k(g=n[0],S=n[1],L=n[2],M=n[3],a,7,T[0]),M=k(M,g,S,L,i,12,T[1]),L=k(L,M,g,S,r,17,T[2]),S=k(S,L,M,g,s,22,T[3]),g=k(g,S,L,M,o,7,T[4]),M=k(M,g,S,L,u,12,T[5]),L=k(L,M,g,S,d,17,T[6]),S=k(S,L,M,g,l,22,T[7]),g=k(g,S,L,M,h,7,T[8]),M=k(M,g,S,L,c,12,T[9]),L=k(L,M,g,S,_,17,T[10]),S=k(S,L,M,g,f,22,T[11]),g=k(g,S,L,M,m,7,T[12]),M=k(M,g,S,L,p,12,T[13]),L=k(L,M,g,S,y,17,T[14]),g=w(g,S=k(S,L,M,g,v,22,T[15]),L,M,i,5,T[16]),M=w(M,g,S,L,d,9,T[17]),L=w(L,M,g,S,f,14,T[18]),S=w(S,L,M,g,a,20,T[19]),g=w(g,S,L,M,u,5,T[20]),M=w(M,g,S,L,_,9,T[21]),L=w(L,M,g,S,v,14,T[22]),S=w(S,L,M,g,o,20,T[23]),g=w(g,S,L,M,c,5,T[24]),M=w(M,g,S,L,y,9,T[25]),L=w(L,M,g,S,s,14,T[26]),S=w(S,L,M,g,h,20,T[27]),g=w(g,S,L,M,p,5,T[28]),M=w(M,g,S,L,r,9,T[29]),L=w(L,M,g,S,l,14,T[30]),g=b(g,S=w(S,L,M,g,m,20,T[31]),L,M,u,4,T[32]),M=b(M,g,S,L,h,11,T[33]),L=b(L,M,g,S,f,16,T[34]),S=b(S,L,M,g,y,23,T[35]),g=b(g,S,L,M,i,4,T[36]),M=b(M,g,S,L,o,11,T[37]),L=b(L,M,g,S,l,16,T[38]),S=b(S,L,M,g,_,23,T[39]),g=b(g,S,L,M,p,4,T[40]),M=b(M,g,S,L,a,11,T[41]),L=b(L,M,g,S,s,16,T[42]),S=b(S,L,M,g,d,23,T[43]),g=b(g,S,L,M,c,4,T[44]),M=b(M,g,S,L,m,11,T[45]),L=b(L,M,g,S,v,16,T[46]),g=D(g,S=b(S,L,M,g,r,23,T[47]),L,M,a,6,T[48]),M=D(M,g,S,L,l,10,T[49]),L=D(L,M,g,S,y,15,T[50]),S=D(S,L,M,g,u,21,T[51]),g=D(g,S,L,M,m,6,T[52]),M=D(M,g,S,L,s,10,T[53]),L=D(L,M,g,S,_,15,T[54]),S=D(S,L,M,g,i,21,T[55]),g=D(g,S,L,M,h,6,T[56]),M=D(M,g,S,L,v,10,T[57]),L=D(L,M,g,S,d,15,T[58]),S=D(S,L,M,g,p,21,T[59]),g=D(g,S,L,M,o,6,T[60]),M=D(M,g,S,L,f,10,T[61]),L=D(L,M,g,S,r,15,T[62]),S=D(S,L,M,g,c,21,T[63]);n[0]=n[0]+g|0,n[1]=n[1]+S|0,n[2]=n[2]+L|0,n[3]=n[3]+M|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32;var a=r.floor(n/4294967296);for(t[15+(64+i>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t[14+(64+i>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process(),t=(e=this._hash).words,n=0;n<4;n++)i=t[n],t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);return e},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),e.MD5=n._createHelper(i),e.HmacMD5=n._createHmacHelper(i)}(Math),a=(i=Y).lib,r=a.Base,d=a.WordArray,s=(a=i.algo).EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=(s=this.cfg).hasher.create(),i=d.create(),a=i.words,r=s.keySize,s=s.iterations;a.length<r;){o&&n.update(o);var o=n.update(e).finalize(t);n.reset();for(var u=1;u<s;u++)o=n.finalize(o),n.reset();i.concat(o)}return i.sigBytes=4*r,i}}),i.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)},Y.lib.Cipher||function(){var e=(c=Y).lib,t=e.Base,s=e.WordArray,n=e.BufferedBlockAlgorithm,i=c.enc.Base64,a=c.algo.EvpKDF,r=e.Cipher=n.extend({cfg:t.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){n.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(i){return{encrypt:function(e,t,n){return("string"==typeof t?_:h).encrypt(i,e,t,n)},decrypt:function(e,t,n){return("string"==typeof t?_:h).decrypt(i,e,t,n)}}}});e.StreamCipher=r.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});function o(e,t,n){var i=this._iv;i?this._iv=void 0:i=this._prevBlock;for(var a=0;a<n;a++)e[t+a]^=i[a]}var u=c.mode={},d=(e.BlockCipherMode=t.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}})).extend();d.Encryptor=d.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;o.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),d.Decryptor=d.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,a=e.slice(t,t+i);n.decryptBlock(e,t),o.call(this,e,t,i),this._prevBlock=a}}),u=u.CBC=d,d=(c.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,i=(n=n-e.sigBytes%n)<<24|n<<16|n<<8|n,a=[],r=0;r<n;r+=4)a.push(i);n=s.create(a,n),e.concat(n)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},e.BlockCipher=r.extend({cfg:r.cfg.extend({mode:u,padding:d}),reset:function(){r.reset.call(this);var e,t=(n=this.cfg).iv,n=n.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode=e.call(n,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var l=e.CipherParams=t.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),u=(c.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return((e=e.salt)?s.create([1398893684,1701076831]).concat(e).concat(t):t).toString(i)},parse:function(e){var t,n=(e=i.parse(e)).words;return 1398893684==n[0]&&1701076831==n[1]&&(t=s.create(n.slice(2,4)),n.splice(0,4),e.sigBytes-=16),l.create({ciphertext:e,salt:t})}},h=e.SerializableCipher=t.extend({cfg:t.extend({format:u}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var a=e.createEncryptor(n,i);return t=a.finalize(t),a=a.cfg,l.create({ciphertext:t,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(n,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),c=(c.kdf={}).OpenSSL={execute:function(e,t,n,i){return i=i||s.random(8),e=a.create({keySize:t+n}).compute(e,i),n=s.create(e.words.slice(t),4*n),e.sigBytes=4*t,l.create({key:e,iv:n,salt:i})}},_=e.PasswordBasedCipher=h.extend({cfg:h.cfg.extend({kdf:c}),encrypt:function(e,t,n,i){return n=(i=this.cfg.extend(i)).kdf.execute(n,e.keySize,e.ivSize),i.iv=n.iv,(e=h.encrypt.call(this,e,t,n.key,i)).mixIn(n),e},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),n=i.kdf.execute(n,e.keySize,e.ivSize,t.salt),i.iv=n.iv,h.decrypt.call(this,e,t,n.key,i)}})}(),function(){for(var e=Y,t=e.lib.BlockCipher,n=e.algo,s=[],i=[],a=[],r=[],o=[],u=[],d=[],l=[],h=[],c=[],_=[],f=0;f<256;f++)_[f]=f<128?f<<1:f<<1^283;for(var m=0,p=0,f=0;f<256;f++){var y=p^p<<1^p<<2^p<<3^p<<4;s[m]=y=y>>>8^255&y^99;var v=_[i[y]=m],g=_[v],M=_[g],L=257*_[y]^16843008*y;a[m]=L<<24|L>>>8,r[m]=L<<16|L>>>16,o[m]=L<<8|L>>>24,u[m]=L,d[y]=(L=16843009*M^65537*g^257*v^16843008*m)<<24|L>>>8,l[y]=L<<16|L>>>16,h[y]=L<<8|L>>>24,c[y]=L,m?(m=v^_[_[_[M^v]]],p^=_[_[p]]):m=p=1}var S=[0,1,2,4,8,16,32,64,128,27,54],n=n.AES=t.extend({_doReset:function(){for(var e,t=(i=this._key).words,n=i.sigBytes/4,i=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],r=0;r<i;r++)r<n?a[r]=t[r]:(e=a[r-1],r%n?6<n&&4==r%n&&(e=s[e>>>24]<<24|s[e>>>16&255]<<16|s[e>>>8&255]<<8|s[255&e]):(e=s[(e=e<<8|e>>>24)>>>24]<<24|s[e>>>16&255]<<16|s[e>>>8&255]<<8|s[255&e],e^=S[r/n|0]<<24),a[r]=a[r-n]^e);for(t=this._invKeySchedule=[],n=0;n<i;n++)r=i-n,e=n%4?a[r]:a[r-4],t[n]=n<4||r<=4?e:d[s[e>>>24]]^l[s[e>>>16&255]]^h[s[e>>>8&255]]^c[s[255&e]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,r,o,u,s)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,d,l,h,c,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,a,r,s,o){for(var u=this._nRounds,d=e[t]^n[0],l=e[t+1]^n[1],h=e[t+2]^n[2],c=e[t+3]^n[3],_=4,f=1;f<u;f++)var m=i[d>>>24]^a[l>>>16&255]^r[h>>>8&255]^s[255&c]^n[_++],p=i[l>>>24]^a[h>>>16&255]^r[c>>>8&255]^s[255&d]^n[_++],y=i[h>>>24]^a[c>>>16&255]^r[d>>>8&255]^s[255&l]^n[_++],c=i[c>>>24]^a[d>>>16&255]^r[l>>>8&255]^s[255&h]^n[_++],d=m,l=p,h=y;m=(o[d>>>24]<<24|o[l>>>16&255]<<16|o[h>>>8&255]<<8|o[255&c])^n[_++],p=(o[l>>>24]<<24|o[h>>>16&255]<<16|o[c>>>8&255]<<8|o[255&d])^n[_++],y=(o[h>>>24]<<24|o[c>>>16&255]<<16|o[d>>>8&255]<<8|o[255&l])^n[_++],c=(o[c>>>24]<<24|o[d>>>16&255]<<16|o[l>>>8&255]<<8|o[255&h])^n[_++],e[t]=m,e[t+1]=p,e[t+2]=y,e[t+3]=c},keySize:8});e.AES=t._createHelper(n)}(),t.default=Y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalService=void 0;var i=r(n(56)),a=r(n(1));function r(e){return e&&e.__esModule?e:{default:e}}(0,r(n(2)).default)(s,[{key:"createClientObject",value:function(e,t,n,i){return{socket:e,id:t,playURL:n,deviceSerial:i.deviceSerial||"",verificationCode:i.verificationCode||"",resolve:null,reject:null,stoping:!1}}},{key:"playCmd",value:function(e){e={sequence:0,cmd:"realplay",deviceSerial:e.deviceSerial,verificationCode:e.verificationCode,url:e.playURL};return(0,i.default)(e)}},{key:"playbackCmd",value:function(e,t,n){n={sequence:0,cmd:"playback",deviceSerial:e.deviceSerial,verificationCode:e.verificationCode,url:e.playURL,startTime:t,endTime:n};return(0,i.default)(n)}}]),n=s;function s(){(0,a.default)(this,s)}t.LocalService=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var i={"./af":88,"./af.js":88,"./ar":89,"./ar-dz":90,"./ar-dz.js":90,"./ar-kw":91,"./ar-kw.js":91,"./ar-ly":92,"./ar-ly.js":92,"./ar-ma":93,"./ar-ma.js":93,"./ar-sa":94,"./ar-sa.js":94,"./ar-tn":95,"./ar-tn.js":95,"./ar.js":89,"./az":96,"./az.js":96,"./be":97,"./be.js":97,"./bg":98,"./bg.js":98,"./bm":99,"./bm.js":99,"./bn":100,"./bn-bd":101,"./bn-bd.js":101,"./bn.js":100,"./bo":102,"./bo.js":102,"./br":103,"./br.js":103,"./bs":104,"./bs.js":104,"./ca":105,"./ca.js":105,"./cs":106,"./cs.js":106,"./cv":107,"./cv.js":107,"./cy":108,"./cy.js":108,"./da":109,"./da.js":109,"./de":110,"./de-at":111,"./de-at.js":111,"./de-ch":112,"./de-ch.js":112,"./de.js":110,"./dv":113,"./dv.js":113,"./el":114,"./el.js":114,"./en-au":115,"./en-au.js":115,"./en-ca":116,"./en-ca.js":116,"./en-gb":117,"./en-gb.js":117,"./en-ie":118,"./en-ie.js":118,"./en-il":119,"./en-il.js":119,"./en-in":120,"./en-in.js":120,"./en-nz":121,"./en-nz.js":121,"./en-sg":122,"./en-sg.js":122,"./eo":123,"./eo.js":123,"./es":124,"./es-do":125,"./es-do.js":125,"./es-mx":126,"./es-mx.js":126,"./es-us":127,"./es-us.js":127,"./es.js":124,"./et":128,"./et.js":128,"./eu":129,"./eu.js":129,"./fa":130,"./fa.js":130,"./fi":131,"./fi.js":131,"./fil":132,"./fil.js":132,"./fo":133,"./fo.js":133,"./fr":134,"./fr-ca":135,"./fr-ca.js":135,"./fr-ch":136,"./fr-ch.js":136,"./fr.js":134,"./fy":137,"./fy.js":137,"./ga":138,"./ga.js":138,"./gd":139,"./gd.js":139,"./gl":140,"./gl.js":140,"./gom-deva":141,"./gom-deva.js":141,"./gom-latn":142,"./gom-latn.js":142,"./gu":143,"./gu.js":143,"./he":144,"./he.js":144,"./hi":145,"./hi.js":145,"./hr":146,"./hr.js":146,"./hu":147,"./hu.js":147,"./hy-am":148,"./hy-am.js":148,"./id":149,"./id.js":149,"./is":150,"./is.js":150,"./it":151,"./it-ch":152,"./it-ch.js":152,"./it.js":151,"./ja":153,"./ja.js":153,"./jv":154,"./jv.js":154,"./ka":155,"./ka.js":155,"./kk":156,"./kk.js":156,"./km":157,"./km.js":157,"./kn":158,"./kn.js":158,"./ko":159,"./ko.js":159,"./ku":160,"./ku.js":160,"./ky":161,"./ky.js":161,"./lb":162,"./lb.js":162,"./lo":163,"./lo.js":163,"./lt":164,"./lt.js":164,"./lv":165,"./lv.js":165,"./me":166,"./me.js":166,"./mi":167,"./mi.js":167,"./mk":168,"./mk.js":168,"./ml":169,"./ml.js":169,"./mn":170,"./mn.js":170,"./mr":171,"./mr.js":171,"./ms":172,"./ms-my":173,"./ms-my.js":173,"./ms.js":172,"./mt":174,"./mt.js":174,"./my":175,"./my.js":175,"./nb":176,"./nb.js":176,"./ne":177,"./ne.js":177,"./nl":178,"./nl-be":179,"./nl-be.js":179,"./nl.js":178,"./nn":180,"./nn.js":180,"./oc-lnc":181,"./oc-lnc.js":181,"./pa-in":182,"./pa-in.js":182,"./pl":183,"./pl.js":183,"./pt":184,"./pt-br":185,"./pt-br.js":185,"./pt.js":184,"./ro":186,"./ro.js":186,"./ru":187,"./ru.js":187,"./sd":188,"./sd.js":188,"./se":189,"./se.js":189,"./si":190,"./si.js":190,"./sk":191,"./sk.js":191,"./sl":192,"./sl.js":192,"./sq":193,"./sq.js":193,"./sr":194,"./sr-cyrl":195,"./sr-cyrl.js":195,"./sr.js":194,"./ss":196,"./ss.js":196,"./sv":197,"./sv.js":197,"./sw":198,"./sw.js":198,"./ta":199,"./ta.js":199,"./te":200,"./te.js":200,"./tet":201,"./tet.js":201,"./tg":202,"./tg.js":202,"./th":203,"./th.js":203,"./tk":204,"./tk.js":204,"./tl-ph":205,"./tl-ph.js":205,"./tlh":206,"./tlh.js":206,"./tr":207,"./tr.js":207,"./tzl":208,"./tzl.js":208,"./tzm":209,"./tzm-latn":210,"./tzm-latn.js":210,"./tzm.js":209,"./ug-cn":211,"./ug-cn.js":211,"./uk":212,"./uk.js":212,"./ur":213,"./ur.js":213,"./uz":214,"./uz-latn":215,"./uz-latn.js":215,"./uz.js":214,"./vi":216,"./vi.js":216,"./x-pseudo":217,"./x-pseudo.js":217,"./yo":218,"./yo.js":218,"./zh-cn":219,"./zh-cn.js":219,"./zh-hk":220,"./zh-hk.js":220,"./zh-mo":221,"./zh-mo.js":221,"./zh-tw":222,"./zh-tw.js":222};function a(e){e=r(e);return n(e)}function r(e){if(n.o(i,e))return i[e];e=new Error("Cannot find module '"+e+"'");throw e.code="MODULE_NOT_FOUND",e}a.keys=function(){return Object.keys(i)},a.resolve=r,(e.exports=a).id=276},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSPlayCtrl=void 0;var i=a(n(1)),n=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}var r=0,o=5242880,u=5e3,d={id:null,cmd:null,data:null,errorCode:0,status:null},n=((0,n.default)(l,[{key:"PlayM4_SetStreamOpenMode",value:function(e){return this.iPort=this.oWASM._JSPlayM4_GetPort(),1!==this.oWASM._JSPlayM4_SetStreamOpenMode(this.iPort,e)?0:1}},{key:"PlayM4_OpenStream",value:function(e,t,n){if(this.iPort<0)return 0;if(!e||t<=0||n<=0)return 0;this.bPlay=!1,this.bPause=!1,this.bOnebyOne=!1,this.bIsFirstFrame=!0,this.bIsGetYUV=!1,this.bIsInput=!1;var i=t,t=this.oWASM._malloc(i);return t?(this.oWASM.writeArrayToMemory(e,t),1!==this.oWASM._JSPlayM4_OpenStream(this.iPort,t,i,n)?(this.oWASM._free(t),t=null,this.oWASM._JSPlayM4_FreePort(this.iPort),this.iPort=-1,0):(this.oWASM._JSPlayM4_SetDisplayBuf(this.iPort,-1),this.oWASM._free(t),t=null,1)):0}},{key:"PlayM4_SetDisplayBuf",value:function(e){this.oWASM._JSPlayM4_SetDisplayBuf(this.iPort,e)}},{key:"PlayM4_OpenPlayerSDKPrintLog",value:function(e){e?(console.log("JSPlaySDKInterface.js bFlag:"+e),this.oWASM._JSPlayM4_SetPrintLogFlag(this.iPort,2)):this.oWASM._JSPlayM4_SetPrintLogFlag(this.iPort,0)}},{key:"SetDecodeThreadNum",value:function(e){this.oWASM._JSPlayM4_SetDecodeThreadNum(this.iPort,e)}},{key:"PlayM4_SetSecretKey",value:function(){return 1}},{key:"PlayM4_RenderPrivateData",value:function(e,t){return this.oWASM._JSPlayM4_RenderPrivateData(this.iPort,e,t)}},{key:"PlayM4_RenderPrivateDataEx",value:function(e,t,n){return this.oWASM._JSPlayM4_RenderPrivateDataEx(this.iPort,e,t,n)}},{key:"stringToBytes",value:function(e){for(var t=void 0,n=void 0,i=[],a=0;a<e.length;a++){for(t=e.charCodeAt(a),n=[];n.push(255&t),t>>=8;);i=i.concat(n.reverse())}return i}},{key:"PlayM4_Play",value:function(){if(this.pCanvasData=this.oWASM._malloc(128),null===this.pCanvasData)return 0;this.bOnebyOne&&(this.bPlayRateChange=!1,this.bOnebyOne=!1,this.bPause=!1),!document.getElementById(this.szCanvasID)&&this.clonedCanvas&&this.clonedCanvasParentNode&&this.clonedCanvasParentNode.appendChild(this.clonedCanvas),0<this.iCanvasWidth&&0<this.iCanvasHeight&&this.PlayM4_SetCanvasSize(this.iCanvasWidth,this.iCanvasHeight);var e=this.stringToBytes("#"+this.szCanvasID),t=this.oWASM.HEAPU8.subarray(this.pCanvasData,this.pCanvasData+128),n=new Uint8Array(128);t.set(n,0),t.set(new Uint8Array(e));return 1!==this.oWASM._JSPlayM4_Play(this.iPort,this.pCanvasData)?0:(this.oWASM._JSPlayM4_SetFrameInfoCallBack(this.iPort,1),this.bPlay=!0,this.bPause=!1,this.bOnebyOne=!1,this.bPlaySound=!1,this.bPlayRateChange=!1,this.bOnlyPlaySound=!1,1)}},{key:"PlayM4_OneByOne_Play",value:function(){this.oWASM._JSPlayM4_Play(this.iPort,this.pCanvasData),this.bPlayRateChange=!1,this.bOnebyOne=!1,this.bPause=!1}},{key:"Sleep",value:function(e){for(var t=(new Date).getTime();(new Date).getTime()-t<e;);}},{key:"PlayM4_InputData",value:function(e,t){var n=t,i=1;if(0<n){var a=this.oWASM._malloc(n);if(null===a)return 0;t=new Uint8Array(e.buffer);this.oWASM.writeArrayToMemory(t,a),t=null,this.bIsFirstFrame&&this.inputDataFun(),this.bOnebyOne?1!==this.oWASM._JSPlayM4_InputData(this.iPort,a,n)&&(11===(i=this.oWASM._JSPlayM4_GetLastError(this.iPort))&&(this.setCallBack(this,"OnebyOne",0,0,!1),this.bIsFirstFrame=!0),this.aInputDataBuffer.push(e)):1!==this.oWASM._JSPlayM4_InputData(this.iPort,a,n)&&(i=this.oWASM._JSPlayM4_GetLastError(this.iPort)),this.oWASM._free(a),a=null}return i}},{key:"inputDataFun",value:function(){if(this.bIsGetYUV=!1,this.bPlay&&(!this.bPause||this.bOnebyOne)||this.bOnlyPlaySound)for(;0<this.aInputDataBuffer.length;){var e=this.aInputDataBuffer.shift(),t=this.oWASM._JSPlayM4_InputData(this.iPort,e,e.byteLength);if(1!==t)if(11===this.oWASM._JSPlayM4_GetLastError(this.iPort)){this.bIsFirstFrame=!0,this.aInputDataBuffer.unshift(e);break}}this.bIsFirstFrame=!1}},{key:"PlayM4_Stop",value:function(){this.bPlaySound&&(this.PlayM4_StopSound(),this.bPlaySound=!1),this.bPlay=!1,this.bOnebyOne=!1,this.bPause=!1,this.oWASM._JSPlayM4_SetFrameInfoCallBack(this.iPort,0),this.PlayM4_SetDisplayRegion(null,!1),this.oWASM._JSPlayM4_Stop(this.iPort),this.oWASM._JSPlayM4_CloseStream(this.iPort),this.oWASM._JSPlayM4_FreePort(this.iPort),this.iPort=-1;var e=document.getElementById(this.szCanvasID);e&&(this.clonedCanvas=e.cloneNode(!0),this.clonedCanvasParentNode=e.parentNode,this.clonedCanvasParentNode.replaceChild(this.clonedCanvas,e)),null!==this.pCanvasData&&(this.oWASM._free(this.pCanvasData),this.pCanvasData=null)}},{key:"PlayM4_PlayRate",value:function(e){return this.bPlayRateChange=1!==e,this.iInputDataLen=e*u,1}},{key:"PlayM4_Fast",value:function(e){this.bPlayRateChange=1!==e,this.oWASM._JSPlayM4_Fast(this.iPort)}},{key:"PlayM4_Slow",value:function(e){this.bPlayRateChange=1!==e,this.oWASM._JSPlayM4_Slow(this.iPort)}},{key:"PlayM4_Pause",value:function(e){return!this.bPlay||this.bOnebyOne?2:("boolean"!=typeof e||(this.bPause=e,this.bIsFirstFrame=!0,e?(this.bPlaySound&&(this.PlayM4_StopSound(),this.bPlaySound=!0),this.oWASM._JSPlayM4_Pause(this.iPort,1)):(this.bPlaySound&&this.PlayM4_PlaySound(),this.oWASM._JSPlayM4_Pause(this.iPort,0))),1)}},{key:"PlayM4_OneByOne",value:function(){return this.bPlay?(this.oWASM._JSPlayM4_GetSourceBufferRemain(this.iPort)<this.oWASM._JSPlayM4_GetBufferValue(this.iPort,1)/2&&(this.bIsInputBufOver=!1,this.setCallBack(this,"OnebyOne",0,31,!0)),this.iInputDataLen=u,this.oWASM._JSPlayM4_OneByOne(this.iPort),this.bPause=!0,this.bOnebyOne=!0,this.bPlayRateChange=!0,1):2}},{key:"PlayM4_PlaySound",value:function(e){return e<0||16<e||1===this.oWASM._JSPlayM4_PlaySound(this.iPort)&&(this.bPlaySound=!0,this.oWASM._JSPlayM4_SetANRParam(3)),1}},{key:"PlayM4_StopSound",value:function(){return this.bPlaySound?(1===this.oWASM._JSPlayM4_StopSound(this.iPort)&&(this.bPlaySound=!1),1):2}},{key:"PlayM4_SetSecretKey",value:function(){}},{key:"PlayM4_SetDecodeFrameType",value:function(e){return e!==r&&1!==e||(this.nDecFrameType=e,this.oWASM._JSPlayM4_SetDecodeFrameType(this.iPort,e)),1}},{key:"PlayM4_SetIFrameDecInterval",value:function(e){return 1!==this.nDecFrameType?2:(e<0||(this.oWASM._JSPlayM4_SetDecodeFrameType(this.iPort,1),this.oWASM._JSPlayM4_SetIFrameDecInterval(this.iPort,e)),1)}},{key:"PlayM4_SetDisplayRegion",value:function(e,t){if(null===this.szCanvasID)return 2;if(!0!==t)return 1===this.oWASM._JSPlayM4_SetDisplayRegion(this.iPort,this.pCanvasData,0,this.iYUVWidth,0,this.iYUVHeight)?(this.iZoomNum=0,this.bDisRect=!1,1):this.PlayM4_GetLastError();if(null==e)return 1;if("number"!=typeof e.left||"number"!=typeof e.top||"number"!=typeof e.right||"number"!=typeof e.bottom)return 1;if(e.right<0||e.left<0||e.top<0||e.bottom<0)return 1;var n=e.left,i=e.right,a=e.top,r=e.bottom,t=document.getElementById(this.szCanvasID).getBoundingClientRect();if(this.iCanvasWidth=t.width,this.iCanvasHeight=t.height,i-n<16||r-a<16||i-n>this.iCanvasWidth||r-a>this.iCanvasHeight)return 1;r=0!==this.iZoomNum?(n=Math.round(n/this.iRatio_x)+this.stDisplayRect.left,a=Math.round(a/this.iRatio_y)+this.stDisplayRect.top,i=Math.round(i/this.iRatio_x)+this.stDisplayRect.left,Math.round(r/this.iRatio_y)+this.stDisplayRect.top):(e=this.iYUVWidth/this.iCanvasWidth,t=this.iYUVHeight/this.iCanvasHeight,n=Math.round(n*e),a=Math.round(a*t),i=Math.round(i*e),Math.round(r*t)),this.stDisplayRect={top:a,left:n,right:i,bottom:r},this.bDisRect=!0;a=r-a;return this.iRatio_x=this.iCanvasWidth/(i-n),this.iRatio_y=this.iCanvasHeight/a,this.iZoomNum++,this.oWASM._JSPlayM4_SetDisplayRegion(this.iPort,this.pCanvasData,this.stDisplayRect.left,this.stDisplayRect.right,this.stDisplayRect.top,this.stDisplayRect.bottom)}},{key:"PlayM4_GetJPEG",value:function(e){var t,n=this.iYUVWidth*this.iYUVHeight*4+60,i=this.oWASM._malloc(n),a=this.oWASM._malloc(4);null!==i&&(this.oWASM._JSPlayM4_GetJPEG(this.iPort,i,n,a),0<(t=this.oWASM.getValue(a,"i32"))?((n=new Uint8Array(t)).set(this.oWASM.HEAPU8.subarray(i,i+t)),e(n)):e(6),this.oWASM._free(i),this.oWASM._free(a),i=null)}},{key:"PlayM4_GetBMP",value:function(e){var t,n=this.iYUVWidth*this.iYUVHeight*4+60,i=this.oWASM._malloc(n),a=this.oWASM._malloc(4);null!==i&&(this.oWASM._JSPlayM4_GetBMP(this.iPort,i,n,a),0<(t=this.oWASM.getValue(a,"i32"))?((n=new Uint8Array(t)).set(this.oWASM.HEAPU8.subarray(i,i+t)),e(n)):e(6),this.oWASM._free(i),this.oWASM._free(a),i=null)}},{key:"PlayM4_SetVolume",value:function(e){return this.oWASM._JSPlayM4_SetVolume(this.iPort,e)}},{key:"PlayM4_GetVolume",value:function(e){if(e&&"function"==typeof e){var t=this.oWASM._JSPlayM4_GetVolume(this.iPort);return null===t?63:(e(Math.round(t)),1)}return 1}},{key:"PlayM4_GetDecodeFrameType",value:function(){return this.nDecFrameType}},{key:"PlayM4_GetSdkVersion",value:function(){return this.oWASM.JSPlayM4_GetSDKVersion()}},{key:"PlayM4_SetCanvasSize",value:function(e,t){!document.getElementById(this.szCanvasID)&&this.clonedCanvas&&(this.iCanvasWidth=e,this.iCanvasHeight=t,this.clonedCanvas.width=e,this.clonedCanvas.height=t),-1<this.iPort&&this.oWASM._JSPlayM4_SetCanvasSize(this.iPort,e,t)}},{key:"PlayM4_SetAntialias",value:function(e){return this.oWASM._JSPlayM4_SetAntialias(this.iPort,e)}},{key:"PlayM4_GetSourceBufferRemain",value:function(){return this.oWASM._JSPlayM4_GetSourceBufferRemain(this.iPort)}},{key:"PlayM4_GetBufferValue",value:function(e){return this.oWASM._JSPlayM4_GetBufferValue(this.iPort,e)}},{key:"PlayM4_GetLastError",value:function(){return this.oWASM._JSPlayM4_GetLastError(this.iPort)}},{key:"PlayM4_GetFrameInfo",value:function(e){var t,n;e&&"function"==typeof e&&(t={port:0,frameType:0,frameSize:0,width:0,height:0,timeStamp:0,frameRate:0,bitPerSample:0,samplesPerSec:0,channel:0,frameNum:0,cropLeft:0,cropRight:0,cropTop:0,cropBottom:0,year:0,month:0,week:0,day:0,hour:0,minute:0,second:0,milliseconds:0},n=this.oWASM._JSPlayM4_GetFrameInfo(this.iPort),t.port=this.oWASM.HEAP32[n>>2],t.frameType=this.oWASM.HEAP32[n+4>>2],t.frameSize=this.oWASM.HEAP32[n+8>>2],t.width=this.oWASM.HEAP32[n+12>>2],t.height=this.oWASM.HEAP32[n+16>>2],t.timeStamp=this.oWASM.HEAP32[n+20>>2],t.frameRate=this.oWASM.HEAP32[n+24>>2],t.bitPerSample=this.oWASM.HEAP32[n+28>>2],t.samplesPerSec=this.oWASM.HEAP32[n+32>>2],t.channel=this.oWASM.HEAP32[n+36>>2],t.frameNum=this.oWASM.HEAP32[n+40>>2],t.cropLeft=this.oWASM.HEAP32[n+44>>2],t.cropRight=this.oWASM.HEAP32[n+48>>2],t.cropTop=this.oWASM.HEAP32[n+52>>2],t.cropBottom=this.oWASM.HEAP32[n+56>>2],t.year=this.oWASM.HEAP16[n+60>>1],t.month=this.oWASM.HEAP16[n+62>>1],t.week=this.oWASM.HEAP16[n+64>>1],t.day=this.oWASM.HEAP16[n+66>>1],t.hour=this.oWASM.HEAP16[n+68>>1],t.minute=this.oWASM.HEAP16[n+70>>1],t.second=this.oWASM.HEAP16[n+72>>1],t.milliseconds=this.oWASM.HEAP16[n+74>>1],e(t))}}]),l);function l(e,t,n,s){(0,i.default)(this,l),this.szCanvasID=e,this.clonedCanvas=null,this.oWASM=null,this.iPort=-1,this.pCanvasData=null,this.iYUVWidth=0,this.iYUVHeight=0,this.bPlay=!1,this.bPause=!1,this.bOnebyOne=!1,this.bIsFirstFrame=!0,this.bIsGetYUV=!1,this.bIsInput=!1,this.iZoomNum=0,this.iCanvasWidth=0,this.iCanvasHeight=0,this.nDecFrameType=r,n&&"function"==typeof n&&(this.fnCallBack=n),this.aInputDataBuffer=[],this.setCallBack=function(e,t,n,i,a){var r=d;r.id=s,r.cmd=t,r.data=n,r.errorCode=i,r.status=a,(r.instance=e).fnCallBack(r)},this.aInputDataLens=[],this.aInputDataBuffer=[],this.bIsGetYUV=!1,this.bIsFirstFrame=!0,this.iInputMaxBufSize=o,this.bIsInput=!1,this.bIsInputBufOver=!1,this.iInputDataLen=u,t&&(this.oWASM=t)}t.JSPlayCtrl=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSPlayCtrl=void 0;var i=s(n(1)),a=s(n(2)),r=s(n(15));function s(e){return e&&e.__esModule?e:{default:e}}var m=0,p=1,d=2,y=11,v=16,g=31,M=48,o=60,L=100,S=101,u={AUDIO_G711_U:28944,AUDIO_G711_A:28945,AUDIO_G722_1:29217,AUDIO_G726_U:29280,AUDIO_G726_A:29281,AUDIO_G726_2:29282,AUDIO_AACLC:8193,AUDIO_MPEG:8192,AUDIO_ADPCM:4096,AUDIO_NULL:0},l=0,k=15,h=8,c=1,w=50,b=5,D=2,_=5242880,T=20480,Y=200,E=100,P=20,C=100,A=1,x=0,R={width:0,height:0,frameNum:0,yuvData:null},O={width:0,height:0,frameNum:0,yuvData:null},I={sampleRate:0,channel:0,bitsPerSample:0,length:0,pcmData:null},f=!1,H=!1,W=!1,j={id:null,cmd:null,data:null,errorCode:0,status:null};function F(n){return new r.default(function(e){var t=document.createElement("script");t.type="text/javascript",t.src=n,t.onload=function(){e()},document.body.appendChild(t)})}t.JSPlayCtrl=((0,a.default)(B,[{key:"_loadRenderFiles",value:async function(){H&&f||(await r.default.all([F(this.szBasePath+"AudioRenderer.js"),F(this.szBasePath+"SuperRender_10.js")]),f=H=!0)}},{key:"PlayM4_SetCurrentFrameNum",value:function(e,t){return null!=this.decodeWorker&&null!=this.oSuperRender&&this.bPlay?e<0||0!==t&&1!==t?this.iLastErrorCode=m:this.PlayM4_SetPlayPosition(0,e,t):this.iLastErrorCode=d}},{key:"PlayM4_SetPlayPosition",value:function(e,t,n){return null!=this.decodeWorker&&null!=this.oSuperRender&&this.bPlay?0!==e&&1!==e||t<0||0!==n&&1!==n?this.iLastErrorCode=m:(this.SetPlayPositionFlag=!0,this.iFrameNumOrTime=t,this.bSetPlayPositionType=n,this.decodeWorker.postMessage({command:"SetPlayPosition",data:this.iFrameNumOrTime,type:e}),this.aAudioBuffer.splice(0,this.aAudioBuffer.length),this.iAudioBufferSize=0,this.aVideoFrameBuffer.splice(0,this.aVideoFrameBuffer.length),this.aInputDataBuffer.splice(0,this.aInputDataBuffer.length),this.aInputDataLens.splice(0,this.aInputDataLens.length),this.bIsFirstFrame=!0,this.bIsInputBufOver=!1,this.iLastErrorCode=p):this.iLastErrorCode=d}},{key:"PlayM4_OpenPlayerSDKPrintLog",value:function(e){return W=!0===e,this.decodeWorker.postMessage({command:"printLog",data:e}),this.iLastErrorCode=p}},{key:"PlayM4_DownloadYUVdata",value:function(){return this.bWriteYUVData=!0,this.iLastErrorCode=p}},{key:"PlayM4_DownloadPCMdata",value:function(){return this.bWritePCMData=!0,this.iLastErrorCode=p}},{key:"PlayM4_SetDecCallBack",value:function(e){return W&&console.log(">>>JS MainThread-PlayM4_SetDecCallBack"),e&&"function"==typeof e?(this.DecCallBackFun=e,this.iLastErrorCode=p):this.iLastErrorCode=m}},{key:"PlayM4_SetDisplayCallBack",value:function(e){return W&&console.log(">>>JS MainThread-PlayM4_SetDisplayCallBack"),e&&"function"==typeof e?(this.DisplayCallBackFun=e,this.iLastErrorCode=p):this.iLastErrorCode=m}},{key:"PlayM4_SetPCMCallBack",value:function(e){return W&&console.log(">>>JS MainThread-PlayM4_SetDisplayCallBack"),e&&"function"==typeof e?(this.PCMCallBackFun=e,this.iLastErrorCode=p):this.iLastErrorCode=m}},{key:"PlayM4_SetStreamOpenMode",value:function(e){return null==e||void 0===e||0!==e&&1!==e?this.iLastErrorCode=m:(this.streamOpenMode=e,W&&console.log(">>>JS PlayM4_SetStreamOpenMode nMode:"+e),this.iLastErrorCode=p)}},{key:"PlayM4_DownloadRTPData",value:function(e){this.downloadRTP=e}},{key:"PlayM4_OpenStream",value:function(e,t,n){if(W&&console.log(">>>JS PlayM4_OpenStream 1 nSysTime:"+((new Date).getMonth()+1)+"-"+(new Date).getDate()+" "+(new Date).getHours()+":"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds()),null==this.decodeWorker)return this.iLastErrorCode=d;if(this.downloadRTP&&(i=new Uint8Array(e.buffer),this.DownloadRTPData(i),console.log("write 40 hik head")),null==e||t<=0||n<=0)return this.iLastErrorCode=m;this.bPlay=!1,this.bPause=!1,this.bOnebyOne=!1,this.bIsFirstFrame=!0,this.bIsGetYUV=!1,this.bIsInput=!1;var i=this.checkAudioType(e);return this.bAudioTypeSupport=p===i,this.decodeWorker.postMessage({command:"SetStreamOpenMode",data:this.streamOpenMode}),W&&console.log(">>>JS PlayM4_OpenStream 2 nSysTime:"+((new Date).getMonth()+1)+"-"+(new Date).getDate()+" "+(new Date).getHours()+":"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds()),this.decodeWorker.postMessage({command:"OpenStream",data:e,dataSize:t,bufPoolSize:n}),W&&console.log(">>>JS PlayM4_OpenStream 3 nSysTime:"+((new Date).getMonth()+1)+"-"+(new Date).getDate()+" "+(new Date).getHours()+":"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds()),this.bOpenStream=!0,this.iLastErrorCode=p}},{key:"PlayM4_CloseStream",value:function(){return W&&console.log(">>>JS PlayM4_CloseStream 1 nSysTime:"+((new Date).getMonth()+1)+"-"+(new Date).getDate()+" "+(new Date).getHours()+":"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds()),null===this.decodeWorker||!1===this.bOpenStream?this.iLastErrorCode=d:(this.bOnlyPlaySound=!1,this.PlayM4_Stop(),this.decodeWorker.postMessage({command:"CloseStream"}),null!==this.oSuperRender&&(this.oSuperRender.SR_Destroy(),this.oSuperRender=null),null!==this.audioRenderer&&(this.audioRenderer.Stop(),this.audioRenderer=null),this.aAudioBuffer.splice(0,this.aAudioBuffer.length),this.aVideoFrameBuffer.splice(0,this.aVideoFrameBuffer.length),this.aInputDataBuffer.splice(0,this.aInputDataBuffer.length),this.aInputDataLens.splice(0,this.aInputDataLens.length),this.aAudioEncBuffer.splice(0,this.aAudioEncBuffer.length),this.aVideoYUVBuffer.splice(0,this.aVideoYUVBuffer.length),this.aAudioPCMBuffer.splice(0,this.aAudioPCMBuffer.length),this.aRawDataBuffer.splice(0,this.aRawDataBuffer.length),this.bOpenStream=!1,this.iAudioBufferSize=0,this.szOSDTime=null,this.iLastErrorCode=p)}},{key:"PlayM4_Destroy",value:function(){return W&&console.log(">>>JS PlayM4_Destroy 1 nSysTime:"+((new Date).getMonth()+1)+"-"+(new Date).getDate()+" "+(new Date).getHours()+":"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds()),null===this.decodeWorker||(this.PlayM4_CloseStream(),this.decodeWorker.terminate(),this.decodeWorker=null),this.iLastErrorCode=p}},{key:"PlayM4_InputData",value:function(e,t){if(null===this.decodeWorker||!1===this.bOpenStream)return this.iLastErrorCode=d;var n=this.aInputDataBuffer.length;if(4===t){var i=new Uint8Array(e.buffer);if(1===i[0]&&2===i[1]&&3===i[2]&&4===i[3])return W&&console.log(">>>JS PlaySDKInterface PlayM4_InputData:intput end"),this.bIsFirstFrame?(W&&console.log(">>>JS inputData FirstTime"),this.inputDataFun()):this.bIsGetYUV?this.inputDataFun():this.bIsInput=!0,i=null,this.iLastErrorCode=p}if(n+t>this.iInputMaxBufSize)return console.log("input over"),this.inputDataFun(),this.iLastErrorCode=y;var a=null,r=t;switch(this.streamOpenMode){case 1:a=new Uint8Array(e.buffer),this.downloadRTP&&(this.DownloadRTPData(a),this.rtpNum++,console.log("rtpNUm:"+this.rtpNum)),this.aInputDataLens.push(t);break;case 0:var r=t+4,s=new Uint32Array([t]),o=new Uint8Array(s.buffer);(a=new Uint8Array(r)).set(o,0),a.set(e,4),this.downloadRTP&&(this.DownloadRTPData(a),this.rtpNum++,console.log("rtpNUm:"+this.rtpNum)),0,this.aInputDataLens.push(t+4);break;default:return this.iLastErrorCode=v}for(var u=0;u<r;u++)this.aInputDataBuffer[n+u]=a[u];return this.bPlay?(a=null,W&&console.log(">>>JS PlayM4_InputData 1: nSize:%d, iInputBufLen:%d, iInputMaxBufSize;%d",t,this.aInputDataBuffer.length,this.iInputMaxBufSize),this.bOnlyPlaySound?(W&&console.log(">>>JS PlayM4_InputData: OnlyPlaySound"),this.inputDataFun()):this.bIsFirstFrame?(W&&console.log(">>>JS PlayM4_InputData is firstFrame"),this.inputDataFun()):this.bIsGetYUV?(W&&console.log(">>>JS PlayM4_InputData is GetYUV"),this.inputDataFun()):(W&&console.log(">>>JS PlayM4_InputData 1-3 sysTime:"+((new Date).getMonth()+1)+"-"+(new Date).getDate()+" "+(new Date).getHours()+":"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds()),this.bIsInput=!0),this.iLastErrorCode=p):p}},{key:"DownloadRTPData",value:function(e){if(this.bWriteRTPData){for(var t=new Uint8Array(e),n=this.aRTPDataBuffer.length,i=0,a=t.length;i<a;i++)this.aRTPDataBuffer[n+i]=t[i];this.iRTPDataSize++,t=null}this.bWriteRTPData&&200<=this.iRTPDataSize&&(console.log("download200RTPdata"),e=new Uint8Array(this.aRTPDataBuffer),this.downloadFile(e,"RTP.data"),this.aRTPDataBuffer.splice(0,this.aRTPDataBuffer.length),this.bWriteRTPData=!1,this.iRTPDataSize=0,this.rtpNum=0,this.downloadRTP=!1,e=null)}},{key:"PlayM4_Play",value:function(e){if(null===this.decodeWorker)return this.iLastErrorCode=d;if(W&&console.log(">>>JS PlayM4_Play canvasID: "+e),null===e)this.bOnlyPlaySound=!0,this.sCanvasId=null;else{if("string"!=typeof e)return this.iLastErrorCode=m;if(this.bOnebyOne&&(this.bPlayRateChange=!1,this.bOnebyOne=!1,this.bPause=!1,this.draw()),this.bPlay)return this.iLastErrorCode=p;if(null==this.oSuperRender&&(this.oSuperRender=new SuperRender(e,this.szBasePath),null==this.oSuperRender))return this.iLastErrorCode=61;this.sCanvasId=e,this.bPlay=!0,this.bPause=!1,this.bOnebyOne=!1,this.bPlaySound=!1,this.bPlayRateChange=!1,this.bOnlyPlaySound=!1,this.draw()}return null==this.audioRenderer&&(this.audioRenderer=new AudioRenderer,null==this.audioRenderer)?this.iLastErrorCode=61:this.iLastErrorCode=p}},{key:"PlayM4_Stop",value:function(){return W&&console.log(">>>JS PlayM4_Stop 1"),null!=this.decodeWorker&&null!=this.oSuperRender&&this.bPlay?(this.bPlaySound&&(this.PlayM4_StopSound(),this.bPlaySound=!0),this.bPlay=!1,this.bOnebyOne=!1,this.bPause=!1,this.oSuperRender.SR_SetDisplayRect(null),this.iZoomNum=0,this.bDisRect=!1,this.oSuperRender.SR_DisplayFrameData(this.nWidth,this.nHeight,null),this.iLastErrorCode=p):this.iLastErrorCode=d}},{key:"PlayM4_PlayRate",value:function(e){return null==this.decodeWorker?this.iLastErrorCode=d:(this.bPlayRateChange=1!==e,this.iInputDataLen=(e=e<1?1:e)*T,this.iLastErrorCode=p)}},{key:"PlayM4_Pause",value:function(e){return null==this.decodeWorker||null==this.oSuperRender||!this.bPlay||this.bOnebyOne?this.iLastErrorCode=d:"boolean"!=typeof e?this.iLastErrorCode=m:(this.bPause=e,this.bIsFirstFrame=!0,W&&console.log(">>>JS PlayM4_Pause:"+e),e?this.bPlaySound&&(this.PlayM4_StopSound(),this.bPlaySound=!0):(this.bPlaySound&&this.PlayM4_PlaySound(),this.draw()),this.iLastErrorCode=p)}},{key:"PlayM4_OneByOne",value:function(e){return null!=this.decodeWorker&&null!=this.oSuperRender&&this.bPlay?10<e||e<=0?this.iLastErrorCode=m:(e=e||1,this.iInputDataLen=T,this.FrameForwardLen=e,this.bPause=!0,this.bOnebyOne=!0,this.bIsFirstFrame=!0,this.draw(),this.iLastErrorCode=p):this.iLastErrorCode=d}},{key:"PlayM4_PlaySound",value:function(e){return null===this.decodeWorker||!1===this.bOpenStream?this.iLastErrorCode=d:this.bAudioTypeSupport?e<0||16<e?this.iLastErrorCode=m:null==this.audioRenderer&&(this.audioRenderer=new AudioRenderer,null==this.audioRenderer)?this.iLastErrorCode=61:(this.audioRenderer.SetWndNum(e),this.audioRenderer.oAudioContext.resume(),this.bPlaySound=!0,this.iLastErrorCode=p):this.iLastErrorCode=v}},{key:"PlayM4_StopSound",value:function(){return null!=this.decodeWorker&&null!=this.audioRenderer&&this.bPlaySound?(this.bPlaySound=!1,this.iLastErrorCode=p):this.iLastErrorCode=d}},{key:"PlayM4_SetDisplayBuf",value:function(e){return null==this.decodeWorker?this.iLastErrorCode=d:e<=0?this.iLastErrorCode=m:(this.YUVBufferSize=e,this.iLastErrorCode=p)}},{key:"PlayM4_SetSecretKey",value:function(e,t,n){if(null==this.decodeWorker||!1===this.bOpenStream)return this.iLastErrorCode=d;if(null==t)return this.iLastErrorCode=m;if(1===e){if(128!==n)return this.iLastErrorCode=m;if(null==t||void 0===t)return this.iLastErrorCode=m}else if(0!==e)return this.iLastErrorCode=m;return this.decodeWorker.postMessage({command:"SetSecretKey",data:t,nKeyType:e,nKeyLen:n}),this.iLastErrorCode=p}},{key:"PlayM4_SetDecodeFrameType",value:function(e){return null==this.decodeWorker||null==this.oSuperRender?this.iLastErrorCode=d:e!==l&&1!==e?this.iLastErrorCode=m:(W&&(console.log(">>>JS PlayM4_SetDecodeFrameType"),console.log(e)),this.nDecFrameType=e,this.decodeWorker.postMessage({command:"SetDecodeFrameType",data:e}),this.iLastErrorCode=p)}},{key:"PlayM4_SetIFrameDecInterval",value:function(e){return 1!==this.nDecFrameType?this.iLastErrorCode=d:e<0?this.iLastErrorCode=m:(this.decodeWorker.postMessage({command:"SetIFrameDecInterval",data:e}),this.iLastErrorCode=p)}},{key:"PlayM4_SetLostFrameMode",value:function(e){return e<0||1<e?m:(this.decodeWorker.postMessage({command:"SetLostFrameMode",data:e}),p)}},{key:"PlayM4_SetDisplayRegion",value:function(e,t){if(W&&console.log("PlayM4_SetDisplayRegion "),null===this.decodeWorker||!1===this.bPlay||null===this.oSuperRender||null===this.canvasId)return this.iLastErrorCode=d;if(!0===t){if(null==e)return W&&console.log("PlayM4_SetDisplayRegion: dipalyRect is null"),this.iLastErrorCode=m;if("number"!=typeof e.left||"number"!=typeof e.top||"number"!=typeof e.right||"number"!=typeof e.bottom)return this.iLastErrorCode=m;if(e.right<0||e.left<0||e.top<0||e.bottom<0)return W&&console.log("PlayM4_SetDisplayRegion: dipalyRect rectParameter is wrong"),this.iLastErrorCode=m;var n=e.left,i=e.right,a=e.top,t=e.bottom,e=document.getElementById(this.sCanvasId).getBoundingClientRect();if(this.iCanvasWidth=e.width,this.iCanvasHeight=e.height,i-n<16||t-a<16||i-n>this.iCanvasWidth||t-a>this.iCanvasHeight)return this.iLastErrorCode=m;0!==this.iZoomNum&&(n=Math.round(n/this.iRatio_x)+this.stDisplayRect.left,a=Math.round(a/this.iRatio_y)+this.stDisplayRect.top,i=Math.round(i/this.iRatio_x)+this.stDisplayRect.left,t=Math.round(t/this.iRatio_y)+this.stDisplayRect.top),this.stDisplayRect={top:a,left:n,right:i,bottom:t},this.oSuperRender.SR_SetDisplayRect(this.stDisplayRect),this.bDisRect=!0;a=t-a;this.iRatio_x=this.iCanvasWidth/(i-n),this.iRatio_y=this.iCanvasHeight/a,this.iZoomNum++}else this.oSuperRender.SR_SetDisplayRect(null),this.iZoomNum=0,this.bDisRect=!1;return(this.bPause||this.bOnebyOne||this.bPlayRateChange)&&this.oSuperRender.SR_DisplayFrameData(this.nWidth,this.nHeight,new Uint8Array(this.aDisplayBuf)),this.iLastErrorCode=p}},{key:"PlayM4_GetBMP",value:function(e){return this.getPic(e,"GetBMP")}},{key:"PlayM4_GetJPEG",value:function(e){return this.getPic(e,"GetJPEG")}},{key:"PlayM4_SetVolume",value:function(e){return null==this.decodeWorker||null==this.audioRenderer?this.iLastErrorCode=d:e<0||100<e?this.iLastErrorCode=m:(this.audioRenderer.SetVolume(e/100),this.iLastErrorCode=p)}},{key:"PlayM4_GetVolume",value:function(e){if(null==this.decodeWorker||null==this.audioRenderer)return this.iLastErrorCode=d;if(e&&"function"==typeof e){var t=this.audioRenderer.GetVolume();return null===t?63:(e(10*Math.round(10*t)),this.iLastErrorCode=p)}return this.iLastErrorCode=m}},{key:"PlayM4_GetOSDTime",value:function(e){return null!=this.decodeWorker&&this.bPlay?e&&"function"==typeof e?(e(this.szOSDTime),this.iLastErrorCode=p):this.iLastErrorCode=m:this.iLastErrorCode=d}},{key:"PlayM4_IsVisible",value:function(e){return this.bVisibility=e,W&&console.log(">>>JS PlayM4_IsVisible visibility:"+e),this.iLastErrorCode=p}},{key:"PlayM4_GetSdkVersion",value:function(){return"07020146"}},{key:"PlayM4_GetBuildDate",value:function(){return"20210923"}},{key:"PlayM4_GetInputBufSize",value:function(){return this.aInputDataBuffer.length}},{key:"PlayM4_SetInputBufSize",value:function(e){return 0<e?(this.iInputMaxBufSize=e,this.iLastErrorCode=p):this.iLastErrorCode=m}},{key:"PlayM4_GetYUVBufSize",value:function(){return this.aVideoFrameBuffer.length}},{key:"PlayM4_GetFrameResolution",value:function(e){return null==this.decodeWorker?this.iLastErrorCode=d:e&&"function"==typeof e?(e(this.nWidth,this.nHeight),this.iLastErrorCode=p):this.iLastErrorCode=m}},{key:"PlayM4_RegisterYUVBufSizeCB",value:function(e){return e&&"function"==typeof e?(this.YUVBufSizeCBFun=e,this.iLastErrorCode=p):this.iLastErrorCode=m}},{key:"PlayM4_UnRegisterYUVBufSizeCB",value:function(){return null!=this.YUVBufSizeCBFun&&(this.YUVBufSizeCBFun=null),this.iLastErrorCode=p}},{key:"PlayM4_ClearCanvas",value:function(){return null==this.oSuperRender?this.iLastErrorCode=d:(this.oSuperRender.SR_DisplayFrameData(this.nWidth,this.nHeight,null),this.iLastErrorCode=p)}},{key:"PlayM4_ReleaseInputBuffer",value:function(){return null===this.aInputDataBuffer?this.iLastErrorCode=d:(this.aInputDataBuffer.splice(0,this.aInputDataBuffer.length),this.aInputDataLens.splice(0,this.aInputDataLens.length),this.iLastErrorCode=p)}},{key:"PlayM4_GetDecodeFrameType",value:function(){return this.nDecFrameType}},{key:"PlayM4_CreateAudEncode",value:function(e){return W&&console.log(">>>JS PlayM4_CreateAudEncode 1 nEncoderType:"+e),null==this.decodeWorker?79:e<1||6<e||5===e?71:(this.decodeWorker.postMessage({command:"CreateAudEncode",encodertype:e}),W&&console.log(">>>JS PlayM4_CreateAudEncode 2 nEncoderType:"+e),p)}},{key:"PlayM4_SetAudEncodeParam",value:function(e,t,n,i){return W&&console.log(">>>JS PlayM4_SetAudEncodeParam 1 nSampleRate:"+e+",nChannel:"+t+" ,nBitRate:"+n+" ,nBitWidth:"+i),null==this.decodeWorker?79:1!=t||16!=i?71:(this.decodeWorker.postMessage({command:"SetAudEncodeParam",samplerate:e,channel:t,bitrate:n,bitwidth:i}),W&&console.log(">>>JS PlayM4_SetAudEncodeParam 2 nSampleRate:"+e+",nChannel:"+t+" ,nBitRate:"+n+" ,nBitWidth:"+i),p)}},{key:"PlayM4_InputAudEncodeData",value:function(e,t){return W&&console.log(">>>JS PlayM4_InputAudEncodeData 1 dataSize:"+t),null==this.decodeWorker?79:(W&&console.log(">>>JS PlayM4_InputAudEncodeData 2 dataSize:"+t+", nSysTime:"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds()),this.decodeWorker.postMessage({command:"InputAudEncodeData",data:e,dataSize:t}),p)}},{key:"PlayM4_DestroyAudEncode",value:function(){return W&&console.log(">>>JS MainThread-PlayM4_DestroyAudEncode 1 "),null==this.decodeWorker?79:(this.aAudioEncBuffer.splice(0,this.aAudioEncBuffer.length),this.iAudioEncBufferSize=0,this.decodeWorker.postMessage({command:"DestroyAudEncode"}),p)}},{key:"PlayM4_GetAudioEmcBuf",value:function(){return this.aAudioEncBuffer}},{key:"PlayM4_RegisterAudEncodeCB",value:function(e){return W&&console.log(">>>JS PlayM4_RegisterAudEncodeCB 1 callback:"+e),e&&"function"==typeof e?(this.AudEncodeDataCBFun=e,W&&console.log(">>>JS PlayM4_RegisterAudEncodeCB 2 callback:"+e),p):m}},{key:"downloadFile",value:function(e,t){var n=e;e instanceof Blob||e instanceof File||(n=new Blob([e]));e=window.URL.createObjectURL(n),n=window.document.createElement("a");n.href=e,n.download=t;t=document.createEvent("MouseEvents");t.initEvent("click",!0,!0),n.dispatchEvent(t)}},{key:"PlayM4_GetLastError",value:function(){return this.iLastErrorCode}}]),B);function B(e,t,s){if((0,i.default)(this,B),null==e||void 0===e||"string"!=typeof e)return m;if(this.szBasePath=e,!t||"function"!=typeof t)return m;this.fnCallBack=t,this.decodeWorker=null,this.streamOpenMode=null,this.bOpenStream=!1,this.iFrameNumOrTime=0,this.bSetPlayPositionType=x,this.audioRenderer=null,this.aAudioBuffer=[],this.iAudioBufferSize=0,this.bWriteAudEnc=!1,this.iAudioEncBufferSize=0,this.aAudioEncBuffer=[],this.oSuperRender=null,this.aVideoFrameBuffer=[],this.YUVBufferSize=c,this.szOSDTime=null,this.bWriteYUVData=!1,this.iYUV10size=0,this.aVideoYUVBuffer=[],this.bWritePCMData=!1,this.iAudioBuffer500Size=0,this.aAudioPCMBuffer=[],this.bWriteRawData=!1,this.iRawDataSize=0,this.aRawDataBuffer=[],this.bWriteRTPData=!0,this.iRTPDataSize=0,this.aRTPDataBuffer=[],this.downloadRTP=!1,this.rtpNum=0,this.bPlaySound=!1,this.bPlay=!1,this.bPause=!1,this.bOnebyOne=!1,this.bPlayRateChange=!1,this.bAudioTypeSupport=!0,this.audioNum=0,this.videoNum=0,this.SetPlayPositionFlag=!1,this.FrameForwardLen=1,this.bOnlyPlaySound=!1,this.dataCallBackFun=null,this.YUVBufSizeCBFun=null,this.AudEncodeDataCBFun=null,this.DecCallBackFun=null,this.DisplayCallBackFun=null,this.PCMCallBackFun=null,this.DecInfoYUV=R,this.DisplayInfoYUV=O,this.DecInfoPCM=I,this.nWidth=0,this.nHeight=0,this.nSPSCropLeft=0,this.nSPSCropRight=0,this.nSPSCropTop=0,this.nSPSCropBottom=0,this.sCanvasId=null,this.aDisplayBuf=null,this.bVisibility=!0,this.nDecFrameType=l,this.iCanvasWidth=0,this.iCanvasHeight=0,this.iZoomNum=0,this.iRatio_x=1,this.iRatio_y=1,this.stDisplayRect={top:0,left:0,right:0,bottom:0},this.bDisRect=!1,this.stYUVRect={top:0,left:0,right:0,bottom:0},this.aInputDataLens=[],this.aInputDataBuffer=[],this.bIsGetYUV=!1,this.bIsFirstFrame=!0,this.iInputMaxBufSize=_,this.bIsInput=!1,this.bIsInputBufOver=!1,this.iInputDataLen=T;var f=this;this.iLastErrorCode=p,this.setCallBack=function(e,t,n,i,a){var r=j;r.id=s,r.cmd=t,r.data=n,r.errorCode=i,r.status=a,e.fnCallBack(r)},this._loadRenderFiles(),this.convertErrorCode=function(e){switch(e){case 1:return this.iLastErrorCode=p;case 98:return this.iLastErrorCode=m;default:return this.iLastErrorCode=e}},this.arrayBufferCopy=function(e){for(var t=e.byteLength,n=new Uint8Array(t),i=new Uint8Array(e),a=0,a=0;a<t;a++)n[a]=i[a];return n},this.inputDataFun=function(){var e=0;if(f.bIsGetYUV=!1,f.bIsInputBufOver){W&&console.log(">>>JS inputDataFun over!");var t=new Uint8Array(1),n={command:"InputData",data:new Uint8Array(t).buffer,dataSize:0};f.decodeWorker.postMessage(n,[n.data])}else if(f.bPlay&&(!f.bPause||f.bOnebyOne)||this.bOnlyPlaySound){for(;0<f.aInputDataLens.length&&!((e+=f.aInputDataLens.shift())>f.iInputDataLen););W&&console.log(">>>JS inputDataFun-len:%d,totalSize:%d",e,f.aInputDataBuffer.length),t=f.aInputDataBuffer.splice(0,e);n={command:"InputData",data:new Uint8Array(t).buffer,dataSize:e};f.decodeWorker.postMessage(n,[n.data])}t=null},this.getPic=function(e,t){if(null==this.decodeWorker||null==this.oSuperRender)return this.iLastErrorCode=d;if(!this.bPlay)return this.iLastErrorCode=d;if(!e||"function"!=typeof e)return this.iLastErrorCode=m;var n;if(this.dataCallBackFun=e,0===this.iZoomNum)this.stYUVRect.left=0,this.stYUVRect.top=0,this.stYUVRect.right=0,this.stYUVRect.bottom=0;else if(0===this.iCanvasWidth||0===this.iCanvasHeight?(this.stYUVRect.left=0,this.stYUVRect.top=0,this.stYUVRect.right=0,this.stYUVRect.bottom=0):(n=this.nWidth/this.iCanvasWidth,e=this.nHeight/this.iCanvasHeight,this.stYUVRect.left=Math.round(this.stDisplayRect.left*n),this.stYUVRect.top=Math.round(this.stDisplayRect.top*e),this.stYUVRect.right=Math.round(this.stDisplayRect.right*n),this.stYUVRect.bottom=Math.round(this.stDisplayRect.bottom*e)),this.stYUVRect.right-this.stYUVRect.left<32||this.stYUVRect.bottom-this.stYUVRect.top<32)return this.iLastErrorCode=m;if(null==this.aDisplayBuf)return this.iLastErrorCode=d;t={command:t,data:this.arrayBufferCopy(this.aDisplayBuf).buffer,width:this.nWidth,height:this.nHeight,rect:this.stYUVRect};return W&&console.log(">>>JS capture nWidth = %d,nWidth = %d",this.nWidth,this.nHeight),this.decodeWorker.postMessage(t,[t.data]),this.iLastErrorCode=p},this.createWorker=function(_){if(window.Worker){if(null==this.decodeWorker&&(this.decodeWorker=new Worker(f.szBasePath+"DecodeWorker.js"),W&&console.log(">>>JS createWorker success!!!!!!!!!!!!!!!!!!!!!!!!!"),null==this.decodeWorker))return this.iLastErrorCode=o;this.decodeWorker.onmessage=function(e){var t,n=null,i=e.data;switch(i.function){case"printLog":console.log("print JSPlayerSDK log failed");break;case"loaded":_.setCallBack(_,n="loaded",0,0,!0);break;case"SetStreamOpenMode":n="SetStreamOpenMode";break;case"OpenStream":if(n="OpenStream",1===i.errorCode)return void(f.bOpenStream=!0);break;case"InputData":n="InputData",i.errorCode===y&&(f.bIsInputBufOver=!0,f.inputDataFun(),W&&console.log(">>>JS InputData PLAYM4_BUF_OVER")),i.errorCode===g&&(f.bIsInputBufOver=!1,W&&console.log(">>>JS InputData PLAYM4_NEED_MORE_DATA"));break;case"GetFrameData":if(n="GetFrameData",!f.bOnlyPlaySound){if(W&&console.log(">>>JS mainthread display GetFrameData 1-1"),null!=i.data&&null!=i.frameInfo&&(i.frameInfo.width,i.frameInfo.height),!f.bPlay)return;if(!f.bIsFirstFrame&&i.errorCode===g){f.bIsInputBufOver=!1,setTimeout(f.inputDataFun(),5);break}f.bIsInputBufOver?f.inputDataFun():"videoType"===i.type&&(0<f.aInputDataLens.length&&f.bIsInput?(f.inputDataFun(),f.bIsInput=!1):f.bIsGetYUV=!0,f.bIsFirstFrame=!1)}if(W&&console.log(">>>JS mainthread display GetFrameData bVisibility:"+f.bVisibility),f.bVisibility)if(p===i.errorCode)switch(i.type){case"videoType":if(W&&console.log(">>>JS mainthread display GetFrameData type:"+i.type),null==i.data||null==i.frameInfo)return this.iLastErrorCode=m;if(null!=f.DecCallBackFun&&(W&&console.log(">>>JS MainThread-GetYUVData"),f.DecInfoYUV.height=i.frameInfo.height,f.DecInfoYUV.width=i.frameInfo.width,f.DecInfoYUV.frameNum=i.frameInfo.frameNum,f.DecInfoYUV.yuvData=new Uint8Array(i.data),f.DecCallBackFun(f.DecInfoYUV)),f.bIsFirstFrame=!1,_.nWidth=i.frameInfo.width,_.nHeight=i.frameInfo.height,_.nSPSCropLeft=i.frameInfo.cropLeft,_.nSPSCropRight=i.frameInfo.cropRight,_.nSPSCropTop=i.frameInfo.cropTop,_.nSPSCropBottom=i.frameInfo.cropBottom,(u=new Object).data=i.data,u.osdTime=i.osd,u.nWidth=i.frameInfo.width,u.nHeight=i.frameInfo.height,u.frameNum=i.frameInfo.frameNum,u.timeStamp=i.frameInfo.timeStamp,_.bWriteYUVData){for(var a=new Uint8Array(i.data),r=_.aVideoYUVBuffer.length,s=0,o=a.length;s<o;s++)_.aVideoYUVBuffer[r+s]=a[s];_.iYUV10size++,a=null}_.bWriteYUVData&&_.iYUV10size>=P&&(t=new Uint8Array(_.aVideoYUVBuffer),_.downloadFile(t,"videoYUV.data"),_.aVideoYUVBuffer.splice(0,_.aVideoYUVBuffer.length),_.bWriteYUVData=!1,_.iYUV10size=0,t=null),W&&console.log(">>>JS mainthread getVideoInfo Width:"+u.nWidth+",height:"+u.nHeight+",frameNum:"+u.frameNum),_.aVideoFrameBuffer.push(u);var u=null,u=_.aVideoFrameBuffer.length;if(b<u&&(W&&console.log(">>>JS render loose frame iYUVNum:%d",u),_.bOnebyOne||_.aVideoFrameBuffer.splice(0,D)),_.SetPlayPositionFlag&&_.bSetPlayPositionType===A&&(i.frameInfo.frameNum===_.iFrameNumOrTime||i.frameInfo.timeStamp===_.iFrameNumOrTime)){_.setCallBack(_,"SetFrameNum",0,0,!1),_.bIsFirstFrame=!0;break}if(_.bOnebyOne&&_.aVideoFrameBuffer.length>=k){_.setCallBack(_,"OnebyOne",0,0,!1),_.bIsFirstFrame=!0;break}break;case"audioType":if(W&&console.log(">>>JS mainthread display GetFrameData 2-3 type:"+i.type+",bPlaySound:"+_.bPlaySound+",!bPlayRateChange:"+!_.bPlayRateChange+",bOnlyPlaySound:"+f.bOnlyPlaySound),_.bPlaySound&&!_.bPlayRateChange||f.bOnlyPlaySound){W&&console.log(">>>JS mainthread display GetFrameData 2-4 type"+i.type+"bOnlyPlaySound:"+f.bOnlyPlaySound),null!=f.PCMCallBackFun&&(W&&console.log(">>>JS MainThread-GetYUVData"),f.DecInfoPCM.sampleRate=i.frameInfo.samplesPerSec,f.DecInfoPCM.channel=i.frameInfo.channels,f.DecInfoPCM.bitsPerSample=i.frameInfo.bitsPerSample,f.DecInfoPCM.pcmData=new Uint8Array(i.data),f.DecInfoPCM.length=f.DecInfoPCM.pcmData.length,f.PCMCallBackFun(f.DecInfoPCM));for(a=new Uint8Array(i.data),r=_.aAudioBuffer.length,s=0,o=a.length;s<o;s++)_.aAudioBuffer[r+s]=a[s];if(_.iAudioBufferSize++,a=null,W&&console.log(">>>JS play sound 1 iAudioBufferNum:%d, BufferLen:%d",_.iAudioBufferSize,_.aAudioBuffer.length),_.bWritePCMData){for(a=new Uint8Array(i.data),r=_.aAudioPCMBuffer.length,s=0,o=a.length;s<o;s++)_.aAudioPCMBuffer[r+s]=a[s];console.log("audio_type num:"+_.iAudioBuffer500Size+", len:"+a.length),_.iAudioBuffer500Size++,a=null}_.bWritePCMData&&_.iAudioBuffer500Size>=E&&(u=new Uint8Array(_.aAudioPCMBuffer),_.downloadFile(u,"audioPCM.data"),_.aAudioPCMBuffer.splice(0,_.aAudioPCMBuffer.length),_.bWritePCMData=!1,_.iAudioBuffer500Size=0,u=null),_.iAudioBufferSize>=w&&(W&&console.log(">>>JS play sound 2 iAudioBufferNum:%d, BufferLen:%d",_.iAudioBufferSize,_.aAudioBuffer.length),_.audioRenderer.Play(_.aAudioBuffer,_.aAudioBuffer.length,i.frameInfo),W&&console.log(">>>JS mainthread display Audio push 3 sysTime:"+((new Date).getMonth()+1)+"-"+(new Date).getDate()+" "+(new Date).getHours()+":"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds()),_.aAudioBuffer.splice(0,_.aAudioBuffer.length),_.aAudioBuffer.length=0,_.iAudioBufferSize=0)}break;case"privateType":W&&console.log(">>>JS mainthread display GetFrameData 2-5 type"+i.type+"bOnlyPlaySound:"+f.bOnlyPlaySound);break;default:W&&console.log(">>>JS mainthread display GetFrameData 2-6 type:"+i.type+",bOnlyPlaySound:"+f.bOnlyPlaySound)}else W&&console.log(">>>JS mainthread GetFrameData is not Ok,errorCode:"+i.errorCode);break;case"GetRawData":if(n="GetRawData",_.bWriteRawData){for(var d=new Uint8Array(i.data),l=_.aRawDataBuffer.length,s=0,o=d.length;s<o;s++)_.aRawDataBuffer[l+s]=d[s];_.iRawDataSize++,d=null}_.bWriteRawData&&_.iRawDataSize>=C&&(h=new Uint8Array(_.aRawDataBuffer),_.downloadFile(h,"rawBuffer.data"),_.aRawDataBuffer.splice(0,_.aRawDataBuffer.length),_.bWriteRawData=!1,_.iRawDataSize=0,h=null);break;case"PlaySound":n="PlaySound";break;case"SetPlayPosition":console.log(">>>JS mainthread SetPlayPosition error,errorCode:"+i.errorCode);break;case"GetJPEG":var n="GetJPEG",h=i.data;_.dataCallBackFun(h);break;case"GetBMP":n="GetBMP";var c=i.data;_.dataCallBackFun(c);break;case"GetAudEncodeData":if(W&&console.log(">>>JS MainThread-GetAudEncodeData 1"),n="GetAudEncodeData",p===i.errorCode){if(null!=f.AudEncodeDataCBFun&&(W&&console.log(">>>JS GetAudEncodeData 1 dataSize"+i.dataSize+", nSysTime:"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds()),f.AudEncodeDataCBFun(new Uint8Array(i.data)),W&&console.log(">>>JS GetAudEncodeData 2 dataSize"+i.dataSize+", nSysTime:"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds())),_.bWriteAudEnc){for(a=new Uint8Array(i.data),r=_.aAudioEncBuffer.length,s=0,o=a.length;s<o;s++)_.aAudioEncBuffer[r+s]=a[s];_.iAudioEncBufferSize++,a=null}_.bWriteAudEnc&&_.iAudioEncBufferSize>=Y&&(c=new Uint8Array(_.aAudioEncBuffer),_.downloadFile(c,"Enc.AAC"),_.aAudioEncBuffer.splice(0,_.aAudioEncBuffer.length),_.bWriteAudEnc=!1,_.iAudioEncBufferSize=0,c=null)}else W&&console.log(">>>JS MainThread-GetAudEncodeData 2 err")}"GetFrameData"===n&&"GetAudEncodeData"===n&&v!==i.errorCode&&S!==i.errorCode&&L!==i.errorCode&&M!==i.errorCode||_.setCallBack(_,n,0,_.convertErrorCode(i.errorCode),!0)}}},this.createWorker(f),this.draw=function(){if(f.bPlay){if(!f.bPause||f.bOnebyOne){requestAnimationFrame(f.draw);var e=f.aVideoFrameBuffer.length;if(null!=f.YUVBufSizeCBFun&&f.YUVBufSizeCBFun(e),f.bOnebyOne){if(e<=h&&f.setCallBack(f,"OnebyOne",0,g,!0),e<=f.FrameForwardLen+1)return void f.setCallBack(f,"OnebyOne",0,g,!0);for(var t=f.FrameForwardLen;1<t;){f.aVideoFrameBuffer.shift();t--}f.bOnebyOne=!1}if(W&&console.log(">>>JS Draw aVideoFrameBuffer.length == "+e),e>f.YUVBufferSize){var n=f.aVideoFrameBuffer.shift();if(f.SetPlayPositionFlag){if(W&&console.log(">>>JS SetPlayPositionFlag frameNumOrTime:"+f.iFrameNumOrTime+",currentFrameNum:"+n.frameNum),n.frameNum!=f.iFrameNumOrTime)return void(W&&console.log(">>>JS frameNum!= frameNumOrTime:"+n.frameNum));f.bSetPlayPositionType===A&&(f.bPause=!0),f.SetPlayPositionFlag=!1}W&&console.log(">>>after display frameNum:"+n.frameNum),f.aDisplayBuf=n.data;e=new Uint8Array(f.aDisplayBuf);W&&console.log(">>>JS SR_DisplayFrameData 1 nWidth:%d, nHeight:%d, nWidth1:%d, nHeight1:%d",n.nWidth,n.nHeight,f.nWidth,f.nHeight),f.oSuperRender.SR_DisplayFrameData(n.nWidth,n.nHeight,e,n.nWidth-f.nSPSCropLeft-f.nSPSCropRight,n.nHeight-f.nSPSCropTop-f.nSPSCropBottom),null!=f.DisplayCallBackFun&&(W&&console.log(">>>JS MainThread-DisplayCallBackFun"),f.DisplayInfoYUV.height=n.nHeight,f.DisplayInfoYUV.width=n.nWidth,f.DisplayInfoYUV.frameNum=n.frameNum,f.DisplayInfoYUV.yuvData=new Uint8Array(e),f.DisplayCallBackFun(f.DisplayInfoYUV)),W&&f.bOnebyOne&&console.log("OneByOne frameNum:"+n.frameNum),W&&console.log(">>>JS SR_DisplayFrameData 2 nWidth:%d, nHeight:%d, nWidth1:%d, nHeight1:%d",n.nWidth,n.nHeight,f.nWidth,f.nHeight),e=null,f.szOSDTime=n.osdTime,n=null}else f.setCallBack(f,"Play",0,g,!0)}}else f.bPlay||(W&&console.log(">>>JS mainThread stop play jsplaySDKInterface"),f.aVideoFrameBuffer.splice(0,f.aVideoFrameBuffer.length),f.aAudioBuffer.splice(0,f.aAudioBuffer.length))},this.checkAudioType=function(e){var t,n=[e[12],e[13],0,0];switch(255&n[t=0]|(255&n[t+1])<<8|(255&n[t+2])<<16|(255&n[t+3])<<24){case u.AUDIO_G711_A:case u.AUDIO_G711_U:case u.AUDIO_G722_1:case u.AUDIO_G726_2:case u.AUDIO_G726_A:case u.AUDIO_G726_U:case u.AUDIO_AACLC:case u.AUDIO_MPEG:case u.AUDIO_ADPCM:return this.iLastErrorCode=p;default:return this.iLastErrorCode=v}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSTalkCtrl=void 0;var i=a(n(1)),n=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}var r=!1,s={id:null,cmd:null,data:null,errorCode:0,status:null},o=null;window.JSAUDIOCOM_EncodeDataCBFun=function(e,t,n,i){o&&null!=o.AudEncodeDataCBFun&&o.AudEncodeDataCBFun(new Uint8Array(t))};(0,n.default)(u,[{key:"Talk_CreateAudEncode",value:function(e){this.iTalkEncodePort=this.oTalkWASM._JSAUDIOCOM_CreateEncodeHandle(e),console.log("_JSAUDIOCOM_CreateEncodeHandle port :"+this.iTalkEncodePort)}},{key:"Talk_SetAudEncodeParam",value:function(e,t,n,i){var a;0==this.oTalkWASM._JSAUDIOCOM_RegisterEncodeDataCallBack(this.iTalkEncodePort,t,i,e,n)&&(a=this.oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkEncodePort),console.log("resEncodeDataCallBack resError :"+a)),1!==this.oTalkWASM._JSAUDIOCOM_StartEncode(this.iTalkEncodePort)&&(a=this.oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkEncodePort),console.log("_JSAUDIOCOM_StartEncode resError :"+a))}},{key:"Talk_RegisterAudEncodeCB",value:function(e){return e&&"function"==typeof e?(this.AudEncodeDataCBFun=e,1):0}},{key:"Talk_InputAudEncodeData",value:function(e,t){var n=this.oTalkWASM._malloc(t);if(null===n)return console.log("inputdata malloc failed!!!"),-1;e=new Uint8Array(e);this.oTalkWASM.writeArrayToMemory(e,n);e=void 0;try{e=this.oTalkWASM._JSAUDIOCOM_InputEncodeData(this.iTalkEncodePort,n,t)}catch(e){console.error(e)}return 1!==e&&(e=this.oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkEncodePort),console.log("_JSAUDIOCOM_InputEncodeData resError :"+e)),null!==n&&(this.oTalkWASM._free(n),n=null),1}},{key:"Talk_DestroyAudEncode",value:function(){return this.oTalkWASM._JSAUDIOCOM_StopEncode(this.iTalkEncodePort),this.oTalkWASM._JSAUDIOCOM_ReleaseEncodeHandle(this.iTalkEncodePort),this.iTalkEncodePort=-1,1}},{key:"Talk_CreateAuDecode",value:function(){this.oTalkWASM._JSAUDIOCOM_LoadLibrary(),this.oTalkWASM._JSAUDIOCOM_GetPlayDeviceNum();var e=this.oTalkWASM._JSAUDIOCOM_GetOnePlayDeviceName(0);this.iTalkDecodePort=this.oTalkWASM._JSAUDIOCOM_CreatePlayHandle(),console.log("JSAUDIOCOM getNameRes:"+e+", port:"+this.iTalkDecodePort)}},{key:"Talk_SetAudDecodeParam",value:function(e,t,n,i,a){1!==this.oTalkWASM._JSAUDIOCOM_OpenStream(this.iTalkDecodePort,t,i,e,n,a)&&(a=this.oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkDecodePort),console.log("_JSAUDIOCOM_OpenStream resError :"+a))}},{key:"Talk_OpenStreamDecodeData",value:function(){var e;1!==this.oTalkWASM._JSAUDIOCOM_StartPlay(this.iTalkDecodePort)&&(e=this.oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkDecodePort),console.log("_JSAUDIOCOM_StartPlay resError :"+e))}},{key:"Talk_InputAudDecodeData",value:function(e,t){var n=this.oTalkWASM._malloc(t);if(null===n)return console.log("inputdata malloc failed!!!"),-1;e=new Uint8Array(e);return this.oTalkWASM.writeArrayToMemory(e,n),1!==this.oTalkWASM._JSAUDIOCOM_InputStreamData(this.iTalkDecodePort,n,t)&&(t=this.oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkDecodePort),console.log("_JSAUDIOCOM_InputStreamData resError :"+t)),null!==n&&(this.oTalkWASM._free(n),0),1}},{key:"Talk_DestroyAudDecode",value:function(){this.oTalkWASM._JSAUDIOCOM_StopPlay(this.iTalkDecodePort),this.oTalkWASM._JSAUDIOCOM_ReleasePlayHandle(this.iTalkDecodePort),this.iTalkDecodePort=-1}},{key:"Talk_SetTalkLogFlag",value:function(e){this.oTalkWASM._JSAUDIOCOM_SetPrintLogFlag(this.iTalkDecodePort,e),this.oTalkWASM._JSAUDIOCOM_SetPrintLogFlag(this.iTalkEncodePort,e)}},{key:"Talk_SetVolume",value:function(e){return this.oTalkWASM._JSAUDIOCOM_SetVolume(this.iTalkDecodePort,e)}},{key:"Talk_GetVolume",value:function(e){if(e&&"function"==typeof e)return e(this.oTalkWASM._JSAUDIOCOM_GetVolume(this.iTalkDecodePort)),RETURN_OK}},{key:"Talk_GetLastError",value:function(){return this.oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkDecodePort)}}]),n=u;function u(e,t){var n=this;(0,i.default)(this,u),o=this,t&&"function"==typeof t&&(this.fnCallBack=t),this.setCallBack=function(e,t,n,i,a){var r=s;r.cmd=t,r.data=n,r.errorCode=i,r.status=a,e.fnCallBack(r)},this.iTalkEncodePort=-1,this.iTalkDecodePort=-1,this.AudEncodeDataCBFun=null,this.oTalkWASM=null,r?(this.oTalkWASM=instance,this.setCallBack(this,"loaded")):(t=e,(e=document.createElement("script")).type="text/javascript",e.src=t,e.onload=function(){JSAudioInterComModule().then(function(e){n.oTalkWASM=e,n.setCallBack(n,"loaded")})},document.body.appendChild(e))}t.JSTalkCtrl=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StorageManager=void 0;var u=r(n(15)),o=r(n(1)),i=r(n(2)),d=r(n(84)),a=n(83),l=r(n(55));function r(e){return e&&e.__esModule?e:{default:e}}window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.URL=window.URL||window.webkitURL;var s=((0,i.default)(h,[{key:"init",value:function(){var n=this;0===this.iStreamType?this.szPath="Web/RecordFiles/":1===this.iStreamType&&(this.szPath="Web/PlaybackFiles/"),this.szPath+=this.getDateDir();var i=this.szPath.split("/");return new u.default(function(t){window.requestFileSystem(window.TEMPORARY,n.options.iFileSize,function(e){n.createDir(e.root,i,function(){t()})},n.errorHandler)})}},{key:"getDateDir",value:function(){return a.oTool.dateFormat(new Date,"yyyy-MM-dd")}},{key:"createDir",value:function(e,t,n){var i=this;t.length?e.getDirectory(t[0],{create:!0},function(e){i.createDir(e,t.slice(1),n)},this.errorHandler):n()}},{key:"errorHandler",value:function(){}},{key:"openFile",value:function(){var t=this;window.requestFileSystem(window.TEMPORARY,this.options.iFileSize,function(e){e.root.getFile(t.szPath+"/"+t.szFileName,{create:!0},function(e){e.createWriter(function(e){e.onwriteend=function(){t.writeFile(e)},e.onerror=function(){}},t.errorHandler)},t.errorHandler)},this.errorHandler)}},{key:"writeFileHeader",value:function(n){var i=this;window.requestFileSystem(window.TEMPORARY,this.options.iFileSize,function(e){e.root.getFile(i.szPath+"/"+i.szFileName,{create:!0},function(e){e.createWriter(function(e){i.bStart=!0,e.onwriteend=function(){i.writeFile(e)},e.onerror=function(){},e.seek(e.length);var t=new Blob([n]);e.write(t)},i.errorHandler)},i.errorHandler)},this.errorHandler)}},{key:"writeFileContent",value:function(e){this.aStreamList.push(e)}},{key:"writeFile",value:function(e){var t=this;if(0<this.aStreamList.length){var n=this.aStreamList.shift();if(e.seek(e.length),e.length>=this.options.iFileSize)return void(this.options.cbEventHandler&&this.options.cbEventHandler(3001,this.szUUID));n=new Blob([n]);e.write(n)}else!1===this.bStop&&setTimeout(function(){t.writeFile(e)},1e3);5!==this.iPackType&&0===this.aStreamList.length&&!0===this.bStop&&this.bStart&&(this.bStart=!1,this.stopWriteFile()),this.getStopData&&0===this.aStreamList.length&&(this.bStart=!1,this.stopWriteFile(),this.getStopData=!1)}},{key:"stopWriteFile",value:function(){var n=this;return new u.default(async function(t){return!n.bStop||(!n.getStopData||0<n.aStreamList.length)&&5===n.iPackType||0<n.aStreamList.length&&5!==n.iPackType?t():void await window.requestFileSystem(window.TEMPORARY,n.options.iFileSize,function(e){e.root.getFile(n.szPath+"/"+n.szFileName,{create:!1},function(e){e.file(function(e){t(),a.oTool.downloadFile(e,e.name),n.bStop=!1})},n.errorHandler)},n.errorHandler)})}}]),h);function h(e,t,n,i,a){(0,o.default)(this,h),this.szUUID=e,this.szFileName=t,this.iStreamType=n,this.szPath="",this.bStart=!1,this.getStopData=!1,this.aStreamList=[],this.options=a,this.iPackType=i,this.bStop=!1}var c=((0,i.default)(_,[{key:"init",value:function(){var n=this;return new u.default(function(e,t){n.initFileSystem().then(function(){!0===n.isTranse?n.initWorker().then(function(){e(n.szUUID)},function(e){t(e)}):e(n.szUUID)},function(e){t(e)})})}},{key:"initFileSystem",value:function(){var n=this;return this.oFileSystem=new s(this.szUUID,this.szFileName,this.iStreamType,this.iPackType,this.options),new u.default(function(e,t){n.oFileSystem.init().then(function(){e()},function(e){t(e)})})}},{key:"initWorker",value:function(){var i=this;return new u.default(function(n){i.oWorker=new Worker(i.szBasePath+"systemTransform-worker.js"),i.oWorker.onmessage=function(e){var t=e.data,e=i.iPackType;1===i.options.iPackage&&(e=12),"loaded"===t.type?i.oWorker.postMessage({type:"create",buf:i.aHeadBuf.buffer,len:40,packType:e}):"created"===t.type?n():"outputData"===t.type&&(e=new Uint8Array(t.buf),1===i.options.iPackage?i.bHead?(i.oFileSystem.writeFileHeader(e),i.bHead=!1):i.oFileSystem.writeFileContent(e):(1===t.dType?i.oFileSystem.writeFileHeader(e):i.oFileSystem.writeFileContent(e),6===t.dType&&(i.oFileSystem.getStopData=!0)))}})}},{key:"inputData",value:function(e){var t;!0===this.isTranse?this.oWorker&&(t=new Uint8Array(e),this.oWorker.postMessage({type:"inputData",buf:t.buffer,len:t.length})):!0===this.bHead?(this.oFileSystem.writeFileHeader(e),this.bHead=!1):this.oFileSystem.writeFileContent(e)}},{key:"stopRecord",value:function(){var n=this;return new u.default(function(e,t){!0===n.isTranse&&(n.oWorker?n.oWorker.postMessage({type:"release"}):t()),n.oFileSystem?(n.oFileSystem.bStop=!0,n.oFileSystem.stopWriteFile().then(function(){n.bHead=!0,e()},function(){t()})):t()})}}]),_);function _(e,t,n,i,a,r,s){(0,o.default)(this,_),this.szBasePath=e,this.szUUID=t,this.szFileName=n,this.aHeadBuf=new Uint8Array(i),this.iPackType=a,this.iStreamType=r,this.oWorker=null,this.oFileSystem=null,this.options=s,this.bHead=!0,this.isTranse=!0,(2===i[8]&&0===i[9]&&2===a||"audio"===i)&&(this.isTranse=!1)}(0,i.default)(f,[{key:"startRecord",value:function(e,t,n,i,a){var r=this,s=d.default.v4(),a=l.default.extend({},this.options,a),o=new c(this.szBasePath,s,e,t,n,i,a);return new u.default(function(t,n){o.init().then(function(e){r.oStorageList[e]=o,t(e)},function(e){n(e)})})}},{key:"inputData",value:function(e,t){e=this.oStorageList[e];e&&e.inputData(t)}},{key:"stopRecord",value:function(i){var a=this;return new u.default(function(e,t){var n=a.oStorageList[i];n?n.stopRecord().then(function(){delete a.oStorageList[i],e()},function(){t()}):t()})}}]),i=f;function f(e,t){(0,o.default)(this,f),this.szBasePath=e,this.oStorageList={},this.options={iFileSize:1073741824},l.default.extend(this.options,t)}t.StorageManager=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ESCanvas=void 0;var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r,s=n(55),o=(r=s)&&r.__esModule?r:{default:r};function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var m,h,c,_,f,p,y,i=(m=null,i(L,[{key:"draw",value:function(){}},{key:"drag",value:function(e,t){for(var n=this.m_aPoint.length,i=0,i=0;i<n;i++)if(this.m_aPoint[i][0]+e-this.m_iDriftStartX>m.m_iCanvasWidth||this.m_aPoint[i][1]+t-this.m_iDriftStartY>m.m_iCanvasHeight||this.m_aPoint[i][0]+e-this.m_iDriftStartX<0||this.m_aPoint[i][1]+t-this.m_iDriftStartY<0)return this.m_iDriftStartX=e,void(this.m_iDriftStartY=t);for(i=0;i<n;i++)this.m_aPoint[i][0]=this.m_aPoint[i][0]+e-this.m_iDriftStartX,this.m_aPoint[i][1]=this.m_aPoint[i][1]+t-this.m_iDriftStartY;this.m_iDriftStartX=e,this.m_iDriftStartY=t,this.setPointInfo(this.m_aPoint),v()}},{key:"stretch",value:function(e,t){0===this.m_iEditType&&(-1!==this.m_iIndexChoosePoint&&(this.m_aPoint[this.m_iIndexChoosePoint][0]=e,this.m_aPoint[this.m_iIndexChoosePoint][1]=t),this.setPointInfo(this.m_aPoint),v())}},{key:"inShape",value:function(e,t){for(var n=!1,i=this.m_aPoint.length,a=0,r=i-1;a<i;r=a++)this.m_aPoint[a][1]>t!=this.m_aPoint[r][1]>t&&e<(this.m_aPoint[r][0]-this.m_aPoint[a][0])*(t-this.m_aPoint[a][1])/(this.m_aPoint[r][1]-this.m_aPoint[a][1])+this.m_aPoint[a][0]&&(n=!n);return n}},{key:"inArc",value:function(e,t,n){for(var i=!1,a=0,r=this.m_aPoint.length;a<r;a++)if(Math.sqrt((e-this.m_aPoint[a][0])*(e-this.m_aPoint[a][0])+(t-this.m_aPoint[a][1])*(t-this.m_aPoint[a][1]))<n){i=!0,this.m_iIndexChoosePoint=a;break}return i}},{key:"getMouseDownPoints",value:function(e,t){this.m_iDriftStartX=e,this.m_iDriftStartY=t}},{key:"getPointInfo",value:function(){return this.m_aPoint}},{key:"setPointInfo",value:function(e){null!=e&&0<e.length&&(this.m_aPoint=e,this.setEdgePoints(e))}},{key:"addPoint",value:function(e,t){this.m_aPoint.length<this.m_iMaxPointNum&&this.m_aPoint.push([e,t]),this.m_aPoint.length===this.m_iMaxPointNum&&this.setPointInfo(this.m_aPoint)}},{key:"setEdgePoints",value:function(e){for(var t=0,n=e.length;t<n;t++)0===t?(this.m_oEdgePoints.top.x=e[t][0],this.m_oEdgePoints.top.y=e[t][1],this.m_oEdgePoints.left.x=e[t][0],this.m_oEdgePoints.left.y=e[t][1],this.m_oEdgePoints.right.x=e[t][0],this.m_oEdgePoints.right.y=e[t][1],this.m_oEdgePoints.bottom.x=e[t][0],this.m_oEdgePoints.bottom.y=e[t][1]):(e[t][1]<this.m_oEdgePoints.top.y&&(this.m_oEdgePoints.top.x=e[t][0],this.m_oEdgePoints.top.y=e[t][1]),e[t][0]>this.m_oEdgePoints.right.x&&(this.m_oEdgePoints.right.x=e[t][0],this.m_oEdgePoints.right.y=e[t][1]),e[t][1]>this.m_oEdgePoints.bottom.y&&(this.m_oEdgePoints.bottom.x=e[t][0],this.m_oEdgePoints.bottom.y=e[t][1]),e[t][0]<this.m_oEdgePoints.left.x&&(this.m_oEdgePoints.left.x=e[t][0],this.m_oEdgePoints.left.y=e[t][1]))}}]),d(S,n=L),i(S,[{key:"setPointInfo",value:function(e){if(null!=e){for(var t=e[0][0],n=e[0][1],i=e[0][0],a=e[0][1],r=0,s=e.length;r<s;r++)t>e[r][0]&&(t=e[r][0]),n>e[r][1]&&(n=e[r][1]),i<e[r][0]&&(i=e[r][0]),a<e[r][1]&&(a=e[r][1]);this.m_aPoint=[[t,n],[i,n],[i,a],[t,a]]}}},{key:"draw",value:function(){m.oContext.fillStyle=this.m_szFillColor,m.oContext.strokeStyle=this.m_szDrawColor;var e=this.m_aPoint[0][0],t=this.m_aPoint[0][1],n=this.m_aPoint[2][0]-e,i=this.m_aPoint[2][1]-t;if(m.oContext.globalAlpha=this.m_iTranslucent,m.oContext.fillRect(e,t,n,i),m.oContext.globalAlpha=1,m.oContext.fillText(this.m_szTips,(e+this.m_aPoint[2][0])/2,(t+this.m_aPoint[2][1])/2),this.m_bChoosed){var a=Math.round(n/2),r=Math.round(i/2);if(0===this.m_iEditType)for(var s=[e,e+a,e+n,e,e+n,e,e+a,e+n],o=[t,t,t,t+r,t+r,t+i,t+i,t+i],u=0;u<8;u++)m.oContext.beginPath(),m.oContext.arc(s[u],o[u],3,0,360,!1),m.oContext.fillStyle=this.m_szDrawColor,m.oContext.closePath(),m.oContext.fill()}m.oContext.strokeRect(e,t,n,i)}},{key:"stretch",value:function(e,t){0===this.m_iEditType&&(0===this.m_iIndexChoosePoint?e<this.m_aPoint[2][0]&&t<this.m_aPoint[2][1]&&(this.m_aPoint[0][0]=e,this.m_aPoint[0][1]=t,this.m_aPoint[3][0]=e,this.m_aPoint[1][1]=t):1===this.m_iIndexChoosePoint?t<this.m_aPoint[2][1]&&(this.m_aPoint[0][1]=t,this.m_aPoint[1][1]=t):2===this.m_iIndexChoosePoint?e>this.m_aPoint[3][0]&&t<this.m_aPoint[3][1]&&(this.m_aPoint[1][0]=e,this.m_aPoint[1][1]=t,this.m_aPoint[2][0]=e,this.m_aPoint[0][1]=t):3===this.m_iIndexChoosePoint?e<this.m_aPoint[2][0]&&(this.m_aPoint[0][0]=e,this.m_aPoint[3][0]=e):4===this.m_iIndexChoosePoint?e>this.m_aPoint[0][0]&&(this.m_aPoint[1][0]=e,this.m_aPoint[2][0]=e):5===this.m_iIndexChoosePoint?e<this.m_aPoint[1][0]&&t>this.m_aPoint[1][1]&&(this.m_aPoint[3][0]=e,this.m_aPoint[3][1]=t,this.m_aPoint[0][0]=e,this.m_aPoint[2][1]=t):6===this.m_iIndexChoosePoint?t>this.m_aPoint[1][1]&&(this.m_aPoint[2][1]=t,this.m_aPoint[3][1]=t):7===this.m_iIndexChoosePoint&&e>this.m_aPoint[0][0]&&t>this.m_aPoint[0][1]&&(this.m_aPoint[2][0]=e,this.m_aPoint[2][1]=t,this.m_aPoint[1][0]=e,this.m_aPoint[3][1]=t),v())}},{key:"move",value:function(e){v(),this.m_bChoosed=!0;var t=e[0][0],n=e[0][1],i=e[1][0],e=e[1][1];this.setPointInfo([[t,n],[i,n],[i,e],[t,e]]),this.draw()}},{key:"inArc",value:function(e,t,n){for(var i=this.m_aPoint[0][0],a=this.m_aPoint[0][1],r=this.m_aPoint[2][0]-i,s=this.m_aPoint[2][1]-a,o=Math.round(r/2),u=Math.round(s/2),d=[i,i+o,i+r,i,i+r,i,i+o,i+r],l=[a,a,a,a+u,a+u,a+s,a+s,a+s],h=0;h<8;h++)if(Math.sqrt((e-d[h])*(e-d[h])+(t-l[h])*(t-l[h]))<n)return this.m_iIndexChoosePoint=h,!0;return!1}}]),h=S,d(k,n),i(k,[{key:"draw",value:function(){var e,t,n,i;"true"===this.m_szEnabled&&(e=this.m_aPoint[0][0],t=this.m_aPoint[0][1],n=this.m_aPoint[2][0]-e,i=this.m_aPoint[2][1]-t,m.oContext.beginPath(),m.oContext.strokeStyle=this.m_szDrawColor,m.oContext.globalAlpha=1,m.oContext.rect(e,t,n,i),m.oContext.font="15px serif",m.oContext.strokeText(this.m_szText,e,t+15),m.oContext.stroke())}},{key:"drag",value:function(e,t){var n=this.m_aPoint.length,i=0;if("0"===this.m_szAlignment){for(i=0;i<n;i++)if(this.m_aPoint[i][1]+t-this.m_iDriftStartY>m.m_iCanvasHeight||this.m_aPoint[i][0]+e-this.m_iDriftStartX<0||this.m_aPoint[i][1]+t-this.m_iDriftStartY<0)return this.m_iDriftStartX=e,void(this.m_iDriftStartY=t);for(i=0;i<n;i++)this.m_aPoint[i][0]=this.m_aPoint[i][0]+e-this.m_iDriftStartX,this.m_aPoint[i][1]=this.m_aPoint[i][1]+t-this.m_iDriftStartY}else if("1"===this.m_szAlignment||"2"===this.m_szAlignment){for(i=0;i<n;i++)if(this.m_aPoint[i][1]+t-this.m_iDriftStartY>m.m_iCanvasHeight||this.m_aPoint[i][1]+t-this.m_iDriftStartY<0)return this.m_iDriftStartX=e,void(this.m_iDriftStartY=t);for(i=0;i<n;i++)this.m_aPoint[i][1]=this.m_aPoint[i][1]+t-this.m_iDriftStartY}this.m_iDriftStartX=e,this.m_iDriftStartY=t,this.setEdgePoints(this.m_aPoint),v()}},{key:"stretch",value:function(){}}]),c=k,d(w,n),i(w,[{key:"draw",value:function(){for(var e=m.m_iCanvasWidth/this.m_iGridColNum,t=m.m_iCanvasHeight/this.m_iGridRowNum,n="",i=0;i<this.m_iGridRowNum;i++){for(var a=this.m_szGridMap.substring(6*i,6*i+6),r=parseInt("f"+a,16).toString(2).split("").slice(4),s="",o=0;o<this.m_iGridColNum;o++){var u="",u="1"===r[o]?(m.oContext.strokeStyle=this.m_szDrawColor,m.oContext.globalAlpha=1,m.oContext.strokeRect(e*o,t*i,e,t),"1"):"0";this.m_aAddGridMap.length&&1===this.m_aAddGridMap[i][o]&&(m.oContext.strokeStyle=this.m_szDrawColor,m.oContext.strokeRect(e*o,t*i,e,t),u="1"),s+=u}n+=parseInt("1111"+s+"00",2).toString(16).substring(1)}this.m_szGridMap=n}},{key:"move",value:function(e,t,n,i){for(var a=m.m_iCanvasWidth/this.m_iGridColNum,r=m.m_iCanvasHeight/this.m_iGridRowNum,s=Math.floor(e/a),o=Math.floor(t/r),u=Math.floor(Math.abs(n-e)/a),d=Math.floor(Math.abs(i-t)/r),l=1,h=1,l=0<n-e?1:-1,h=0<i-t?1:-1,c=[],_=0;_<this.m_iGridRowNum;_++){c[_]=[];for(var f=0;f<this.m_iGridColNum;f++)c[_][f]=1===l?1===h?o<=_&&_<=o+d&&s<=f&&f<=s+u?1:0:_<=o&&o-d<=_&&s<=f&&f<=s+u?1:0:1===h?o<=_&&_<=o+d&&f<=s&&s-u<=f?1:0:_<=o&&o-d<=_&&f<=s&&s-u<=f?1:0}this.m_aAddGridMap=c,this.draw()}}]),_=w,d(b,n),i(b,[{key:"draw",value:function(){0===this.m_iLineType?this.drawNormalLine():1===this.m_iLineType?this.drawArrowLine():3===this.m_iLineType?this.drawCrossLine():4===this.m_iLineType&&this.drawLineCount()}},{key:"drawNormalLine",value:function(){if(m.oContext.globalAlpha=1,0<this.m_aPoint.length){m.oContext.beginPath(),m.oContext.strokeStyle=this.m_szDrawColor,m.oContext.lineWidth=2,m.oContext.moveTo(this.m_aPoint[0][0],this.m_aPoint[0][1]);for(var e=1,t=this.m_aPoint.length;e<t;e++)m.oContext.lineTo(this.m_aPoint[e][0],this.m_aPoint[e][1]);if(m.oContext.stroke(),this.m_bChoosed)for(var n=0,i=this.m_aPoint.length;n<i;n++)m.oContext.beginPath(),m.oContext.fillStyle=this.m_szDrawColor,m.oContext.arc(this.m_aPoint[n][0],this.m_aPoint[n][1],3,0,2*Math.PI,!0),m.oContext.closePath(),m.oContext.fill();""!==this.m_szTips&&(m.oContext.strokeStyle=this.m_szDrawColor,m.oContext.fillText(this.m_szTips,this.m_aPoint[0][0]+10,this.m_aPoint[0][1]+4))}}},{key:"drawArrowLine",value:function(e,t,n,i,a,r,s,o){r=void 0!==r?r:30,s=void 0!==s?s:10,o=void 0!==o?o:1;var u=180*Math.atan2(n-a,t-i)/Math.PI,d=(u+r)*Math.PI/180,l=(u-r)*Math.PI/180,u=s*Math.cos(d),r=s*Math.sin(d),d=s*Math.cos(l),l=s*Math.sin(l);m.oContext.save(),m.oContext.beginPath(),m.oContext.moveTo(t-u,n-r),m.oContext.lineTo(t,n),m.oContext.lineTo(t-d,n-l),m.oContext.moveTo(t,n),m.oContext.lineTo(i,a),1===e&&(m.oContext.moveTo(i+u,a+r),m.oContext.lineTo(i,a),m.oContext.lineTo(i+d,a+l)),m.oContext.strokeStyle=this.m_szDrawColor,m.oContext.lineWidth=o,m.oContext.stroke(),m.oContext.restore()}},{key:"drawCrossLine",value:function(){this.drawNormalLine();var e=(this.m_aPoint[0][0]+this.m_aPoint[1][0])/2,t=(this.m_aPoint[0][1]+this.m_aPoint[1][1])/2,n=180*Math.atan2(t-this.m_aPoint[0][1],e-this.m_aPoint[0][0])/Math.PI,i=(90+n)*Math.PI/180,a=(n-90)*Math.PI/180,r=25*Math.cos(i),s=25*Math.sin(i),o=25*Math.cos(a),n=25*Math.sin(a),i=0,a=0,i=e-r,a=t-s,r=0,s=0,s=0===this.m_iDirection?(r=-10,-15):1===this.m_iDirection?r=10:(r=10,-15);0!==this.m_iDirection&&this.drawArrowLine(0,i,a,e,t),m.oContext.strokeStyle=this.m_szDrawColor,m.oContext.font="8px",m.oContext.strokeText("A",i+r,a+4),i=e-o,a=t-n,1!==this.m_iDirection&&this.drawArrowLine(0,i,a,e,t),m.oContext.strokeStyle=this.m_szDrawColor,m.oContext.font="8px",m.oContext.strokeText("B",i+s,a+4)}},{key:"drawLineCount",value:function(){this.drawNormalLine();var e=(this.m_aPoint[0][0]+this.m_aPoint[1][0])/2,t=(this.m_aPoint[0][1]+this.m_aPoint[1][1])/2,n=180*Math.atan2(t-this.m_aPoint[0][1],e-this.m_aPoint[0][0])/Math.PI,i=(90+n)*Math.PI/180,a=(n-90)*Math.PI/180,r=25*Math.cos(i),s=25*Math.sin(i),o=25*Math.cos(a),n=25*Math.sin(a),i=0,a=0,i=e-r,a=t-s;1===this.m_iArrowType?this.drawArrowLine(0,i=e-o,a=t-n,e,t):0===this.m_iArrowType&&this.drawArrowLine(0,i,a,e,t),this.m_aCrossArrowPoint=[[e,t],[i,a]]}},{key:"inShape",value:function(e,t){for(var n=!1,i=0,a=this.m_aPoint.length-1;i<a;i++){var r=Math.sqrt((this.m_aPoint[i+1][0]-this.m_aPoint[i][0])*(this.m_aPoint[i+1][0]-this.m_aPoint[i][0])+(this.m_aPoint[i+1][1]-this.m_aPoint[i][1])*(this.m_aPoint[i+1][1]-this.m_aPoint[i][1]));Math.sqrt((e-this.m_aPoint[i][0])*(e-this.m_aPoint[i][0])+(t-this.m_aPoint[i][1])*(t-this.m_aPoint[i][1]))+Math.sqrt((e-this.m_aPoint[i+1][0])*(e-this.m_aPoint[i+1][0])+(t-this.m_aPoint[i+1][1])*(t-this.m_aPoint[i+1][1]))-r<1&&(n=!0)}return n}}]),f=b,d(D,n),i(D,[{key:"setPointInfo",value:function(e){if(null!=e){if(0===this.m_iPolygonType){for(var t=e[0][0],n=e[0][1],i=e[0][0],a=e[0][1],r=0,s=e.length;r<s;r++)t>e[r][0]&&(t=e[r][0]),n>e[r][1]&&(n=e[r][1]),i<e[r][0]&&(i=e[r][0]),a<e[r][1]&&(a=e[r][1]);this.m_aPoint=[[t,n],[i,n],[i,a],[t,a]]}else this.m_iPolygonType,this.m_aPoint=e;this.setEdgePoints(e)}}},{key:"draw",value:function(){if(0<this.m_aPoint.length){m.oContext.fillStyle=this.m_szFillColor,m.oContext.strokeStyle=this.m_szDrawColor,m.oContext.globalAlpha=1;var e=0,t=0;if(this.m_bChoosed)for(e=0,t=this.m_aPoint.length;e<t;e++)m.oContext.beginPath(),m.oContext.arc(this.m_aPoint[e][0],this.m_aPoint[e][1],3,0,360,!1),m.oContext.fillStyle=this.m_szDrawColor,m.oContext.closePath(),m.oContext.fill();for(m.oContext.beginPath(),m.oContext.moveTo(this.m_aPoint[0][0],this.m_aPoint[0][1]),e=0,t=this.m_aPoint.length;e<t;e++)0!==e&&m.oContext.lineTo(this.m_aPoint[e][0],this.m_aPoint[e][1]);m.oContext.stroke(),this.m_bClosed&&(m.oContext.fillText(this.m_szTips,(this.m_oEdgePoints.left.x+this.m_oEdgePoints.right.x)/2,(this.m_oEdgePoints.top.y+this.m_oEdgePoints.bottom.y)/2),m.oContext.closePath(),m.oContext.stroke(),m.oContext.globalAlpha=this.m_iTranslucent,m.oContext.fill())}}},{key:"move",value:function(e,t,n,i){if(1===this.m_iPolygonType){if(this.m_aPoint.length<this.m_iMaxPointNum&&0<this.m_aPoint.length){m.oContext.fillStyle=this.m_szFillColor,m.oContext.strokeStyle=this.m_szDrawColor,m.oContext.globalAlpha=1;for(var a=0,r=0,a=0,r=this.m_aPoint.length;a<r;a++)m.oContext.beginPath(),m.oContext.arc(this.m_aPoint[a][0],this.m_aPoint[a][1],3,0,360,!1),m.oContext.fillStyle=this.m_szDrawColor,m.oContext.closePath(),m.oContext.fill();for(m.oContext.beginPath(),m.oContext.moveTo(this.m_aPoint[0][0],this.m_aPoint[0][1]),a=0,r=this.m_aPoint.length;a<r;a++)0!==a&&m.oContext.lineTo(this.m_aPoint[a][0],this.m_aPoint[a][1]);m.oContext.lineTo(e,t),m.oContext.closePath(),m.oContext.stroke()}}else 0===this.m_iPolygonType&&(this.m_bChoosed=!0,this.setPointInfo([[n,i],[e,i],[e,t],[n,t]]),this.draw())}},{key:"stretch",value:function(e,t){0===this.m_iEditType&&(1===this.m_iPolygonType?-1!==this.m_iIndexChoosePoint&&(this.m_aPoint[this.m_iIndexChoosePoint][0]=e,this.m_aPoint[this.m_iIndexChoosePoint][1]=t):0===this.m_iIndexChoosePoint?e<this.m_aPoint[2][0]&&t<this.m_aPoint[2][1]&&(this.m_aPoint[0][0]=e,this.m_aPoint[0][1]=t,this.m_aPoint[3][0]=e,this.m_aPoint[1][1]=t):1===this.m_iIndexChoosePoint?e>this.m_aPoint[3][0]&&t<this.m_aPoint[3][1]&&(this.m_aPoint[1][0]=e,this.m_aPoint[1][1]=t,this.m_aPoint[2][0]=e,this.m_aPoint[0][1]=t):2===this.m_iIndexChoosePoint?e>this.m_aPoint[0][0]&&t>this.m_aPoint[0][1]&&(this.m_aPoint[2][0]=e,this.m_aPoint[2][1]=t,this.m_aPoint[1][0]=e,this.m_aPoint[3][1]=t):3===this.m_iIndexChoosePoint&&e<this.m_aPoint[1][0]&&t>this.m_aPoint[1][1]&&(this.m_aPoint[3][0]=e,this.m_aPoint[3][1]=t,this.m_aPoint[0][0]=e,this.m_aPoint[2][1]=t),this.setPointInfo(this.m_aPoint),v())}}]),p=D,d(T,n),i(T,[{key:"draw",value:function(){m.oContext.beginPath(),m.oContext.fillStyle=this.m_szDrawColor,m.oContext.globalAlpha=1,m.oContext.arc(this.m_aPoint[0][0],this.m_aPoint[0][1],10,0,2*Math.PI,!0),m.oContext.closePath(),m.oContext.fill()}},{key:"drag",value:function(){}},{key:"stretch",value:function(){}}]),y=T,i(Y,[{key:"setDrawMutiShapeOneTime",value:function(e){this.bDrawShapeMultiOneTime=e}},{key:"setMaxShapeSupport",value:function(e){this.iMaxShapeNumSupport=e}},{key:"getMaxShapeSupport",value:function(){return this.iMaxShapeNumSupport}},{key:"setDrawStatus",value:function(e,t){this.bDrawStatus=e,t&&e&&(this.oEventCallback=t),e||(this.oEventCallback=null)}},{key:"setShapeType",value:function(e){this.szShapeType=e,v()}},{key:"setCurrentShapeInfo",value:function(e){this.oCurrentShapeInfo=e||{szId:"",szTips:"",iMinClosed:3,iMaxPointNum:11,iPolygonType:1,iRedrawMode:0}}},{key:"getShapeType",value:function(){return this.szShapeType}},{key:"getAllShapesInfo",value:function(){for(var e=[],t=0,n=this.aShapes.length;t<n;t++)"Grid"===this.aShapes[t].m_szType?e.push({szType:this.aShapes[t].m_szType,szGridMap:this.aShapes[t].m_szGridMap,iGridColNum:this.aShapes[t].m_iGridColNum,iGridRowNum:this.aShapes[t].m_iGridRowNum}):"RectOSD"===this.aShapes[t].m_szType?e.push({szType:this.aShapes[t].m_szType,szText:this.aShapes[t].m_szText,szEnabled:this.aShapes[t].m_szEnabled,szOSDType:this.aShapes[t].m_szOSDType,iPositionX:this.aShapes[t].m_aPoint[0][0],iPositionY:this.aShapes[t].m_aPoint[0][1],szDateStyle:this.aShapes[t].m_szDateStyle,szClockType:this.aShapes[t].m_szClockType,szDisplayWeek:this.aShapes[t].m_szDisplayWeek,szId:this.aShapes[t].m_szId,szAlignment:this.aShapes[t].m_szAlignment}):e.push({szType:this.aShapes[t].m_szType,aPoint:this.aShapes[t].m_aPoint,szId:this.aShapes[t].m_szId,bChoosed:this.aShapes[t].m_bChoosed});return e}},{key:"deleteRepeatPolyonById",value:function(e){var t=this.getAllShapesInfo(),n=t.length;if(0<n)for(var i=0;i<n;i++)"Polygon"===t[i].szType&&t[i].szId===e&&this.deleteShape(i)}},{key:"getShapesInfoByType",value:function(e){for(var t=[],n=0,i=this.aShapes.length;n<i;n++)this.aShapes[n].m_szType===e&&("Grid"===this.aShapes[n].m_szType?t.push({szType:this.aShapes[n].m_szType,szGridMap:this.aShapes[n].m_szGridMap,iGridColNum:this.aShapes[n].m_iGridColNum,iGridRowNum:this.aShapes[n].m_iGridRowNum}):"RectOSD"===this.aShapes[n].m_szType?t.push({szType:this.aShapes[n].m_szType,szText:this.aShapes[n].m_szText,szEnabled:this.aShapes[n].m_szEnabled,szOSDType:this.aShapes[n].m_szOSDType,iPositionX:this.aShapes[n].m_aPoint[0][0],iPositionY:this.aShapes[n].m_aPoint[0][1],szDateStyle:this.aShapes[n].m_szDateStyle,szClockType:this.aShapes[n].m_szClockType,szDisplayWeek:this.aShapes[n].m_szDisplayWeek,szId:this.aShapes[n].m_szId,szAlignment:this.aShapes[n].m_szAlignment}):"Polygon"===e?t.push({szType:this.aShapes[n].m_szType,szId:this.aShapes[n].m_szId,iPolygonType:this.aShapes[n].m_iPolygonType,iMinClosed:this.aShapes[n].m_iMinClosed,iMaxPointNum:this.aShapes[n].m_iMaxPointNum,iEditType:this.aShapes[n].m_iEditType,aPoint:this.aShapes[n].m_aPoint,bClosed:this.aShapes[n].m_bClosed,szTips:this.aShapes[n].m_szTips,szDrawColor:this.aShapes[n].m_szDrawColor,szFillColor:this.aShapes[n].m_szFillColor,iTranslucent:this.aShapes[n].m_iTranslucent}):"Line"===e?t.push({szType:this.aShapes[n].m_szType,szId:this.aShapes[n].m_szId,aPoint:this.aShapes[n].m_aPoint,szTips:this.aShapes[n].m_szTips,iLineType:this.aShapes[n].m_iLineType,iDirection:this.aShapes[n].m_iDirection,iArrowType:this.aShapes[n].m_iArrowType,szDrawColor:this.aShapes[n].m_szDrawColor,aCrossArrowPoint:this.aShapes[n].m_aCrossArrowPoint}):"Rect"===e?t.push({szType:this.aShapes[n].m_szType,iEditType:this.aShapes[n].m_iEditType,aPoint:this.aShapes[n].m_aPoint,szTips:this.aShapes[n].m_szTips,szDrawColor:this.aShapes[n].m_szDrawColor,szFillColor:this.aShapes[n].m_szFillColor,iTranslucent:this.aShapes[n].m_iTranslucent}):t.push({szType:this.aShapes[n].m_szType,aPoint:this.aShapes[n].m_aPoint}));return t}},{key:"setShapesInfoByType",value:function(e,t){t=t||[];var n=null;if("Rect"===e||"Polygon"===e||"Line"===e||"Point"===e)for(var i=0,a=t.length;i<a;i++)"Rect"===e?((n=new h).m_iEditType=t[i].iEditType,n.m_szTips=t[i].szTips||"",n.m_szDrawColor=t[i].szDrawColor,n.m_szFillColor=t[i].szFillColor,n.m_iTranslucent=t[i].iTranslucent,n.m_iRedrawMode=t[i].iRedrawMode):"Polygon"===e?(n=new p,0===t[i].iPolygonType?n.m_bClosed=!0:n.m_bClosed=t[i].bClosed,n.m_szTips=t[i].szTips||"",n.m_szId=t[i].szId||"",n.m_iPolygonType=t[i].iPolygonType,n.m_iMinClosed=t[i].iMinClosed||3,n.m_iMaxPointNum=t[i].iMaxPointNum||11,n.m_iEditType=t[i].iEditType,n.m_szDrawColor=t[i].szDrawColor,n.m_szFillColor=t[i].szFillColor,n.m_iTranslucent=t[i].iTranslucent,n.m_iRedrawMode=t[i].iRedrawMode):"Line"===e?((n=new f).m_iLineType=t[i].iLineType,n.m_szTips=t[i].szTips||"",n.m_szId=t[i].szId,n.m_iDirection=t[i].iDirection,n.m_iArrowType=t[i].iArrowType,n.m_szDrawColor=t[i].szDrawColor,n.setPointInfo(t[i].aPoint)):"Point"===e&&((n=new y).m_szId=t[i].szId,n.m_szDrawColor=t[i].szDrawColor,n.setPointInfo(t[i].aPoint)),n.setPointInfo(t[i].aPoint),0===i&&(n.m_bChoosed=!0),g(n);else"Grid"===e&&((n=new _).m_szGridMap=t[0].szGridMap||"",n.m_iGridColNum=t[0].iGridColNum||22,n.m_iGridRowNum=t[0].iGridRowNum||18,g(n));v()}},{key:"addOSDShape",value:function(e,t,n,i,a){n||i||(i=n=0),a=a||{};t=new c(e,t),e=10*e.length;t.m_szOSDType=a.szOSDType||"",t.m_szDateStyle=a.szDateStyle||"",t.m_szClockType=a.szClockType||"",t.m_szDisplayWeek=a.szDisplayWeek||"",t.m_szId=a.szId||"",t.m_szAlignment=""+a.szAlignment||"0","0"===t.m_szAlignment?t.m_aPoint=[[n,i],[e+n,i],[e+n,i+20],[n,i+20]]:"1"===t.m_szAlignment?t.m_aPoint=[[0,i],[e,i],[e,i+20],[0,i+20]]:"2"===t.m_szAlignment?t.m_aPoint=[[this.m_iCanvasWidth-e,i],[this.m_iCanvasWidth,i],[this.m_iCanvasWidth,i+20],[this.m_iCanvasWidth-e,i+20]]:t.m_aPoint=[[n,i],[e+n,i],[e+n,i+20],[n,i+20]],g(t),v()}},{key:"selectShapeById",value:function(e,t){for(var n=0,i=m.aShapes.length;n<i;n++)e===m.aShapes[n].m_szType&&(t===m.aShapes[n].m_szId?m.aShapes[n].m_bChoosed=!0:m.aShapes[n].m_bChoosed=!1);v()}},{key:"setCanvasSize",value:function(e,t){0<e&&0<t&&(this.m_iCanvasWidth=e,this.m_iCanvasHeight=t,v())}},{key:"setDrawStyle",value:function(e,t,n){this.oShapeStyle={szDrawColor:e,szFillColor:t,iTranslucent:n}}},{key:"clearAllShape",value:function(){this.aShapes.length=0,m.bPolygonDrawing=!1,v()}},{key:"clearShapeByType",value:function(e){for(var t=this.aShapes.length;0<t;t--)this.aShapes[t-1].m_szType===e&&("Grid"===e?(this.aShapes[t-1].m_szGridMap="",this.aShapes[t-1].m_aAddGridMap=[]):this.aShapes.splice(t-1,1));"Polygon"===e&&(m.bPolygonDrawing=!1),v()}},{key:"deleteShape",value:function(e){this.aShapes.length>e&&this.aShapes.splice(e,1),v()}},{key:"updateCanvas",value:function(e){this.oCanvas=(0,o.default)("#"+e),this.oContext=this.oCanvas[0].getContext("2d"),this.m_iCanvasWidth=this.oCanvas.width(),this.m_iCanvasHeight=this.oCanvas.height(),M()}},{key:"resizeCanvas",value:function(){this.m_iCanvasWidth=this.oCanvas.width(),this.m_iCanvasHeight=this.oCanvas.height()}},{key:"canvasRedraw",value:function(){v()}}]),Y);function v(){m.oContext.clearRect(0,0,m.m_iCanvasWidth,m.m_iCanvasHeight);for(var e=0,t=m.aShapes.length;e<t;e++)m.aShapes[e].draw()}function g(e){m.aShapes.length<m.iMaxShapeNumSupport&&m.aShapes.push(e)}function M(){var a=!1,r=0,s=0,o="draw",u=null;function d(){for(var e=-1,t=0,n=m.aShapes.length;t<n;t++)if(m.aShapes[t].m_bChoosed){e=t;break}return e}m.oCanvas[0].oncontextmenu=function(){return!1},m.oCanvas[0].onselectstart=function(){return!1},m.oCanvas.unbind(),m.oCanvas.bind("mousedown",function(e){if(2===e.button)m.bPolygonDrawing&&u&&u.m_aPoint.length>=u.m_iMinClosed&&(u.m_bClosed=!0,m.bPolygonDrawing=!1,u.setPointInfo(u.m_aPoint),g(u),v(),a=!1,m.bDrawShapeMultiOneTime||(m.bDrawStatus=!1),window.onDrawShapeEvent&&window.onDrawShapeEvent(u.m_szType,"onDrawEnd",u.m_szId));else if(0===e.button){if(r=e.offsetX,s=e.offsetY,o="draw",!m.bPolygonDrawing){var t=d();if("stretch"!==(o=-1!==t&&m.aShapes[t].inArc(e.offsetX,e.offsetY,5)?"stretch":o))for(var n=0,i=m.aShapes.length;n<i;n++)m.aShapes[n].inShape(e.offsetX,e.offsetY)?(m.aShapes[n].m_bChoosed=!0,m.aShapes[n].getMouseDownPoints(e.offsetX,e.offsetY),o="drag",window.onDrawShapeEvent&&window.onDrawShapeEvent(m.aShapes[n].m_szType,"onChoose",m.aShapes[n].m_szId)):m.aShapes[n].m_bChoosed=!1;m.oCanvas[0].style.cursor="drag"===o?"move":"default","draw"===o&&1===m.aShapes.length&&1===m.aShapes[0].m_iRedrawMode&&(m.deleteRepeatPolyonById(m.aShapes[0].m_szId),m.bDrawStatus=!0),m.bDrawStatus&&!m.bDrawShapeMultiOneTime&&(o="draw")}if("draw"===o&&m.bDrawStatus){if(m.iMaxShapeNumSupport<=m.aShapes.length&&"Grid"!==m.szShapeType&&"Point"!==m.szShapeType)return;"Rect"===m.szShapeType?u=new h:"Grid"===m.szShapeType?0===m.aShapes.length&&g(u=new _):"Polygon"===m.szShapeType?(m.bPolygonDrawing||(m.bPolygonDrawing=!0,(u=new p).m_szId=m.oCurrentShapeInfo.szId||"",u.m_szTips=m.oCurrentShapeInfo.szTips||"",u.m_iMinClosed=m.oCurrentShapeInfo.iMinClosed||3,u.m_iMaxPointNum=m.oCurrentShapeInfo.iMaxPointNum||11,u.m_iPolygonType=m.oCurrentShapeInfo.iPolygonType,u.m_szDrawColor=m.oCurrentShapeInfo.szDrawColor,u.m_szFillColor=m.oCurrentShapeInfo.szFillColor,u.m_iTranslucent=m.oCurrentShapeInfo.iTranslucent,u.m_iRedrawMode=m.oCurrentShapeInfo.iRedrawMode),1===u.m_iPolygonType&&(u.addPoint(r,s),u.m_aPoint.length===u.m_iMaxPointNum&&(u.m_bClosed=!0,m.bPolygonDrawing=!1,g(u),v(),a=!1,m.bDrawShapeMultiOneTime||(m.bDrawStatus=!1),window.onDrawShapeEvent&&window.onDrawShapeEvent(u.m_szType,"onDrawEnd",u.m_szId)))):"Point"===m.szShapeType&&(m.clearShapeByType("Point"),(u=new y).m_szId=m.oCurrentShapeInfo.szId||"",u.m_szDrawColor=m.oCurrentShapeInfo.szDrawColor,u.setPointInfo([[r,s]]),g(u),v())}a=!0}}),m.oCanvas.bind("mousemove",function(e){var t;m.bPolygonDrawing?m.bDrawStatus&&a&&("Polygon"===m.szShapeType&&0===u.m_iPolygonType&&(u.m_bClosed=!0),v(),u.move(e.offsetX,e.offsetY,r,s)):-1<(t=d())?a&&("drag"===o?(m.aShapes[t].drag(e.offsetX,e.offsetY),window.onDrawShapeEvent&&window.onDrawShapeEvent(m.aShapes[t].m_szType,"onDrag",m.aShapes[t].m_szId)):"stretch"===o&&(m.aShapes[t].stretch(e.offsetX,e.offsetY),window.onDrawShapeEvent&&window.onDrawShapeEvent(m.aShapes[t].m_szType,"onStretch",m.aShapes[t].m_szId))):m.bDrawStatus&&a&&("Rect"===m.szShapeType?u.move([[r,s],[e.offsetX,e.offsetY]]):"Grid"===m.szShapeType&&m.aShapes[0].move(r,s,e.offsetX,e.offsetY))}),m.oCanvas.bind("mouseup",function(e){var t;m.oCanvas[0].style.cursor="default",null!=u&&"draw"===o&&("Rect"===m.szShapeType?(2<Math.abs(e.offsetX-r)&&2<Math.abs(e.offsetY-s)&&(g(u),m.bDrawShapeMultiOneTime||(m.bDrawStatus=!1)),m.oEventCallback&&(t={startPos:[],endPos:[]},e.offsetX>r&&e.offsetY>s?(t.startPos=u.m_aPoint[0]||[e.offsetX,e.offsetY],t.endPos=u.m_aPoint[2]||[e.offsetX,e.offsetY]):(t.startPos=u.m_aPoint[2]||[e.offsetX,e.offsetY],t.endPos=u.m_aPoint[0]||[e.offsetX,e.offsetY]),m.oEventCallback&&m.oEventCallback(t),m.clearAllShape()),u=null):"Polygon"===m.szShapeType&&0===u.m_iPolygonType&&m.bPolygonDrawing&&2<Math.abs(e.offsetX-r)&&2<Math.abs(e.offsetY-s)&&(g(u),m.bPolygonDrawing=!1,m.bDrawShapeMultiOneTime||(m.bDrawStatus=!1),window.onDrawShapeEvent&&window.onDrawShapeEvent(u.m_szType,"onDrawEnd",u.m_szId))),a=!!m.bPolygonDrawing,m.bPolygonDrawing||v()}),m.oCanvas.bind("dblclick",function(){m.bDrawStatus&&"Grid"===m.szShapeType&&(m.aShapes[0].m_szGridMap="fffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffc",v())}),m.oCanvas.bind("mouseout",function(){m.oCanvas[0].style.cursor="default",a=!!m.bPolygonDrawing})}function L(){l(this,L),this.m_szId="",this.m_aPoint=[],this.m_bChoosed=!1,this.m_szDrawColor=m.oShapeStyle.szDrawColor,this.m_szFillColor=m.oShapeStyle.szFillColor,this.m_iTranslucent=m.oShapeStyle.iTranslucent,this.m_iIndexChoosePoint=-1,this.m_iDriftStartX=0,this.m_iDriftStartY=0,this.m_oEdgePoints={top:{x:0,y:0},left:{x:0,y:0},right:{x:0,y:0},bottom:{x:0,y:0}},this.m_szTips="",this.m_iEditType=0,this.m_iMinClosed=3,this.m_iMaxPointNum=11,this.m_bClosed=!1,this.m_iRedrawMode=0}function S(){l(this,S);var e=u(this,(S.__proto__||Object.getPrototypeOf(S)).call(this));return e.m_szType="Rect",e}function k(e,t){l(this,k);var n=u(this,(k.__proto__||Object.getPrototypeOf(k)).call(this));return n.m_szType="RectOSD",n.m_szOSDType="overlay-date",n.m_szText=e||"",n.m_szEnabled=t||"",n.m_szDateStyle="",n.m_szClockType="",n.m_szDisplayWeek="",n.m_szId="",n.m_szAlignment="0",n}function w(){l(this,w);var e=u(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));return e.m_szType="Grid",e.m_iGridColNum=22,e.m_iGridRowNum=18,e.m_szGridMap="",e.m_aAddGridMap=[],e}function b(){l(this,b);var e=u(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));return e.m_szType="Line",e.m_iLineType=0,e.m_iDirection=0,e.m_iArrowType=0,e.m_aCrossArrowPoint=[],e}function D(){l(this,D);var e=u(this,(D.__proto__||Object.getPrototypeOf(D)).call(this));return e.m_szType="Polygon",e.m_iPolygonType=1,e}function T(){l(this,T);var e=u(this,(T.__proto__||Object.getPrototypeOf(T)).call(this));return e.m_szType="Point",e.m_szId="",e}function Y(e){l(this,Y),(m=this).oCanvas=(0,o.default)("#"+e),this.oContext=this.oCanvas[0].getContext("2d"),this.aShapes=[],this.bDrawStatus=!1,this.szShapeType="Rect",this.iMaxShapeNumSupport=10,this.bDrawShapeMultiOneTime=!0,this.oCurrentShapeInfo={},this.oEventCallback=null,this.oShapeStyle={szDrawColor:"#ff0000",szFillColor:"#343434",iTranslucent:.7},this.bPolygonDrawing=!1,this.m_iCanvasWidth=this.oCanvas.width(),this.m_iCanvasHeight=this.oCanvas.height(),this.m_iHorizontalResolution=0,this.m_iVerticalResolution=0,this.m_szDisplayMode="",this.m_szVideoFormat="",M(),this.aShapes.length=0}t.ESCanvas=i},function(e,t,n){"use strict";e.exports=n(283).default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=_(n(9)),a=_(n(224)),r=_(n(293)),s=n(14),o=_(n(309)),u=_(n(329)),d=_(n(41)),l=n(230),h=_(n(65)),c=n(5);function _(e){return e&&e.__esModule?e:{default:e}}a.default.install();a={createPlayer:function(e,t){if(null==e||"object"!==(void 0===e?"undefined":(0,i.default)(e)))throw new c.InvalidArgumentException("MediaDataSource must be an javascript object!");if(!e.hasOwnProperty("type"))throw new c.InvalidArgumentException("MediaDataSource must has type field to indicate video file type!");return new("flv"!==e.type?u:o).default(e,t)},isSupported:function(){return r.default.supportMSEH264Playback()},getFeatureList:function(){return r.default.getFeatureList()}};a.BaseLoader=s.BaseLoader,a.LoaderStatus=s.LoaderStatus,a.LoaderErrors=s.LoaderErrors,a.Events=d.default,a.ErrorTypes=l.ErrorTypes,a.ErrorDetails=l.ErrorDetails,a.FlvPlayer=o.default,a.NativePlayer=u.default,a.LoggingControl=h.default,Object.defineProperty(a,"version",{enumerable:!0,get:function(){return"__VERSION__"}}),t.default=a},function(e,t,n){n(285),e.exports=n(3).Object.assign},function(e,t,n){var i=n(8);i(i.S+i.F,"Object",{assign:n(286)})},function(e,t,n){"use strict";var c=n(13),_=n(31),f=n(59),m=n(39),p=n(25),y=n(73),a=Object.assign;e.exports=!a||n(23)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=a({},e)[n]||Object.keys(a({},t)).join("")!=i})?function(e,t){for(var n=p(e),i=arguments.length,a=1,r=f.f,s=m.f;a<i;)for(var o,u=y(arguments[a++]),d=r?_(u).concat(r(u)):_(u),l=d.length,h=0;h<l;)o=d[h++],c&&!s.call(u,o)||(n[o]=u[o]);return n}:a},function(e,t,n){n(288),e.exports=n(3).Object.setPrototypeOf},function(e,t,n){var i=n(8);i(i.S,"Object",{setPrototypeOf:n(289).set})},function(e,t,a){function r(e,t){if(i(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")}var n=a(16),i=a(10);e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,n,i){try{(i=a(22)(Function.call,a(60).f(Object.prototype,"__proto__").set,2))(e,[]),n=!(e instanceof Array)}catch(e){n=!0}return function(e,t){return r(e,t),n?e.__proto__=t:i(e,t),e}}({},!1):void 0),check:r}},function(e,t,n){!function(ie,ae){
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.8+1e68dce6
*/
e.exports=function(){"use strict";function i(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}function u(e){return typeof e==="function"}var e=void 0;if(Array.isArray)e=Array.isArray;else e=function(e){return Object.prototype.toString.call(e)==="[object Array]"};var n=e,a=0,t=void 0,r=void 0,s=function e(t,n){M[a]=t;M[a+1]=n;a+=2;if(a===2)if(r)r(L);else k()};function o(e){r=e}function d(e){s=e}var l=typeof window!=="undefined"?window:undefined,h=l||{},c=h.MutationObserver||h.WebKitMutationObserver,_=typeof self==="undefined"&&typeof ie!=="undefined"&&{}.toString.call(ie)==="[object process]",f=typeof Uint8ClampedArray!=="undefined"&&typeof importScripts!=="undefined"&&typeof MessageChannel!=="undefined";function m(){return function(){return ie.nextTick(L)}}function p(){if(typeof t!=="undefined")return function(){t(L)};return g()}function y(){var e=0;var t=new c(L);var n=document.createTextNode("");t.observe(n,{characterData:true});return function(){n.data=e=++e%2}}function v(){var e=new MessageChannel;e.port1.onmessage=L;return function(){return e.port2.postMessage(0)}}function g(){var e=setTimeout;return function(){return e(L,1)}}var M=new Array(1e3);function L(){for(var e=0;e<a;e+=2){var t=M[e];var n=M[e+1];t(n);M[e]=undefined;M[e+1]=undefined}a=0}function S(){try{var e=Function("return this")().require("vertx");t=e.runOnLoop||e.runOnContext;return p()}catch(e){return g()}}var k=void 0;if(_)k=m();else if(c)k=y();else if(f)k=v();else if(l===undefined&&"function"==="function")k=S();else k=g();function w(e,t){var n=this;var i=new this.constructor(T);if(i[D]===undefined)J(i);var a=n._state;if(a){var r=arguments[a-1];s(function(){return z(a,i,r,n._result)})}else B(n,i,e,t);return i}function b(e){var t=this;if(e&&typeof e==="object"&&e.constructor===t)return e;var n=new t(T);H(n,e);return n}var D=Math.random().toString(36).substring(2);function T(){}var Y=void 0,E=1,P=2;function C(){return new TypeError("You cannot resolve a promise with itself")}function A(){return new TypeError("A promises callback cannot return that same promise.")}function x(e,t,n,i){try{e.call(t,n,i)}catch(e){return e}}function R(e,i,a){s(function(t){var n=false;var e=x(a,i,function(e){if(n)return;n=true;if(i!==e)H(t,e);else j(t,e)},function(e){if(n)return;n=true;F(t,e)},"Settle: "+(t._label||" unknown promise"));if(!n&&e){n=true;F(t,e)}},e)}function O(t,e){if(e._state===E)j(t,e._result);else if(e._state===P)F(t,e._result);else B(e,undefined,function(e){return H(t,e)},function(e){return F(t,e)})}function I(e,t,n){if(t.constructor===e.constructor&&n===w&&t.constructor.resolve===b)O(e,t);else if(n===undefined)j(e,t);else if(u(n))R(e,t,n);else j(e,t)}function H(t,e){if(t===e)F(t,C());else if(i(e)){var n=void 0;try{n=e.then}catch(e){F(t,e);return}I(t,e,n)}else j(t,e)}function W(e){if(e._onerror)e._onerror(e._result);N(e)}function j(e,t){if(e._state!==Y)return;e._result=t;e._state=E;if(e._subscribers.length!==0)s(N,e)}function F(e,t){if(e._state!==Y)return;e._state=P;e._result=t;s(W,e)}function B(e,t,n,i){var a=e._subscribers;var r=a.length;e._onerror=null;a[r]=t;a[r+E]=n;a[r+P]=i;if(r===0&&e._state)s(N,e)}function N(e){var t=e._subscribers;var n=e._state;if(t.length===0)return;var i=void 0,a=void 0,r=e._result;for(var s=0;s<t.length;s+=3){i=t[s];a=t[s+n];if(i)z(n,i,a,r);else a(r)}e._subscribers.length=0}function z(e,t,n,i){var a=u(n),r=void 0,s=void 0,o=true;if(a){try{r=n(i)}catch(e){o=false;s=e}if(t===r){F(t,A());return}}else r=i;if(t._state!==Y);else if(a&&o)H(t,r);else if(o===false)F(t,s);else if(e===E)j(t,r);else if(e===P)F(t,r)}function U(n,e){try{e(function e(t){H(n,t)},function e(t){F(n,t)})}catch(e){F(n,e)}}var V=0;function G(){return V++}function J(e){e[D]=V++;e._state=undefined;e._result=undefined;e._subscribers=[]}function q(){return new Error("Array Methods must be provided an Array")}var K=function(){function e(e,t){this._instanceConstructor=e;this.promise=new e(T);if(!this.promise[D])J(this.promise);if(n(t)){this.length=t.length;this._remaining=t.length;this._result=new Array(this.length);if(this.length===0)j(this.promise,this._result);else{this.length=this.length||0;this._enumerate(t);if(this._remaining===0)j(this.promise,this._result)}}else F(this.promise,q())}e.prototype._enumerate=function e(t){for(var n=0;this._state===Y&&n<t.length;n++)this._eachEntry(t[n],n)};e.prototype._eachEntry=function e(t,n){var i=this._instanceConstructor;var a=i.resolve;if(a===b){var r=void 0;var s=void 0;var o=false;try{r=t.then}catch(e){o=true;s=e}if(r===w&&t._state!==Y)this._settledAt(t._state,n,t._result);else if(typeof r!=="function"){this._remaining--;this._result[n]=t}else if(i===te){var u=new i(T);if(o)F(u,s);else I(u,t,r);this._willSettleAt(u,n)}else this._willSettleAt(new i(function(e){return e(t)}),n)}else this._willSettleAt(a(t),n)};e.prototype._settledAt=function e(t,n,i){var a=this.promise;if(a._state===Y){this._remaining--;if(t===P)F(a,i);else this._result[n]=i}if(this._remaining===0)j(a,this._result)};e.prototype._willSettleAt=function e(t,n){var i=this;B(t,undefined,function(e){return i._settledAt(E,n,e)},function(e){return i._settledAt(P,n,e)})};return e}();function X(e){return new K(this,e).promise}function $(a){var r=this;if(!n(a))return new r(function(e,t){return t(new TypeError("You must pass an array to race."))});else return new r(function(e,t){var n=a.length;for(var i=0;i<n;i++)r.resolve(a[i]).then(e,t)})}function Z(e){var t=this;var n=new t(T);F(n,e);return n}function Q(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ee(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var te=function(){function t(e){this[D]=G();this._result=this._state=undefined;this._subscribers=[];if(T!==e){typeof e!=="function"&&Q();this instanceof t?U(this,e):ee()}}t.prototype.catch=function e(t){return this.then(null,t)};t.prototype.finally=function e(t){var n=this;var i=n.constructor;if(u(t))return n.then(function(e){return i.resolve(t()).then(function(){return e})},function(e){return i.resolve(t()).then(function(){throw e})});return n.then(t,t)};return t}();function ne(){var e=void 0;if(typeof ae!=="undefined")e=ae;else if(typeof self!=="undefined")e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if(n==="[object Promise]"&&!t.cast)return}e.Promise=te}return te.prototype.then=w,te.all=X,te.race=$,te.resolve=b,te.reject=Z,te._setScheduler=o,te._setAsap=d,te._asap=s,te.polyfill=ne,te.Promise=te}()}.call(this,n(291),n(292))},function(e,t){var n,i,e=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"==typeof clearTimeout?clearTimeout:r}catch(e){i=r}}();var o,u=[],d=!1,l=-1;function h(){d&&o&&(d=!1,o.length?u=o.concat(u):l=-1,u.length&&c())}function c(){if(!d){var e=s(h);d=!0;for(var t=u.length;t;){for(o=u,u=[];++l<t;)o&&o[l].run();l=-1,t=u.length}o=null,d=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===r||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(e)}}function _(e,t){this.fun=e,this.array=t}function f(){}e.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new _(e,t)),1!==u.length||d||s(c)},_.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=f,e.addListener=f,e.once=f,e.off=f,e.removeListener=f,e.removeAllListeners=f,e.emit=f,e.prependListener=f,e.prependOnceListener=f,e.listeners=function(e){return[]},e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}},function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(1)),a=o(n(2)),r=o(n(225)),s=n(64);function o(e){return e&&e.__esModule?e:{default:e}}(0,a.default)(u,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var e=new r.default({},(0,s.createDefaultConfig)()),t=e.loaderType;return e.destroy(),"fetch-stream-loader"==t||"xhr-moz-chunked-loader"==t}},{key:"getNetworkLoaderTypeName",value:function(){var e=new r.default({},(0,s.createDefaultConfig)()),t=e.loaderType;return e.destroy(),t}},{key:"supportNativeMediaPlayback",value:function(e){e=(u.videoElement=null==u.videoElement?window.document.createElement("video"):u.videoElement).canPlayType(e);return"probably"===e||"maybe"==e}},{key:"getFeatureList",value:function(){var e={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return e.mseFlvPlayback=u.supportMSEH264Playback(),e.networkStreamIO=u.supportNetworkStreamIO(),e.networkLoaderName=u.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=u.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeWebmVP8Playback=u.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=u.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}]),a=u;function u(){(0,i.default)(this,u)}t.default=a},function(e,t,n){n(295),e.exports=n(3).Object.getPrototypeOf},function(e,t,n){var i=n(25),a=n(75);n(63)("getPrototypeOf",function(){return function(e){return a(i(e))}})},function(e,t,n){e.exports={default:n(297),__esModule:!0}},function(e,t,n){n(298);var i=n(3).Object;e.exports=function(e,t){return i.create(e,t)}},function(e,t,n){var i=n(8);i(i.S,"Object",{create:n(47)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=_(n(9)),i=_(n(21)),a=_(n(1)),r=_(n(26)),s=_(n(33)),o=_(n(2)),u=_(n(27)),l=(_(n(4)),_(n(34))),h=n(14),c=n(5);function _(e){return e&&e.__esModule?e:{default:e}}n=h.BaseLoader,(0,u.default)(f,n),(0,o.default)(f,null,[{key:"isSupported",value:function(){try{var e=l.default.msedge&&15048<=l.default.version.minor,t=!l.default.msedge||e;return self.fetch&&self.ReadableStream&&t}catch(e){return!1}}}]),(0,o.default)(f,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),(0,s.default)(f.prototype.__proto__||(0,i.default)(f.prototype),"destroy",this).call(this)}},{key:"open",value:function(e,t){var n=this;this._dataSource=e,this._range=t;var i=e.url;this._config.reuseRedirectedURL&&null!=e.redirectedURL&&(i=e.redirectedURL);var a=this._seekHandler.getConfig(i,t),r=new self.Headers;if("object"===(0,d.default)(a.headers)){var s,o=a.headers;for(s in o)o.hasOwnProperty(s)&&r.append(s,o[s])}t={method:"GET",headers:r,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if("object"===(0,d.default)(this._config.headers))for(var u in this._config.headers)r.append(u,this._config.headers[u]);!1===e.cors&&(t.mode="same-origin"),e.withCredentials&&(t.credentials="include"),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),this._status=h.LoaderStatus.kConnecting,self.fetch(a.url,t).then(function(e){if(n._requestAbort)return n._requestAbort=!1,void(n._status=h.LoaderStatus.kIdle);if(e.ok&&200<=e.status&&e.status<=299){e.url!==a.url&&n._onURLRedirect&&(t=n._seekHandler.removeURLParameters(e.url),n._onURLRedirect(t));var t=e.headers.get("Content-Length");return null!=t&&(n._contentLength=parseInt(t),0!==n._contentLength&&n._onContentLengthKnown&&n._onContentLengthKnown(n._contentLength)),n._pump.call(n,e.body.getReader())}if(n._status=h.LoaderStatus.kError,!n._onError)throw new c.RuntimeException("FetchStreamLoader: Http code invalid, "+e.status+" "+e.statusText);n._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})}).catch(function(e){if(n._status=h.LoaderStatus.kError,!n._onError)throw e;n._onError(h.LoaderErrors.EXCEPTION,{code:-1,msg:e.message})})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(i){var a=this;return i.read().then(function(e){if(e.done)if(null!==a._contentLength&&a._receivedLength<a._contentLength){a._status=h.LoaderStatus.kError;var t=h.LoaderErrors.EARLY_EOF,n={code:-1,msg:"Fetch stream meet Early-EOF"};if(!a._onError)throw new c.RuntimeException(n.msg);a._onError(t,n)}else a._status=h.LoaderStatus.kComplete,a._onComplete&&a._onComplete(a._range.from,a._range.from+a._receivedLength-1);else{if(!0===a._requestAbort)return a._requestAbort=!1,a._status=h.LoaderStatus.kComplete,i.cancel();a._status=h.LoaderStatus.kBuffering;n=e.value.buffer,e=a._range.from+a._receivedLength;a._receivedLength+=n.byteLength,a._onDataArrival&&a._onDataArrival(n,e,a._receivedLength),a._pump(i)}}).catch(function(e){if(11!==e.code||!l.default.msedge){a._status=h.LoaderStatus.kError;var t=0,n=null,n=19!==e.code&&"network error"!==e.message||!(null===a._contentLength||null!==a._contentLength&&a._receivedLength<a._contentLength)?(t=h.LoaderErrors.EXCEPTION,{code:e.code,msg:e.message}):(t=h.LoaderErrors.EARLY_EOF,{code:e.code,msg:"Fetch stream meet Early-EOF"});if(!a._onError)throw new c.RuntimeException(n.msg);a._onError(t,n)}})}}]),o=f;function f(e,t){(0,a.default)(this,f);var n=(0,r.default)(this,(f.__proto__||(0,i.default)(f)).call(this,"fetch-stream-loader"));return n.TAG="FetchStreamLoader",n._seekHandler=e,n._config=t,n._needStash=!0,n._requestAbort=!1,n._contentLength=null,n._receivedLength=0,n}t.default=o},function(e,t,n){e.exports={default:n(301),__esModule:!0}},function(e,t,n){n(302);var i=n(3).Object;e.exports=function(e,t){return i.getOwnPropertyDescriptor(e,t)}},function(e,t,n){var i=n(19),a=n(60).f;n(63)("getOwnPropertyDescriptor",function(){return function(e,t){return a(i(e),t)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=_(n(9)),i=_(n(21)),a=_(n(1)),r=_(n(26)),s=_(n(33)),o=_(n(2)),d=_(n(27)),l=_(n(4)),h=n(14),c=n(5);function _(e){return e&&e.__esModule?e:{default:e}}n=h.BaseLoader,(0,d.default)(f,n),(0,o.default)(f,null,[{key:"isSupported",value:function(){try{var e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),(e.responseType="moz-chunked-arraybuffer")===e.responseType}catch(e){return l.default.w("MozChunkedLoader",e.message),!1}}}]),(0,o.default)(f,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),(0,s.default)(f.prototype.__proto__||(0,i.default)(f.prototype),"destroy",this).call(this)}},{key:"open",value:function(e,t){this._dataSource=e,this._range=t;var n=e.url;this._config.reuseRedirectedURL&&null!=e.redirectedURL&&(n=e.redirectedURL);t=this._seekHandler.getConfig(n,t);this._requestURL=t.url;var i=this._xhr=new XMLHttpRequest;if(i.open("GET",t.url,!0),i.responseType="moz-chunked-arraybuffer",i.onreadystatechange=this._onReadyStateChange.bind(this),i.onprogress=this._onProgress.bind(this),i.onloadend=this._onLoadEnd.bind(this),i.onerror=this._onXhrError.bind(this),e.withCredentials&&(i.withCredentials=!0),"object"===(0,u.default)(t.headers)){var a,r=t.headers;for(a in r)r.hasOwnProperty(a)&&i.setRequestHeader(a,r[a])}if("object"===(0,u.default)(this._config.headers)){var s,o=this._config.headers;for(s in o)o.hasOwnProperty(s)&&i.setRequestHeader(s,o[s])}this._status=h.LoaderStatus.kConnecting,i.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=h.LoaderStatus.kComplete}},{key:"_onReadyStateChange",value:function(e){var t=e.target;if(2===t.readyState)if(null!=t.responseURL&&t.responseURL!==this._requestURL&&this._onURLRedirect&&(e=this._seekHandler.removeURLParameters(t.responseURL),this._onURLRedirect(e)),0!==t.status&&(t.status<200||299<t.status)){if(this._status=h.LoaderStatus.kError,!this._onError)throw new c.RuntimeException("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}else this._status=h.LoaderStatus.kBuffering}},{key:"_onProgress",value:function(e){var t;this._status!==h.LoaderStatus.kError&&(null===this._contentLength&&null!==e.total&&0!==e.total&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),t=e.target.response,e=this._range.from+this._receivedLength,this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,e,this._receivedLength))}},{key:"_onLoadEnd",value:function(e){!0!==this._requestAbort?this._status!==h.LoaderStatus.kError&&(this._status=h.LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)):this._requestAbort=!1}},{key:"_onXhrError",value:function(e){this._status=h.LoaderStatus.kError;var t=0,n=null,n=this._contentLength&&e.loaded<this._contentLength?(t=h.LoaderErrors.EARLY_EOF,{code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=h.LoaderErrors.EXCEPTION,{code:-1,msg:e.constructor.name+" "+e.type});if(!this._onError)throw new c.RuntimeException(n.msg);this._onError(t,n)}}]),o=f;function f(e,t){(0,a.default)(this,f);var n=(0,r.default)(this,(f.__proto__||(0,i.default)(f)).call(this,"xhr-moz-chunked-loader"));return n.TAG="MozChunkedLoader",n._seekHandler=e,n._config=t,n._needStash=!0,n._xhr=null,n._requestAbort=!1,n._contentLength=null,n._receivedLength=0,n}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=_(n(9)),i=_(n(21)),a=_(n(1)),r=_(n(26)),s=_(n(33)),o=_(n(2)),d=_(n(27)),l=_(n(4)),h=n(14),c=n(5);function _(e){return e&&e.__esModule?e:{default:e}}n=h.BaseLoader,(0,d.default)(f,n),(0,o.default)(f,null,[{key:"isSupported",value:function(){try{if(void 0===self.MSStream||void 0===self.MSStreamReader)return!1;var e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),(e.responseType="ms-stream")===e.responseType}catch(e){return l.default.w("MSStreamLoader",e.message),!1}}}]),(0,o.default)(f,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),(0,s.default)(f.prototype.__proto__||(0,i.default)(f.prototype),"destroy",this).call(this)}},{key:"open",value:function(e,t){this._internalOpen(e,t,!1)}},{key:"_internalOpen",value:function(e,t,n){this._dataSource=e,n?this._currentRange=t:this._totalRange=t;n=e.url;this._config.reuseRedirectedURL&&(null!=this._currentRedirectedURL?n=this._currentRedirectedURL:null!=e.redirectedURL&&(n=e.redirectedURL));n=this._seekHandler.getConfig(n,t);this._currentRequestURL=n.url;t=this._reader=new self.MSStreamReader;t.onprogress=this._msrOnProgress.bind(this),t.onload=this._msrOnLoad.bind(this),t.onerror=this._msrOnError.bind(this);var i=this._xhr=new XMLHttpRequest;if(i.open("GET",n.url,!0),i.responseType="ms-stream",i.onreadystatechange=this._xhrOnReadyStateChange.bind(this),i.onerror=this._xhrOnError.bind(this),e.withCredentials&&(i.withCredentials=!0),"object"===(0,u.default)(n.headers)){var a,r=n.headers;for(a in r)r.hasOwnProperty(a)&&i.setRequestHeader(a,r[a])}if("object"===(0,u.default)(this._config.headers)){var s,o=this._config.headers;for(s in o)o.hasOwnProperty(s)&&i.setRequestHeader(s,o[s])}this._isReconnecting?this._isReconnecting=!1:this._status=h.LoaderStatus.kConnecting,i.send()}},{key:"abort",value:function(){this._internalAbort(),this._status=h.LoaderStatus.kComplete}},{key:"_internalAbort",value:function(){this._reader&&(1===this._reader.readyState&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}},{key:"_xhrOnReadyStateChange",value:function(e){e=e.target;if(2===e.readyState)if(200<=e.status&&e.status<=299){this._status=h.LoaderStatus.kBuffering,null!=e.responseURL&&(t=this._seekHandler.removeURLParameters(e.responseURL),e.responseURL!==this._currentRequestURL&&t!==this._currentRedirectedURL&&(this._currentRedirectedURL=t,this._onURLRedirect&&this._onURLRedirect(t)));var t=e.getResponseHeader("Content-Length");null==t||null!=this._contentLength||0<(t=parseInt(t))&&(this._contentLength=t,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}else{if(this._status=h.LoaderStatus.kError,!this._onError)throw new c.RuntimeException("MSStreamLoader: Http code invalid, "+e.status+" "+e.statusText);this._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})}else 3===e.readyState&&200<=e.status&&e.status<=299&&(this._status=h.LoaderStatus.kBuffering,e=e.response,this._reader.readAsArrayBuffer(e))}},{key:"_xhrOnError",value:function(e){this._status=h.LoaderStatus.kError;var t=h.LoaderErrors.EXCEPTION,e={code:-1,msg:e.constructor.name+" "+e.type};if(!this._onError)throw new c.RuntimeException(e.msg);this._onError(t,e)}},{key:"_msrOnProgress",value:function(e){var t,n=e.target.result;null!=n?(t=n.slice(this._lastTimeBufferSize),this._lastTimeBufferSize=n.byteLength,e=this._totalRange.from+this._receivedLength,this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,e,this._receivedLength),n.byteLength>=this._bufferLimit&&(l.default.v(this.TAG,"MSStream buffer exceeded max size near "+(e+t.byteLength)+", reconnecting..."),this._doReconnectIfNeeded())):this._doReconnectIfNeeded()}},{key:"_doReconnectIfNeeded",value:function(){var e;(null==this._contentLength||this._receivedLength<this._contentLength)&&(this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort(),e={from:this._totalRange.from+this._receivedLength,to:-1},this._internalOpen(this._dataSource,e,!0))}},{key:"_msrOnLoad",value:function(e){this._status=h.LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(e){this._status=h.LoaderStatus.kError;var t=0,n=null,n=this._contentLength&&this._receivedLength<this._contentLength?(t=h.LoaderErrors.EARLY_EOF,{code:-1,msg:"MSStream meet Early-Eof"}):(t=h.LoaderErrors.EARLY_EOF,{code:-1,msg:e.constructor.name+" "+e.type});if(!this._onError)throw new c.RuntimeException(n.msg);this._onError(t,n)}}]),o=f;function f(e,t){(0,a.default)(this,f);var n=(0,r.default)(this,(f.__proto__||(0,i.default)(f)).call(this,"xhr-msstream-loader"));return n.TAG="MSStreamLoader",n._seekHandler=e,n._config=t,n._needStash=!0,n._xhr=null,n._reader=null,n._totalRange=null,n._currentRange=null,n._currentRequestURL=null,n._currentRedirectedURL=null,n._contentLength=null,n._receivedLength=0,n._bufferLimit=16777216,n._lastTimeBufferSize=0,n._isReconnecting=!1,n}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=f(n(9)),i=f(n(21)),a=f(n(1)),r=f(n(26)),s=f(n(33)),o=f(n(2)),d=f(n(27)),l=f(n(4)),h=f(n(62)),c=n(14),_=n(5);function f(e){return e&&e.__esModule?e:{default:e}}n=c.BaseLoader,(0,d.default)(m,n),(0,o.default)(m,null,[{key:"isSupported",value:function(){try{var e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),(e.responseType="arraybuffer")===e.responseType}catch(e){return l.default.w("RangeLoader",e.message),!1}}}]),(0,o.default)(m,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),(0,s.default)(m.prototype.__proto__||(0,i.default)(m.prototype),"destroy",this).call(this)}},{key:"open",value:function(e,t){this._dataSource=e,this._range=t,this._status=c.LoaderStatus.kConnecting;t=!1;null!=this._dataSource.filesize&&0!==this._dataSource.filesize&&(t=!0,this._totalLength=this._dataSource.filesize),this._totalLengthReceived||t?this._openSubRange():(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1}))}},{key:"_openSubRange",value:function(){var e=1024*this._currentChunkSizeKB,t=this._range.from+this._receivedLength,e=t+e;null!=this._contentLength&&e-this._range.from>=this._contentLength&&(e=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:e},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(e,t){this._lastTimeLoaded=0;var n=e.url;this._config.reuseRedirectedURL&&(null!=this._currentRedirectedURL?n=this._currentRedirectedURL:null!=e.redirectedURL&&(n=e.redirectedURL));t=this._seekHandler.getConfig(n,t);this._currentRequestURL=t.url;var i=this._xhr=new XMLHttpRequest;if(i.open("GET",t.url,!0),i.responseType="arraybuffer",i.onreadystatechange=this._onReadyStateChange.bind(this),i.onprogress=this._onProgress.bind(this),i.onload=this._onLoad.bind(this),i.onerror=this._onXhrError.bind(this),e.withCredentials&&(i.withCredentials=!0),"object"===(0,u.default)(t.headers)){var a,r=t.headers;for(a in r)r.hasOwnProperty(a)&&i.setRequestHeader(a,r[a])}if("object"===(0,u.default)(this._config.headers)){var s,o=this._config.headers;for(s in o)o.hasOwnProperty(s)&&i.setRequestHeader(s,o[s])}i.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=c.LoaderStatus.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(e){var t=e.target;if(2===t.readyState)if(null!=t.responseURL&&(e=this._seekHandler.removeURLParameters(t.responseURL),t.responseURL!==this._currentRequestURL&&e!==this._currentRedirectedURL&&(this._currentRedirectedURL=e,this._onURLRedirect&&this._onURLRedirect(e))),200<=t.status&&t.status<=299)this._waitForTotalLength||(this._status=c.LoaderStatus.kBuffering);else{if(this._status=c.LoaderStatus.kError,!this._onError)throw new _.RuntimeException("RangeLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(c.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}}},{key:"_onProgress",value:function(e){if(this._status!==c.LoaderStatus.kError){if(null===this._contentLength){var t,n=!1;if(this._waitForTotalLength&&(this._waitForTotalLength=!1,n=this._totalLengthReceived=!0,t=e.total,this._internalAbort(),null!=t&0!==t&&(this._totalLength=t)),-1===this._range.to?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,n)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}n=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(n)}}},{key:"_normalizeSpeed",value:function(e){var t,n=this._chunkSizeKBList,i=n.length-1,a=0,r=i;if(e<n[0])return n[0];for(;a<=r;){if((t=a+Math.floor((r-a)/2))===i||e>=n[t]&&e<n[t+1])return n[t];n[t]<e?a=t+1:r=t-1}}},{key:"_onLoad",value:function(e){var t,n;this._status!==c.LoaderStatus.kError&&(this._waitForTotalLength?this._waitForTotalLength=!1:((this._lastTimeLoaded=0)===(t=this._speedSampler.lastSecondKBps)&&(this._zeroSpeedChunkCount++,3<=this._zeroSpeedChunkCount&&(t=this._speedSampler.currentKBps)),0!==t&&(n=this._normalizeSpeed(t),this._currentSpeedNormalized!==n&&(this._currentSpeedNormalized=n,this._currentChunkSizeKB=n)),t=e.target.response,n=this._range.from+this._receivedLength,this._receivedLength+=t.byteLength,e=!1,null!=this._contentLength&&this._receivedLength<this._contentLength?this._openSubRange():e=!0,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength),e&&(this._status=c.LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))))}},{key:"_onXhrError",value:function(e){this._status=c.LoaderStatus.kError;var t=0,n=null,n=this._contentLength&&0<this._receivedLength&&this._receivedLength<this._contentLength?(t=c.LoaderErrors.EARLY_EOF,{code:-1,msg:"RangeLoader meet Early-Eof"}):(t=c.LoaderErrors.EXCEPTION,{code:-1,msg:e.constructor.name+" "+e.type});if(!this._onError)throw new _.RuntimeException(n.msg);this._onError(t,n)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}}]),o=m;function m(e,t){(0,a.default)(this,m);var n=(0,r.default)(this,(m.__proto__||(0,i.default)(m)).call(this,"xhr-range-loader"));return n.TAG="RangeLoader",n._seekHandler=e,n._config=t,n._needStash=!1,n._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],n._currentChunkSizeKB=384,n._currentSpeedNormalized=0,n._zeroSpeedChunkCount=0,n._xhr=null,n._speedSampler=new h.default,n._requestAbort=!1,n._waitForTotalLength=!1,n._totalLengthReceived=!1,n._currentRequestURL=null,n._currentRedirectedURL=null,n._currentRequestRange=null,n._totalLength=null,n._contentLength=null,n._receivedLength=0,n._lastTimeLoaded=0,n}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=h(n(21)),a=h(n(1)),r=h(n(26)),s=h(n(33)),o=h(n(2)),u=h(n(27)),d=(h(n(4)),n(14)),l=n(5);function h(e){return e&&e.__esModule?e:{default:e}}n=d.BaseLoader,(0,u.default)(c,n),(0,o.default)(c,null,[{key:"isSupported",value:function(){try{return void 0!==self.WebSocket}catch(e){return!1}}}]),(0,o.default)(c,[{key:"destroy",value:function(){this._ws&&this.abort(),(0,s.default)(c.prototype.__proto__||(0,i.default)(c.prototype),"destroy",this).call(this)}},{key:"open",value:function(e){try{var t=this._ws=new self.WebSocket(e.url);t.binaryType="arraybuffer",t.onopen=this._onWebSocketOpen.bind(this),t.onclose=this._onWebSocketClose.bind(this),t.onmessage=this._onWebSocketMessage.bind(this),t.onerror=this._onWebSocketError.bind(this),this._status=d.LoaderStatus.kConnecting}catch(e){this._status=d.LoaderStatus.kError;t={code:e.code,msg:e.message};if(!this._onError)throw new l.RuntimeException(t.msg);this._onError(d.LoaderErrors.EXCEPTION,t)}}},{key:"abort",value:function(){var e=this._ws;!e||0!==e.readyState&&1!==e.readyState||(this._requestAbort=!0,e.close()),this._ws=null,this._status=d.LoaderStatus.kComplete}},{key:"_onWebSocketOpen",value:function(e){this._status=d.LoaderStatus.kBuffering}},{key:"_onWebSocketClose",value:function(e){!0!==this._requestAbort?(this._status=d.LoaderStatus.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)):this._requestAbort=!1}},{key:"_onWebSocketMessage",value:function(e){var t=this;if(e.data instanceof ArrayBuffer)this._dispatchArrayBuffer(e.data);else if(e.data instanceof Blob){var n=new FileReader;n.onload=function(){t._dispatchArrayBuffer(n.result)},n.readAsArrayBuffer(e.data)}else{this._status=d.LoaderStatus.kError;e={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(!this._onError)throw new l.RuntimeException(e.msg);this._onError(d.LoaderErrors.EXCEPTION,e)}}},{key:"_dispatchArrayBuffer",value:function(e){var t=e,e=this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,e,this._receivedLength)}},{key:"_onWebSocketError",value:function(e){this._status=d.LoaderStatus.kError;e={code:e.code,msg:e.message};if(!this._onError)throw new l.RuntimeException(e.msg);this._onError(d.LoaderErrors.EXCEPTION,e)}}]),o=c;function c(){(0,a.default)(this,c);var e=(0,r.default)(this,(c.__proto__||(0,i.default)(c)).call(this,"websocket-loader"));return e.TAG="WebSocketLoader",e._needStash=!0,e._ws=null,e._requestAbort=!1,e._receivedLength=0,e}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}(0,a(n(2)).default)(r,[{key:"getConfig",value:function(e,t){var n,i={};return 0!==t.from||-1!==t.to?(n=void 0,n=-1!==t.to?"bytes="+t.from.toString()+"-"+t.to.toString():"bytes="+t.from.toString()+"-",i.Range=n):this._zeroStart&&(i.Range="bytes=0-"),{url:e,headers:i}}},{key:"removeURLParameters",value:function(e){return e}}]),n=r;function r(e){(0,i.default)(this,r),this._zeroStart=e||!1}t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}(0,a(n(2)).default)(r,[{key:"getConfig",value:function(e,t){var n=e;return 0===t.from&&-1===t.to||(e=!0,-1===n.indexOf("?")&&(n+="?",e=!1),e&&(n+="&"),n+=this._startName+"="+t.from.toString(),-1!==t.to&&(n+="&"+this._endName+"="+t.to.toString())),{url:n,headers:{}}}},{key:"removeURLParameters",value:function(e){var t=e.split("?")[0],n=void 0,i=e.indexOf("?"),a="";if(null!=(n=-1!==i?e.substring(i+1):n)&&0<n.length)for(var r=n.split("&"),s=0;s<r.length;s++){var o=r[s].split("=");o[0]!==this._startName&&o[0]!==this._endName&&(0<s&&(a+="&"),a+=r[s])}return 0===a.length?t:t+"?"+a}}]),n=r;function r(e,t){(0,i.default)(this,r),this._startName=e,this._endName=t}t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=M(n(15)),a=M(n(20)),r=M(n(9)),s=M(n(1)),o=M(n(2)),u=M(n(11)),d=M(n(4)),l=M(n(34)),h=(M(n(62)),M(n(41))),c=M(n(310)),_=M(n(42)),f=M(n(328)),m=M(n(228)),p=n(230),y=n(64),v=n(5),g=M(n(229));function M(e){return e&&e.__esModule?e:{default:e}}(0,o.default)(L,[{key:"destroy",value:function(){null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter&&(this._emitter.removeAllListeners(),this._emitter=null)}},{key:"on",value:function(e,t){var n=this;e===h.default.MEDIA_INFO?null!=this._mediaInfo&&i.default.resolve().then(function(){n._emitter.emit(h.default.MEDIA_INFO,n.mediaInfo)}):e===h.default.STATISTICS_INFO&&null!=this._statisticsInfo&&i.default.resolve().then(function(){n._emitter.emit(h.default.STATISTICS_INFO,n.statisticsInfo)}),this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"attachMediaElement",value:function(e){var t=this;if((this._mediaElement=e).addEventListener("loadedmetadata",this.e.onvLoadedMetadata),e.addEventListener("seeking",this.e.onvSeeking),e.addEventListener("canplay",this.e.onvCanPlay),e.addEventListener("stalled",this.e.onvStalled),e.addEventListener("progress",this.e.onvProgress),e.addEventListener("timeupdate",this.e.onvTimeUpdate),this._msectl=new f.default(this._config),this._msectl.on(m.default.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(m.default.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(m.default.SOURCE_OPEN,function(){if(t._mseSourceOpened=!0,t._hasPendingLoad)for(t._hasPendingLoad=!1,t.load(),0<t._stashArray.length&&console.warn("stash before source open",t._stashArray.length);0<t._stashArray.length;){var e=t._stashArray.shift();t._onLoaderChunkArrival(e.data,e.byteStart)}}),this._msectl.on(m.default.SOURCE_END,function(){t._emitter.emit(h.default.MEDIA_SOURCE_ENDED)}),this._msectl.on(m.default.SOURCE_CLOSE,function(){t._mseSourceOpened=!1,t._emitter.emit(h.default.MEDIA_SOURCE_CLOSE)}),this._msectl.on(m.default.ERROR,function(e){t._emitter.emit(h.default.ERROR,p.ErrorTypes.MEDIA_ERROR,p.ErrorDetails.MEDIA_MSE_ERROR,e)}),this._msectl.attachMediaElement(e),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(e){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement.removeEventListener("timeupdate",this.e.onvTimeUpdate),this._mediaElement=null,this._stashArray=[]),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var i=this;if(!this._mediaElement)throw new v.IllegalStateException("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new v.IllegalStateException("FlvPlayer.load() has been called, please call unload() first!");this._hasPendingLoad||(this._config.deferLoadAfterSourceOpen&&!1===this._mseSourceOpened?this._hasPendingLoad=!0:(0<this._mediaElement.readyState&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this.openLatencyMonitor(),this._transmuxer=new c.default(this._mediaDataSource,this._config),this._transmuxer.on(_.default.INIT_SEGMENT,function(e,t){i._msectl.appendInitSegment(t)}),this._transmuxer.on(_.default.MEDIA_SEGMENT,function(e,t){var n;i._msectl.appendMediaSegment(t),i._config.lazyLoad&&!i._config.isLive&&(n=i._mediaElement.currentTime,t.info.endDts>=1e3*(n+i._config.lazyLoadMaxDuration)&&null==i._progressChecker&&(d.default.v(i.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),i._suspendTransmuxer()))}),this._transmuxer.on(_.default.LOADING_COMPLETE,function(){i._msectl.endOfStream(),i._emitter.emit(h.default.LOADING_COMPLETE)}),this._transmuxer.on(_.default.RECOVERED_EARLY_EOF,function(){i._emitter.emit(h.default.RECOVERED_EARLY_EOF)}),this._transmuxer.on(_.default.IO_ERROR,function(e,t){i._emitter.emit(h.default.ERROR,p.ErrorTypes.NETWORK_ERROR,e,t)}),this._transmuxer.on(_.default.DEMUX_ERROR,function(e,t){i._emitter.emit(h.default.ERROR,p.ErrorTypes.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(_.default.MEDIA_INFO,function(e){i._mediaInfo=e,i._emitter.emit(h.default.MEDIA_INFO,(0,a.default)({},e))}),this._transmuxer.on(_.default.METADATA_ARRIVED,function(e){i._emitter.emit(h.default.METADATA_ARRIVED,e)}),this._transmuxer.on(_.default.SCRIPTDATA_ARRIVED,function(e){i._emitter.emit(h.default.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(_.default.STATISTICS_INFO,function(e){i._statisticsInfo=i._fillStatisticsInfo(e),i._emitter.emit(h.default.STATISTICS_INFO,(0,a.default)({},i._statisticsInfo))}),this._transmuxer.on(_.default.RECOMMEND_SEEKPOINT,function(e){i._mediaElement&&!i._config.accurateSeek&&(i._requestSetTime=!0,i._mediaElement.currentTime=e/1e3)}),this._transmuxer.on(_.default.VIDEO_RESOLUTION_CHANGED,function(e){i._emitter.emit(h.default.VIDEO_RESOLUTION_CHANGED,e)}),this._transmuxer.on(_.default.PARSEDDATA_ARRIVED,function(e,t){i._onParsedData(e,t)}),this._transmuxer.open()))}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null),this._durationMonitor&&(self.clearInterval(this._durationMonitor),this._durationMonitor=null),this._latencyDetectTimer&&(self.clearInterval(this._latencyDetectTimer),this._latencyDetectTimer=null,this._latencyAdjustCount=0,d.default.i(this.TAG,"--== Total latency adjust count : "+this._latencyAdjustCountTotal),this._latencyAdjustCountTotal=0),this._forzenTimes=0,this._lastDecodedFrames=0}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"openFileSystem",value:function(e){this._isRecord=!0,this._fs=new g.default(e,this._initSegment.data)}},{key:"downloadFile",value:function(){if(!this._isRecord||!this._fs)throw new Error("FileSystem is not ready");this._fs.download(),this._isRecord=!1,this._fs=null}},{key:"setRecordFlag",value:function(e){this._transmuxer._controller._demuxer.recordFlag=e}},{key:"_onLoaderChunkArrival",value:function(e,t,n){this._transmuxer._controller._ioctl._onLoaderChunkArrival(e,t,n)}},{key:"onLoaderChunkArrival",value:function(e,t,n){this._mseSourceOpened?(0<this._stashArray.length&&this._stashArray.push({data:e,byteStart:t}),this._onLoaderChunkArrival(e,t,n)):this._stashArray.push({data:e,byteStart:t})}},{key:"_fillStatisticsInfo",value:function(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;var t,n=!0,i=0,a=0;return this._mediaElement.getVideoPlaybackQuality?(i=(t=this._mediaElement.getVideoPlaybackQuality()).totalVideoFrames,a=t.droppedVideoFrames):null!=this._mediaElement.webkitDecodedFrameCount?(i=this._mediaElement.webkitDecodedFrameCount,a=this._mediaElement.webkitDroppedFrameCount):n=!1,n&&(e.decodedFrames=i,e.droppedFrames=a),e}},{key:"enableVideoStateMonitor",value:function(e){this._enableDurationMonitor=e,this._enableVideoFrozenMonitor=e}},{key:"_increaseLatency",value:function(e){this._curLatencyThreshold+=e,this._curLatencyThreshold>this._config.highLatencyThreshold&&(this._curLatencyThreshold=this._config.highLatencyThreshold),d.default.i(this.TAG,"latency +"+this._curLatencyThreshold)}},{key:"_decreaseLatency",value:function(e){this._curLatencyThreshold-=e,this._curLatencyThreshold<this._config.lowLatencyThreshold&&(this._curLatencyThreshold=this._config.lowLatencyThreshold),d.default.i(this.TAG,"latency -"+this._curLatencyThreshold)}},{key:"_updateCurrentLatencyThreshold",value:function(e){this._curLatencyThreshold=e,this._curLatencyThreshold<this._config.lowLatencyThreshold&&(this._curLatencyThreshold=this._config.lowLatencyThreshold),this._curLatencyThreshold>this._config.highLatencyThreshold&&(this._curLatencyThreshold=this._config.highLatencyThreshold),d.default.i(this.TAG,"update current latency threshold : "+this._curLatencyThreshold)}},{key:"_adjustDurationGap",value:function(){this._latencyAdjustCount<this._latencyDetectThreshold?this._decreaseLatency(this._latencyDetectAdjustStep):this._latencyAdjustCount>this._latencyDetectThreshold&&this._increaseLatency(5*this._latencyDetectAdjustStep),this._latencyAdjustCount=0}},{key:"_doDurationMonitor",value:function(){if(this._enableDurationMonitor&&this._mseSourceOpened&&(!this._msectl||!this._msectl.checkSourceBufferNull())){var e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=this._mediaElement.paused;if(null!=e&&0!=e.length){e=e.end(0),t=e-t;if(!n&&t>this._curLatencyThreshold&&(e=e-this._decreaseDurationStep,d.default.w(this.TAG,"high latency gap {"+t+"}, decrease "+this._decreaseDurationStep+" and set to "+e),this._mediaElement.currentTime=e,this._requestSetTime=!0,this._latencyAdjustCountTotal++,2<this._latencyAdjustCountTotal&&(++this._latencyAdjustCount,i=t+this._latencyDetectAdjustStep,this._updateCurrentLatencyThreshold(i))),this._enableVideoFrozenMonitor){var i=0;if(this._mediaElement.getVideoPlaybackQuality)i=this._mediaElement.getVideoPlaybackQuality().totalVideoFrames;else{if(null==this._mediaElement.webkitDecodedFrameCount)return;i=this._mediaElement.webkitDecodedFrameCount}0!=this._lastDecodedFrames&&(this._lastDecodedFrames==i?this._forzenTimes++:this._forzenTimes=0),this._lastDecodedFrames=i,this._forzenTimes>=this._frozenTimesThreshold&&(d.default.w(this.TAG,"Report video frozen event"),this._emitter.emit(h.default.VIDEO_FROZEN),this._forzenTimes=0)}}}}},{key:"openLatencyMonitor",value:function(){this._enableDurationMonitor&&null==this._durationMonitor&&(this._durationMonitor=self.setInterval(this._doDurationMonitor.bind(this),this._videoStateMonitorInterval),this._forzenTimes=0,this._lastDecodedFrames=0,this._latencyDetectTimer=self.setInterval(this._adjustDurationGap.bind(this),this._latencyDetectInterval))}},{key:"closeLatencyMonitor",value:function(){this._durationMonitor&&(clearInterval(this._durationMonitor),this._durationMonitor=null),this._latencyDetectTimer&&(clearInterval(this._latencyDetectTimer),this._latencyDetectTimer=null),this._emitter.listeners("timeupdate")&&this._mediaElement.removeEventListener("timeupdate",this.e.onvTimeUpdate)}},{key:"_onmseUpdateEnd",value:function(){if(this._config.lazyLoad&&!this._config.isLive){for(var e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,i=0;i<e.length;i++){var a=e.start(i),r=e.end(i);if(a<=t&&t<r){n=r;break}}n>=t+this._config.lazyLoadMaxDuration&&null==this._progressChecker&&(d.default.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}},{key:"_onmseBufferFull",value:function(){d.default.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),null==this._progressChecker&&this._suspendTransmuxer(),this._emitter.emit(h.default.MS_BUFFER_FULL)}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),null==this._progressChecker&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var e=this._mediaElement.currentTime,t=this._mediaElement.buffered,n=!1,i=0;i<t.length;i++){var a=t.start(i),r=t.end(i);if(a<=e&&e<r){e>=r-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(d.default.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(e){for(var t=this._mediaElement.buffered,n=0;n<t.length;n++){var i=t.start(n),a=t.end(n);if(i<=e&&e<a)return!0}return!1}},{key:"_internalSeek",value:function(e){var t,n=this._isTimepointBuffered(e),i=!1,a=0;e<1&&0<this._mediaElement.buffered.length&&(((t=this._mediaElement.buffered.start(0))<1&&e<t||l.default.safari)&&(i=!0,a=l.default.safari?.1:t)),i?(this._requestSetTime=!0,this._mediaElement.currentTime=a):n?(this._alwaysSeekKeyframe?(n=this._msectl.getNearestKeyframe(Math.floor(1e3*e)),this._requestSetTime=!0,this._mediaElement.currentTime=null!=n?n.dts/1e3:e):(this._requestSetTime=!0,this._mediaElement.currentTime=e),null!=this._progressChecker&&this._checkProgressAndResume()):(null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(1e3*e)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e))}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){var e;this._seekpointRecord&&(this._seekpointRecord.recordTime<=this._now()-100?(e=this._mediaElement.currentTime,this._seekpointRecord=null,this._isTimepointBuffered(e)||(null!=this._progressChecker&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(1e3*e)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e))):window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50))}},{key:"_checkAndResumeStuckPlayback",value:function(e){var t=this._mediaElement;e||!this._receivedCanPlay||t.readyState<2?0<(e=t.buffered).length&&t.currentTime<e.start(0)&&(d.default.w(this.TAG,"Playback seems stuck at "+t.currentTime+", seek to "+e.start(0)),this._requestSetTime=!0,this._mediaElement.currentTime=e.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress)):this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(h.default.LOADED_META_DATA)}},{key:"_onvSeeking",value:function(e){var t=this._mediaElement.currentTime,n=this._mediaElement.buffered;if(this._requestSetTime)this._requestSetTime=!1;else{if(t<1&&0<n.length){var i=n.start(0);if(i<1&&t<i||l.default.safari)return this._requestSetTime=!0,void(this._mediaElement.currentTime=l.default.safari?.1:i)}if(this._isTimepointBuffered(t))return!this._alwaysSeekKeyframe||null!=(i=this._msectl.getNearestKeyframe(Math.floor(1e3*t)))&&(this._requestSetTime=!0,this._mediaElement.currentTime=i.dts/1e3),void(null!=this._progressChecker&&this._checkProgressAndResume());this._seekpointRecord={seekPoint:t,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}}},{key:"_onvCanPlay",value:function(e){var t;this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.play(),this._enableAudioGain&&(g_audioSource||(t=this._mediaElement,g_audioSource=g_audioCtx.createMediaElementSource(t)),g_audioSource.connect(g_audioGain),d.default.d(this.TAG,"Enable audio gain, level = "+this._audioGainLevel))}},{key:"_onvStalled",value:function(e){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(e){this._checkAndResumeStuckPlayback()}},{key:"_onvTimeUpdate",value:function(e){var t=e.target,n=t.currentTime,i=t.seekable.end(0),e=t.playbackRate,n=i-n;1.5<n&&1===e&&(t.playbackRate=1.2,d.default.w(this.TAG,"latency gt 1.5, set rate 1.2")),n<.5&&1<e&&(t.playbackRate=1,d.default.w(this.TAG,"latency lt 0.5, set rate 1"))}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(e){this._mediaElement.volume=e}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(e){this._mediaElement.muted=e}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e}},{key:"mediaInfo",get:function(){return(0,a.default)({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return null==this._statisticsInfo&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),(0,a.default)({},this._statisticsInfo)}},{key:"onParsedData",set:function(e){this._onParsedData=e}}]),o=L;function L(e,t){if((0,s.default)(this,L),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new u.default,this._config=(0,y.createDefaultConfig)(),"object"===(void 0===t?"undefined":(0,r.default)(t))&&(0,a.default)(this._config,t),"flv"!==e.type.toLowerCase())throw new v.InvalidArgumentException("FlvPlayer requires an flv MediaDataSource input!");!0===e.isLive&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this),onvTimeUpdate:this._onvTimeUpdate.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=e,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._stashArray=[],this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;e=l.default.chrome&&(l.default.version.major<50||50===l.default.version.major&&l.default.version.build<2661);this._alwaysSeekKeyframe=!!(e||l.default.msedge||l.default.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1),this._videoStateMonitorInterval=this._config.videoStateMonitorInterval,this._enableDurationMonitor=this._config.enableDurationMonitor,this._curLatencyThreshold=this._config.lowLatencyThreshold,this._decreaseDurationStep=this._config.decreaseDurationStep,this._durationMonitor=null,this._enableVideoFrozenMonitor=this._config.enableVideoFrozenMonitor,this._frozenTimesThreshold=this._config.frozenTimesThreshold,this._forzenTimes=0,this._lastDecodedFrames=0,this._latencyDetectInterval=this._config.latencyDetectInterval,this._latencyDetectThreshold=this._config.latencyDetectThreshold,this._latencyDetectAdjustStep=this._config.latencyDetectAdjustStep,this._latencyDetectTimer=null,this._latencyAdjustCount=0,this._latencyAdjustCountTotal=0,this._enableAudioGain=this._config.enableAudioGain,this._audioGainLevel=0<this._config.audioGainLevel?this._config.audioGainLevel:1}t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=f(i(40)),r=f(i(15)),s=f(i(1)),n=f(i(2)),o=f(i(11)),u=f(i(4)),d=f(i(65)),l=f(i(226)),h=f(i(42)),c=f(i(326)),_=f(i(66));function f(e){return e&&e.__esModule?e:{default:e}}(0,n.default)(m,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),d.default.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(e,t){this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"hasWorker",value:function(){return null!=this._worker}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(e){this._worker?this._worker.postMessage({cmd:"seek",param:e}):this._controller.seek(e)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(e,t){var n=this;r.default.resolve().then(function(){null!=n._emitter&&n._emitter.emit(h.default.INIT_SEGMENT,e,t)})}},{key:"_onMediaSegment",value:function(e,t){var n=this;r.default.resolve().then(function(){null!=n._emitter&&n._emitter.emit(h.default.MEDIA_SEGMENT,e,t)})}},{key:"_onLoadingComplete",value:function(){var e=this;r.default.resolve().then(function(){e._emitter.emit(h.default.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var e=this;r.default.resolve().then(function(){e._emitter.emit(h.default.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(e){var t=this;r.default.resolve().then(function(){null!=t._emitter&&t._emitter.emit(h.default.MEDIA_INFO,e)})}},{key:"_onMetaDataArrived",value:function(e){var t=this;r.default.resolve().then(function(){null!=t._emitter&&t._emitter.emit(h.default.METADATA_ARRIVED,e)})}},{key:"_onScriptDataArrived",value:function(e){var t=this;r.default.resolve().then(function(){null!=t._emitter&&t._emitter.emit(h.default.SCRIPTDATA_ARRIVED,e)})}},{key:"_onStatisticsInfo",value:function(e){var t=this;r.default.resolve().then(function(){t._emitter.emit(h.default.STATISTICS_INFO,e)})}},{key:"_onIOError",value:function(e,t){var n=this;r.default.resolve().then(function(){null!=n._emitter&&n._emitter.emit(h.default.IO_ERROR,e,t)})}},{key:"_onDemuxError",value:function(e,t){var n=this;r.default.resolve().then(function(){null!=n._emitter&&n._emitter.emit(h.default.DEMUX_ERROR,e,t)})}},{key:"_onRecommendSeekpoint",value:function(e){var t=this;r.default.resolve().then(function(){t._emitter.emit(h.default.RECOMMEND_SEEKPOINT,e)})}},{key:"_onLoggingConfigChanged",value:function(e){this._worker&&this._worker.postMessage({cmd:"logging_config",param:e})}},{key:"_onVideoResolutionChanged",value:function(e){var t=this;r.default.resolve().then(function(){null!=t._emitter&&t._emitter.emit(h.default.VIDEO_RESOLUTION_CHANGED,e)})}},{key:"_onWorkerMessage",value:function(e){var t=e.data,n=t.data;if("destroyed"===t.msg||this._workerDestroying)return this._workerDestroying=!1,this._worker.terminate(),void(this._worker=null);switch(t.msg){case h.default.INIT_SEGMENT:case h.default.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case h.default.LOADING_COMPLETE:case h.default.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case h.default.MEDIA_INFO:(0,a.default)(n,_.default.prototype),this._emitter.emit(t.msg,n);break;case h.default.METADATA_ARRIVED:case h.default.SCRIPTDATA_ARRIVED:case h.default.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case h.default.IO_ERROR:case h.default.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case h.default.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":u.default.emitter.emit("log",n.type,n.logcat)}}},{key:"_parsedDataArrived",value:function(e,t,n,i){var a=this;r.default.resolve().then(function(){a._emitter.emit(h.default.PARSEDDATA_ARRIVED,e,t,n,i)})}}]),n=m;function m(t,n){if((0,s.default)(this,m),this.TAG="Transmuxer",this._emitter=new o.default,n.enableWorker&&"undefined"!=typeof Worker)try{var e=i(327);this._worker=e(c.default),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[t,n]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},d.default.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:d.default.getConfig()})}catch(e){u.default.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new l.default(t,n)}else this._controller=new l.default(t,n);this._controller&&((n=this._controller).on(h.default.IO_ERROR,this._onIOError.bind(this)),n.on(h.default.DEMUX_ERROR,this._onDemuxError.bind(this)),n.on(h.default.INIT_SEGMENT,this._onInitSegment.bind(this)),n.on(h.default.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),n.on(h.default.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),n.on(h.default.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),n.on(h.default.MEDIA_INFO,this._onMediaInfo.bind(this)),n.on(h.default.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),n.on(h.default.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),n.on(h.default.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),n.on(h.default.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this)),n.on(h.default.VIDEO_RESOLUTION_CHANGED,this._onVideoResolutionChanged.bind(this)),n.on(h.default.PARSEDDATA_ARRIVED,this._parsedDataArrived.bind(this)))}t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(312)),s=l(n(20)),o=l(n(9)),p=l(n(315)),i=l(n(1)),a=l(n(2)),w=l(n(4)),u=l(n(319)),b=l(n(321)),D=l(n(67)),d=l(n(66)),y=n(5);function l(e){return e&&e.__esModule?e:{default:e}}(0,a.default)(v,[{key:"destroy",value:function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._lastVideoDimension=null,this._recordFlag=!1,this._firstrVideo=!0,this._firstAudio=!0,this._flvHead="",this._bpsCalculator&&(self.clearInterval(this._bpsCalculator),this._bpsCalculator=null,this._bpsInfo=null)}},{key:"bindDataSource",value:function(e){return e.onDataArrival=this.parseChunks.bind(this),this}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new d.default}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!(this._hasAudio||!this._hasVideo)&&this._videoInitialMetadataDispatched}},{key:"_calculateRealtimeBitrate",value:function(){this._bpsInfo&&(this._bpsInfo.time_gap_factor<1&&(this._bpsInfo.time_gap_factor=1),0!=this._bpsInfo.lastVideoBytes&&(this._bpsInfo.bps_video=8*this._bpsInfo.lastVideoBytes/1024/this._bpsInfo.time_gap_factor,this._bpsInfo.lastVideoBytes=0),0!=this._bpsInfo.lastAudioBytes&&(this._bpsInfo.bps_audio=8*this._bpsInfo.lastAudioBytes/1024/this._bpsInfo.time_gap_factor,this._bpsInfo.lastAudioBytes=0),this._videoInfo.bitRate=this._bpsInfo.bps_video,this._onParsedData(this._videoInfo,3))}},{key:"parseChunks",value:function(e,t){if(!(this._onError&&this._onMediaInfo&&this._onTrackMetadata&&this._onDataAvailable))throw new y.IllegalStateException("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var n=0,i=this._littleEndian;if(0===t){if(!(13<e.byteLength))return 0;n=v.probe(e).dataOffset}this._bpsCalculator||(this._bpsCalculator=self.setInterval(this._calculateRealtimeBitrate.bind(this),1e3)),this._firstParse&&(this._firstParse=!1,t+n!==this._dataOffset&&w.default.w(this.TAG,"First time parsing but chunk byteStart invalid!"),0!==new DataView(e,n).getUint32(0,!i)&&w.default.w(this.TAG,"PrevTagSize0 !== 0 !!!"),n+=4,this._flvHead=new Uint8Array(e,0,13));for(var a,r=0,s=0;n<e.byteLength;){this._dispatch=!0;var o=new DataView(e,n);if(n+11+4>e.byteLength)break;var u=o.getUint8(0),d=16777215&o.getUint32(0,!i);if(n+11+d+4>e.byteLength)break;if(8===u||9===u||18===u||191===u){var l=o.getUint8(4),h=o.getUint8(5),c=o.getUint8(6)|h<<8|l<<16|o.getUint8(7)<<24;0!=(16777215&o.getUint32(7,!i))&&w.default.w(this.TAG,"Meet tag which has StreamID != 0!");var _,f=n+11;switch(!this._recordFlag||8!==u&&9!==u&&18!==u||this._onParsedData(new Uint8Array(e,n,11+d+4),1),u){case 8:this._firstAudio&&(_=(this._firstAudio=!1,p.default)(this._flvHead).concat((0,p.default)(new Uint8Array(e,n,11+d+4))),this._flvHead=new Uint8Array(_)),this._parseAudioData(e,f,d,c),s+=d;break;case 9:this._firstrVideo&&(m=(this._firstrVideo=!1,p.default)(this._flvHead).concat((0,p.default)(new Uint8Array(e,n,11+d+4))),this._flvHead=new Uint8Array(m)),this._parseVideoData(e,f,d,c,t+n),r+=d;break;case 18:var m=(0,p.default)(this._flvHead).concat((0,p.default)(new Uint8Array(e,n,11+d+4)));this._flvHead=new Uint8Array(m),this._parseScriptData(e,f,d);break;case 191:this._parsePrivateData(e,f,d)}o=o.getUint32(11+d,!i);o!==11+d&&w.default.w(this.TAG,"Invalid PrevTagSize "+o),n+=11+d+4}else w.default.w(this.TAG,"Unsupported tag type "+u+", skipped"),n+=11+d+4}return this._bpsInfo&&(this._bpsInfo.lastAudioBytes+=s,this._bpsInfo.lastVideoBytes+=r,0!=this._bpsInfo.data_updated_time&&(a=(a=(this._now()-this._bpsInfo.data_updated_time)/1e3)<1?1:Math.round(a),this._bpsInfo.time_gap_factor=a),this._bpsInfo.data_updated_time=this._now()),this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),n}},{key:"_parseScriptData",value:function(e,t,n){t=u.default.parseScriptData(e,t,n);if(t.hasOwnProperty("onMetaData")){if(null==t.onMetaData||"object"!==(0,o.default)(t.onMetaData))return void w.default.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&w.default.w(this.TAG,"Found another onMetaData tag!"),this._metadata=t;var i,a,n=this._metadata.onMetaData;this._onMetaDataArrived&&this._onMetaDataArrived((0,s.default)({},n)),"boolean"==typeof n.hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=n.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),"boolean"==typeof n.hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=n.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),"number"==typeof n.audiodatarate&&(this._mediaInfo.audioDataRate=n.audiodatarate),"number"==typeof n.videodatarate&&(this._mediaInfo.videoDataRate=n.videodatarate),"number"==typeof n.width&&(this._mediaInfo.width=n.width),"number"==typeof n.height&&(this._mediaInfo.height=n.height),"number"==typeof n.duration?this._durationOverrided||(i=Math.floor(n.duration*this._timescale),this._duration=i,this._mediaInfo.duration=i):this._mediaInfo.duration=0,"number"!=typeof n.framerate||0<(i=Math.floor(1e3*n.framerate))&&(a=i/1e3,this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=a,this._referenceFrameRate.fps_num=i,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=a),"object"===(0,o.default)(n.keyframes)?(this._mediaInfo.hasKeyframesIndex=!0,a=n.keyframes,this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(a),n.keyframes=null):this._mediaInfo.hasKeyframesIndex=!1,this._dispatch=!1,this._mediaInfo.metadata=n,w.default.v(this.TAG,"Parsed onMetaData, hasAudio:"+this._mediaInfo.hasAudio+", hasVideo:"+this._mediaInfo.hasVideo+", video demension:"+this._mediaInfo.width+"x"+this._mediaInfo.height+"@"+this._mediaInfo.fps+" fps, hasKeyframesIndex="+this._mediaInfo.hasKeyframesIndex+", video_bitrate="+this._mediaInfo.videoDataRate+", audio_bitrate="+this._mediaInfo.audioDataRate),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}0<(0,r.default)(t).length&&this._onScriptDataArrived&&this._onScriptDataArrived((0,s.default)({},t))}},{key:"_parseKeyframesIndex",value:function(e){for(var t=[],n=[],i=1;i<e.times.length;i++){var a=this._timestampBase+Math.floor(1e3*e.times[i]);t.push(a),n.push(e.filepositions[i])}return{times:t,filepositions:n}}},{key:"_parseAudioData",value:function(e,t,n,i){if(n<=1)w.default.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");else if(!0!==this._hasAudioFlagOverrided||!1!==this._hasAudio){this._littleEndian;var a=new DataView(e,t,n).getUint8(0),r=a>>>4;if(2==r||10==r){var s=0,o=(12&a)>>>2;if(0<=o&&o<=4){var s=this._flvSoundRateTable[o],u=1&a,d=this._audioMetadata,a=this._audioTrack;if(d||(!1===this._hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),(d=this._audioMetadata={}).type="audio",d.id=a.id,d.timescale=this._timescale,d.duration=this._duration,d.audioSampleRate=s,d.channelCount=0==u?1:2),10==r){var l=this._parseAACAudioData(e,t+1,n-1);if(null!=l){if(0===l.packetType){d.config&&w.default.w(this.TAG,"Found another AudioSpecificConfig!");u=l.data;if(w.default.v(this.TAG,"old {channel:"+d.channelCount+", codec:"+d.codec+", sample rate:"+d.audioSampleRate+", orignal codec:"+u.originalCodec+", config:"+d.config+"}"),w.default.v(this.TAG,"new {channel:"+u.channelCount+", codec:"+u.codec+", sample rate:"+u.samplingRate+", orignal codec:"+u.originalCodec+", config:"+u.config+"}"),d.channelCount===u.channelCount&&d.audioSampleRate===u.samplingRate&&d.codec===u.codec&&d.originalCodec===u.originalCodec)return void w.default.w(this.TAG,"audio specific config do not changed, discard it.");d.audioSampleRate=u.samplingRate,d.channelCount=u.channelCount,d.codec=u.codec,d.originalCodec=u.originalCodec,d.config=u.config,d.refSampleDuration=1024/d.audioSampleRate*d.timescale,this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",d);u=this._mediaInfo;u.audioCodec=d.originalCodec,u.audioSampleRate=d.audioSampleRate,u.audioChannelCount=d.channelCount,u.hasVideo?null!=u.videoCodec&&(u.mimeType='video/x-flv; codecs="'+u.videoCodec+","+u.audioCodec+'"'):u.mimeType='video/x-flv; codecs="'+u.audioCodec+'"',u.isComplete()&&this._onMediaInfo(u)}else 1===l.packetType?(h=this._timestampBase+i,h={unit:l.data,length:l.data.byteLength,dts:h,pts:h},a.samples.push(h),a.length+=l.data.length):w.default.e(this.TAG,"Flv: Unsupported AAC data type "+l.packetType);this._videoInfo.audioType="AAC"}}else if(2==r){if(!d.codec){var h=this._parseMP3AudioData(e,t+1,n-1,!0);if(null==h)return;d.audioSampleRate=h.samplingRate,d.channelCount=h.channelCount,d.codec=h.codec,d.originalCodec=h.originalCodec,d.refSampleDuration=1152/d.audioSampleRate*d.timescale,w.default.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",d);l=this._mediaInfo;l.audioCodec=d.codec,l.audioSampleRate=d.audioSampleRate,l.audioChannelCount=d.channelCount,l.audioDataRate=h.bitRate,l.hasVideo?null!=l.videoCodec&&(l.mimeType='video/x-flv; codecs="'+l.videoCodec+","+l.audioCodec+'"'):l.mimeType='video/x-flv; codecs="'+l.audioCodec+'"',l.isComplete()&&this._onMediaInfo(l),this._videoInfo.audioType="MP3"}n=this._parseMP3AudioData(e,t+1,n-1,!1);null!=n&&(i=this._timestampBase+i,i={unit:n,length:n.byteLength,dts:i,pts:i},a.samples.push(i),a.length+=n.length)}}else this._onError(D.default.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+o)}else this._onError(D.default.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+r)}}},{key:"_parseAACAudioData",value:function(e,t,n){if(!(n<=1)){var i={},a=new Uint8Array(e,t,n);return i.packetType=a[0],0===a[0]?i.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):i.data=a.subarray(1),i}w.default.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!")}},{key:"_parseAACAudioSpecificConfig",value:function(e,t,n){var i,a=new Uint8Array(e,t,n),r=null,s=0,o=0,e=null,s=i=a[0]>>>3;if((o=(7&a[0])<<1|a[1]>>>7)<0||o>=this._mpegSamplingRates.length)this._onError(D.default.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");else{t=this._mpegSamplingRates[o],n=(120&a[1])>>>3;if(!(n<0||8<=n)){5===s&&(e=(7&a[1])<<1|a[2]>>>7,a[2]);a=self.navigator.userAgent.toLowerCase();return-1!==a.indexOf("firefox")?e=6<=o?(s=5,r=new Array(4),o-3):(s=2,r=new Array(2),o):-1!==a.indexOf("android")?(s=2,r=new Array(2),e=o):(s=5,e=o,r=new Array(4),6<=o?e=o-3:1==n&&(s=2,r=new Array(2),e=o)),r[0]=s<<3,r[0]|=(15&o)>>>1,r[1]=(15&o)<<7,r[1]|=(15&n)<<3,5===s&&(r[1]|=(15&e)>>>1,r[2]=(1&e)<<7,r[2]|=8,r[3]=0),{config:r,samplingRate:t,channelCount:n,codec:"mp4a.40."+s,originalCodec:"mp4a.40."+i}}this._onError(D.default.FORMAT_ERROR,"Flv: AAC invalid channel configuration")}}},{key:"_parseMP3AudioData",value:function(e,t,n,i){if(!(n<4)){this._littleEndian;var a=new Uint8Array(e,t,n),e=null;if(i){if(255!==a[0])return;var t=a[1]>>>3&3,n=(6&a[1])>>1,r=(240&a[2])>>>4,s=(12&a[2])>>>2,i=3!=(a[3]>>>6&3)?2:1,o=0,u=0;switch(t){case 0:o=this._mpegAudioV25SampleRateTable[s];break;case 2:o=this._mpegAudioV20SampleRateTable[s];break;case 3:o=this._mpegAudioV10SampleRateTable[s]}switch(n){case 1:r<this._mpegAudioL3BitRateTable.length&&(u=this._mpegAudioL3BitRateTable[r]);break;case 2:r<this._mpegAudioL2BitRateTable.length&&(u=this._mpegAudioL2BitRateTable[r]);break;case 3:r<this._mpegAudioL1BitRateTable.length&&(u=this._mpegAudioL1BitRateTable[r])}e={bitRate:u,samplingRate:o,channelCount:i,codec:"mp3",originalCodec:"mp3"}}else e=a;return e}w.default.w(this.TAG,"Flv: Invalid MP3 packet, header missing!")}},{key:"_parseVideoData",value:function(e,t,n,i,a){var r,s;n<=1?w.default.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!"):!0===this._hasVideoFlagOverrided&&!1===this._hasVideo||(7==(s=15&(r=new Uint8Array(e,t,n)[0]))?this._parseAVCVideoPacket(e,t+1,n-1,i,a,(240&r)>>>4):this._onError(D.default.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+s))}},{key:"_parseAVCVideoPacket",value:function(e,t,n,i,a,r){var s,o,u;n<4?w.default.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime"):(u=this._littleEndian,o=(s=new DataView(e,t,n)).getUint8(0),u=(16777215&s.getUint32(0,!u))<<8>>8,0===o?this._parseAVCDecoderConfigurationRecord(e,t+4,n-4):1===o?this._parseAVCVideoData(e,t+4,n-4,i,a,r,u):2===o||this._onError(D.default.FORMAT_ERROR,"Flv: Invalid video packet type "+o))}},{key:"_parseAVCDecoderConfigurationRecord",value:function(e,t,n){if(n<7)w.default.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");else{var i=this._videoMetadata,a=this._videoTrack,r=this._littleEndian,s=new DataView(e,t,n),o=!1;i?void 0!==i.avcc&&(o=!0):(!1===this._hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),(i=this._videoMetadata={}).type="video",i.id=a.id,i.timescale=this._timescale,i.duration=this._duration);var u=s.getUint8(0),a=s.getUint8(1);s.getUint8(2),s.getUint8(3);if(1===u&&0!==a)if(this._naluLengthSize=1+(3&s.getUint8(4)),3===this._naluLengthSize||4===this._naluLengthSize){var d=31&s.getUint8(5);if(0!=d){1<d&&w.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = "+d);for(var l=!0,h=6,c=0;c<d;c++){var _=s.getUint16(h,!r);if(h+=2,0!==_){var f=new Uint8Array(e,t+h,_);h+=_;var m=b.default.parseSPS(f);if(0===c){l=m.codec_size.width>=m.codec_size.height;if(o&&this._lastVideoDimension){if(this._lastVideoDimension.width!=m.codec_size.width||this._lastVideoDimension.height!=m.codec_size.height){this._resolutionChanged=!0,w.default.d(this.TAG,"video resolution changed from ["+this._lastVideoDimension.width+"x"+this._lastVideoDimension.height+"] to ["+m.codec_size.width+"x"+m.codec_size.height+"]"),this._lastVideoDimension.width=m.codec_size.width,this._lastVideoDimension.height=m.codec_size.height,this._lastVideoDimension.profile=m.profile_string,this._lastVideoDimension.level=m.level_string;var p={};p.width=m.codec_size.width,p.height=m.codec_size.height,this._onVideoResolutionChanged(p)}else if(this._lastVideoDimension.profile==m.profile_string&&this._lastVideoDimension.level==m.level_string)return}else this._lastVideoDimension.width=m.codec_size.width,this._lastVideoDimension.height=m.codec_size.height,this._lastVideoDimension.profile=m.profile_string,this._lastVideoDimension.level=m.level_string,w.default.d(this.TAG,"got new video dimension: ["+this._lastVideoDimension.width+"x"+this._lastVideoDimension.height+"]");i.codecWidth=m.codec_size.width,i.codecHeight=m.codec_size.height,i.presentWidth=m.present_size.width,i.presentHeight=m.present_size.height,i.profile=m.profile_string,i.level=m.level_string,i.bitDepth=m.bit_depth,i.chromaFormat=m.chroma_format,i.sarRatio=m.sar_ratio,i.frameRate=m.frame_rate,!1!==m.frame_rate.fixed&&0!==m.frame_rate.fps_num&&0!==m.frame_rate.fps_den||(i.frameRate=this._referenceFrameRate);_=i.frameRate.fps_den,p=i.frameRate.fps_num;i.refSampleDuration=i.timescale*(_/p);for(var y=f.subarray(1,4),v="avc1.",g=0;g<3;g++){var M=y[g].toString(16);v+=M=M.length<2?"0"+M:M}i.codec=v;f=this._mediaInfo;f.width=i.codecWidth,f.height=i.codecHeight,f.fps=i.frameRate.fps,f.profile=i.profile,f.level=i.level,f.refFrames=m.ref_frames,f.chromaFormat=m.chroma_format_string,f.sarNum=i.sarRatio.width,f.sarDen=i.sarRatio.height,f.videoCodec=v,f.hasAudio?null!=f.audioCodec&&(f.mimeType='video/x-flv; codecs="'+f.videoCodec+","+f.audioCodec+'"'):f.mimeType='video/x-flv; codecs="'+f.videoCodec+'"',f.isComplete()&&this._onMediaInfo(f)}}}var L=s.getUint8(h);if(0!==L){1<L&&w.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = "+L),h++;for(var S=0;S<L;S++){var k=s.getUint16(h,!r);h+=2,0!==k&&(h+=k)}i.avcc=new Uint8Array(n),i.avcc.set(new Uint8Array(e,t,n),0),w.default.v(this.TAG,"Parsed AVCDecoderConfigurationRecord done, "+i.codecWidth+"x"+i.codecHeight+"@"+i.frameRate.fps+" fps, profile="+i.profile+", level="+i.level),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._config.enableConstVideoViewSize&&(w.default.w(this.TAG,"--== const video view size enabled, use {"+this._config.constVideoViewWidth+"x"+this._config.constVideoViewHeight+"} ==--"),i.codecWidth=l?this._config.constVideoViewWidth:this._config.constVideoViewHeight,i.codecHeight=l?this._config.constVideoViewHeight:this._config.constVideoViewWidth),this._onTrackMetadata("video",i),this._videoInfo.bitRate=this._mediaInfo.videoDataRate,this._videoInfo.frameRate=i.frameRate.fps,this._videoInfo.width=i.codecWidth,this._videoInfo.height=i.codecHeight,this._onParsedData(this._videoInfo,3)}else this._onError(D.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS")}else this._onError(D.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS")}else this._onError(D.default.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: "+(this._naluLengthSize-1));else this._onError(D.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord")}}},{key:"_parseAVCVideoData",value:function(e,t,n,i,a,r,s){for(var o=this._littleEndian,u=new DataView(e,t,n),d=[],l=0,h=0,c=this._naluLengthSize,_=this._timestampBase+i,f=1===r;h<n;){if(n<=h+4){w.default.w(this.TAG,"Malformed Nalu near timestamp "+_+", offset = "+h+", dataSize = "+n);break}var m=u.getUint32(h,!o);if(3===c&&(m>>>=8),n-c<m)return void w.default.w(this.TAG,"Malformed Nalus near timestamp "+_+", NaluSize > DataSize!");var p=31&u.getUint8(h+c);5==p&&(f=!0);var y=new Uint8Array(e,t+h,c+m);d.push({type:p,data:y}),l+=y.byteLength,h+=c+m}d.length&&(r=this._videoTrack,s={units:d,length:l,isKeyframe:f,dts:_,cts:s,pts:_+s},f&&(s.fileposition=a),r.samples.push(s),r.length+=l)}},{key:"_parsePrivateData",value:function(e,t,n){var i,a,r=new Uint8Array(e,t,n);64===r[0]&&14===r[1]&&(i=r[6]+2e3,a=r[7]>>4,e=(15&r[7])<<1|r[8]>>7,t=r[8]>>2&31,n=(3&r[8])<<4|r[9]>>4,r=(15&r[9])<<2|r[10]>>6,this._onParsedData(i+"-"+a+"-"+e+" "+t+":"+n+":"+r,2))}},{key:"recordFlag",get:function(){return this._recordFlag},set:function(e){e&&this._onParsedData(this._flvHead,1),this._recordFlag=e}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(e){this._onTrackMetadata=e}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(e){this._onMediaInfo=e}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(e){this._onMetaDataArrived=e}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(e){this._onScriptDataArrived=e}},{key:"onError",get:function(){return this._onError},set:function(e){this._onError=e}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(e){this._onDataAvailable=e}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(e){this._timestampBase=e}},{key:"overridedDuration",get:function(){return this._duration},set:function(e){this._durationOverrided=!0,this._duration=e,this._mediaInfo.duration=e}},{key:"overridedHasAudio",set:function(e){this._hasAudioFlagOverrided=!0,this._hasAudio=e,this._mediaInfo.hasAudio=e}},{key:"overridedHasVideo",set:function(e){this._hasVideoFlagOverrided=!0,this._hasVideo=e,this._mediaInfo.hasVideo=e}},{key:"onVideoResolutionChanged",get:function(){return this._onVideoResolutionChanged},set:function(e){this._onVideoResolutionChanged=e}},{key:"onParsedData",set:function(e){this._onParsedData=e}}],[{key:"probe",value:function(e){var t=new Uint8Array(e),n={match:!1};if(70!==t[0]||76!==t[1]||86!==t[2]||1!==t[3])return n;var i=(4&t[4])>>>2!=0,a=0!=(1&t[4]),e=t[e=5]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3];return e<9?n:{match:!0,consumed:e,dataOffset:e,hasAudioTrack:i,hasVideoTrack:a}}}]),a=v;function v(e,t){(0,i.default)(this,v),this.TAG="FLVDemuxer",this._config=t,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._onVideoResolutionChanged=null,this._onParsedData=null,this._dataOffset=e.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=!1,this._hasVideo=e.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new d.default,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._lastVideoDimension={width:-1,height:-1,profile:"",level:""},this._bpsCalculator=null,this._bpsInfo={lastVideoBytes:0,lastAudioBytes:0,bps_video:0,bps_audio:0,data_updated_time:0,time_gap_factor:1},this._resolutionChanged=!1,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=(e=new ArrayBuffer(2),new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]),this._recordFlag=!1,this._firstrVideo=!0,this._firstAudio=!0,this._flvHead="",this._videoInfo={VideType:"h264",audioType:"without",width:0,height:0,frameRate:25,bitRate:2048,systemFormt:"flv"}}t.default=a},function(e,t,n){e.exports={default:n(313),__esModule:!0}},function(e,t,n){n(314),e.exports=n(3).Object.keys},function(e,t,n){var i=n(25),a=n(31);n(63)("keys",function(){return function(e){return a(i(e))}})},function(e,t,n){e.exports={default:n(316),__esModule:!0}},function(e,t,n){n(28),n(317),e.exports=n(3).Array.from},function(e,t,n){"use strict";var h=n(22),i=n(8),c=n(25),_=n(76),f=n(77),m=n(48),p=n(318),y=n(53);i(i.S+i.F*!n(82)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,a,r=c(e),s="function"==typeof this?this:Array,o=arguments.length,u=1<o?arguments[1]:void 0,d=void 0!==u,l=0,e=y(r);if(d&&(u=h(u,2<o?arguments[2]:void 0,2)),null==e||s==Array&&f(e))for(n=new s(t=m(r.length));l<t;l++)p(n,l,d?u(r[l],l):r[l]);else for(a=e.call(r),n=new s;!(i=a.next()).done;l++)p(n,l,d?_(a,u,[i.value,l],!0):i.value);return n.length=l,n}})},function(e,t,n){"use strict";var i=n(12),a=n(30);e.exports=function(e,t,n){t in e?i.f(e,t,a(0,n)):e[t]=n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=s(n(1)),a=s(n(2)),v=s(n(4)),r=s(n(320)),g=n(5);function s(e){return e&&e.__esModule?e:{default:e}}var M=(n=new ArrayBuffer(2),new DataView(n).setInt16(0,256,!0),256===new Int16Array(n)[0]),a=((0,a.default)(L,null,[{key:"parseScriptData",value:function(e,t,n){var i={};try{var a=L.parseValue(e,t,n),r=L.parseValue(e,t+a.size,n-a.size);i[a.data]=r.data}catch(e){v.default.e("AMF",e.toString())}return i}},{key:"parseObject",value:function(e,t,n){if(n<3)throw new g.IllegalStateException("Data not enough when parse ScriptDataObject");var i=L.parseString(e,t,n),t=L.parseValue(e,t+i.size,n-i.size),n=t.objectEnd;return{data:{name:i.data,value:t.data},size:i.size+t.size,objectEnd:n}}},{key:"parseVariable",value:function(e,t,n){return L.parseObject(e,t,n)}},{key:"parseString",value:function(e,t,n){if(n<2)throw new g.IllegalStateException("Data not enough when parse String");n=new DataView(e,t,n).getUint16(0,!M);return{data:0<n?(0,r.default)(new Uint8Array(e,t+2,n)):"",size:2+n}}},{key:"parseLongString",value:function(e,t,n){if(n<4)throw new g.IllegalStateException("Data not enough when parse LongString");n=new DataView(e,t,n).getUint32(0,!M);return{data:0<n?(0,r.default)(new Uint8Array(e,t+4,n)):"",size:4+n}}},{key:"parseDate",value:function(e,t,n){if(n<10)throw new g.IllegalStateException("Data size invalid when parse Date");t=new DataView(e,t,n),n=t.getFloat64(0,!M);return n+=60*t.getInt16(8,!M)*1e3,{data:new Date(n),size:10}}},{key:"parseValue",value:function(e,t,n){if(n<1)throw new g.IllegalStateException("Data not enough when parse Value");var i=new DataView(e,t,n),a=1,r=i.getUint8(0),s=void 0,o=!1;try{switch(r){case 0:s=i.getFloat64(1,!M),a+=8;break;case 1:s=!!i.getUint8(1);a+=1;break;case 2:var u=L.parseString(e,t+1,n-1);s=u.data,a+=u.size;break;case 3:s={};var d=0;for(9==(16777215&i.getUint32(n-4,!M))&&(d=3);a<n-4;){var l=L.parseObject(e,t+a,n-a-d);if(l.objectEnd)break;s[l.data.name]=l.data.value,a+=l.size}a<=n-3&&9==(16777215&i.getUint32(a-1,!M))&&(a+=3);break;case 8:s={},a+=4;var h=0;for(9==(16777215&i.getUint32(n-4,!M))&&(h=3);a<n-8;){var c=L.parseVariable(e,t+a,n-a-h);if(c.objectEnd)break;s[c.data.name]=c.data.value,a+=c.size}a<=n-3&&9==(16777215&i.getUint32(a-1,!M))&&(a+=3);break;case 9:a=1,o=!(s=void 0);break;case 10:s=[];var _=i.getUint32(1,!M);a+=4;for(var f=0;f<_;f++){var m=L.parseValue(e,t+a,n-a);s.push(m.data),a+=m.size}break;case 11:var p=L.parseDate(e,t+1,n-1);s=p.data,a+=p.size;break;case 12:var y=L.parseString(e,t+1,n-1);s=y.data,a+=y.size;break;default:a=n,v.default.w("AMF","Unsupported AMF value type "+r)}}catch(e){v.default.e("AMF",e.toString())}return{data:s,size:a,objectEnd:o}}}]),L);function L(){(0,i.default)(this,L)}t.default=a},function(e,t,n){"use strict";function o(e,t,n){var i=e;if(t+n<i.length){for(;n--;)if(128!=(192&i[++t]))return;return 1}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=[],n=e,i=0,a=e.length;i<a;)if(n[i]<128)t.push(String.fromCharCode(n[i])),++i;else{if(!(n[i]<192))if(n[i]<224){if(o(n,i,1)){var r=(31&n[i])<<6|63&n[i+1];if(128<=r){t.push(String.fromCharCode(65535&r)),i+=2;continue}}}else if(n[i]<240){if(o(n,i,2)){var s=(15&n[i])<<12|(63&n[i+1])<<6|63&n[i+2];if(2048<=s&&55296!=(63488&s)){t.push(String.fromCharCode(65535&s)),i+=3;continue}}}else if(n[i]<248&&o(n,i,3)){s=(7&n[i])<<18|(63&n[i+1])<<12|(63&n[i+2])<<6|63&n[i+3];if(65536<s&&s<1114112){s-=65536,t.push(String.fromCharCode(s>>>10|55296)),t.push(String.fromCharCode(1023&s|56320)),i+=4;continue}}t.push(String.fromCharCode(65533)),++i}return t.join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(1)),a=r(n(2)),T=r(n(322));function r(e){return e&&e.__esModule?e:{default:e}}(0,a.default)(Y,null,[{key:"_ebsp2rbsp",value:function(e){for(var t=e,n=t.byteLength,i=new Uint8Array(n),a=0,r=0;r<n;r++)2<=r&&3===t[r]&&0===t[r-1]&&0===t[r-2]||(i[a]=t[r],a++);return new Uint8Array(i.buffer,0,a)}},{key:"parseSPS",value:function(e){var t=Y._ebsp2rbsp(e),n=new T.default(t);n.readByte();var i=n.readByte();n.readByte();var a=n.readByte();n.readUEG();var r=Y.getProfileString(i),s=Y.getLevelString(a),o=1,u=420,d=8;if((100===i||110===i||122===i||244===i||44===i||83===i||86===i||118===i||128===i||138===i||144===i)&&(3===(o=n.readUEG())&&n.readBits(1),o<=3&&(u=[0,420,422,444][o]),d=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool()))for(var l=3!==o?8:12,h=0;h<l;h++)n.readBool()&&Y._skipScalingList(n,h<6?16:64);n.readUEG();var c=n.readUEG();if(0===c)n.readUEG();else if(1===c){n.readBits(1),n.readSEG(),n.readSEG();for(var _=n.readUEG(),f=0;f<_;f++)n.readSEG()}var m=n.readUEG();n.readBits(1);var p=n.readUEG(),y=n.readUEG(),v=n.readBits(1);0===v&&n.readBits(1),n.readBits(1);var g=0,M=0,L=0,S=0;n.readBool()&&(g=n.readUEG(),M=n.readUEG(),L=n.readUEG(),S=n.readUEG());var k=1,e=1,t=0,a=!0,i=0,c=0;n.readBool()&&(n.readBool()&&(0<(w=n.readByte())&&w<16?(k=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][w-1],e=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][w-1]):255===w&&(k=n.readByte()<<8|n.readByte(),e=n.readByte()<<8|n.readByte())),n.readBool()&&n.readBool(),n.readBool()&&(n.readBits(4),n.readBool()&&n.readBits(24)),n.readBool()&&(n.readUEG(),n.readUEG()),n.readBool()&&(D=n.readBits(32),b=n.readBits(32),a=n.readBool(),t=(i=b)/(c=2*D)));var w=1;1===k&&1===e||(w=k/e);var b=0,D=0;D=0===o?(b=1,2-v):(b=3===o?1:2,(1===o?2:1)*(2-v));p=16*(p+1),v=16*(y+1)*(2-v);p-=(g+M)*b,v-=(L+S)*D;w=Math.ceil(p*w);return n.destroy(),n=null,{profile_string:r,level_string:s,bit_depth:d,ref_frames:m,chroma_format:u,chroma_format_string:Y.getChromaFormatString(u),frame_rate:{fixed:a,fps:t,fps_den:c,fps_num:i},sar_ratio:{width:k,height:e},codec_size:{width:p,height:v},present_size:{width:w,height:v}}}},{key:"_skipScalingList",value:function(e,t){for(var n=8,i=8,a=0;a<t;a++)n=0===(i=0!==i?(n+e.readSEG()+256)%256:i)?n:i}},{key:"getProfileString",value:function(e){switch(e){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}},{key:"getLevelString",value:function(e){return(e/10).toFixed(1)}},{key:"getChromaFormatString",value:function(e){switch(e){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),a=Y;function Y(){(0,i.default)(this,Y)}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=s(n(1)),a=s(n(2)),r=n(5);function s(e){return e&&e.__esModule?e:{default:e}}(0,a.default)(o,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var e=this._total_bytes-this._buffer_index;if(e<=0)throw new r.IllegalStateException("ExpGolomb: _fillCurrentWord() but no bytes available");var t=Math.min(4,e),e=new Uint8Array(4);e.set(this._buffer.subarray(this._buffer_index,this._buffer_index+t)),this._current_word=new DataView(e.buffer).getUint32(0,!1),this._buffer_index+=t,this._current_word_bits_left=8*t}},{key:"readBits",value:function(e){if(32<e)throw new r.InvalidArgumentException("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){var t=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,t}var n=this._current_word_bits_left?this._current_word:0;n>>>=32-this._current_word_bits_left;t=e-this._current_word_bits_left;this._fillCurrentWord();e=Math.min(t,this._current_word_bits_left),t=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,n=n<<e|t}},{key:"readBool",value:function(){return 1===this.readBits(1)}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){for(var e=void 0,e=0;e<this._current_word_bits_left;e++)if(0!=(this._current_word&2147483648>>>e))return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()}},{key:"readUEG",value:function(){var e=this._skipLeadingZero();return this.readBits(e+1)-1}},{key:"readSEG",value:function(){var e=this.readUEG();return 1&e?e+1>>>1:-1*(e>>>1)}}]),a=o;function o(e){(0,i.default)(this,o),this.TAG="ExpGolomb",this._buffer=e,this._buffer_index=0,this._total_bytes=e.byteLength,this._total_bits=8*e.byteLength,this._current_word=0,this._current_word_bits_left=0}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=s(n(1)),a=s(n(2)),O=s(n(4)),I=s(n(324)),H=s(n(325)),W=s(n(34)),j=n(227),r=n(5);function s(e){return e&&e.__esModule?e:{default:e}}(0,a.default)(o,[{key:"destroy",value:function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}},{key:"bindDataSource",value:function(e){return e.onDataAvailable=this.remux.bind(this),e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(e,t){if(!this._onMediaSegment)throw new r.IllegalStateException("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)}},{key:"_onTrackMetadataReceived",value:function(e,t){var n=null,i="mp4",a=t.codec;if("audio"===e)n="mp3"===(this._audioMeta=t).codec&&this._mp3UseMpegAudio?(i="mpeg",a="",new Uint8Array):I.default.generateInitSegment(t);else{if("video"!==e)return;this._videoMeta=t,n=I.default.generateInitSegment(t)}if(!this._onInitSegment)throw new r.IllegalStateException("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:a,container:e+"/"+i,mediaDuration:t.duration})}},{key:"_calculateDtsBase",value:function(e,t){this._dtsBaseInited||(e.samples&&e.samples.length&&(this._audioDtsBase=e.samples[0].dts),t.samples&&t.samples.length&&(this._videoDtsBase=t.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}},{key:"flushStashedSamples",value:function(){var e=this._videoStashedLastSample,t=this._audioStashedLastSample,n={type:"video",id:1,sequenceNumber:0,samples:[],length:0};null!=e&&(n.samples.push(e),n.length=e.length);e={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};null!=t&&(e.samples.push(t),e.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(e,!0)}},{key:"_remuxAudio",value:function(e,t){if(null!=this._audioMeta){var n=e,i=n.samples,a=void 0,r=-1,s=this._audioMeta.refSampleDuration,o="mp3"===this._audioMeta.codec&&this._mp3UseMpegAudio,u=this._dtsBaseInited&&void 0===this._audioNextDts,e=!1;if(i&&0!==i.length&&(1!==i.length||t)){var d=0,l=null,h=0,h=o?(d=0,n.length):(d=8)+n.length,c=null;1<i.length&&(h-=(c=i.pop()).length),null!=this._audioStashedLastSample&&(m=this._audioStashedLastSample,this._audioStashedLastSample=null,i.unshift(m),h+=m.length),null!=c&&(this._audioStashedLastSample=c);var _,f,m=i[0].dts-this._dtsBase;this._audioNextDts?a=m-this._audioNextDts:this._audioSegmentInfoList.isEmpty()?(a=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&"mp3"!==this._audioMeta.originalCodec&&(e=!0)):a=null!=(_=this._audioSegmentInfoList.getLastSampleBefore(m))?(f=m-(_.originalDts+_.duration),m-(_.dts+_.duration+(f=f<=3?0:f))):0,e&&(_=m-a,null!=(f=this._videoSegmentInfoList.getLastSegmentBefore(m))&&f.beginDts<_?(x=H.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount))&&(m=f.beginDts,f=_-f.beginDts,O.default.v(this.TAG,"InsertPrefixSilentAudio: dts: "+m+", duration: "+f),i.unshift({unit:x,dts:m,pts:m}),h+=x.byteLength):e=!1);for(var p=[],y=0;y<i.length;y++){var v=i[y],g=v.unit,M=v.dts-this._dtsBase,L=M,S=!1,k=null,w=0;if(!(M<-.001)){if("mp3"!==this._audioMeta.codec){var b=M;if((a=M-(b=this._audioNextDts?this._audioNextDts:b))<=-3*s){O.default.w(this.TAG,"Dropping 1 audio frame (originalDts: "+M+" ms ,curRefDts: "+b+" ms) due to dtsCorrection: "+a+" ms overlap.");continue}if(3*s<=a&&this._fillAudioTimestampGap&&!W.default.safari){var S=!0,D=Math.floor(a/s);O.default.w(this.TAG,"Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\noriginalDts: "+M+" ms, curRefDts: "+b+" ms, dtsCorrection: "+Math.round(a)+" ms, generate: "+D+" frames");var L=Math.floor(b),w=Math.floor(b+s)-L,T=H.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);null==T&&(O.default.w(this.TAG,"Unable to generate silent frame for "+this._audioMeta.originalCodec+" with "+this._audioMeta.channelCount+" channels, repeat last frame"),T=g);for(var k=[],Y=0;Y<D;Y++){b+=s;var E=Math.floor(b),P=Math.floor(b+s)-E,P={dts:E,pts:E,cts:0,unit:T,size:T.byteLength,duration:P,originalDts:M,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};k.push(P),h+=g.byteLength}this._audioNextDts=b+s}else L=Math.floor(b),w=Math.floor(b+s)-L,this._audioNextDts=b+s}else L=M-a,w=y!==i.length-1?i[y+1].dts-this._dtsBase-a-L:null!=c?c.dts-this._dtsBase-a-L:1<=p.length?p[p.length-1].duration:Math.floor(s),this._audioNextDts=L+w;-1===r&&(r=L),p.push({dts:L,pts:L,cts:0,unit:v.unit,size:v.unit.byteLength,duration:w,originalDts:M,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),S&&p.push.apply(p,k)}}if(0===p.length)return n.samples=[],void(n.length=0);o?l=new Uint8Array(h):((l=new Uint8Array(h))[0]=h>>>24&255,l[1]=h>>>16&255,l[2]=h>>>8&255,l[3]=255&h,l.set(I.default.types.mdat,4));for(var C=0;C<p.length;C++){var A=p[C].unit;l.set(A,d),d+=A.byteLength}var x=p[p.length-1],R=x.dts+x.duration,e=new j.MediaSegmentInfo;e.beginDts=r,e.endDts=R,e.beginPts=r,e.endPts=R,e.originalBeginDts=p[0].originalDts,e.originalEndDts=x.originalDts+x.duration,e.firstSample=new j.SampleInfo(p[0].dts,p[0].pts,p[0].duration,p[0].originalDts,!1),e.lastSample=new j.SampleInfo(x.dts,x.pts,x.duration,x.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(e),n.samples=p,n.sequenceNumber++;x=null,x=o?new Uint8Array:I.default.moof(n,r);n.samples=[],n.length=0;e={type:"audio",data:this._mergeBoxes(x,l).buffer,sampleCount:p.length,info:e};o&&u&&(e.timestampOffset=r),this._onMediaSegment("audio",e)}}}},{key:"_remuxVideo",value:function(e,t){if(null!=this._videoMeta){var n=e,i=n.samples,a=void 0,r=-1,s=-1;if(i&&0!==i.length&&(1!==i.length||t)){var o=8,u=null,t=8+e.length,d=null;1<i.length&&(t-=(d=i.pop()).length),null!=this._videoStashedLastSample&&(h=this._videoStashedLastSample,this._videoStashedLastSample=null,i.unshift(h),t+=h.length),null!=d&&(this._videoStashedLastSample=d);var l,h,e=i[0].dts-this._dtsBase;a=this._videoNextDts?e-this._videoNextDts:!this._videoSegmentInfoList.isEmpty()&&null!=(l=this._videoSegmentInfoList.getLastSampleBefore(e))?(h=e-(l.originalDts+l.duration),e-(l.dts+l.duration+(h=h<=3?0:h))):0;for(var c=new j.MediaSegmentInfo,_=[],f=0;f<i.length;f++){var m=i[f],p=m.dts-this._dtsBase,y=m.isKeyframe,v=p-a,g=m.cts,M=v+g;-1===r&&(r=v,s=M);var L,S=0;S=f!==i.length-1?i[f+1].dts-this._dtsBase-a-v:null!=d?d.dts-this._dtsBase-a-v:1<=_.length?_[_.length-1].duration:Math.floor(this._videoMeta.refSampleDuration),y&&((L=new j.SampleInfo(v,M,S,m.dts,!0)).fileposition=m.fileposition,c.appendSyncPoint(L)),_.push({dts:v,pts:M,cts:g,units:m.units,size:m.length,isKeyframe:y,duration:S,originalDts:p,flags:{isLeading:0,dependsOn:y?2:1,isDependedOn:y?1:0,hasRedundancy:0,isNonSync:y?0:1}})}(u=new Uint8Array(t))[0]=t>>>24&255,u[1]=t>>>16&255,u[2]=t>>>8&255,u[3]=255&t,u.set(I.default.types.mdat,4);for(var k=0;k<_.length;k++)for(var w=_[k].units;w.length;){var b=w.shift().data;u.set(b,o),o+=b.byteLength}var t=_[_.length-1],D=t.dts+t.duration,T=t.pts+t.duration;this._videoNextDts=D,c.beginDts=r,c.endDts=D,c.beginPts=s,c.endPts=T,c.originalBeginDts=_[0].originalDts,c.originalEndDts=t.originalDts+t.duration,c.firstSample=new j.SampleInfo(_[0].dts,_[0].pts,_[0].duration,_[0].originalDts,_[0].isKeyframe),c.lastSample=new j.SampleInfo(t.dts,t.pts,t.duration,t.originalDts,t.isKeyframe),this._isLive||this._videoSegmentInfoList.append(c),n.samples=_,n.sequenceNumber++,this._forceFirstIDR&&((Y=_[0].flags).dependsOn=2,Y.isNonSync=0);var Y=I.default.moof(n,r);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Y,u).buffer,sampleCount:_.length,info:c})}}}},{key:"_mergeBoxes",value:function(e,t){var n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(e){this._onInitSegment=e}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(e){this._onMediaSegment=e}}]),a=o;function o(e){(0,i.default)(this,o),this.TAG="MP4Remuxer",this._config=e,this._isLive=!0===e.isLive,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new j.MediaSegmentInfoList("audio"),this._videoSegmentInfoList=new j.MediaSegmentInfoList("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!W.default.chrome||!(W.default.version.major<50||50===W.default.version.major&&W.default.version.build<2661)),this._fillSilentAfterSeek=W.default.msedge||W.default.msie,this._mp3UseMpegAudio=!W.default.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}(0,a(n(2)).default)(l,null,[{key:"init",value:function(){for(var e in l.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]})l.types.hasOwnProperty(e)&&(l.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);var t=l.constants={};t.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),t.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),t.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),t.STSC=t.STCO=t.STTS,t.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),t.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),t.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),t.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),t.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),t.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(e){for(var t=8,n=null,i=Array.prototype.slice.call(arguments,1),a=i.length,r=0;r<a;r++)t+=i[r].byteLength;(n=new Uint8Array(t))[0]=t>>>24&255,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n.set(e,4);for(var s=8,o=0;o<a;o++)n.set(i[o],s),s+=i[o].byteLength;return n}},{key:"generateInitSegment",value:function(e){var t=l.box(l.types.ftyp,l.constants.FTYP),n=l.moov(e),e=new Uint8Array(t.byteLength+n.byteLength);return e.set(t,0),e.set(n,t.byteLength),e}},{key:"moov",value:function(e){var t=l.mvhd(e.timescale,e.duration),n=l.trak(e),e=l.mvex(e);return l.box(l.types.moov,t,n,e)}},{key:"mvhd",value:function(e,t){return l.box(l.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(e){return l.box(l.types.trak,l.tkhd(e),l.mdia(e))}},{key:"tkhd",value:function(e){var t=e.id,n=e.duration,i=e.presentWidth,e=e.presentHeight;return l.box(l.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>>8&255,255&i,0,0,e>>>8&255,255&e,0,0]))}},{key:"mdia",value:function(e){return l.box(l.types.mdia,l.mdhd(e),l.hdlr(e),l.minf(e))}},{key:"mdhd",value:function(e){var t=e.timescale,e=e.duration;return l.box(l.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e,85,196,0,0]))}},{key:"hdlr",value:function(e){var t=null,t="audio"===e.type?l.constants.HDLR_AUDIO:l.constants.HDLR_VIDEO;return l.box(l.types.hdlr,t)}},{key:"minf",value:function(e){var t=null,t="audio"===e.type?l.box(l.types.smhd,l.constants.SMHD):l.box(l.types.vmhd,l.constants.VMHD);return l.box(l.types.minf,t,l.dinf(),l.stbl(e))}},{key:"dinf",value:function(){return l.box(l.types.dinf,l.box(l.types.dref,l.constants.DREF))}},{key:"stbl",value:function(e){return l.box(l.types.stbl,l.stsd(e),l.box(l.types.stts,l.constants.STTS),l.box(l.types.stsc,l.constants.STSC),l.box(l.types.stsz,l.constants.STSZ),l.box(l.types.stco,l.constants.STCO))}},{key:"stsd",value:function(e){return"audio"===e.type?"mp3"===e.codec?l.box(l.types.stsd,l.constants.STSD_PREFIX,l.mp3(e)):l.box(l.types.stsd,l.constants.STSD_PREFIX,l.mp4a(e)):l.box(l.types.stsd,l.constants.STSD_PREFIX,l.avc1(e))}},{key:"mp3",value:function(e){var t=e.channelCount,e=e.audioSampleRate,e=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,e>>>8&255,255&e,0,0]);return l.box(l.types[".mp3"],e)}},{key:"mp4a",value:function(e){var t=e.channelCount,n=e.audioSampleRate,n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,n>>>8&255,255&n,0,0]);return l.box(l.types.mp4a,n,l.esds(e))}},{key:"esds",value:function(e){var t=e.config||[],e=t.length,t=new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(t).concat([6,1,2]));return l.box(l.types.esds,t)}},{key:"avc1",value:function(e){var t=e.avcc,n=e.codecWidth,e=e.codecHeight,e=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n>>>8&255,255&n,e>>>8&255,255&e,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return l.box(l.types.avc1,e,l.box(l.types.avcC,t))}},{key:"mvex",value:function(e){return l.box(l.types.mvex,l.trex(e))}},{key:"trex",value:function(e){e=e.id,e=new Uint8Array([0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return l.box(l.types.trex,e)}},{key:"moof",value:function(e,t){return l.box(l.types.moof,l.mfhd(e.sequenceNumber),l.traf(e,t))}},{key:"mfhd",value:function(e){e=new Uint8Array([0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e]);return l.box(l.types.mfhd,e)}},{key:"traf",value:function(e,t){var n=e.id,i=l.box(l.types.tfhd,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n])),n=l.box(l.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t])),t=l.sdtp(e),e=l.trun(e,t.byteLength+16+16+8+16+8+8);return l.box(l.types.traf,i,n,e,t)}},{key:"sdtp",value:function(e){for(var t=e.samples||[],n=t.length,i=new Uint8Array(4+n),a=0;a<n;a++){var r=t[a].flags;i[a+4]=r.isLeading<<6|r.dependsOn<<4|r.isDependedOn<<2|r.hasRedundancy}return l.box(l.types.sdtp,i)}},{key:"trun",value:function(e,t){var n=e.samples||[],i=n.length,e=12+16*i,a=new Uint8Array(e);a.set([0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,255&i,(t+=8+e)>>>24&255,t>>>16&255,t>>>8&255,255&t],0);for(var r=0;r<i;r++){var s=n[r].duration,o=n[r].size,u=n[r].flags,d=n[r].cts;a.set([s>>>24&255,s>>>16&255,s>>>8&255,255&s,o>>>24&255,o>>>16&255,o>>>8&255,255&o,u.isLeading<<2|u.dependsOn,u.isDependedOn<<6|u.hasRedundancy<<4|u.isNonSync,0,0,d>>>24&255,d>>>16&255,d>>>8&255,255&d],12+16*r)}return l.box(l.types.trun,a)}},{key:"mdat",value:function(e){return l.box(l.types.mdat,e)}}]),n=l;function l(){(0,i.default)(this,l)}n.init(),t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}(0,a(n(2)).default)(r,null,[{key:"getSilentFrame",value:function(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}]),n=r;function r(){(0,i.default)(this,r)}t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(n(4));var r=i(n(65)),s=i(n(224)),o=i(n(226)),u=i(n(42));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(n){var i=null,a=function(e,t){n.postMessage({msg:"logcat_callback",data:{type:e,logcat:t}})}.bind(this);s.default.install(),n.addEventListener("message",function(e){switch(e.data.cmd){case"init":(i=new o.default(e.data.param[0],e.data.param[1])).on(u.default.IO_ERROR,function(e,t){n.postMessage({msg:u.default.IO_ERROR,data:{type:e,info:t}})}.bind(this)),i.on(u.default.DEMUX_ERROR,function(e,t){n.postMessage({msg:u.default.DEMUX_ERROR,data:{type:e,info:t}})}.bind(this)),i.on(u.default.INIT_SEGMENT,function(e,t){e={msg:u.default.INIT_SEGMENT,data:{type:e,data:t}};n.postMessage(e,[t.data])}.bind(this)),i.on(u.default.MEDIA_SEGMENT,function(e,t){e={msg:u.default.MEDIA_SEGMENT,data:{type:e,data:t}};n.postMessage(e,[t.data])}.bind(this)),i.on(u.default.LOADING_COMPLETE,function(){var e={msg:u.default.LOADING_COMPLETE};n.postMessage(e)}.bind(this)),i.on(u.default.RECOVERED_EARLY_EOF,function(){var e={msg:u.default.RECOVERED_EARLY_EOF};n.postMessage(e)}.bind(this)),i.on(u.default.MEDIA_INFO,function(e){e={msg:u.default.MEDIA_INFO,data:e};n.postMessage(e)}.bind(this)),i.on(u.default.METADATA_ARRIVED,function(e){e={msg:u.default.METADATA_ARRIVED,data:e};n.postMessage(e)}.bind(this)),i.on(u.default.SCRIPTDATA_ARRIVED,function(e){e={msg:u.default.SCRIPTDATA_ARRIVED,data:e};n.postMessage(e)}.bind(this)),i.on(u.default.STATISTICS_INFO,function(e){e={msg:u.default.STATISTICS_INFO,data:e};n.postMessage(e)}.bind(this)),i.on(u.default.RECOMMEND_SEEKPOINT,function(e){n.postMessage({msg:u.default.RECOMMEND_SEEKPOINT,data:e})}.bind(this)),i.on(u.default.VIDEO_RESOLUTION_CHANGED,function(e){e={msg:u.default.VIDEO_RESOLUTION_CHANGED,data:e};n.postMessage(e)}.bind(this));break;case"destroy":i&&(i.destroy(),i=null),n.postMessage({msg:"destroyed"});break;case"start":i.start();break;case"stop":i.stop();break;case"seek":i.seek(e.data.param);break;case"pause":i.pause();break;case"resume":i.resume();break;case"logging_config":var t=e.data.param;r.default.applyConfig(t),!0===t.enableCallback?r.default.addLogListener(a):r.default.removeLogListener(a)}})}},function(e,t){var c=arguments[3],_=arguments[4],f=arguments[5],m=JSON.stringify;e.exports=function(e,t){for(var n=Object.keys(f),i=0,a=n.length;i<a;i++){var r=n[i],s=f[r].exports;if(s===e||s&&s.default===e){o=r;break}}if(!o){for(var o=Math.floor(Math.pow(16,8)*Math.random()).toString(16),u={},i=0,a=n.length;i<a;i++)u[r=n[i]]=r;_[o]=["function(require,module,exports){"+e+"(self); }",u]}var d=Math.floor(Math.pow(16,8)*Math.random()).toString(16),l={};l[o]=o,_[d]=["function(require,module,exports){var f = require("+m(o)+");(f.default ? f.default : f)(self);}",l];var h={};!function e(t){h[t]=!0;for(var n in _[t][1]){n=_[t][1][n];h[n]||e(n)}}(d);l="("+c+")({"+Object.keys(h).map(function(e){return m(e)+":["+_[e][0]+","+m(_[e][1])+"]"}).join(",")+"},{},["+m(d)+"])",d=window.URL||window.webkitURL||window.mozURL||window.msURL,l=new Blob([l],{type:"text/javascript"});if(t&&t.bare)return l;d=d.createObjectURL(l),l=new Worker(d);return l.objectURL=d,l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=c(n(1)),a=c(n(2)),r=c(n(11)),o=c(n(4)),u=c(n(34)),s=c(n(228)),d=n(227),l=n(5),h=(c(n(229)),c(n(0)));function c(e){return e&&e.__esModule?e:{default:e}}(0,a.default)(_,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(e,t){this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"attachMediaElement",value:function(e){if(this._mediaSource)throw new l.IllegalStateException("MediaSource has been attached to an HTMLMediaElement!");var t=this._mediaSource=new window.MediaSource;t.addEventListener("sourceopen",this.e.onSourceOpen),t.addEventListener("sourceended",this.e.onSourceEnded),t.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),e.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var e,t=this._mediaSource;for(e in this._sourceBuffers){var n=this._pendingSegments[e];n.splice(0,n.length),this._pendingSegments[e]=null,this._pendingRemoveRanges[e]=null,this._lastInitSegments[e]=null;n=this._sourceBuffers[e];if(n){if("closed"!==t.readyState){try{t.removeSourceBuffer(n)}catch(e){o.default.e(this.TAG,e.message)}n.removeEventListener("error",this.e.onSourceBufferError),n.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[e]=null,this._sourceBuffers[e]=null}}if("open"===t.readyState)try{t.endOfStream()}catch(e){o.default.e(this.TAG,e.message)}t.removeEventListener("sourceopen",this.e.onSourceOpen),t.removeEventListener("sourceended",this.e.onSourceEnded),t.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null),this._hasAudio=!0}},{key:"checkAudioSourceBufferInit",value:function(e){return this._sourceBuffers.audio||"audio"===e.type||!this._hasAudio}},{key:"_onAudioSourceBufferInited",value:function(){if(0<this._pendingSourceBufferInit.length)for(var e=this._pendingSourceBufferInit;e.length;){var t=e.shift();this.appendInitSegment(t,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(s.default.SOURCE_OPEN)}},{key:"checkMediaSource",value:function(e){return!(!this._mediaSource||"open"!==this._mediaSource.readyState)}},{key:"appendInitSegment",value:function(e,t){if(!this.checkMediaSource("appendInitSegment")||!this.checkAudioSourceBufferInit(e))return this._pendingSourceBufferInit.push(e),void this._pendingSegments[e.type].push(e);var n=e,i=""+n.container;n.codec&&0<n.codec.length&&(i+=";codecs="+n.codec);e=!1;if(this._lastInitSegments[n.type]=n,i!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])o.default.v(this.TAG,"Notice: "+n.type+" mimeType changed, origin: "+this._mimeTypes[n.type]+", target: "+i);else{e=!0,console.info("[debug] %c"+(0,h.default)().format("YYYY-MM-DD HH:mm:ss.SSS")+"%c appendInitSegment","color: blue","color: black",this._mediaElement.readyState,i);try{var a=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(i);a.addEventListener("error",this.e.onSourceBufferError),a.addEventListener("updateend",this.e.onSourceBufferUpdateEnd),"audio"===n.type&&this._onAudioSourceBufferInited()}catch(e){return o.default.e(this.TAG,e.message,this._mediaElement.error),void this._emitter.emit(s.default.ERROR,{code:e.code,msg:e.message})}}this._mimeTypes[n.type]=i}t||this._pendingSegments[n.type].push(n),e||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),u.default.safari&&"audio/mpeg"===n.container&&0<n.mediaDuration&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=n.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(e){var t;this.checkMediaSource("appendMediaSegment")&&(this._pendingSegments[(t=e).type].push(t),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer(),!(e=this._sourceBuffers[t.type])||e.updating||this._hasPendingRemoveRanges()?this._hasAudio&&5<this._pendingSegments[t.type].length&&(this._hasAudio=!1,this._onAudioSourceBufferInited()):this._doAppendSegments())}},{key:"seek",value:function(e){if(this.checkMediaSource("seek"))for(var t in this._sourceBuffers)if(this._sourceBuffers[t]){var n=this._sourceBuffers[t];if("open"===this._mediaSource.readyState)try{n.abort()}catch(e){o.default.e(this.TAG,e.message)}this._idrList.clear();var i=this._pendingSegments[t];if(i.splice(0,i.length),"closed"!==this._mediaSource.readyState){for(var a=0;a<n.buffered.length;a++){var r=n.buffered.start(a),s=n.buffered.end(a);this._pendingRemoveRanges[t].push({start:r,end:s})}n.updating||this._doRemoveRanges("seek"),!u.default.safari||(i=this._lastInitSegments[t])&&(this._pendingSegments[t].push(i),n.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var e=this._mediaSource,t=this._sourceBuffers;e&&"open"===e.readyState?t.video&&t.video.updating||t.audio&&t.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,e.endOfStream()):e&&"closed"===e.readyState&&this._hasPendingSegments()&&(this._hasPendingEos=!0)}},{key:"getNearestKeyframe",value:function(e){return this._idrList.getLastSyncPointBeforeDts(e)}},{key:"checkSourceBufferNull",value:function(){var e,t=!0;for(e in this._sourceBuffers)if(null!=this._sourceBuffers[e]){t=!1;break}return t}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;if(!this.checkMediaSource("_needCleanupSourceBuffer"))return!1;var e,t=this._mediaElement.currentTime;for(e in this._sourceBuffers){var n=this._sourceBuffers[e];if(n){n=n.buffered;if(1<=n.length&&t-n.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var e=this._mediaElement.currentTime;if(this.checkMediaSource("_doCleanupSourceBuffer"))for(var t in this._sourceBuffers){var n=this._sourceBuffers[t];if(n){for(var i=n.buffered,a=!1,r=0;r<i.length;r++){var s,o=i.start(r),u=i.end(r);o<=e&&e<u+3?e-o>=this._config.autoCleanupMaxBackwardDuration&&(a=!0,s=e-this._config.autoCleanupMinBackwardDuration,this._pendingRemoveRanges[t].push({start:o,end:s})):u<e&&(a=!0,this._pendingRemoveRanges[t].push({start:o,end:u}))}a&&!n.updating&&this._doRemoveRanges("_doCleanupSourceBuffer")}}}},{key:"_updateMediaSourceDuration",value:function(){var e,t;this.checkMediaSource("_updateMediaSourceDuration")&&(t=this._sourceBuffers,0!==this._mediaElement.readyState&&"open"===this._mediaSource.readyState&&(t.video&&t.video.updating||t.audio&&t.audio.updating||(e=this._mediaSource.duration,0<(t=this._pendingMediaDuration)&&(isNaN(e)||e<t)&&(o.default.v(this.TAG,"Update MediaSource duration from "+e+" to "+t),this._mediaSource.duration=t),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0)))}},{key:"_doRemoveRanges",value:function(e){if(this.checkMediaSource("_doRemoveRanges"))for(var t in this._pendingRemoveRanges)if(this._sourceBuffers[t]&&!this._sourceBuffers[t].updating)for(var n=this._sourceBuffers[t],i=this._pendingRemoveRanges[t];i.length&&!n.updating;){var a=i.shift();n.remove(a.start,a.end)}}},{key:"_doAppendSegments",value:function(){if(this.checkMediaSource("_doAppendSegments")){var t,e=this._pendingSegments;for(t in e)if(this._sourceBuffers[t]&&!this._sourceBuffers[t].updating&&0<e[t].length){var n,i,a=e[t].shift();if(a.timestampOffset&&(n=this._sourceBuffers[t].timestampOffset,i=a.timestampOffset/1e3,.1<Math.abs(n-i)&&(o.default.v(this.TAG,"Update MPEG audio timestampOffset from "+n+" to "+i),this._sourceBuffers[t].timestampOffset=i),delete a.timestampOffset),a.data&&0!==a.data.byteLength)try{this._sourceBuffers[t].appendBuffer(a.data),this._isBufferFull=!1,"video"===t&&a.hasOwnProperty("info")&&this._idrList.appendArray(a.info.syncPoints)}catch(e){this._pendingSegments[t].unshift(a),22===e.code?(this._isBufferFull||this._emitter.emit(s.default.BUFFER_FULL),this._isBufferFull=!0):(o.default.e(this.TAG,e.message,this._mediaElement.error),this._emitter.emit(s.default.ERROR,{code:e.code,msg:e.message}))}}}}},{key:"_onSourceOpen",value:function(){if(o.default.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),0<this._pendingSourceBufferInit.length)for(var e=this._pendingSourceBufferInit;e.length;){var t=e.shift();this.appendInitSegment(t,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(s.default.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){o.default.v(this.TAG,"MediaSource onSourceEnded"),this._emitter.emit(s.default.SOURCE_END)}},{key:"_onSourceClose",value:function(){o.default.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&null!=this.e&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose)),this._emitter.emit(s.default.SOURCE_CLOSE)}},{key:"_hasPendingSegments",value:function(){var e=this._pendingSegments;return 0<e.video.length||0<e.audio.length}},{key:"_hasPendingRemoveRanges",value:function(){var e=this._pendingRemoveRanges;return 0<e.video.length||0<e.audio.length}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges("_onSourceBufferUpdateEnd"):this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(s.default.UPDATE_END)}},{key:"_onSourceBufferError",value:function(e){o.default.e(this.TAG,"SourceBuffer Error: "+e)}}]),a=_;function _(e){(0,i.default)(this,_),this.TAG="MSEController",this._config=e,this._emitter=new r.default,this._config.isLive&&null==this._config.autoCleanupSourceBuffer&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._hasAudio=!0,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new d.IDRSampleList}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=c(n(15)),a=c(n(20)),r=c(n(9)),s=c(n(1)),o=c(n(2)),u=c(n(11)),d=c(n(41)),l=n(64),h=n(5);function c(e){return e&&e.__esModule?e:{default:e}}(0,o.default)(_,[{key:"destroy",value:function(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(e,t){var n=this;e===d.default.MEDIA_INFO?null!=this._mediaElement&&0!==this._mediaElement.readyState&&i.default.resolve().then(function(){n._emitter.emit(d.default.MEDIA_INFO,n.mediaInfo)}):e===d.default.STATISTICS_INFO&&null!=this._mediaElement&&0!==this._mediaElement.readyState&&i.default.resolve().then(function(){n._emitter.emit(d.default.STATISTICS_INFO,n.statisticsInfo)}),this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"attachMediaElement",value:function(e){if((this._mediaElement=e).addEventListener("loadedmetadata",this.e.onvLoadedMetadata),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(e){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"load",value:function(){if(!this._mediaElement)throw new h.IllegalStateException("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,0<this._mediaElement.readyState&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"_onvLoadedMetadata",value:function(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(d.default.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(d.default.STATISTICS_INFO,this.statisticsInfo)}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(e){this._mediaElement.volume=e}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(e){this._mediaElement.muted=e}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(e){this._mediaElement?this._mediaElement.currentTime=e:this._pendingSeekTime=e}},{key:"mediaInfo",get:function(){var e={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(e.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(e.width=this._mediaElement.videoWidth,e.height=this._mediaElement.videoHeight)),e}},{key:"statisticsInfo",get:function(){var e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return e;var t,n=!0,i=0,a=0;return this._mediaElement.getVideoPlaybackQuality?(i=(t=this._mediaElement.getVideoPlaybackQuality()).totalVideoFrames,a=t.droppedVideoFrames):null!=this._mediaElement.webkitDecodedFrameCount?(i=this._mediaElement.webkitDecodedFrameCount,a=this._mediaElement.webkitDroppedFrameCount):n=!1,n&&(e.decodedFrames=i,e.droppedFrames=a),e}}]),o=_;function _(e,t){if((0,s.default)(this,_),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new u.default,this._config=(0,l.createDefaultConfig)(),"object"===(void 0===t?"undefined":(0,r.default)(t))&&(0,a.default)(this._config,t),"flv"===e.type.toLowerCase())throw new h.InvalidArgumentException("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new h.InvalidArgumentException("NativePlayer("+e.type+") doesn't support multipart playback!");this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=e,this._mediaElement=null}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(331)),a=r(n(1));function r(e){return e&&e.__esModule?e:{default:e}}(0,r(n(2)).default)(s,[{key:"_start",value:function(){this._checkSystem(),this._checkPlatform(),this._checkEngine(),this._checkSupporter(),this._checkShell()}},{key:"_checkUa",value:function(e){return e.test(this._ua)}},{key:"_getVersion",value:function(e){e=e.exec(this._ua);return e?e.shift().split(/\s|\/|:/gi).pop():null}},{key:"_checkSystem",value:function(){var t=this,n=this._checkUa.bind(this),e=[{sys:"windows",re:/windows|win32|win64|wow32|wow64/gi},{sys:"osx",re:/macintosh|macintel/gi},{sys:"linux",re:/x11/gi},{sys:"android",re:/android|adr/gi},{sys:"ios",re:/ios|iphone|ipad|iwatch/gi}].find(function(e){return n(e.re)});this._system=e?e.sys:void 0,this._systemByte=n(/win32|wow32|x32/gi)?32:64;var i=[{sys:"osx",re:/os x [\d(.|_)]+/gi},{sys:"android",re:/android [\d(.|_)]+/gi},{sys:"ios",re:/os [\d(.|_)]+/gi}].find(function(e){return e.sys===t._system});"windows"===this._system?(e=[{vs:"2000",re:/windows nt 5.0|windows 2000/gi},{vs:"xp",re:/windows nt 5.1|windows 2000/gi},{vs:"2003",re:/windows nt 5.2|windows 2003/gi},{vs:"vista",re:/windows nt 6.0|windows vista/gi},{vs:"7",re:/windows nt 6.1|windows 7/gi},{vs:"8",re:/windows nt 6.2|windows 8/gi},{vs:"8.1",re:/windows nt 6.3|windows 8.1/gi},{vs:"10",re:/windows nt 10.0|windows 10/gi}].find(function(e){return n(e.re)}),this._systemVersion=e?e.vs:void 0):this._systemVersion=i?this._getVersion(i.re):void 0}},{key:"_checkPlatform",value:function(){var t=this;["windows","osx","linux"].find(function(e){return e===t._system})?this._platform="desktop":["ios","android"].find(function(e){return e===t._system})&&(this._platform="mobile")}},{key:"_checkEngine",value:function(){var t=this._checkUa.bind(this),e=[{eng:"webkit",re:/applewebkit/gi,vre:/applewebkit\/[\d(.|_)]+/gi},{eng:"presto",re:/presto/gi,vre:/presto\/[\d(.|_)]+/gi},{eng:"trident",re:/trident|compatible|msie/gi,vre:/(trident|compatible|msie)\/[\d(.|_)]+/gi},{eng:"gecko",re:/gecko|firefox/gi,vre:/(gecko|firefox)\/[\d(.|_)]+/gi}].find(function(e){return t(e.re)});e&&(this._engine=e.eng,this._engineVersion=this._getVersion(e.vre))}},{key:"_checkSupporter",value:function(){var t=this._checkUa.bind(this);if("android"===this._system){var e=this._ua.match(/\w+\/\d+[\.\d+]+/g).pop().split("/"),n=(0,i.default)(e,2),e=n[0],n=n[1];return this._supporter=e,void(this._supporterVersion=n)}e=this._engine;"webkit"===e?(n=[{sp:"edge",re:/edge/gi,vre:/edge\/[\d(.|_)]+/gi},{sp:"opera",re:/opr/gi,vre:/opr\/[\d(.|_)]+/gi},{sp:"chrome",re:/chrome|crios/gi,vre:/(chrome|crios)\/[\d(.|_)]+/gi},{sp:"safari",re:/safari/gi,vre:/version\/[\d(.|_)]+/gi}].find(function(e){return t(e.re)}))&&(this._supporter=n.sp,this._supporterVersion=this._getVersion(n.vre)):"presto"===e?(this.supporter="opera",this._supporterVersion=this._getVersion(/opera\/[\d(.|_)]+/gi)):"trident"===e?(this._supporter="ie",this._supporterVersion=this._getVersion(/rv:[\d(.|_)]+/gi)):"gecko"===e&&(this._supporter="firefox",this._supporterVersion=this._getVersion(/(rv:|firefox\/)[\d(.|_)]+/gi))}},{key:"_checkShell",value:function(){var t=this._checkUa.bind(this),e=[{sl:"weChat",re:/micromessenger/gi,vre:/micromessenger\/[\d(.|_)]+/gi},{sl:"qq",re:/qqbrowser/gi,vre:/micromessenger\/[\d(.|_)]+/gi},{sl:"uc",re:/ucbrowser/gi,vre:/ucbrowser\/[\d(.|_)]+/gi},{sl:"baidu",re:/baidu(boxapp|browser)/gi,vre:/baidu(boxapp|browser)\/[\d(.|_)]+/gi}].find(function(e){return t(e.re)});e&&(this._shell=e.sl,this._shellVersion=this._getVersion(e.vre))}},{key:"system",get:function(){return this._system}},{key:"systemVersion",get:function(){return this._systemVersion}},{key:"systemByte",get:function(){return this._systemByte}},{key:"platform",get:function(){return this._platform}},{key:"engine",get:function(){return this._engine}},{key:"engineVersion",get:function(){return this._engineVersion}},{key:"supporter",get:function(){return this._supporter}},{key:"supporterVersion",get:function(){return this._supporterVersion}},{key:"shell",get:function(){return this._shell}},{key:"shellVersion",get:function(){return this._shellVersion}}]),n=s;function s(){(0,a.default)(this,s),this._ua=self.navigator.userAgent.toLowerCase(),this._system=void 0,this._systemVersion=void 0,this._systemByte=void 0,this._platform=void 0,this._engine=void 0,this._engineVersion=void 0,this._supporter=void 0,this._supporterVersion=void 0,this._shell=void 0,this._shellVersion=void 0,this._start()}t.default=n},function(e,t,n){"use strict";t.__esModule=!0;var i=a(n(332)),u=a(n(335));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(Array.isArray(e))return e;if((0,i.default)(Object(e)))return function(e,t){var n=[],i=!0,a=!1,r=void 0;try{for(var s,o=(0,u.default)(e);!(i=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{!i&&o.return&&o.return()}finally{if(a)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){e.exports={default:n(333),__esModule:!0}},function(e,t,n){n(38),n(28),e.exports=n(334)},function(e,t,n){var i=n(52),a=n(7)("iterator"),r=n(24);e.exports=n(3).isIterable=function(e){e=Object(e);return void 0!==e[a]||"@@iterator"in e||r.hasOwnProperty(i(e))}},function(e,t,n){e.exports={default:n(336),__esModule:!0}},function(e,t,n){n(38),n(28),e.exports=n(337)},function(e,t,n){var i=n(10),a=n(53);e.exports=n(3).getIterator=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return i(t.call(e))}}],a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)a.d(n,i,function(e){return t[e]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=231);function a(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}var n,r});