123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301 |
- !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,r=t();for(n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(window,function(){return n=[function(e,t,ha){!function(da){var ca;//! moment.js
- //! version : 2.30.1
- //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
- //! license : MIT
- //! momentjs.com
- da.exports=function(){"use strict";var R,j;function c(){return R.apply(null,arguments)}function H(e){R=e}function a(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function W(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function F(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 s(e){return e===void 0}function l(e){return typeof e==="number"||Object.prototype.toString.call(e)==="[object Number]"}function z(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function U(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function B(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 d(e,t,n,r){return Qn(e,t,n,r,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 h(e){if(e._pf==null)e._pf=N();return e._pf}if(Array.prototype.some)j=Array.prototype.some;else j=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return true;return false};function J(e){var t=null,n=false,r=e._d&&!isNaN(e._d.getTime());if(r){t=h(e);n=j.call(t.parsedDateParts,function(e){return e!=null});r=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)r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function G(e){var t=d(NaN);if(e!=null)B(h(t),e);else h(t).userInvalidated=true;return t}var V=c.momentProperties=[],q=false;function Z(e,t){var n,r,i,o=V.length;if(!s(t._isAMomentObject))e._isAMomentObject=t._isAMomentObject;if(!s(t._i))e._i=t._i;if(!s(t._f))e._f=t._f;if(!s(t._l))e._l=t._l;if(!s(t._strict))e._strict=t._strict;if(!s(t._tzm))e._tzm=t._tzm;if(!s(t._isUTC))e._isUTC=t._isUTC;if(!s(t._offset))e._offset=t._offset;if(!s(t._pf))e._pf=h(t);if(!s(t._locale))e._locale=t._locale;if(o>0)for(n=0;n<o;n++){r=V[n];i=t[r];if(!s(i))e[r]=i}return e}function X(e){Z(this,e);this._d=new Date(e._d!=null?e._d.getTime():NaN);if(!this.isValid())this._d=new Date(NaN);if(q===false){q=true;c.updateOffset(this);q=false}}function f(e){return e instanceof X||e!=null&&e._isAMomentObject!=null}function K(e){if(c.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn)console.warn("Deprecation warning: "+e)}function e(o,a){var s=true;return B(function(){if(c.deprecationHandler!=null)c.deprecationHandler(null,o);if(s){var e=[],t,n,r,i=arguments.length;for(n=0;n<i;n++){t="";if(typeof arguments[n]==="object"){t+="\n["+n+"] ";for(r in arguments[0])if(u(arguments[0],r))t+=r+": "+arguments[0][r]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}K(o+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);s=false}return a.apply(this,arguments)},a)}var $={},Q;function ee(e,t){if(c.deprecationHandler!=null)c.deprecationHandler(e,t);if(!$[e]){K(t);$[e]=true}}function m(e){return typeof Function!=="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function te(e){var t,n;for(n in e)if(u(e,n)){t=e[n];if(m(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 ne(e,t){var n=B({},e),r;for(r in t)if(u(t,r))if(W(e[r])&&W(t[r])){n[r]={};B(n[r],e[r]);B(n[r],t[r])}else if(t[r]!=null)n[r]=t[r];else delete n[r];for(r in e)if(u(e,r)&&!u(t,r)&&W(e[r]))n[r]=B({},n[r]);return n}function re(e){if(e!=null)this.set(e)}if(c.suppressDeprecationWarnings=false,c.deprecationHandler=null,Object.keys)Q=Object.keys;else Q=function(e){var t,n=[];for(t in e)if(u(e,t))n.push(t);return n};var ie={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function oe(e,t,n){var r=this._calendar[e]||this._calendar["sameElse"];return m(r)?r.call(t,n):r}function o(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var ae=/(\[[^\[]*\])|(\\)?([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,se=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ue={},le={};function r(e,t,n,r){var i=r;if(typeof r==="string")i=function(){return this[r]()};if(e)le[e]=i;if(t)le[t[0]]=function(){return o(i.apply(this,arguments),t[1],t[2])};if(n)le[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)}}function de(e){if(e.match(/\[[\s\S]/))return e.replace(/^\[|\]$/g,"");return e.replace(/\\/g,"")}function ce(r){var i=r.match(ae),e,o;for(e=0,o=i.length;e<o;e++)if(le[i[e]])i[e]=le[i[e]];else i[e]=de(i[e]);return function(e){var t="",n;for(n=0;n<o;n++)t+=m(i[n])?i[n].call(e,r):i[n];return t}}function he(e,t){if(!e.isValid())return e.localeData().invalidDate();t=fe(t,e.localeData());ue[t]=ue[t]||ce(t);return ue[t](e)}function fe(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}se.lastIndex=0;while(n>=0&&se.test(e)){e=e.replace(se,r);se.lastIndex=0;n-=1}return e}var me={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 _e(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];if(t||!n)return t;this._longDateFormat[e]=n.match(ae).map(function(e){if(e==="MMMM"||e==="MM"||e==="DD"||e==="dddd")return e.slice(1);return e}).join("");return this._longDateFormat[e]}var pe="Invalid date";function ye(){return this._invalidDate}var ve="%d",ge=/\d{1,2}/;function we(e){return this._ordinal.replace("%d",e)}var be={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 Me(e,t,n,r){var i=this._relativeTime[n];return m(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Se(e,t){var n=this._relativeTime[e>0?"future":"past"];return m(n)?n(t):n.replace(/%s/i,t)}var ke={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function _(e){return typeof e==="string"?ke[e]||ke[e.toLowerCase()]:undefined}function Le(e){var t={},n,r;for(r in e)if(u(e,r)){n=_(r);if(n)t[n]=e[r]}return t}var Te={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function De(e){var t=[],n;for(n in e)if(u(e,n))t.push({unit:n,priority:Te[n]});t.sort(function(e,t){return e.priority-t.priority});return t}var Pe=/\d/,t=/\d\d/,Ce=/\d{3}/,Ee=/\d{4}/,Ye=/[+-]?\d{6}/,n=/\d\d?/,xe=/\d\d\d\d?/,Ae=/\d\d\d\d\d\d?/,Oe=/\d{1,3}/,Ie=/\d{1,4}/,Re=/[+-]?\d{1,6}/,je=/\d+/,He=/[+-]?\d+/,We=/Z|[+-]\d\d:?\d\d/gi,Fe=/Z|[+-]\d\d(?::?\d\d)?/gi,ze=/[+-]?\d+(\.\d{1,3})?/,Ue=/[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,Be=/^[1-9]\d?/,Ne=/^([1-9]\d|\d)/,Je;function i(e,n,r){Je[e]=m(n)?n:function(e,t){return e&&r?r:n}}function Ge(e,t){if(!u(Je,e))return new RegExp(Ve(e));return Je[e](t._strict,t._locale)}function Ve(e){return p(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function p(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function y(e){if(e<0)return Math.ceil(e)||0;else return Math.floor(e)}function v(e){var t=+e,n=0;if(t!==0&&isFinite(t))n=y(t);return n}var Je={},qe={};function g(e,n){var t,r=n,i;if(typeof e==="string")e=[e];if(l(n))r=function(e,t){t[n]=v(e)};i=e.length;for(t=0;t<i;t++)qe[e[t]]=r}function Ze(e,i){g(e,function(e,t,n,r){n._w=n._w||{};i(e,n._w,n,r)})}function Xe(e,t,n){if(t!=null&&u(qe,e))qe[e](t,n._a,n,e)}function Ke(e){return e%4===0&&e%100!==0||e%400===0}var w=0,b=1,M=2,S=3,k=4,L=5,$e=6,Qe=7,et=8;function tt(e){return Ke(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,true],0,"year"),i("Y",He),i("YY",n,t),i("YYYY",Ie,Ee),i("YYYYY",Re,Ye),i("YYYYYY",Re,Ye),g(["YYYYY","YYYYYY"],w),g("YYYY",function(e,t){t[w]=e.length===2?c.parseTwoDigitYear(e):v(e)}),g("YY",function(e,t){t[w]=c.parseTwoDigitYear(e)}),g("Y",function(e,t){t[w]=parseInt(e,10)}),c.parseTwoDigitYear=function(e){return v(e)+(v(e)>68?1900:2e3)};var nt=it("FullYear",true),T;function rt(){return Ke(this.year())}function it(t,n){return function(e){if(e!=null){at(this,t,e);c.updateOffset(this,n);return this}else return ot(this,t)}}function ot(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function at(e,t,n){var r,i,o,a,s;if(!e.isValid()||isNaN(n))return;r=e._d;i=e._isUTC;switch(t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n;a=e.month();s=e.date();s=s===29&&a===1&&!Ke(o)?28:s;void(i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s))}function st(e){e=_(e);if(m(this[e]))return this[e]();return this}function ut(e,t){if(typeof e==="object"){e=Le(e);var n=De(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else{e=_(e);if(m(this[e]))return this[e](t)}return this}function lt(e,t){return(e%t+t)%t}if(Array.prototype.indexOf)T=Array.prototype.indexOf;else T=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function dt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=lt(t,12);e+=(t-n)/12;return n===1?Ke(e)?29:28:31-n%7%2}r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),i("M",n,Be),i("MM",n,t),i("MMM",function(e,t){return t.monthsShortRegex(e)}),i("MMMM",function(e,t){return t.monthsRegex(e)}),g(["M","MM"],function(e,t){t[b]=v(e)-1}),g(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);if(i!=null)t[b]=i;else h(n).invalidMonth=e});var ct="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ht="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ft=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,mt=Ue,_t=Ue;function pt(e,t){if(!e)return a(this._months)?this._months:this._months["standalone"];return a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ft).test(t)?"format":"standalone"][e.month()]}function yt(e,t){if(!e)return a(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"];return a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ft.test(t)?"format":"standalone"][e.month()]}function vt(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];for(r=0;r<12;++r){o=d([2e3,r]);this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase();this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase()}}if(n)if(t==="MMM"){i=T.call(this._shortMonthsParse,a);return i!==-1?i:null}else{i=T.call(this._longMonthsParse,a);return i!==-1?i:null}else if(t==="MMM"){i=T.call(this._shortMonthsParse,a);if(i!==-1)return i;i=T.call(this._longMonthsParse,a);return i!==-1?i:null}else{i=T.call(this._longMonthsParse,a);if(i!==-1)return i;i=T.call(this._shortMonthsParse,a);return i!==-1?i:null}}function gt(e,t,n){var r,i,o;if(this._monthsParseExact)return vt.call(this,e,t,n);if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[]}for(r=0;r<12;r++){i=d([2e3,r]);if(n&&!this._longMonthsParse[r]){this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i");this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")}if(!n&&!this._monthsParse[r]){o="^"+this.months(i,"")+"|^"+this.monthsShort(i,"");this._monthsParse[r]=new RegExp(o.replace(".",""),"i")}if(n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;else if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;else if(!n&&this._monthsParse[r].test(e))return r}}function wt(e,t){if(!e.isValid())return e;if(typeof t==="string")if(/^\d+$/.test(t))t=v(t);else{t=e.localeData().monthsParse(t);if(!l(t))return e}var n=t,r=e.date();r=r<29?r:Math.min(r,dt(e.year(),n));void(e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r));return e}function bt(e){if(e!=null){wt(this,e);c.updateOffset(this,true);return this}else return ot(this,"Month")}function Mt(){return dt(this.year(),this.month())}function St(e){if(this._monthsParseExact){if(!u(this,"_monthsRegex"))Lt.call(this);if(e)return this._monthsShortStrictRegex;else return this._monthsShortRegex}else{if(!u(this,"_monthsShortRegex"))this._monthsShortRegex=mt;return this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}}function kt(e){if(this._monthsParseExact){if(!u(this,"_monthsRegex"))Lt.call(this);if(e)return this._monthsStrictRegex;else return this._monthsRegex}else{if(!u(this,"_monthsRegex"))this._monthsRegex=_t;return this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}}function Lt(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],i,o,a,s;for(i=0;i<12;i++){o=d([2e3,i]);a=p(this.monthsShort(o,""));s=p(this.months(o,""));t.push(a);n.push(s);r.push(s);r.push(a)}t.sort(e);n.sort(e);r.sort(e);this._monthsRegex=new RegExp("^("+r.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Tt(e,t,n,r,i,o,a){var s;if(e<100&&e>=0){s=new Date(e+400,t,n,r,i,o,a);if(isFinite(s.getFullYear()))s.setFullYear(e)}else s=new Date(e,t,n,r,i,o,a);return s}function Dt(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 Pt(e,t,n){var r=7+t-n,i=(7+Dt(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Ct(e,t,n,r,i){var o=(7+n-r)%7,a=Pt(e,r,i),s=1+7*(t-1)+o+a,u,l;if(s<=0){u=e-1;l=tt(u)+s}else if(s>tt(e)){u=e+1;l=s-tt(e)}else{u=e;l=s}return{year:u,dayOfYear:l}}function Et(e,t,n){var r=Pt(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;if(i<1){a=e.year()-1;o=i+D(a,t,n)}else if(i>D(e.year(),t,n)){o=i-D(e.year(),t,n);a=e.year()+1}else{a=e.year();o=i}return{week:o,year:a}}function D(e,t,n){var r=Pt(e,t,n),i=Pt(e+1,t,n);return(tt(e)-r+i)/7}function Yt(e){return Et(e,this._week.dow,this._week.doy).week}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),i("w",n,Be),i("ww",n,t),i("W",n,Be),i("WW",n,t),Ze(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=v(e)});var xt={dow:0,doy:6};function At(){return this._week.dow}function Ot(){return this._week.doy}function It(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Rt(e){var t=Et(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}function jt(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 Ht(e,t){if(typeof e==="string")return t.weekdaysParse(e)%7||7;return isNaN(e)?null:e}function Wt(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),i("d",n),i("e",n),i("E",n),i("dd",function(e,t){return t.weekdaysMinRegex(e)}),i("ddd",function(e,t){return t.weekdaysShortRegex(e)}),i("dddd",function(e,t){return t.weekdaysRegex(e)}),Ze(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);if(i!=null)t.d=i;else h(n).invalidWeekday=e}),Ze(["d","e","E"],function(e,t,n,r){t[r]=v(e)});var Ft="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),zt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ut="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Bt=Ue,Nt=Ue,Jt=Ue;function Gt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&e!==true&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===true?Wt(n,this._week.dow):e?n[e.day()]:n}function Vt(e){return e===true?Wt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function qt(e){return e===true?Wt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Zt(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(r=0;r<7;++r){o=d([2e3,1]).day(r);this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase();this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase();this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase()}}if(n)if(t==="dddd"){i=T.call(this._weekdaysParse,a);return i!==-1?i:null}else if(t==="ddd"){i=T.call(this._shortWeekdaysParse,a);return i!==-1?i:null}else{i=T.call(this._minWeekdaysParse,a);return i!==-1?i:null}else if(t==="dddd"){i=T.call(this._weekdaysParse,a);if(i!==-1)return i;i=T.call(this._shortWeekdaysParse,a);if(i!==-1)return i;i=T.call(this._minWeekdaysParse,a);return i!==-1?i:null}else if(t==="ddd"){i=T.call(this._shortWeekdaysParse,a);if(i!==-1)return i;i=T.call(this._weekdaysParse,a);if(i!==-1)return i;i=T.call(this._minWeekdaysParse,a);return i!==-1?i:null}else{i=T.call(this._minWeekdaysParse,a);if(i!==-1)return i;i=T.call(this._weekdaysParse,a);if(i!==-1)return i;i=T.call(this._shortWeekdaysParse,a);return i!==-1?i:null}}function Xt(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Zt.call(this,e,t,n);if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(r=0;r<7;r++){i=d([2e3,1]).day(r);if(n&&!this._fullWeekdaysParse[r]){this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i");this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i");this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")}if(!this._weekdaysParse[r]){o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,"");this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")}if(n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;else if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;else if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;else if(!n&&this._weekdaysParse[r].test(e))return r}}function Kt(e){if(!this.isValid())return e!=null?this:NaN;var t=ot(this,"Day");if(e!=null){e=jt(e,this.localeData());return this.add(e-t,"d")}else return t}function $t(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 Qt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Ht(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function en(e){if(this._weekdaysParseExact){if(!u(this,"_weekdaysRegex"))rn.call(this);if(e)return this._weekdaysStrictRegex;else return this._weekdaysRegex}else{if(!u(this,"_weekdaysRegex"))this._weekdaysRegex=Bt;return this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}}function tn(e){if(this._weekdaysParseExact){if(!u(this,"_weekdaysRegex"))rn.call(this);if(e)return this._weekdaysShortStrictRegex;else return this._weekdaysShortRegex}else{if(!u(this,"_weekdaysShortRegex"))this._weekdaysShortRegex=Nt;return this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}function nn(e){if(this._weekdaysParseExact){if(!u(this,"_weekdaysRegex"))rn.call(this);if(e)return this._weekdaysMinStrictRegex;else return this._weekdaysMinRegex}else{if(!u(this,"_weekdaysMinRegex"))this._weekdaysMinRegex=Jt;return this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function rn(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],i=[],o,a,s,u,l;for(o=0;o<7;o++){a=d([2e3,1]).day(o);s=p(this.weekdaysMin(a,""));u=p(this.weekdaysShort(a,""));l=p(this.weekdays(a,""));t.push(s);n.push(u);r.push(l);i.push(s);i.push(u);i.push(l)}t.sort(e);n.sort(e);r.sort(e);i.sort(e);this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function on(){return this.hours()%12||12}function an(){return this.hours()||24}function sn(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function un(e,t){return t._meridiemParse}function ln(e){return(e+"").toLowerCase().charAt(0)==="p"}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,on),r("k",["kk",2],0,an),r("hmm",0,0,function(){return""+on.apply(this)+o(this.minutes(),2)}),r("hmmss",0,0,function(){return""+on.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),sn("a",true),sn("A",false),i("a",un),i("A",un),i("H",n,Ne),i("h",n,Be),i("k",n,Be),i("HH",n,t),i("hh",n,t),i("kk",n,t),i("hmm",xe),i("hmmss",Ae),i("Hmm",xe),i("Hmmss",Ae),g(["H","HH"],S),g(["k","kk"],function(e,t,n){var r=v(e);t[S]=r===24?0:r}),g(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e);n._meridiem=e}),g(["h","hh"],function(e,t,n){t[S]=v(e);h(n).bigHour=true}),g("hmm",function(e,t,n){var r=e.length-2;t[S]=v(e.substr(0,r));t[k]=v(e.substr(r));h(n).bigHour=true}),g("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[S]=v(e.substr(0,r));t[k]=v(e.substr(r,2));t[L]=v(e.substr(i));h(n).bigHour=true}),g("Hmm",function(e,t,n){var r=e.length-2;t[S]=v(e.substr(0,r));t[k]=v(e.substr(r))}),g("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[S]=v(e.substr(0,r));t[k]=v(e.substr(r,2));t[L]=v(e.substr(i))});var dn,cn=it("Hours",true);function hn(e,t,n){if(e>11)return n?"pm":"PM";else return n?"am":"AM"}var fn={calendar:ie,longDateFormat:me,invalidDate:pe,ordinal:ve,dayOfMonthOrdinalParse:ge,relativeTime:be,months:ct,monthsShort:ht,week:xt,weekdays:Ft,weekdaysMin:Ut,weekdaysShort:zt,meridiemParse:/[ap]\.?m?\.?/i},P={},mn={},_n;function pn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function yn(e){return e?e.toLowerCase().replace("_","-"):e}function vn(e){var t=0,n,r,i,o;while(t<e.length){o=yn(e[t]).split("-");n=o.length;r=yn(e[t+1]);r=r?r.split("-"):null;while(n>0){i=wn(o.slice(0,n).join("-"));if(i)return i;if(r&&r.length>=n&&pn(o,r)>=n-1)break;n--}t++}return _n}function gn(e){return!!(e&&e.match("^[^/\\\\]*$"))}function wn(t){var e=null,n;if(P[t]===undefined&&typeof da!=="undefined"&&da&&da.exports&&gn(t))try{e=_n._abbr;n=ca;ha(470)("./"+t);bn(e)}catch(e){P[t]=null}return P[t]}function bn(e,t){var n;if(e){if(s(t))n=C(e);else n=Mn(e,t);if(n)_n=n;else if(typeof console!=="undefined"&&console.warn)console.warn("Locale "+e+" not found. Did you forget to load it?")}return _n._abbr}function Mn(e,t){if(t!==null){var n,r=fn;t.abbr=e;if(P[e]!=null){ee("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.");r=P[e]._config}else if(t.parentLocale!=null)if(P[t.parentLocale]!=null)r=P[t.parentLocale]._config;else{n=wn(t.parentLocale);if(n!=null)r=n._config;else{if(!mn[t.parentLocale])mn[t.parentLocale]=[];mn[t.parentLocale].push({name:e,config:t});return null}}P[e]=new re(ne(r,t));if(mn[e])mn[e].forEach(function(e){Mn(e.name,e.config)});bn(e);return P[e]}else{delete P[e];return null}}function Sn(e,t){if(t!=null){var n,r,i=fn;if(P[e]!=null&&P[e].parentLocale!=null)P[e].set(ne(P[e]._config,t));else{r=wn(e);if(r!=null)i=r._config;t=ne(i,t);if(r==null)t.abbr=e;n=new re(t);n.parentLocale=P[e];P[e]=n}bn(e)}else if(P[e]!=null)if(P[e].parentLocale!=null){P[e]=P[e].parentLocale;if(e===bn())bn(e)}else if(P[e]!=null)delete P[e];return P[e]}function C(e){var t;if(e&&e._locale&&e._locale._abbr)e=e._locale._abbr;if(!e)return _n;if(!a(e)){t=wn(e);if(t)return t;e=[e]}return vn(e)}function kn(){return Q(P)}function Ln(e){var t,n=e._a;if(n&&h(e).overflow===-2){t=n[b]<0||n[b]>11?b:n[M]<1||n[M]>dt(n[w],n[b])?M:n[S]<0||n[S]>24||n[S]===24&&(n[k]!==0||n[L]!==0||n[$e]!==0)?S:n[k]<0||n[k]>59?k:n[L]<0||n[L]>59?L:n[$e]<0||n[$e]>999?$e:-1;if(h(e)._overflowDayOfYear&&(t<w||t>M))t=M;if(h(e)._overflowWeeks&&t===-1)t=Qe;if(h(e)._overflowWeekday&&t===-1)t=et;h(e).overflow=t}return e}var Tn=/^\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)?)?$/,Dn=/^\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)?)?$/,Pn=/Z|[+-]\d\d(?::?\d\d)?/,Cn=[["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]],En=[["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/]],Yn=/^\/?Date\((-?\d+)/i,xn=/^(?:(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}))$/,An={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 On(e){var t,n,r=e._i,i=Tn.exec(r)||Dn.exec(r),o,a,s,u,l=Cn.length,d=En.length;if(i){h(e).iso=true;for(t=0,n=l;t<n;t++)if(Cn[t][1].exec(i[1])){a=Cn[t][0];o=Cn[t][2]!==false;break}if(a==null){e._isValid=false;return}if(i[3]){for(t=0,n=d;t<n;t++)if(En[t][1].exec(i[3])){s=(i[2]||" ")+En[t][0];break}if(s==null){e._isValid=false;return}}if(!o&&s!=null){e._isValid=false;return}if(i[4])if(Pn.exec(i[4]))u="Z";else{e._isValid=false;return}e._f=a+(s||"")+(u||"");Gn(e)}else e._isValid=false}function In(e,t,n,r,i,o){var a=[Rn(e),ht.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];if(o)a.push(parseInt(o,10));return a}function Rn(e){var t=parseInt(e,10);if(t<=49)return 2e3+t;else if(t<=999)return 1900+t;return t}function jn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Hn(e,t,n){if(e){var r=zt.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i){h(n).weekdayMismatch=true;n._isValid=false;return false}}return true}function Wn(e,t,n){if(e)return An[e];else if(t)return 0;else{var r=parseInt(n,10),i=r%100,o=(r-i)/100;return o*60+i}}function Fn(e){var t=xn.exec(jn(e._i)),n;if(t){n=In(t[4],t[3],t[2],t[5],t[6],t[7]);if(!Hn(t[1],n,e))return;e._a=n;e._tzm=Wn(t[8],t[9],t[10]);e._d=Dt.apply(null,e._a);e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm);h(e).rfc2822=true}else e._isValid=false}function zn(e){var t=Yn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}On(e);if(e._isValid===false)delete e._isValid;else return;Fn(e);if(e._isValid===false)delete e._isValid;else return;if(e._strict)e._isValid=false;else c.createFromInputFallback(e)}function Un(e,t,n){if(e!=null)return e;if(t!=null)return t;return n}function Bn(e){var t=new Date(c.now());if(e._useUTC)return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()];return[t.getFullYear(),t.getMonth(),t.getDate()]}function Nn(e){var t,n,r=[],i,o,a;if(e._d)return;i=Bn(e);if(e._w&&e._a[M]==null&&e._a[b]==null)Jn(e);if(e._dayOfYear!=null){a=Un(e._a[w],i[w]);if(e._dayOfYear>tt(a)||e._dayOfYear===0)h(e)._overflowDayOfYear=true;n=Dt(a,0,e._dayOfYear);e._a[b]=n.getUTCMonth();e._a[M]=n.getUTCDate()}for(t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];if(e._a[S]===24&&e._a[k]===0&&e._a[L]===0&&e._a[$e]===0){e._nextDay=true;e._a[S]=0}e._d=(e._useUTC?Dt:Tt).apply(null,r);o=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[S]=24;if(e._w&&typeof e._w.d!=="undefined"&&e._w.d!==o)h(e).weekdayMismatch=true}function Jn(e){var t,n,r,i,o,a,s,u,l;t=e._w;if(t.GG!=null||t.W!=null||t.E!=null){o=1;a=4;n=Un(t.GG,e._a[w],Et(E(),1,4).year);r=Un(t.W,1);i=Un(t.E,1);if(i<1||i>7)u=true}else{o=e._locale._week.dow;a=e._locale._week.doy;l=Et(E(),o,a);n=Un(t.gg,e._a[w],l.year);r=Un(t.w,l.week);if(t.d!=null){i=t.d;if(i<0||i>6)u=true}else if(t.e!=null){i=t.e+o;if(t.e<0||t.e>6)u=true}else i=o}if(r<1||r>D(n,o,a))h(e)._overflowWeeks=true;else if(u!=null)h(e)._overflowWeekday=true;else{s=Ct(n,r,i,o,a);e._a[w]=s.year;e._dayOfYear=s.dayOfYear}}function Gn(e){if(e._f===c.ISO_8601){On(e);return}if(e._f===c.RFC_2822){Fn(e);return}e._a=[];h(e).empty=true;var t=""+e._i,n,r,i,o,a,s=t.length,u=0,l,d;i=fe(e._f,e._locale).match(ae)||[];d=i.length;for(n=0;n<d;n++){o=i[n];r=(t.match(Ge(o,e))||[])[0];if(r){a=t.substr(0,t.indexOf(r));if(a.length>0)h(e).unusedInput.push(a);t=t.slice(t.indexOf(r)+r.length);u+=r.length}if(le[o]){if(r)h(e).empty=false;else h(e).unusedTokens.push(o);Xe(o,r,e)}else if(e._strict&&!r)h(e).unusedTokens.push(o)}h(e).charsLeftOver=s-u;if(t.length>0)h(e).unusedInput.push(t);if(e._a[S]<=12&&h(e).bigHour===true&&e._a[S]>0)h(e).bigHour=undefined;h(e).parsedDateParts=e._a.slice(0);h(e).meridiem=e._meridiem;e._a[S]=Vn(e._locale,e._a[S],e._meridiem);l=h(e).era;if(l!==null)e._a[w]=e._locale.erasConvertYear(l,e._a[w]);Nn(e);Ln(e)}function Vn(e,t,n){var r;if(n==null)return t;if(e.meridiemHour!=null)return e.meridiemHour(t,n);else if(e.isPM!=null){r=e.isPM(n);if(r&&t<12)t+=12;if(!r&&t===12)t=0;return t}else return t}function qn(e){var t,n,r,i,o,a,s=false,u=e._f.length;if(u===0){h(e).invalidFormat=true;e._d=new Date(NaN);return}for(i=0;i<u;i++){o=0;a=false;t=Z({},e);if(e._useUTC!=null)t._useUTC=e._useUTC;t._f=e._f[i];Gn(t);if(J(t))a=true;o+=h(t).charsLeftOver;o+=h(t).unusedTokens.length*10;h(t).score=o;if(!s){if(r==null||o<r||a){r=o;n=t;if(a)s=true}}else if(o<r){r=o;n=t}}B(e,n||t)}function Zn(e){if(e._d)return;var t=Le(e._i),n=t.day===undefined?t.date:t.day;e._a=U([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)});Nn(e)}function Xn(e){var t=new X(Ln(Kn(e)));if(t._nextDay){t.add(1,"d");t._nextDay=undefined}return t}function Kn(e){var t=e._i,n=e._f;e._locale=e._locale||C(e._l);if(t===null||n===undefined&&t==="")return G({nullInput:true});if(typeof t==="string")e._i=t=e._locale.preparse(t);if(f(t))return new X(Ln(t));else if(z(t))e._d=t;else if(a(n))qn(e);else if(n)Gn(e);else $n(e);if(!J(e))e._d=null;return e}function $n(e){var t=e._i;if(s(t))e._d=new Date(c.now());else if(z(t))e._d=new Date(t.valueOf());else if(typeof t==="string")zn(e);else if(a(t)){e._a=U(t.slice(0),function(e){return parseInt(e,10)});Nn(e)}else if(W(t))Zn(e);else if(l(t))e._d=new Date(t);else c.createFromInputFallback(e)}function Qn(e,t,n,r,i){var o={};if(t===true||t===false){r=t;t=undefined}if(n===true||n===false){r=n;n=undefined}if(W(e)&&F(e)||a(e)&&e.length===0)e=undefined;o._isAMomentObject=true;o._useUTC=o._isUTC=i;o._l=n;o._i=e;o._f=t;o._strict=r;return Xn(o)}function E(e,t,n,r){return Qn(e,t,n,r,false)}c.createFromInputFallback=e("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":""))}),c.ISO_8601=function(){},c.RFC_2822=function(){};var er=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=E.apply(null,arguments);if(this.isValid()&&e.isValid())return e<this?this:e;else return G()}),tr=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=E.apply(null,arguments);if(this.isValid()&&e.isValid())return e>this?this:e;else return G()});function nr(e,t){var n,r;if(t.length===1&&a(t[0]))t=t[0];if(!t.length)return E();n=t[0];for(r=1;r<t.length;++r)if(!t[r].isValid()||t[r][e](n))n=t[r];return n}function rr(){var e=[].slice.call(arguments,0);return nr("isBefore",e)}function ir(){var e=[].slice.call(arguments,0);return nr("isAfter",e)}var or=function(){return Date.now?Date.now():+new Date},ar=["year","quarter","month","week","day","hour","minute","second","millisecond"];function sr(e){var t,n=false,r,i=ar.length;for(t in e)if(u(e,t)&&!(T.call(ar,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return false;for(r=0;r<i;++r)if(e[ar[r]]){if(n)return false;if(parseFloat(e[ar[r]])!==v(e[ar[r]]))n=true}return true}function ur(){return this._isValid}function lr(){return Y(NaN)}function dr(e){var t=Le(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,d=t.millisecond||0;this._isValid=sr(t);this._milliseconds=+d+l*1e3+u*6e4+s*1e3*60*60;this._days=+a+o*7;this._months=+i+r*3+n*12;this._data={};this._locale=C();this._bubble()}function cr(e){return e instanceof dr}function hr(e){if(e<0)return Math.round(-1*e)*-1;else return Math.round(e)}function fr(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,a;for(a=0;a<r;a++)if(n&&e[a]!==t[a]||!n&&v(e[a])!==v(t[a]))o++;return o+i}function mr(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";if(e<0){e=-e;t="-"}return t+o(~~(e/60),2)+n+o(~~e%60,2)})}mr("Z",":"),mr("ZZ",""),i("Z",Fe),i("ZZ",Fe),g(["Z","ZZ"],function(e,t,n){n._useUTC=true;n._tzm=pr(Fe,e)});var _r=/([\+\-]|\d\d)/gi;function pr(e,t){var n=(t||"").match(e),r,i,o;if(n===null)return null;r=n[n.length-1]||[];i=(r+"").match(_r)||["-",0,0];o=+(i[1]*60)+v(i[2]);return o===0?0:i[0]==="+"?o:-o}function yr(e,t){var n,r;if(t._isUTC){n=t.clone();r=(f(e)||z(e)?e.valueOf():E(e).valueOf())-n.valueOf();n._d.setTime(n._d.valueOf()+r);c.updateOffset(n,false);return n}else return E(e).local()}function vr(e){return-Math.round(e._d.getTimezoneOffset())}function gr(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e==="string"){e=pr(Fe,e);if(e===null)return this}else if(Math.abs(e)<16&&!n)e=e*60;if(!this._isUTC&&t)i=vr(this);this._offset=e;this._isUTC=true;if(i!=null)this.add(i,"m");if(r!==e)if(!t||this._changeInProgress)Rr(this,Y(e-r,"m"),1,false);else if(!this._changeInProgress){this._changeInProgress=true;c.updateOffset(this,true);this._changeInProgress=null}return this}else return this._isUTC?r:vr(this)}function wr(e,t){if(e!=null){if(typeof e!=="string")e=-e;this.utcOffset(e,t);return this}else return-this.utcOffset()}function br(e){return this.utcOffset(0,e)}function Mr(e){if(this._isUTC){this.utcOffset(0,e);this._isUTC=false;if(e)this.subtract(vr(this),"m")}return this}function Sr(){if(this._tzm!=null)this.utcOffset(this._tzm,false,true);else if(typeof this._i==="string"){var e=pr(We,this._i);if(e!=null)this.utcOffset(e);else this.utcOffset(0,true)}return this}function kr(e){if(!this.isValid())return false;e=e?E(e).utcOffset():0;return(this.utcOffset()-e)%60===0}function Lr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Tr(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={},t;Z(e,this);e=Kn(e);if(e._a){t=e._isUTC?d(e._a):E(e._a);this._isDSTShifted=this.isValid()&&fr(e._a,t.toArray())>0}else this._isDSTShifted=false;return this._isDSTShifted}function Dr(){return this.isValid()?!this._isUTC:false}function Pr(){return this.isValid()?this._isUTC:false}function Cr(){return this.isValid()?this._isUTC&&this._offset===0:false}c.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Yr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Y(e,t){var n=e,r=null,i,o,a;if(cr(e))n={ms:e._milliseconds,d:e._days,M:e._months};else if(l(e)||!isNaN(+e)){n={};if(t)n[t]=+e;else n.milliseconds=+e}else if(r=Er.exec(e)){i=r[1]==="-"?-1:1;n={y:0,d:v(r[M])*i,h:v(r[S])*i,m:v(r[k])*i,s:v(r[L])*i,ms:v(hr(r[$e]*1e3))*i}}else if(r=Yr.exec(e)){i=r[1]==="-"?-1:1;n={y:xr(r[2],i),M:xr(r[3],i),w:xr(r[4],i),d:xr(r[5],i),h:xr(r[6],i),m:xr(r[7],i),s:xr(r[8],i)}}else if(n==null)n={};else if(typeof n==="object"&&("from"in n||"to"in n)){a=Or(E(n.from),E(n.to));n={};n.ms=a.milliseconds;n.M=a.months}o=new dr(n);if(cr(e)&&u(e,"_locale"))o._locale=e._locale;if(cr(e)&&u(e,"_isValid"))o._isValid=e._isValid;return o}function xr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ar(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 Or(e,t){var n;if(!(e.isValid()&&t.isValid()))return{milliseconds:0,months:0};t=yr(t,e);if(e.isBefore(t))n=Ar(e,t);else{n=Ar(t,e);n.milliseconds=-n.milliseconds;n.months=-n.months}return n}function Ir(i,o){return function(e,t){var n,r;if(t!==null&&!isNaN(+t)){ee(o,"moment()."+o+"(period, number) is deprecated. Please use moment()."+o+"(number, period). "+"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");r=e;e=t;t=r}n=Y(e,t);Rr(this,n,i);return this}}function Rr(e,t,n,r){var i=t._milliseconds,o=hr(t._days),a=hr(t._months);if(!e.isValid())return;r=r==null?true:r;if(a)wt(e,ot(e,"Month")+a*n);if(o)at(e,"Date",ot(e,"Date")+o*n);if(i)e._d.setTime(e._d.valueOf()+i*n);if(r)c.updateOffset(e,o||a)}Y.fn=dr.prototype,Y.invalid=lr;var jr=Ir(1,"add"),Hr=Ir(-1,"subtract");function Wr(e){return typeof e==="string"||e instanceof String}function Fr(e){return f(e)||z(e)||Wr(e)||l(e)||Ur(e)||zr(e)||e===null||e===undefined}function zr(e){var t=W(e)&&!F(e),n=false,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,o,a=r.length;for(i=0;i<a;i+=1){o=r[i];n=n||u(e,o)}return t&&n}function Ur(t){var e=a(t),n=false;if(e)n=t.filter(function(e){return!l(e)&&Wr(t)}).length===0;return e&&n}function Br(e){var t=W(e)&&!F(e),n=false,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,o;for(i=0;i<r.length;i+=1){o=r[i];n=n||u(e,o)}return t&&n}function Nr(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 Jr(e,t){if(arguments.length===1)if(!arguments[0]){e=undefined;t=undefined}else if(Fr(arguments[0])){e=arguments[0];t=undefined}else if(Br(arguments[0])){t=arguments[0];e=undefined}var n=e||E(),r=yr(n,this).startOf("day"),i=c.calendarFormat(this,r)||"sameElse",o=t&&(m(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,E(n)))}function Gr(){return new X(this)}function Vr(e,t){var n=f(e)?e:E(e);if(!(this.isValid()&&n.isValid()))return false;t=_(t)||"millisecond";if(t==="millisecond")return this.valueOf()>n.valueOf();else return n.valueOf()<this.clone().startOf(t).valueOf()}function qr(e,t){var n=f(e)?e:E(e);if(!(this.isValid()&&n.isValid()))return false;t=_(t)||"millisecond";if(t==="millisecond")return this.valueOf()<n.valueOf();else return this.clone().endOf(t).valueOf()<n.valueOf()}function Zr(e,t,n,r){var i=f(e)?e:E(e),o=f(t)?t:E(t);if(!(this.isValid()&&i.isValid()&&o.isValid()))return false;r=r||"()";return(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(o,n):!this.isAfter(o,n))}function Xr(e,t){var n=f(e)?e:E(e),r;if(!(this.isValid()&&n.isValid()))return false;t=_(t)||"millisecond";if(t==="millisecond")return this.valueOf()===n.valueOf();else{r=n.valueOf();return this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()}}function Kr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function $r(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qr(e,t,n){var r,i,o;if(!this.isValid())return NaN;r=yr(e,this);if(!r.isValid())return NaN;i=(r.utcOffset()-this.utcOffset())*6e4;t=_(t);switch(t){case"year":o=ei(this,r)/12;break;case"month":o=ei(this,r);break;case"quarter":o=ei(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:y(o)}function ei(e,t){if(e.date()<t.date())return-ei(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,o;if(t-r<0){i=e.clone().add(n-1,"months");o=(t-r)/(r-i)}else{i=e.clone().add(n+1,"months");o=(t-r)/(i-r)}return-(n+o)||0}function ti(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ni(e){if(!this.isValid())return null;var t=e!==true,n=t?this.clone().utc():this;if(n.year()<0||n.year()>9999)return he(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(m(Date.prototype.toISOString))if(t)return this.toDate().toISOString();else return new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",he(n,"Z"));return he(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ri(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;if(!this.isLocal()){e=this.utcOffset()===0?"moment.utc":"moment.parseZone";t="Z"}n="["+e+'("]';r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";i="-MM-DD[T]HH:mm:ss.SSS";o=t+'[")]';return this.format(n+r+i+o)}function ii(e){if(!e)e=this.isUtc()?c.defaultFormatUtc:c.defaultFormat;var t=he(this,e);return this.localeData().postformat(t)}function oi(e,t){if(this.isValid()&&(f(e)&&e.isValid()||E(e).isValid()))return Y({to:this,from:e}).locale(this.locale()).humanize(!t);else return this.localeData().invalidDate()}function ai(e){return this.from(E(),e)}function si(e,t){if(this.isValid()&&(f(e)&&e.isValid()||E(e).isValid()))return Y({from:this,to:e}).locale(this.locale()).humanize(!t);else return this.localeData().invalidDate()}function ui(e){return this.to(E(),e)}function li(e){var t;if(e===undefined)return this._locale._abbr;else{t=C(e);if(t!=null)this._locale=t;return this}}c.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",c.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var di=e("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 ci(){return this._locale}var hi=1e3,fi=60*hi,mi=60*fi,_i=(365*400+97)*24*mi;function pi(e,t){return(e%t+t)%t}function yi(e,t,n){if(e<100&&e>=0)return new Date(e+400,t,n)-_i;else return new Date(e,t,n).valueOf()}function vi(e,t,n){if(e<100&&e>=0)return Date.UTC(e+400,t,n)-_i;else return Date.UTC(e,t,n)}function gi(e){var t,n;e=_(e);if(e===undefined||e==="millisecond"||!this.isValid())return this;n=this._isUTC?vi:yi;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-=pi(t+(this._isUTC?0:this.utcOffset()*fi),mi);break;case"minute":t=this._d.valueOf();t-=pi(t,fi);break;case"second":t=this._d.valueOf();t-=pi(t,hi);break}this._d.setTime(t);c.updateOffset(this,true);return this}function wi(e){var t,n;e=_(e);if(e===undefined||e==="millisecond"||!this.isValid())return this;n=this._isUTC?vi:yi;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+=mi-pi(t+(this._isUTC?0:this.utcOffset()*fi),mi)-1;break;case"minute":t=this._d.valueOf();t+=fi-pi(t,fi)-1;break;case"second":t=this._d.valueOf();t+=hi-pi(t,hi)-1;break}this._d.setTime(t);c.updateOffset(this,true);return this}function bi(){return this._d.valueOf()-(this._offset||0)*6e4}function Mi(){return Math.floor(this.valueOf()/1e3)}function Si(){return new Date(this.valueOf())}function ki(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Li(){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 Ti(){return this.isValid()?this.toISOString():null}function Di(){return J(this)}function Pi(){return B({},h(this))}function Ci(){return h(this).overflow}function Ei(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Yi(e,t){var n,r,i,o=this._eras||C("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=c(o[n].since).startOf("day");o[n].since=i.valueOf();break}switch(typeof o[n].until){case"undefined":o[n].until=+Infinity;break;case"string":i=c(o[n].until).startOf("day").valueOf();o[n].until=i.valueOf();break}}return o}function xi(e,t,n){var r,i,o=this.eras(),a,s,u;e=e.toUpperCase();for(r=0,i=o.length;r<i;++r){a=o[r].name.toUpperCase();s=o[r].abbr.toUpperCase();u=o[r].narrow.toUpperCase();if(n)switch(t){case"N":case"NN":case"NNN":if(s===e)return o[r];break;case"NNNN":if(a===e)return o[r];break;case"NNNNN":if(u===e)return o[r];break}else if([a,s,u].indexOf(e)>=0)return o[r]}}function Ai(e,t){var n=e.since<=e.until?+1:-1;if(t===undefined)return c(e.since).year();else return c(e.since).year()+(t-e.offset)*n}function Oi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){n=this.clone().startOf("day").valueOf();if(r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Ii(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){n=this.clone().startOf("day").valueOf();if(r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Ri(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){n=this.clone().startOf("day").valueOf();if(r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function ji(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){n=i[e].since<=i[e].until?+1:-1;r=this.clone().startOf("day").valueOf();if(i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-c(i[e].since).year())*n+i[e].offset}return this.year()}function Hi(e){if(!u(this,"_erasNameRegex"))Ji.call(this);return e?this._erasNameRegex:this._erasRegex}function Wi(e){if(!u(this,"_erasAbbrRegex"))Ji.call(this);return e?this._erasAbbrRegex:this._erasRegex}function Fi(e){if(!u(this,"_erasNarrowRegex"))Ji.call(this);return e?this._erasNarrowRegex:this._erasRegex}function zi(e,t){return t.erasAbbrRegex(e)}function Ui(e,t){return t.erasNameRegex(e)}function Bi(e,t){return t.erasNarrowRegex(e)}function Ni(e,t){return t._eraYearOrdinalRegex||je}function Ji(){var e=[],t=[],n=[],r=[],i,o,a,s,u,l=this.eras();for(i=0,o=l.length;i<o;++i){a=p(l[i].name);s=p(l[i].abbr);u=p(l[i].narrow);t.push(a);e.push(s);n.push(u);r.push(a);r.push(s);r.push(u)}this._erasRegex=new RegExp("^("+r.join("|")+")","i");this._erasNameRegex=new RegExp("^("+t.join("|")+")","i");this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i");this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function Gi(e,t){r(0,[e,e.length],0,t)}function Vi(e){return Qi.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function qi(e){return Qi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Zi(){return D(this.year(),1,4)}function Xi(){return D(this.isoWeekYear(),1,4)}function Ki(){var e=this.localeData()._week;return D(this.year(),e.dow,e.doy)}function $i(){var e=this.localeData()._week;return D(this.weekYear(),e.dow,e.doy)}function Qi(e,t,n,r,i){var o;if(e==null)return Et(this,r,i).year;else{o=D(e,r,i);if(t>o)t=o;return eo.call(this,e,t,n,r,i)}}function eo(e,t,n,r,i){var o=Ct(e,t,n,r,i),a=Dt(o.year,0,o.dayOfYear);this.year(a.getUTCFullYear());this.month(a.getUTCMonth());this.date(a.getUTCDate());return this}function to(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),i("N",zi),i("NN",zi),i("NNN",zi),i("NNNN",Ui),i("NNNNN",Bi),g(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);if(i)h(n).era=i;else h(n).invalidEra=e}),i("y",je),i("yy",je),i("yyy",je),i("yyyy",je),i("yo",Ni),g(["y","yy","yyy","yyyy"],w),g(["yo"],function(e,t,n,r){var i;if(n._locale._eraYearOrdinalRegex)i=e.match(n._locale._eraYearOrdinalRegex);if(n._locale.eraYearOrdinalParse)t[w]=n._locale.eraYearOrdinalParse(e,i);else t[w]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Gi("gggg","weekYear"),Gi("ggggg","weekYear"),Gi("GGGG","isoWeekYear"),Gi("GGGGG","isoWeekYear"),i("G",He),i("g",He),i("GG",n,t),i("gg",n,t),i("GGGG",Ie,Ee),i("gggg",Ie,Ee),i("GGGGG",Re,Ye),i("ggggg",Re,Ye),Ze(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=v(e)}),Ze(["gg","GG"],function(e,t,n,r){t[r]=c.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),i("Q",Pe),g("Q",function(e,t){t[b]=(v(e)-1)*3}),r("D",["DD",2],"Do","date"),i("D",n,Be),i("DD",n,t),i("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),g(["D","DD"],M),g("Do",function(e,t){t[M]=v(e.match(n)[0])});var no=it("Date",true);function ro(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}r("DDD",["DDDD",3],"DDDo","dayOfYear"),i("DDD",Oe),i("DDDD",Ce),g(["DDD","DDDD"],function(e,t,n){n._dayOfYear=v(e)}),r("m",["mm",2],0,"minute"),i("m",n,Ne),i("mm",n,t),g(["m","mm"],k);var io=it("Minutes",false),oo=(r("s",["ss",2],0,"second"),i("s",n,Ne),i("ss",n,t),g(["s","ss"],L),it("Seconds",false)),ao,so;for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return this.millisecond()*10}),r(0,["SSSSS",5],0,function(){return this.millisecond()*100}),r(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),r(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),r(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),r(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),i("S",Oe,Pe),i("SS",Oe,t),i("SSS",Oe,Ce),ao="SSSS";ao.length<=9;ao+="S")i(ao,je);function uo(e,t){t[$e]=v(("0."+e)*1e3)}for(ao="S";ao.length<=9;ao+="S")g(ao,uo);function lo(){return this._isUTC?"UTC":""}function co(){return this._isUTC?"Coordinated Universal Time":""}so=it("Milliseconds",false),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");var x=X.prototype;if(x.add=jr,x.calendar=Jr,x.clone=Gr,x.diff=Qr,x.endOf=wi,x.format=ii,x.from=oi,x.fromNow=ai,x.to=si,x.toNow=ui,x.get=st,x.invalidAt=Ci,x.isAfter=Vr,x.isBefore=qr,x.isBetween=Zr,x.isSame=Xr,x.isSameOrAfter=Kr,x.isSameOrBefore=$r,x.isValid=Di,x.lang=di,x.locale=li,x.localeData=ci,x.max=tr,x.min=er,x.parsingFlags=Pi,x.set=ut,x.startOf=gi,x.subtract=Hr,x.toArray=ki,x.toObject=Li,x.toDate=Si,x.toISOString=ni,x.inspect=ri,typeof Symbol!=="undefined"&&Symbol.for!=null)x[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"};function ho(e){return E(e*1e3)}function fo(){return E.apply(null,arguments).parseZone()}function mo(e){return e}x.toJSON=Ti,x.toString=ti,x.unix=Mi,x.valueOf=bi,x.creationData=Ei,x.eraName=Oi,x.eraNarrow=Ii,x.eraAbbr=Ri,x.eraYear=ji,x.year=nt,x.isLeapYear=rt,x.weekYear=Vi,x.isoWeekYear=qi,x.quarter=x.quarters=to,x.month=bt,x.daysInMonth=Mt,x.week=x.weeks=It,x.isoWeek=x.isoWeeks=Rt,x.weeksInYear=Ki,x.weeksInWeekYear=$i,x.isoWeeksInYear=Zi,x.isoWeeksInISOWeekYear=Xi,x.date=no,x.day=x.days=Kt,x.weekday=$t,x.isoWeekday=Qt,x.dayOfYear=ro,x.hour=x.hours=cn,x.minute=x.minutes=io,x.second=x.seconds=oo,x.millisecond=x.milliseconds=so,x.utcOffset=gr,x.utc=br,x.local=Mr,x.parseZone=Sr,x.hasAlignedHourOffset=kr,x.isDST=Lr,x.isLocal=Dr,x.isUtcOffset=Pr,x.isUtc=Cr,x.isUTC=Cr,x.zoneAbbr=lo,x.zoneName=co,x.dates=e("dates accessor is deprecated. Use date instead.",no),x.months=e("months accessor is deprecated. Use month instead",bt),x.years=e("years accessor is deprecated. Use year instead",nt),x.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",wr),x.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Tr);var A=re.prototype;function _o(e,t,n,r){var i=C(),o=d().set(r,t);return i[n](o,e)}function po(e,t,n){if(l(e)){t=e;e=undefined}e=e||"";if(t!=null)return _o(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=_o(e,r,n,"month");return i}function yo(e,t,n,r){if(typeof e==="boolean"){if(l(t)){n=t;t=undefined}t=t||""}else{t=e;n=t;e=false;if(l(t)){n=t;t=undefined}t=t||""}var i=C(),o=e?i._week.dow:0,a,s=[];if(n!=null)return _o(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=_o(t,(a+o)%7,r,"day");return s}function vo(e,t){return po(e,t,"months")}function go(e,t){return po(e,t,"monthsShort")}function wo(e,t,n){return yo(e,t,n,"weekdays")}function bo(e,t,n){return yo(e,t,n,"weekdaysShort")}function Mo(e,t,n){return yo(e,t,n,"weekdaysMin")}A.calendar=oe,A.longDateFormat=_e,A.invalidDate=ye,A.ordinal=we,A.preparse=mo,A.postformat=mo,A.relativeTime=Me,A.pastFuture=Se,A.set=te,A.eras=Yi,A.erasParse=xi,A.erasConvertYear=Ai,A.erasAbbrRegex=Wi,A.erasNameRegex=Hi,A.erasNarrowRegex=Fi,A.months=pt,A.monthsShort=yt,A.monthsParse=gt,A.monthsRegex=kt,A.monthsShortRegex=St,A.week=Yt,A.firstDayOfYear=Ot,A.firstDayOfWeek=At,A.weekdays=Gt,A.weekdaysMin=qt,A.weekdaysShort=Vt,A.weekdaysParse=Xt,A.weekdaysRegex=en,A.weekdaysShortRegex=tn,A.weekdaysMinRegex=nn,A.isPM=ln,A.meridiem=hn,bn("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=v(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),c.lang=e("moment.lang is deprecated. Use moment.locale instead.",bn),c.langData=e("moment.langData is deprecated. Use moment.localeData instead.",C);var O=Math.abs;function So(){var e=this._data;this._milliseconds=O(this._milliseconds);this._days=O(this._days);this._months=O(this._months);e.milliseconds=O(e.milliseconds);e.seconds=O(e.seconds);e.minutes=O(e.minutes);e.hours=O(e.hours);e.months=O(e.months);e.years=O(e.years);return this}function ko(e,t,n,r){var i=Y(t,n);e._milliseconds+=r*i._milliseconds;e._days+=r*i._days;e._months+=r*i._months;return e._bubble()}function Lo(e,t){return ko(this,e,t,1)}function To(e,t){return ko(this,e,t,-1)}function Do(e){if(e<0)return Math.floor(e);else return Math.ceil(e)}function Po(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,a,s,u;if(!(e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0)){e+=Do(Eo(n)+t)*864e5;t=0;n=0}r.milliseconds=e%1e3;i=y(e/1e3);r.seconds=i%60;o=y(i/60);r.minutes=o%60;a=y(o/60);r.hours=a%24;t+=y(a/24);u=y(Co(t));n+=u;t-=Do(Eo(u));s=y(n/12);n%=12;r.days=t;r.months=n;r.years=s;return this}function Co(e){return e*4800/146097}function Eo(e){return e*146097/4800}function Yo(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;e=_(e);if(e==="month"||e==="quarter"||e==="year"){t=this._days+r/864e5;n=this._months+Co(t);switch(e){case"month":return n;case"quarter":return n/3;case"year":return n/12}}else{t=this._days+Math.round(Eo(this._months));switch(e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}}function xo(e){return function(){return this.as(e)}}var Ao=xo("ms"),Oo=xo("s"),Io=xo("m"),Ro=xo("h"),jo=xo("d"),Ho=xo("w"),Wo=xo("M"),Fo=xo("Q"),zo=xo("y"),Uo=Ao;function Bo(){return Y(this)}function No(e){e=_(e);return this.isValid()?this[e+"s"]():NaN}function Jo(e){return function(){return this.isValid()?this._data[e]:NaN}}var Go=Jo("milliseconds"),Vo=Jo("seconds"),qo=Jo("minutes"),Zo=Jo("hours"),Xo=Jo("days"),Ko=Jo("months"),$o=Jo("years");function Qo(){return y(this.days()/7)}var ea=Math.round,ta={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function na(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ra(e,t,n,r){var i=Y(e).abs(),o=ea(i.as("s")),a=ea(i.as("m")),s=ea(i.as("h")),u=ea(i.as("d")),l=ea(i.as("M")),d=ea(i.as("w")),c=ea(i.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];if(n.w!=null)h=h||d<=1&&["w"]||d<n.w&&["ww",d];h=h||l<=1&&["M"]||l<n.M&&["MM",l]||c<=1&&["y"]||["yy",c];h[2]=t;h[3]=+e>0;h[4]=r;return na.apply(null,h)}function ia(e){if(e===undefined)return ea;if(typeof e==="function"){ea=e;return true}return false}function oa(e,t){if(ta[e]===undefined)return false;if(t===undefined)return ta[e];ta[e]=t;if(e==="s")ta.ss=t-1;return true}function aa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=false,r=ta,i,o;if(typeof e==="object"){t=e;e=false}if(typeof e==="boolean")n=e;if(typeof t==="object"){r=Object.assign({},ta,t);if(t.s!=null&&t.ss==null)r.ss=t.s-1}i=this.localeData();o=ra(this,!n,r,i);if(n)o=i.pastFuture(+this,o);return i.postformat(o)}var sa=Math.abs;function ua(e){return(e>0)-(e<0)||+e}function la(){if(!this.isValid())return this.localeData().invalidDate();var e=sa(this._milliseconds)/1e3,t=sa(this._days),n=sa(this._months),r,i,o,a,s=this.asSeconds(),u,l,d,c;if(!s)return"P0D";r=y(e/60);i=y(r/60);e%=60;r%=60;o=y(n/12);n%=12;a=e?e.toFixed(3).replace(/\.?0+$/,""):"";u=s<0?"-":"";l=ua(this._months)!==ua(s)?"-":"";d=ua(this._days)!==ua(s)?"-":"";c=ua(this._milliseconds)!==ua(s)?"-":"";return u+"P"+(o?l+o+"Y":"")+(n?l+n+"M":"")+(t?d+t+"D":"")+(i||r||e?"T":"")+(i?c+i+"H":"")+(r?c+r+"M":"")+(e?c+a+"S":"")}var I=dr.prototype;return I.isValid=ur,I.abs=So,I.add=Lo,I.subtract=To,I.as=Yo,I.asMilliseconds=Ao,I.asSeconds=Oo,I.asMinutes=Io,I.asHours=Ro,I.asDays=jo,I.asWeeks=Ho,I.asMonths=Wo,I.asQuarters=Fo,I.asYears=zo,I.valueOf=Uo,I._bubble=Po,I.clone=Bo,I.get=No,I.milliseconds=Go,I.seconds=Vo,I.minutes=qo,I.hours=Zo,I.days=Xo,I.weeks=Qo,I.months=Ko,I.years=$o,I.humanize=aa,I.toISOString=la,I.toString=la,I.toJSON=la,I.locale=li,I.localeData=ci,I.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",la),I.lang=di,r("X",0,0,"unix"),r("x",0,0,"valueOf"),i("x",He),i("X",ze),g("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),g("x",function(e,t,n){n._d=new Date(v(e))}),
- //! moment.js
- c.version="2.30.1",H(E),c.fn=x,c.min=rr,c.max=ir,c.now=or,c.utc=d,c.unix=ho,c.months=vo,c.isDate=z,c.locale=bn,c.invalid=G,c.duration=Y,c.isMoment=f,c.weekdays=wo,c.parseZone=fo,c.localeData=C,c.isDuration=cr,c.monthsShort=go,c.weekdaysMin=Mo,c.defineLocale=Mn,c.updateLocale=Sn,c.locales=kn,c.weekdaysShort=bo,c.normalizeUnits=_,c.relativeTimeRounding=ia,c.relativeTimeThreshold=oa,c.calendarFormat=Nr,c.prototype=x,c.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"},c}()}.call(this,ha(469)(e))},function(e,t,n){"use strict";var r=n(17),n=n.n(r);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==i(e)?e:e+""}(r.key),r)}}r=function(){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function")}return e=n,r=[{key:"e",value:function(e,t){e="[".concat(e=e&&!n.FORCE_GLOBAL_TAG?e:n.GLOBAL_TAG,"] > ").concat(t);n.ENABLE_CALLBACK&&n.emitter.emit("log","error",e),n.ENABLE_ERROR&&(console.error?console.error(e):console.warn?console.warn(e):console.log(e))}},{key:"i",value:function(e,t){e="[".concat(e=e&&!n.FORCE_GLOBAL_TAG?e:n.GLOBAL_TAG,"] > ").concat(t);n.ENABLE_CALLBACK&&n.emitter.emit("log","info",e),n.ENABLE_INFO&&(console.info?console.info(e):console.log(e))}},{key:"w",value:function(e,t){e="[".concat(e=e&&!n.FORCE_GLOBAL_TAG?e:n.GLOBAL_TAG,"] > ").concat(t);n.ENABLE_CALLBACK&&n.emitter.emit("log","warn",e),n.ENABLE_WARN&&(console.warn?console.warn(e):console.log(e))}},{key:"d",value:function(e,t){e="[".concat(e=e&&!n.FORCE_GLOBAL_TAG?e:n.GLOBAL_TAG,"] > ").concat(t);n.ENABLE_CALLBACK&&n.emitter.emit("log","debug",e),n.ENABLE_DEBUG&&(console.debug?console.debug(e):console.log(e))}},{key:"v",value:function(e,t){e="[".concat(e=e&&!n.FORCE_GLOBAL_TAG?e:n.GLOBAL_TAG,"] > ").concat(t);n.ENABLE_CALLBACK&&n.emitter.emit("log","verbose",e),n.ENABLE_VERBOSE&&console.log(e)}}],(t=null)&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();r.GLOBAL_TAG="flv.js",r.FORCE_GLOBAL_TAG=!1,r.ENABLE_ERROR=!0,r.ENABLE_INFO=!0,r.ENABLE_WARN=!0,r.ENABLE_DEBUG=!0,r.ENABLE_VERBOSE=!0,r.ENABLE_CALLBACK=!1,r.emitter=new n.a,t.a=r},function(e,t,n){function f(e,t,n){var r,i,o,a=e&f.F,s=e&f.G,u=e&f.P,l=e&f.B,d=s?m:e&f.S?m[t]||(m[t]={}):(m[t]||{})[g],c=s?_:_[t]||(_[t]={}),h=c[g]||(c[g]={});for(r in n=s?t:n)i=((o=!a&&d&&void 0!==d[r])?d:n)[r],o=l&&o?v(i,m):u&&"function"==typeof i?v(Function.call,i):i,d&&y(d,r,i,e&f.U),c[r]!=i&&p(c,r,o),u&&h[r]!=i&&(h[r]=i)}var m=n(7),_=n(13),p=n(22),y=n(19),v=n(26),g="prototype";m.core=_,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,e.exports=f},function(e,t,n){"use strict";t.a={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,n){"use strict";n.d(t,"c",function(){return s}),n.d(t,"b",function(){return r}),n.d(t,"a",function(){return u});var i=n(5);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==o(e)?e:e+""}(r.key),r)}}var s={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},r={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},u=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this._type=e||"undefined",this._status=s.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return e=t,(n=[{key:"destroy",value:function(){this._status=s.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===s.kConnecting||this._status===s.kBuffering}},{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}},{key:"open",value:function(e,t){throw new i.c("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new i.c("Unimplemented abstract function!")}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}()},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t,n){t=a(t);var r=e,t=o()?Reflect.construct(t,n||[],a(e).constructor):t.apply(e,n);if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");e=r;if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(o=function(){return!!e})()}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==i(e)?e:e+""}(r.key),r)}}function c(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,"d",function(){return h}),n.d(t,"a",function(){return f}),n.d(t,"b",function(){return m}),n.d(t,"c",function(){return _});var h=function(){return c(function e(t){l(this,e),this._message=t},[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}])}(),f=function(){function t(e){return l(this,t),r(this,t,[e])}return s(t,h),c(t,[{key:"name",get:function(){return"IllegalStateException"}}])}(),m=function(){function t(e){return l(this,t),r(this,t,[e])}return s(t,h),c(t,[{key:"name",get:function(){return"InvalidArgumentException"}}])}(),_=function(){function t(e){return l(this,t),r(this,t,[e])}return s(t,h),c(t,[{key:"name",get:function(){return"NotImplementedException"}}])}()},function(e,t,n){"use strict";var r={};var i,o,a=self.navigator.userAgent.toLowerCase(),s=/(edge)\/([\w.]+)/.exec(a)||/(opr)[\/]([\w.]+)/.exec(a)||/(chrome)[ \/]([\w.]+)/.exec(a)||/(iemobile)[\/]([\w.]+)/.exec(a)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||0<=a.indexOf("trident")&&/(rv)(?::| )([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(a)||[],a=/(ipad)/.exec(a)||/(ipod)/.exec(a)||/(windows phone)/.exec(a)||/(iphone)/.exec(a)||/(kindle)/.exec(a)||/(android)/.exec(a)||/(windows)/.exec(a)||/(mac)/.exec(a)||/(linux)/.exec(a)||/(cros)/.exec(a)||[],s={browser:s[5]||s[3]||s[1]||"",version:s[2]||s[4]||"0",majorVersion:s[4]||s[2]||"0",platform:a[0]||""},a={};for(o in s.browser&&(a[s.browser]=!0,i=s.majorVersion.split("."),a.version={major:parseInt(s.majorVersion,10),string:s.version},1<i.length&&(a.version.minor=parseInt(i[1],10)),2<i.length)&&(a.version.build=parseInt(i[2],10)),s.platform&&(a[s.platform]=!0),(a.chrome||a.opr||a.safari)&&(a.webkit=!0),(a.rv||a.iemobile)&&(a.rv&&delete a.rv,s.browser="msie",a.msie=!0),a.edge&&(delete a.edge,s.browser="msedge",a.msedge=!0),a.opr&&(s.browser="opera",a.opera=!0),a.safari&&a.android&&(a[s.browser="android"]=!0),a.name=s.browser,a.platform=s.platform,r)r.hasOwnProperty(o)&&delete r[o];Object.assign(r,a),t.a=r},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){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(10);e.exports=function(e){if(r(e))return e;throw TypeError(e+" is not an object!")}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(63)("wks"),i=n(41),o=n(7).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){var r=n(28),i=Math.min;e.exports=function(e){return 0<e?i(r(e),9007199254740991):0}},function(e,t){e=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},function(e,t,n){"use strict";t.a={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"}},function(e,t,n){e.exports=!n(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(9),i=n(106),o=n(37),a=Object.defineProperty;t.f=n(15)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(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){"use strict";var r="object"==typeof Reflect?Reflect:null,u=r&&"function"==typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};var i=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(s,u){return new Promise(function(e,t){function n(e){s.removeListener(u,r),t(e)}function r(){"function"==typeof s.removeListener&&s.removeListener("error",n),e([].slice.call(arguments))}var i,o,a;p(s,u,r,{once:!0}),"error"!==u&&(o=n,a={once:!0},"function"==typeof(i=s).on)&&p(i,"error",o,a)})},(a.EventEmitter=a).prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function d(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o;return l(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener||n),i=e._events),o=i[t]),void 0===o?(o=i[t]=n,++e._eventsCount):("function"==typeof o?o=i[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),0<(i=d(e))&&o.length>i&&!o.warned&&(o.warned=!0,(r=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",r.emitter=e,r.type=t,r.count=o.length,n=r,console)&&console.warn&&console.warn(n)),e}function h(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 f(e,t,n){e=e._events;if(void 0===e)return[];e=e[t];if(void 0===e)return[];if("function"==typeof e)return n?[e.listener||e]:[e];if(n){for(var r=e,i=new Array(r.length),o=0;o<i.length;++o)i[o]=r[o].listener||r[o];return i}return _(e,e.length)}function m(e){var t=this._events;if(void 0!==t){t=t[e];if("function"==typeof t)return 1;if(void 0!==t)return t.length}return 0}function _(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function p(n,r,i,o){if("function"==typeof n.on)o.once?n.once(r,i):n.on(r,i);else{if("function"!=typeof n.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof n);n.addEventListener(r,function e(t){o.once&&n.removeEventListener(r,e),i(t)})}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),a.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},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(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},a.prototype.getMaxListeners=function(){return d(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){if((o=0<t.length?t[0]:o)instanceof Error)throw o;r=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw r.context=o,r}var o=i[e];if(void 0===o)return!1;if("function"==typeof o)u(o,this,t);else for(var a=o.length,s=_(o,a),n=0;n<a;++n)u(s[n],this,t);return!0},a.prototype.on=a.prototype.addListener=function(e,t){return c(this,e,t,!1)},a.prototype.prependListener=function(e,t){return c(this,e,t,!0)},a.prototype.once=function(e,t){return l(t),this.on(e,h(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,h(this,e,t)),this},a.prototype.off=a.prototype.removeListener=function(e,t){var n,r,i,o,a;if(l(t),void 0!==(r=this._events)&&void 0!==(n=r[e]))if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;0<=o;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;if(0===i)n.shift();else{for(var s=n,u=i;u+1<s.length;u++)s[u]=s[u+1];s.pop()}1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.removeAllListeners=function(e){var t,n=this._events;if(void 0!==n)if(void 0===n.removeListener)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]);else if(0===arguments.length){for(var r,i=Object.keys(n),o=0;o<i.length;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0}else if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(o=t.length-1;0<=o;o--)this.removeListener(e,t[o]);return this},a.prototype.listeners=function(e){return f(this,e,!0)},a.prototype.rawListeners=function(e){return f(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},a.prototype.listenerCount=m,a.prototype.eventNames=function(){return 0<this._eventsCount?i(this._events):[]}},function(e,t,n){var r=n(35);e.exports=function(e){return Object(r(e))}},function(e,t,n){var o=n(7),a=n(22),s=n(21),u=n(41)("src"),r=n(285),i="toString",l=(""+r).split(i);n(13).inspectSource=function(e){return r.call(e)},(e.exports=function(e,t,n,r){var i="function"==typeof n;i&&!s(n,"name")&&a(n,"name",t),e[t]!==n&&(i&&!s(n,u)&&a(n,u,e[t]?""+e[t]:l.join(String(t))),e===o?e[t]=n:r?e[t]?e[t]=n:a(e,t,n):(delete e[t],a(e,t,n)))})(Function.prototype,i,function(){return"function"==typeof this&&this[u]||r.call(this)})},function(e,t,n){function r(e,t,n,r){var e=String(a(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+String(r).replace(s,""")+'"'),i+">"+e+"</"+t+">"}var i=n(2),o=n(8),a=n(35),s=/"/g;e.exports=function(t,e){var n={};n[t]=e(r),i(i.P+i.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||3<e.split('"').length}),"String",n)}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(16),i=n(40);e.exports=n(15)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(57),i=n(35);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==i(e)?e:e+""}(r.key),r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"d",function(){return s}),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l}),n.d(t,"c",function(){return d});var s=o(function e(t,n,r,i,o){a(this,e),this.dts=t,this.pts=n,this.duration=r,this.originalDts=i,this.isSyncPoint=o,this.fileposition=null}),u=function(){return o(function e(){a(this,e),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},[{key:"appendSyncPoint",value:function(e){e.isSyncPoint=!0,this.syncPoints.push(e)}}])}(),l=function(){return o(function e(){a(this,e),this._list=[]},[{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,r=0,i=n.length-1,o=0,a=i;for(e<n[0].dts&&(r=0,o=a+1);o<=a;){if((t=o+Math.floor((a-o)/2))===i||e>=n[t].dts&&e<n[t+1].dts){r=t;break}n[t].dts<e?o=t+1:a=t-1}return this._list[r]}}])}(),d=function(){return o(function e(t){a(this,e),this._type=t,this._list=[],this._lastAppendLocation=-1},[{key:"type",get:function(){return this._type}},{key:"length",get:function(){return this._list.length}},{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,r=t.length-1,i=0,o=r,a=0;if(e<t[0].originalBeginDts)return a=-1;for(;i<=o;){if((n=i+Math.floor((o-i)/2))===r||e>t[n].lastSample.originalDts&&e<t[n+1].originalBeginDts){a=n;break}t[n].originalBeginDts<e?i=n+1:o=n-1}return a}},{key:"_searchNearestSegmentAfter",value:function(e){return this._searchNearestSegmentBefore(e)+1}},{key:"append",value:function(e){var t=this._list,n=this._lastAppendLocation,r=0;-1!==n&&n<t.length&&e.originalBeginDts>=t[n].lastSample.originalDts&&(n===t.length-1||n<t.length-1&&e.originalBeginDts<t[n+1].originalBeginDts)?r=n+1:0<t.length&&(r=this._searchNearestSegmentBefore(e.originalBeginDts)+1),this._lastAppendLocation=r,this._list.splice(r,0,e)}},{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}}])}()},function(e,t,n){"use strict";var r=n(8);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var o=n(27);e.exports=function(r,i,e){if(o(r),void 0===i)return r;switch(e){case 1:return function(e){return r.call(i,e)};case 2:return function(e,t){return r.call(i,e,t)};case 3:return function(e,t,n){return r.call(i,e,t,n)}}return function(){return r.apply(i,arguments)}}},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=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(58),i=n(40),o=n(23),a=n(37),s=n(21),u=n(106),l=Object.getOwnPropertyDescriptor;t.f=n(15)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var i=n(2),o=n(13),a=n(8);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],r={};r[e]=t(n),i(i.S+i.F*a(function(){n(1)}),"Object",r)}},function(e,t,n){var g=n(26),w=n(57),b=n(18),M=n(12),r=n(122);e.exports=function(c,e){var h=1==c,f=2==c,m=3==c,_=4==c,p=6==c,y=5==c||p,v=e||r;return function(e,t,n){for(var r,i,o=b(e),a=w(o),s=g(t,n,3),u=M(a.length),l=0,d=h?v(e,u):f?v(e,0):void 0;l<u;l++)if((y||l in a)&&(i=s(r=a[l],l,o),c))if(h)d[l]=i;else if(i)switch(c){case 3:return!0;case 5:return r;case 6:return l;case 2:d.push(r)}else if(_)return!1;return p?-1:m||_?_:d}}},function(e,t,n){var r=n(467),n=n(468),i=n;i.v1=r,i.v4=n,e.exports=i},function(e,t,n){"use strict";var r=n(17),r=n.n(r),i=n(1);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==o(e)?e:e+""}(r.key),r)}}n=function(){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function")}return e=n,r=[{key:"forceGlobalTag",get:function(){return i.a.FORCE_GLOBAL_TAG},set:function(e){i.a.FORCE_GLOBAL_TAG=e,n._notifyChange()}},{key:"globalTag",get:function(){return i.a.GLOBAL_TAG},set:function(e){i.a.GLOBAL_TAG=e,n._notifyChange()}},{key:"enableAll",get:function(){return i.a.ENABLE_VERBOSE&&i.a.ENABLE_DEBUG&&i.a.ENABLE_INFO&&i.a.ENABLE_WARN&&i.a.ENABLE_ERROR},set:function(e){i.a.ENABLE_VERBOSE=e,i.a.ENABLE_DEBUG=e,i.a.ENABLE_INFO=e,i.a.ENABLE_WARN=e,i.a.ENABLE_ERROR=e,n._notifyChange()}},{key:"enableDebug",get:function(){return i.a.ENABLE_DEBUG},set:function(e){i.a.ENABLE_DEBUG=e,n._notifyChange()}},{key:"enableVerbose",get:function(){return i.a.ENABLE_VERBOSE},set:function(e){i.a.ENABLE_VERBOSE=e,n._notifyChange()}},{key:"enableInfo",get:function(){return i.a.ENABLE_INFO},set:function(e){i.a.ENABLE_INFO=e,n._notifyChange()}},{key:"enableWarn",get:function(){return i.a.ENABLE_WARN},set:function(e){i.a.ENABLE_WARN=e,n._notifyChange()}},{key:"enableError",get:function(){return i.a.ENABLE_ERROR},set:function(e){i.a.ENABLE_ERROR=e,n._notifyChange()}},{key:"getConfig",value:function(){return{globalTag:i.a.GLOBAL_TAG,forceGlobalTag:i.a.FORCE_GLOBAL_TAG,enableVerbose:i.a.ENABLE_VERBOSE,enableDebug:i.a.ENABLE_DEBUG,enableInfo:i.a.ENABLE_INFO,enableWarn:i.a.ENABLE_WARN,enableError:i.a.ENABLE_ERROR,enableCallback:i.a.ENABLE_CALLBACK}}},{key:"applyConfig",value:function(e){i.a.GLOBAL_TAG=e.globalTag,i.a.FORCE_GLOBAL_TAG=e.forceGlobalTag,i.a.ENABLE_VERBOSE=e.enableVerbose,i.a.ENABLE_DEBUG=e.enableDebug,i.a.ENABLE_INFO=e.enableInfo,i.a.ENABLE_WARN=e.enableWarn,i.a.ENABLE_ERROR=e.enableError,i.a.ENABLE_CALLBACK=e.enableCallback}},{key:"_notifyChange",value:function(){var e,t=n.emitter;0<t.listenerCount("change")&&(e=n.getConfig(),t.emit("change",e))}},{key:"registerListener",value:function(e){n.emitter.addListener("change",e)}},{key:"removeListener",value:function(e){n.emitter.removeListener("change",e)}},{key:"addLogListener",value:function(e){i.a.emitter.addListener("log",e),0<i.a.emitter.listenerCount("log")&&(i.a.ENABLE_CALLBACK=!0,n._notifyChange())}},{key:"removeLogListener",value:function(e){i.a.emitter.removeListener("log",e),0===i.a.emitter.listenerCount("log")&&(i.a.ENABLE_CALLBACK=!1,n._notifyChange())}}],(t=null)&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();n.emitter=new r.a,t.a=n},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(R,j,e){"use strict";var f,m,_,p,y,H,W,F,v,t,z,g,U,B,N,r,J,w,G,V,q,Z,b,X,K,$,n,i,Q,ee,te,ne,re,ie,M,oe,S,ae,o,se,ue,le,k,L,de,ce,he,fe,me,_e,pe,ye,ve,ge,we,be,Me,Se,ke,Le,Te,De,T,a,D,P,Pe,C,s,E,Ce,Y,Ee,Ye,xe,x,u,c,Ae,A,l,Oe,Ie,Re,je,He,We,Fe,O,ze,d,h,I;e(15)?(f=e(42),m=e(7),_=e(8),p=e(2),y=e(74),s=e(101),H=e(26),W=e(54),F=e(40),v=e(22),t=e(55),z=e(28),g=e(12),U=e(133),B=e(44),N=e(37),r=e(21),J=e(59),w=e(10),G=e(18),V=e(93),q=e(45),Z=e(47),b=e(46).f,X=e(95),K=e(41),$=e(11),n=e(31),l=e(64),i=e(60),d=e(97),Q=e(52),ee=e(67),te=e(53),ne=e(96),re=e(124),ie=e(16),e=e(29),M=ie.f,oe=e.f,S=m.RangeError,ae=m.TypeError,o=m.Uint8Array,ue="Shared"+(se="ArrayBuffer"),le="BYTES_PER_ELEMENT",k="prototype",h=Array[k],L=s.ArrayBuffer,de=s.DataView,ce=n(0),he=n(2),fe=n(3),me=n(4),_e=n(5),pe=n(6),ye=l(!0),ve=l(!1),ge=d.values,we=d.keys,be=d.entries,Me=h.lastIndexOf,Se=h.reduce,ke=h.reduceRight,Le=h.join,Te=h.sort,De=h.slice,T=h.toString,a=h.toLocaleString,D=$("iterator"),P=$("toStringTag"),Pe=K("typed_constructor"),C=K("def_constructor"),s=y.CONSTR,E=y.TYPED,Ce=y.VIEW,Y="Wrong length!",Ee=n(1,function(e,t){return c(i(e,e[C]),t)}),Ye=_(function(){return 1===new o(new Uint16Array([1]).buffer)[0]}),xe=!!o&&!!o[k].set&&_(function(){new o(1).set({})}),x=function(e,t){e=z(e);if(e<0||e%t)throw S("Wrong offset!");return e},u=function(e){if(w(e)&&E in e)return e;throw ae(e+" is not a typed array!")},c=function(e,t){if(w(e)&&Pe in e)return new e(t);throw ae("It is not a typed array constructor!")},Ae=function(e,t){return A(i(e,e[C]),t)},A=function(e,t){for(var n=0,r=t.length,i=c(e,r);n<r;)i[n]=t[n++];return i},l=function(e,t,n){M(e,t,{get:function(){return this._d[n]}})},Oe=function(e){var t,n,r,i,o,a,s=G(e),e=arguments.length,u=1<e?arguments[1]:void 0,l=void 0!==u,d=X(s);if(null!=d&&!V(d)){for(a=d.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(l&&2<e&&(u=H(u,arguments[2],2)),t=0,n=g(s.length),i=c(this,n);t<n;t++)i[t]=l?u(s[t],t):s[t];return i},Ie=function(){for(var e=0,t=arguments.length,n=c(this,t);e<t;)n[e]=arguments[e++];return n},Re=!!o&&_(function(){a.call(new o(1))}),je=function(){return a.apply(Re?De.call(u(this)):u(this),arguments)},He={copyWithin:function(e,t){return re.call(u(this),e,t,2<arguments.length?arguments[2]:void 0)},every:function(e){return me(u(this),e,1<arguments.length?arguments[1]:void 0)},fill:function(e){return ne.apply(u(this),arguments)},filter:function(e){return Ae(this,he(u(this),e,1<arguments.length?arguments[1]:void 0))},find:function(e){return _e(u(this),e,1<arguments.length?arguments[1]:void 0)},findIndex:function(e){return pe(u(this),e,1<arguments.length?arguments[1]:void 0)},forEach:function(e){ce(u(this),e,1<arguments.length?arguments[1]:void 0)},indexOf:function(e){return ve(u(this),e,1<arguments.length?arguments[1]:void 0)},includes:function(e){return ye(u(this),e,1<arguments.length?arguments[1]:void 0)},join:function(e){return Le.apply(u(this),arguments)},lastIndexOf:function(e){return Me.apply(u(this),arguments)},map:function(e){return Ee(u(this),e,1<arguments.length?arguments[1]:void 0)},reduce:function(e){return Se.apply(u(this),arguments)},reduceRight:function(e){return ke.apply(u(this),arguments)},reverse:function(){for(var e,t=this,n=u(t).length,r=Math.floor(n/2),i=0;i<r;)e=t[i],t[i++]=t[--n],t[n]=e;return t},some:function(e){return fe(u(this),e,1<arguments.length?arguments[1]:void 0)},sort:function(e){return Te.call(u(this),e)},subarray:function(e,t){var n=u(this),r=n.length,e=B(e,r);return new(i(n,n[C]))(n.buffer,n.byteOffset+e*n.BYTES_PER_ELEMENT,g((void 0===t?r:B(t,r))-e))}},We=function(e,t){return Ae(this,De.call(u(this),e,t))},Fe=function(e){u(this);var t=x(arguments[1],1),n=this.length,r=G(e),i=g(r.length),o=0;if(n<i+t)throw S(Y);for(;o<i;)this[t+o]=r[o++]},O={entries:function(){return be.call(u(this))},keys:function(){return we.call(u(this))},values:function(){return ge.call(u(this))}},ze=function(e,t){return w(e)&&e[E]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},d=function(e,t){return ze(e,t=N(t,!0))?F(2,e[t]):oe(e,t)},h=function(e,t,n){return!(ze(e,t=N(t,!0))&&w(n)&&r(n,"value"))||r(n,"get")||r(n,"set")||n.configurable||r(n,"writable")&&!n.writable||r(n,"enumerable")&&!n.enumerable?M(e,t,n):(e[t]=n.value,e)},s||(e.f=d,ie.f=h),p(p.S+p.F*!s,"Object",{getOwnPropertyDescriptor:d,defineProperty:h}),_(function(){T.call({})})&&(T=a=function(){return Le.call(this)}),I=t({},He),t(I,O),v(I,D,O.values),t(I,{slice:We,set:Fe,constructor:function(){},toString:T,toLocaleString:je}),l(I,"buffer","b"),l(I,"byteOffset","o"),l(I,"byteLength","l"),l(I,"length","e"),M(I,P,{get:function(){return this[E]}}),R.exports=function(e,l,t,i){function d(e,r){M(e,r,{get:function(){var e=this,t=r;return(e=e._d).v[n](t*l+e.o,Ye)},set:function(e){var t=this,n=r;t=t._d,i&&(e=(e=Math.round(e))<0?0:255<e?255:255&e),t.v[o](n*l+t.o,e,Ye)},enumerable:!0})}var c=e+((i=!!i)?"Clamped":"")+"Array",n="get"+e,o="set"+e,h=m[c],a=h||{},e=h&&Z(h),r=!h||!y.ABV,s={},u=h&&h[k],r=(r?(h=t(function(e,t,n,r){W(e,h,c,"_d");var i,o,a=0,s=0;if(w(t)){if(!(t instanceof L||(u=J(t))==se||u==ue))return E in t?A(h,t):Oe.call(h,t);var u=t,s=x(n,l),n=t.byteLength;if(void 0===r){if(n%l)throw S(Y);if((i=n-s)<0)throw S(Y)}else if(n<(i=g(r)*l)+s)throw S(Y);o=i/l}else o=U(t),u=new L(i=o*l);for(v(e,"_d",{b:u,o:s,l:i,e:o,v:new de(u)});a<o;)d(e,a++)}),u=h[k]=q(I),v(u,"constructor",h)):_(function(){h(1)})&&_(function(){new h(-1)})&&ee(function(e){new h,new h(null),new h(1.5),new h(e)},!0)||(h=t(function(e,t,n,r){return W(e,h,c),w(t)?t instanceof L||(e=J(t))==se||e==ue?void 0!==r?new a(t,x(n,l),r):void 0!==n?new a(t,x(n,l)):new a(t):E in t?A(h,t):Oe.call(h,t):new a(U(t))}),ce(e!==Function.prototype?b(a).concat(b(e)):b(a),function(e){e in h||v(h,e,a[e])}),h[k]=u,f)||(u.constructor=h),u[D]),t=!!r&&("values"==r.name||null==r.name),e=O.values;v(h,Pe,!0),v(u,E,c),v(u,Ce,!0),v(u,C,h),(i?new h(1)[P]==c:P in u)||M(u,P,{get:function(){return c}}),s[c]=h,p(p.G+p.W+p.F*(h!=a),s),p(p.S,c,{BYTES_PER_ELEMENT:l}),p(p.S+p.F*_(function(){a.of.call(h,1)}),c,{from:Oe,of:Ie}),le in u||v(u,le,l),p(p.P,c,He),te(c),p(p.P+p.F*xe,c,{set:Fe}),p(p.P+p.F*!t,c,O),f||u.toString==T||(u.toString=T),p(p.P+p.F*_(function(){new h(1).slice()}),c,{slice:We}),p(p.P+p.F*(_(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!_(function(){u.toLocaleString.call([1,2])})),c,{toLocaleString:je}),Q[c]=t?r:e,f||t||v(u,D,e)}):R.exports=function(){}},function(e,t,n){var i=n(10);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e))||"function"==typeof(n=e.valueOf)&&!i(r=n.call(e))||!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){function r(e){s(e,i,{value:{i:"O"+ ++u,w:{}}})}var i=n(41)("meta"),o=n(10),a=n(21),s=n(16).f,u=0,l=Object.isExtensible||function(){return!0},d=!n(8)(function(){return l(Object.preventExtensions({}))}),c=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,i)){if(!l(e))return"F";if(!t)return"E";r(e)}return e[i].i},getWeak:function(e,t){if(!a(e,i)){if(!l(e))return!0;if(!t)return!1;r(e)}return e[i].w},onFreeze:function(e){return d&&c.NEED&&l(e)&&!a(e,i)&&r(e),e}}},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==i(e)?e:e+""}(r.key),r)}}var r=function(){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");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}return t=e,(n=[{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){var t;return null==this.keyframesIndex?null:(t=this.keyframesIndex,{index:e=this._search(t.times,e),milliseconds:t.times[e],fileposition:t.filepositions[e]})}},{key:"_search",value:function(e,t){var n,r=0,i=e.length-1,o=0,a=i;for(t<e[0]&&(r=0,o=a+1);o<=a;){if((n=o+Math.floor((a-o)/2))===i||t>=e[n]&&t<e[n+1]){r=n;break}e[n]<t?o=n+1:a=n-1}return r}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();t.a=r},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=!1},function(e,t,n){var r=n(108),i=n(80);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(28),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t,n){function r(){}var i=n(9),o=n(109),a=n(80),s=n(79)("IE_PROTO"),u="prototype",l=function(){var e=n(77)("iframe"),t=a.length;for(e.style.display="none",n(81).appendChild(e),e.src="javascript:",(e=e.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;t--;)delete l[u][a[t]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(r[u]=i(e),n=new r,r[u]=null,n[s]=e):n=l(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(108),i=n(80).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(21),i=n(18),o=n(79)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(11)("unscopables"),i=Array.prototype;null==i[r]&&n(22)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){var r=n(10);e.exports=function(e,t){if(r(e)&&e._t===t)return e;throw TypeError("Incompatible receiver, "+t+" required!")}},function(e,t,n){var r=n(16).f,i=n(21),o=n(11)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){function r(e,t,n){var r={},i=a(function(){return!!s[e]()||"
"!="
"[e]()}),t=r[e]=i?t(d):s[e];n&&(r[n]=t),o(o.P+o.F*i,"String",r)}var o=n(2),i=n(35),a=n(8),s=n(83),n="["+s+"]",u=RegExp("^"+n+n+"*"),l=RegExp(n+n+"*$"),d=r.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),e=2&t?e.replace(l,""):e};e.exports=r},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(7),i=n(16),o=n(15),a=n(11)("species");e.exports=function(e){e=r[e];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var i=n(19);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},function(ur,lr,e){var dr;
- /*!
- * jQuery JavaScript Library v3.7.1
- * https://jquery.com/
- *
- * Copyright OpenJS Foundation and other contributors
- * Released under the MIT license
- * https://jquery.org/license
- *
- * Date: 2023-08-28T13:37Z
- */
- !function(e,t){"use strict";"object"==typeof ur.exports?ur.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(b,R){"use strict";function v(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item}function j(e){return null!=e&&e===e.window}var t=[],H=Object.getPrototypeOf,s=t.slice,W=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},F=t.push,g=t.indexOf,z={},U=z.toString,B=z.hasOwnProperty,N=B.toString,J=N.call(Object),_={},M=b.document,G={type:!0,src:!0,nonce:!0,noModule:!0};function V(e,t,n){var r,i,o=(n=n||M).createElement("script");if(o.text=e,t)for(r in G)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function q(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?z[U.call(e)]||"object":typeof e}var Z=/HTML$/i,S=function(e,t){return new S.fn.init(e,t)};function X(e){var t=!!e&&"length"in e&&e.length,n=q(e);return!v(e)&&!j(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function w(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}S.fn=S.prototype={jquery:"3.7.1",constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){e=S.merge(this.constructor(),e);return e.prevObject=this,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(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},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:F,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o=arguments[0]||{},a=1,s=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[a]||{},a++),"object"==typeof o||v(o)||(o={}),a===s&&(o=this,a--);a<s;a++)if(null!=(e=arguments[a]))for(t in e)n=e[t],"__proto__"!==t&&o!==n&&(u&&n&&(S.isPlainObject(n)||(r=Array.isArray(n)))?(i=o[t],i=r&&!Array.isArray(i)?[]:r||S.isPlainObject(i)?i:{},r=!1,o[t]=S.extend(u,i,n)):void 0!==n&&(o[t]=n));return o},S.extend({expando:"jQuery"+("3.7.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){return!(!e||"[object Object]"!==U.call(e)||(e=H(e))&&("function"!=typeof(e=B.call(e,"constructor")&&e.constructor)||N.call(e)!==J))},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,n){V(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(X(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=S.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){t=t||[];return null!=e&&(X(Object(e))?S.merge(t,"string"==typeof e?[e]:e):F.call(t,e)),t},inArray:function(e,t,n){return null==t?-1:g.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,e=e&&(e.ownerDocument||e).documentElement;return!Z.test(t||e&&e.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!=a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(X(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return W(a)},guid:1,support:_}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){z["[object "+t+"]"]=t.toLowerCase()});var K=t.pop,$=t.sort,Q=t.splice,n="[\\x20\\t\\r\\n\\f]",ee=new RegExp("^"+n+"+|((?:^|[^\\\\])(?:\\\\.)*)"+n+"+$","g"),te=(S.contains=function(e,t){t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(e.contains?e.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))},/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g);function ne(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}S.escapeSelector=function(e){return(e+"").replace(te,ne)};var re,k,ie,oe,ae,L,r,T,h,se,i=M,ue=F,D=ue,P=S.expando,C=0,le=0,de=Ce(),ce=Ce(),he=Ce(),fe=Ce(),me=function(e,t){return e===t&&(ae=!0),0},_e="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",e="(?:\\\\[\\da-fA-F]{1,6}"+n+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",o="\\["+n+"*("+e+")(?:"+n+"*([*^$|!~]?=)"+n+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+n+"*\\]",a=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+o+")*)|.*)\\)|)",pe=new RegExp(n+"+","g"),ye=new RegExp("^"+n+"*,"+n+"*"),ve=new RegExp("^"+n+"*([>+~]|"+n+")"+n+"*"),ge=new RegExp(n+"|>"),we=new RegExp(a),be=new RegExp("^"+e+"$"),Me={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+o),PSEUDO:new RegExp("^"+a),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+n+"*(even|odd|(([+-]|)(\\d*)n|)"+n+"*(?:([+-]|)"+n+"*(\\d+)|))"+n+"*\\)|)","i"),bool:new RegExp("^(?:"+_e+")$","i"),needsContext:new RegExp("^"+n+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+n+"*((?:-\\d)?\\d*)"+n+"*\\)|)(?=[^-]|$)","i")},Se=/^(?:input|select|textarea|button)$/i,ke=/^h\d$/i,Le=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Te=/[+~]/,c=new RegExp("\\\\[\\da-fA-F]{1,6}"+n+"?|\\\\([^\\r\\n\\f])","g"),f=function(e,t){e="0x"+e.slice(1)-65536;return t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))},De=function(){Oe()},Pe=He(function(e){return!0===e.disabled&&w(e,"fieldset")},{dir:"parentNode",next:"legend"});try{D.apply(t=s.call(i.childNodes),i.childNodes),t[i.childNodes.length].nodeType}catch(e){D={apply:function(e,t){ue.apply(e,s.call(t))},call:function(e){ue.apply(e,s.call(arguments,1))}}}function E(t,e,n,r){var i,o,a,s,u,l,d=e&&e.ownerDocument,c=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==c&&9!==c&&11!==c)return n;if(!r&&(Oe(e),e=e||L,T)){if(11!==c&&(s=Le.exec(t)))if(i=s[1]){if(9===c){if(!(l=e.getElementById(i)))return n;if(l.id===i)return D.call(n,l),n}else if(d&&(l=d.getElementById(i))&&E.contains(e,l)&&l.id===i)return D.call(n,l),n}else{if(s[2])return D.apply(n,e.getElementsByTagName(t)),n;if((i=s[3])&&e.getElementsByClassName)return D.apply(n,e.getElementsByClassName(i)),n}if(!(fe[t+" "]||h&&h.test(t))){if(l=t,d=e,1===c&&(ge.test(t)||ve.test(t))){for((d=Te.test(t)&&Ae(e.parentNode)||e)==e&&_.scope||((a=e.getAttribute("id"))?a=S.escapeSelector(a):e.setAttribute("id",a=P)),o=(u=Re(t)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+je(u[o]);l=u.join(",")}try{return D.apply(n,d.querySelectorAll(l)),n}catch(e){fe(t,!0)}finally{a===P&&e.removeAttribute("id")}}}return Ne(t.replace(ee,"$1"),e,n,r)}function Ce(){var n=[];function r(e,t){return n.push(e+" ")>k.cacheLength&&delete r[n.shift()],r[e+" "]=t}return r}function u(e){return e[P]=!0,e}function Ee(e){var t=L.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function Ye(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Pe(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function xe(a){return u(function(o){return o=+o,u(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function Ae(e){return e&&void 0!==e.getElementsByTagName&&e}function Oe(e){var e=e?e.ownerDocument||e:i;return e!=L&&9===e.nodeType&&e.documentElement&&(r=(L=e).documentElement,T=!S.isXMLDoc(L),se=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&i!=L&&(e=L.defaultView)&&e.top!==e&&e.addEventListener("unload",De),_.getById=Ee(function(e){return r.appendChild(e).id=S.expando,!L.getElementsByName||!L.getElementsByName(S.expando).length}),_.disconnectedMatch=Ee(function(e){return se.call(e,"*")}),_.scope=Ee(function(){return L.querySelectorAll(":scope")}),_.cssHas=Ee(function(){try{L.querySelector(":has(*,:jqfake)")}catch(e){return 1}}),_.getById?(k.filter.ID=function(e){var t=e.replace(c,f);return function(e){return e.getAttribute("id")===t}},k.find.ID=function(e,t){if(void 0!==t.getElementById&&T)return(t=t.getElementById(e))?[t]:[]}):(k.filter.ID=function(e){var t=e.replace(c,f);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},k.find.ID=function(e,t){if(void 0!==t.getElementById&&T){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),k.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},k.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&T)return t.getElementsByClassName(e)},h=[],Ee(function(e){var t;r.appendChild(e).innerHTML="<a id='"+P+"' href='' disabled='disabled'></a><select id='"+P+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+n+"*(?:value|"+_e+")"),e.querySelectorAll("[id~="+P+"-]").length||h.push("~="),e.querySelectorAll("a#"+P+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=L.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=L.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+n+"*name"+n+"*="+n+"*(?:''|\"\")")}),_.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),me=function(e,t){var n;return e===t?(ae=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!_.sortDetached&&t.compareDocumentPosition(e)===n?e===L||e.ownerDocument==i&&E.contains(i,e)?-1:t===L||t.ownerDocument==i&&E.contains(i,t)?1:oe?g.call(oe,e)-g.call(oe,t):0:4&n?-1:1)}),L}for(re in E.matches=function(e,t){return E(e,null,null,t)},E.matchesSelector=function(e,t){if(Oe(e),T&&!fe[t+" "]&&(!h||!h.test(t)))try{var n=se.call(e,t);if(n||_.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){fe(t,!0)}return 0<E(t,L,null,[e]).length},E.contains=function(e,t){return(e.ownerDocument||e)!=L&&Oe(e),S.contains(e,t)},E.attr=function(e,t){(e.ownerDocument||e)!=L&&Oe(e);var n=k.attrHandle[t.toLowerCase()],n=n&&B.call(k.attrHandle,t.toLowerCase())?n(e,t,!T):void 0;return void 0!==n?n:e.getAttribute(t)},E.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},S.uniqueSort=function(e){var t,n=[],r=0,i=0;if(ae=!_.sortStable,oe=!_.sortStable&&s.call(e,0),$.call(e,me),ae){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)Q.call(e,n[r],1)}return oe=null,e},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(s.apply(this)))},(k=S.expr={cacheLength:50,createPseudo:u,match:Me,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(c,f),e[3]=(e[3]||e[4]||e[5]||"").replace(c,f),"~="===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]||E.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]&&E.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Me.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&we.test(n)&&(t=(t=Re(n,!0))&&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(c,f).toLowerCase();return"*"===e?function(){return!0}:function(e){return w(e,t)}},CLASS:function(e){var t=de[e+" "];return t||(t=new RegExp("(^|"+n+")"+e+"("+n+"|$)"))&&de(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(e){e=E.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===r:"!="===n?e!==r:"^="===n?r&&0===e.indexOf(r):"*="===n?r&&-1<e.indexOf(r):"$="===n?r&&e.slice(-r.length)===r:"~="===n?-1<(" "+e.replace(pe," ")+" ").indexOf(r):"|="===n&&(e===r||e.slice(0,r.length+1)===r+"-"))}},CHILD:function(f,e,t,m,_){var p="nth"!==f.slice(0,3),y="last"!==f.slice(-4),v="of-type"===e;return 1===m&&0===_?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=p!=y?"nextSibling":"previousSibling",l=e.parentNode,d=v&&e.nodeName.toLowerCase(),c=!n&&!v,h=!1;if(l){if(p){for(;u;){for(o=e;o=o[u];)if(v?w(o,d):1===o.nodeType)return!1;s=u="only"===f&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&c){for(h=(a=(r=(i=l[P]||(l[P]={}))[f]||[])[0]===C&&r[1])&&r[2],o=a&&l.childNodes[a];o=++a&&o&&o[u]||(h=a=0,s.pop());)if(1===o.nodeType&&++h&&o===e){i[f]=[C,a,h];break}}else if(!1===(h=c?a=(r=(i=e[P]||(e[P]={}))[f]||[])[0]===C&&r[1]:h))for(;(o=++a&&o&&o[u]||(h=a=0,s.pop()))&&((v?!w(o,d):1!==o.nodeType)||!++h||(c&&((i=o[P]||(o[P]={}))[f]=[C,h]),o!==e)););return(h-=_)===m||h%m==0&&0<=h/m}}},PSEUDO:function(e,o){var t,a=k.pseudos[e]||k.setFilters[e.toLowerCase()]||E.error("unsupported pseudo: "+e);return a[P]?a(o):1<a.length?(t=[e,e,"",o],k.setFilters.hasOwnProperty(e.toLowerCase())?u(function(e,t){for(var n,r=a(e,o),i=r.length;i--;)e[n=g.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:u(function(e){var r=[],i=[],s=Be(e.replace(ee,"$1"));return s[P]?u(function(e,t,n,r){for(var i,o=s(e,null,r,[]),a=e.length;a--;)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:u(function(t){return function(e){return 0<E(t,e).length}}),contains:u(function(t){return t=t.replace(c,f),function(e){return-1<(e.textContent||S.text(e)).indexOf(t)}}),lang:u(function(n){return be.test(n||"")||E.error("unsupported lang: "+n),n=n.replace(c,f).toLowerCase(),function(e){var t;do{if(t=T?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=b.location&&b.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return L.activeElement}catch(e){}}()&&L.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:Ye(!1),disabled:Ye(!0),checked:function(e){return w(e,"input")&&!!e.checked||w(e,"option")&&!!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!k.pseudos.empty(e)},header:function(e){return ke.test(e.nodeName)},input:function(e){return Se.test(e.nodeName)},button:function(e){return w(e,"input")&&"button"===e.type||w(e,"button")},text:function(e){return w(e,"input")&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:xe(function(){return[0]}),last:xe(function(e,t){return[t-1]}),eq:xe(function(e,t,n){return[n<0?n+t:n]}),even:xe(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:xe(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:xe(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:xe(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=k.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[re]=function(t){return function(e){return w(e,"input")&&e.type===t}}(re);for(re in{submit:!0,reset:!0})k.pseudos[re]=function(t){return function(e){return(w(e,"input")||w(e,"button"))&&e.type===t}}(re);function Ie(){}function Re(e,t){var n,r,i,o,a,s,u,l=ce[e+" "];if(l)return t?0:l.slice(0);for(a=e,s=[],u=k.preFilter;a;){for(o in n&&!(r=ye.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=ve.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ee," ")}),a=a.slice(n.length)),k.filter)!(r=Me[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?E.error(e):ce(e,s).slice(0)}function je(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function He(a,e,t){var s=e.dir,u=e.next,l=u||s,d=t&&"parentNode"===l,c=le++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||d)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[C,c];if(n){for(;e=e[s];)if((1===e.nodeType||d)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||d)if(i=e[P]||(e[P]={}),u&&w(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===C&&r[1]===c)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function We(i){return 1<i.length?function(e,t,n){for(var r=i.length;r--;)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Fe(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)!(o=e[s])||n&&!n(o,r,i)||(a.push(o),l&&t.push(s));return a}function ze(f,m,_,p,y,e){return p&&!p[P]&&(p=ze(p)),y&&!y[P]&&(y=ze(y,e)),u(function(e,t,n,r){var i,o,a,s,u=[],l=[],d=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)E(e,t[r],n);return n}(m||"*",n.nodeType?[n]:n,[]),h=!f||!e&&m?c:Fe(c,u,f,n,r);if(_?_(h,s=y||(e?f:d||p)?[]:t,n,r):s=h,p)for(i=Fe(s,l),p(i,[],n,r),o=i.length;o--;)(a=i[o])&&(s[l[o]]=!(h[l[o]]=a));if(e){if(y||f){if(y){for(i=[],o=s.length;o--;)(a=s[o])&&i.push(h[o]=a);y(null,s=[],i,r)}for(o=s.length;o--;)(a=s[o])&&-1<(i=y?g.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Fe(s===t?s.splice(d,s.length):s),y?y(null,t,s,r):D.apply(t,s)})}function Ue(p,y){function e(e,t,n,r,i){var o,a,s,u=0,l="0",d=e&&[],c=[],h=ie,f=e||g&&k.find.TAG("*",i),m=C+=null==h?1:Math.random()||.1,_=f.length;for(i&&(ie=t==L||t||i);l!==_&&null!=(o=f[l]);l++){if(g&&o){for(a=0,t||o.ownerDocument==L||(Oe(o),n=!T);s=p[a++];)if(s(o,t||L,n)){D.call(r,o);break}i&&(C=m)}v&&((o=!s&&o)&&u--,e)&&d.push(o)}if(u+=l,v&&l!==u){for(a=0;s=y[a++];)s(d,c,t,n);if(e){if(0<u)for(;l--;)d[l]||c[l]||(c[l]=K.call(r));c=Fe(c)}D.apply(r,c),i&&!e&&0<c.length&&1<u+y.length&&S.uniqueSort(r)}return i&&(C=m,ie=h),d}var v=0<y.length,g=0<p.length;return v?u(e):e}function Be(e,t){var n,r=[],i=[],o=he[e+" "];if(!o){for(n=(t=t||Re(e)).length;n--;)((o=function e(t){for(var r,n,i,o=t.length,a=k.relative[t[0].type],s=a||k.relative[" "],u=a?1:0,l=He(function(e){return e===r},s,!0),d=He(function(e){return-1<g.call(r,e)},s,!0),c=[function(e,t,n){return e=!a&&(n||t!=ie)||((r=t).nodeType?l:d)(e,t,n),r=null,e}];u<o;u++)if(n=k.relative[t[u].type])c=[He(We(c),n)];else{if((n=k.filter[t[u].type].apply(null,t[u].matches))[P]){for(i=++u;i<o&&!k.relative[t[i].type];i++);return ze(1<u&&We(c),1<u&&je(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(ee,"$1"),n,u<i&&e(t.slice(u,i)),i<o&&e(t=t.slice(i)),i<o&&je(t))}c.push(n)}return We(c)}(t[n]))[P]?r:i).push(o);(o=he(e,Ue(i,r))).selector=e}return o}function Ne(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,d=!r&&Re(e=l.selector||e);if(n=n||[],1===d.length){if(2<(o=d[0]=d[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&T&&k.relative[o[1].type]){if(!(t=(k.find.ID(a.matches[0].replace(c,f),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=Me.needsContext.test(e)?0:o.length;i--&&(a=o[i],!k.relative[s=a.type]);)if((u=k.find[s])&&(r=u(a.matches[0].replace(c,f),Te.test(o[0].type)&&Ae(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&je(o))break;return D.apply(n,r),n}}return(l||Be(e,d))(r,t,!T,n,!t||Te.test(e)&&Ae(t.parentNode)||t),n}Ie.prototype=k.filters=k.pseudos,k.setFilters=new Ie,_.sortStable=P.split("").sort(me).join("")===P,Oe(),_.sortDetached=Ee(function(e){return 1&e.compareDocumentPosition(L.createElement("fieldset"))}),S.find=E,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,E.compile=Be,E.select=Ne,E.setDocument=Oe,E.tokenize=Re,E.escape=S.escapeSelector,E.getText=S.text,E.isXML=S.isXMLDoc,E.selectors=S.expr,E.support=S.support,E.uniqueSort=S.uniqueSort;function Je(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r}function Ge(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var Ve=S.expr.match.needsContext,qe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Ze(e,n,r){return v(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1<g.call(n,e)!==r}):S.filter(n,e,r)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return 1<r?S.uniqueSort(n):n},filter:function(e){return this.pushStack(Ze(this,e||[],!1))},not:function(e){return this.pushStack(Ze(this,e||[],!0))},is:function(e){return!!Ze(this,"string"==typeof e&&Ve.test(e)?S(e):e||[],!1).length}});var Xe,Ke=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,$e=((S.fn.init=function(e,t,n){if(e){if(n=n||Xe,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this);if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:Ke.exec(e))||!r[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:M,!0)),qe.test(r[1])&&S.isPlainObject(t))for(var r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r])}else(n=M.getElementById(r[2]))&&(this[0]=n,this.length=1)}return this}).prototype=S.fn,Xe=S(M),/^(?:parents|prev(?:Until|All))/),Qe={children:!0,contents:!0,next:!0,prev:!0};function et(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!Ve.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?g.call(S(e),this[0]):g.call(this,e.jquery?e[0]:e):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 Je(e,"parentNode")},parentsUntil:function(e,t,n){return Je(e,"parentNode",n)},next:function(e){return et(e,"nextSibling")},prev:function(e){return et(e,"previousSibling")},nextAll:function(e){return Je(e,"nextSibling")},prevAll:function(e){return Je(e,"previousSibling")},nextUntil:function(e,t,n){return Je(e,"nextSibling",n)},prevUntil:function(e,t,n){return Je(e,"previousSibling",n)},siblings:function(e){return Ge((e.parentNode||{}).firstChild,e)},children:function(e){return Ge(e.firstChild)},contents:function(e){return null!=e.contentDocument&&H(e.contentDocument)?e.contentDocument:(w(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(r,i){S.fn[r]=function(e,t){var n=S.map(this,i,e);return(t="Until"!==r.slice(-5)?e:t)&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(Qe[r]||S.uniqueSort(n),$e.test(r))&&n.reverse(),this.pushStack(n)}});var Y=/[^\x20\t\r\n\f]+/g;function tt(e){return e}function nt(e){throw e}function rt(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},S.each(e.match(Y)||[],function(e,t){n[t]=!0}),n):S.extend({},r);function i(){for(s=s||r.once,a=o=!0;l.length;d=-1)for(t=l.shift();++d<u.length;)!1===u[d].apply(t[0],t[1])&&r.stopOnFalse&&(d=u.length,t=!1);r.memory||(t=!1),o=!1,s&&(u=t?[]:"")}var o,t,a,s,u=[],l=[],d=-1,c={add:function(){return u&&(t&&!o&&(d=u.length-1,l.push(t)),function n(e){S.each(e,function(e,t){v(t)?r.unique&&c.has(t)||u.push(t):t&&t.length&&"string"!==q(t)&&n(t)})}(arguments),t)&&!o&&i(),this},remove:function(){return S.each(arguments,function(e,t){for(var n;-1<(n=S.inArray(t,u,n));)u.splice(n,1),n<=d&&d--}),this},has:function(e){return e?-1<S.inArray(e,u):0<u.length},empty:function(){return u=u&&[],this},disable:function(){return s=l=[],u=t="",this},disabled:function(){return!u},lock:function(){return s=l=[],t||o||(u=t=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),o)||i(),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!a}};return c},S.extend({Deferred:function(e){var o=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var i=arguments;return S.Deferred(function(r){S.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){function e(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,tt,s),l(u,o,nt,s)):(u++,t.call(e,l(u,o,tt,s),l(u,o,nt,s),l(u,o,tt,o.notifyWith))):(a!==tt&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}}var n=this,r=arguments,t=s?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==nt&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(S.Deferred.getErrorHook?t.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(t.error=S.Deferred.getStackHook()),b.setTimeout(t))}}return S.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:tt,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:tt)),o[2][3].add(l(0,e,v(n)?n:nt))}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return S.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){function t(t){return function(e){i[t]=this,o[t]=1<arguments.length?s.call(arguments):e,--n||a.resolveWith(i,o)}}var n=arguments.length,r=n,i=Array(r),o=s.call(arguments),a=S.Deferred();if(n<=1&&(rt(e,a.done(t(r)).resolve,a.reject,!n),"pending"===a.state()||v(o[r]&&o[r].then)))return a.then();for(;r--;)rt(o[r],t(r),a.reject);return a.promise()}});var it=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,ot=(S.Deferred.exceptionHook=function(e,t){b.console&&b.console.warn&&e&&it.test(e.name)&&b.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){b.setTimeout(function(){throw e})},S.Deferred());function at(){M.removeEventListener("DOMContentLoaded",at),b.removeEventListener("load",at),S.ready()}S.fn.ready=function(e){return ot.then(e).catch(function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||ot.resolveWith(M,[S])}}),S.ready.then=ot.then,"complete"===M.readyState||"loading"!==M.readyState&&!M.documentElement.doScroll?b.setTimeout(S.ready):(M.addEventListener("DOMContentLoaded",at),b.addEventListener("load",at));function d(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===q(n))for(s in i=!0,n)d(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),t=l?a?(t.call(e,r),null):(l=t,function(e,t,n){return l.call(S(e),n)}):t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o}var st=/^-ms-/,ut=/-([a-z])/g;function lt(e,t){return t.toUpperCase()}function x(e){return e.replace(st,"ms-").replace(ut,lt)}function dt(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function ct(){this.expando=S.expando+ct.uid++}ct.uid=1,ct.prototype={cache:function(e){var t=e[this.expando];return t||(t={},dt(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[x(t)]=n;else for(r in t)i[x(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][x(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(x):(t=x(t))in r?[t]:t.match(Y)||[]).length;for(;n--;)delete r[t[n]]}void 0!==t&&!S.isEmptyObject(r)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!S.isEmptyObject(e)}};var y=new ct,l=new ct,ht=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ft=/[A-Z]/g;function mt(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ft,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:ht.test(i)?JSON.parse(i):i)}catch(e){}l.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return l.hasData(e)||y.hasData(e)},data:function(e,t,n){return l.access(e,t,n)},removeData:function(e,t){l.remove(e,t)},_data:function(e,t,n){return y.access(e,t,n)},_removeData:function(e,t){y.remove(e,t)}}),S.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){l.set(this,n)}):d(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=l.get(o,n))||void 0!==(t=mt(o,n))?t:void 0;this.each(function(){l.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(i=l.get(o),1===o.nodeType)&&!y.get(o,"hasDataAttrs")){for(t=a.length;t--;)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=x(r.slice(5)),mt(o,r,i[r]));y.set(o,"hasDataAttrs",!0)}return i},removeData:function(e){return this.each(function(){l.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return r=y.get(e,t=(t||"fx")+"queue"),n&&(!r||Array.isArray(n)?r=y.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return y.get(e,n)||y.access(e,n,{empty:S.Callbacks("once memory").add(function(){y.remove(e,[t+"queue",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(){--i||o.resolveWith(a,[a])}var r,i=1,o=S.Deferred(),a=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(r=y.get(a[s],e+"queueHooks"))&&r.empty&&(i++,r.empty.add(n));return n(),o.promise(t)}});function _t(e,t){return"none"===(e=t||e).style.display||""===e.style.display&>(e)&&"none"===S.css(e,"display")}var e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pt=new RegExp("^(?:([+-])=|)("+e+")([a-z%]*)$","i"),yt=["Top","Right","Bottom","Left"],vt=M.documentElement,gt=function(e){return S.contains(e.ownerDocument,e)},wt={composed:!0};vt.getRootNode&&(gt=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(wt)===e.ownerDocument});function bt(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},u=s(),l=n&&n[3]||(S.cssNumber[t]?"":"px"),d=e.nodeType&&(S.cssNumber[t]||"px"!==l&&+u)&&pt.exec(S.css(e,t));if(d&&d[3]!==l){for(l=l||d[3],d=+(u/=2)||1;a--;)S.style(e,t,d+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),d/=o;S.style(e,t,(d*=2)+l),n=n||[]}return n&&(d=+d||+u||0,i=n[1]?d+(n[1]+1)*n[2]:+n[2],r)&&(r.unit=l,r.start=d,r.end=i),i}var Mt={};function St(e,t){for(var n,r,i,o,a,s=[],u=0,l=e.length;u<l;u++)(r=e[u]).style&&(n=r.style.display,t?("none"===n&&(s[u]=y.get(r,"display")||null,s[u]||(r.style.display="")),""===r.style.display&&_t(r)&&(s[u]=(a=o=void 0,o=(i=r).ownerDocument,i=i.nodeName,(a=Mt[i])||(o=o.body.appendChild(o.createElement(i)),a=S.css(o,"display"),o.parentNode.removeChild(o),Mt[i]=a="none"===a?"block":a),a))):"none"!==n&&(s[u]="none",y.set(r,"display",n)));for(u=0;u<l;u++)null!=s[u]&&(e[u].style.display=s[u]);return e}S.fn.extend({show:function(){return St(this,!0)},hide:function(){return St(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){_t(this)?S(this).show():S(this).hide()})}});var kt=/^(?:checkbox|radio)$/i,Lt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Tt=/^$|^module$|\/(?:java|ecma)script/i,m=(o=M.createDocumentFragment().appendChild(M.createElement("div")),(a=M.createElement("input")).setAttribute("type","radio"),a.setAttribute("checked","checked"),a.setAttribute("name","t"),o.appendChild(a),_.checkClone=o.cloneNode(!0).cloneNode(!0).lastChild.checked,o.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!o.cloneNode(!0).lastChild.defaultValue,o.innerHTML="<option></option>",_.option=!!o.lastChild,{thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]});function p(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&w(e,t)?S.merge([e],n):n}function Dt(e,t){for(var n=0,r=e.length;n<r;n++)y.set(e[n],"globalEval",!t||y.get(t[n],"globalEval"))}m.tbody=m.tfoot=m.colgroup=m.caption=m.thead,m.th=m.td,_.option||(m.optgroup=m.option=[1,"<select multiple='multiple'>","</select>"]);var Pt=/<|&#?\w+;/;function Ct(e,t,n,r,i){for(var o,a,s,u,l,d=t.createDocumentFragment(),c=[],h=0,f=e.length;h<f;h++)if((o=e[h])||0===o)if("object"===q(o))S.merge(c,o.nodeType?[o]:o);else if(Pt.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(Lt.exec(o)||["",""])[1].toLowerCase(),s=m[s]||m._default,a.innerHTML=s[1]+S.htmlPrefilter(o)+s[2],l=s[0];l--;)a=a.lastChild;S.merge(c,a.childNodes),(a=d.firstChild).textContent=""}else c.push(t.createTextNode(o));for(d.textContent="",h=0;o=c[h++];)if(r&&-1<S.inArray(o,r))i&&i.push(o);else if(u=gt(o),a=p(d.appendChild(o),"script"),u&&Dt(a),n)for(l=0;o=a[l++];)Tt.test(o.type||"")&&n.push(o);return d}var Et=/^([^.]*)(?:\.(.+)|)/;function Yt(){return!0}function xt(){return!1}function At(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)At(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=xt;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function Ot(e,r,t){t?(y.set(e,r,!1),S.event.add(e,r,{namespace:!1,handler:function(e){var t,n=y.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(S.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=s.call(arguments),y.set(this,r,n),this[r](),t=y.get(this,r),y.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(y.set(this,r,S.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Yt)}})):void 0===y.get(e,r)&&S.event.add(e,r,Yt)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,d,c,h,f,m=y.get(t);if(dt(t))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(vt,i),n.guid||(n.guid=S.guid++),s=(s=m.events)||(m.events=Object.create(null)),a=(a=m.handle)||(m.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(Y)||[""]).length;u--;)c=f=(h=Et.exec(e[u])||[])[1],h=(h[2]||"").split(".").sort(),c&&(l=S.event.special[c]||{},c=(i?l.delegateType:l.bindType)||c,l=S.event.special[c]||{},f=S.extend({type:c,origType:f,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(d=s[c])||((d=s[c]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,r,h,a))||t.addEventListener&&t.addEventListener(c,a),l.add&&(l.add.call(t,f),f.handler.guid||(f.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,f):d.push(f),S.event.global[c]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,d,c,h,f,m,_,p=y.hasData(e)&&y.get(e);if(p&&(u=p.events)){for(l=(t=(t||"").match(Y)||[""]).length;l--;)if(f=_=(s=Et.exec(t[l])||[])[1],m=(s[2]||"").split(".").sort(),f){for(c=S.event.special[f]||{},h=u[f=(r?c.delegateType:c.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)d=h[o],!i&&_!==d.origType||n&&n.guid!==d.guid||s&&!s.test(d.namespace)||r&&r!==d.selector&&("**"!==r||!d.selector)||(h.splice(o,1),d.selector&&h.delegateCount--,c.remove&&c.remove.call(e,d));a&&!h.length&&(c.teardown&&!1!==c.teardown.call(e,m,p.handle)||S.removeEvent(e,f,p.handle),delete u[f])}else for(f in u)S.event.remove(e,f+t[l],n,r,!0);S.isEmptyObject(u)&&y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a=new Array(arguments.length),s=S.event.fix(e),e=(y.get(this,"events")||Object.create(null))[s.type]||[],u=S.event.special[s.type]||{};for(a[0]=s,t=1;t<arguments.length;t++)a[t]=arguments[t];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(o=S.event.handlers.call(this,s,e),t=0;(r=o[t++])&&!s.isPropagationStopped();)for(s.currentTarget=r.elem,n=0;(i=r.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==i.namespace&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,void 0!==(i=((S.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,a))&&!1===(s.result=i)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<S(i,this).index(l):S.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){e=this||e;return kt.test(e.type)&&e.click&&w(e,"input")&&Ot(e,"click",!0),!1},trigger:function(e){e=this||e;return kt.test(e.type)&&e.click&&w(e,"input")&&Ot(e,"click"),!0},_default:function(e){e=e.target;return kt.test(e.type)&&e.click&&w(e,"input")&&y.get(e,"click")||w(e,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(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?Yt:xt,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:xt,isPropagationStopped:xt,isImmediatePropagationStopped:xt,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Yt,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Yt,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Yt,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){var t,n;M.documentMode?(t=y.get(this,"handle"),(n=S.event.fix(e)).type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)):S.event.simulate(i,e.target,S.event.fix(e))}S.event.special[r]={setup:function(){var e;if(Ot(this,r,!0),!M.documentMode)return!1;(e=y.get(this,i))||this.addEventListener(i,o),y.set(this,i,(e||0)+1)},trigger:function(){return Ot(this,r),!0},teardown:function(){var e;if(!M.documentMode)return!1;(e=y.get(this,i)-1)?y.set(this,i,e):(this.removeEventListener(i,o),y.remove(this,i))},_default:function(e){return y.get(e.target,r)},delegateType:i},S.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=M.documentMode?this:e,n=y.get(t,i);n||(M.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),y.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=M.documentMode?this:e,n=y.get(t,i)-1;n?y.set(t,i,n):(M.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),y.remove(t,i))}}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){S.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),S.fn.extend({on:function(e,t,n,r){return At(this,e,t,n,r)},one:function(e,t,n,r){return At(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler);else{if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=xt),this.each(function(){S.event.remove(this,e,n,t)});for(i in e)this.off(i,t,e[i])}return this}});var It=/<script|<style|<link/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,jt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ht(e,t){return w(e,"table")&&w(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Wt(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ft(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function zt(e,t){var n,r,i,o;if(1===t.nodeType){if(y.hasData(e)&&(o=y.get(e).events))for(i in y.remove(t,"handle events"),o)for(n=0,r=o[i].length;n<r;n++)S.event.add(t,i,o[i][n]);l.hasData(e)&&(e=l.access(e),e=S.extend({},e),l.set(t,e))}}function Ut(n,r,i,o){r=W(r);var e,t,a,s,u,l,d=0,c=n.length,h=c-1,f=r[0],m=v(f);if(m||1<c&&"string"==typeof f&&!_.checkClone&&Rt.test(f))return n.each(function(e){var t=n.eq(e);m&&(r[0]=f.call(this,e,t.html())),Ut(t,r,i,o)});if(c&&(t=(e=Ct(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=S.map(p(e,"script"),Wt)).length;d<c;d++)u=e,d!==h&&(u=S.clone(u,!0,!0),s)&&S.merge(a,p(u,"script")),i.call(n[d],u,d);if(s)for(l=a[a.length-1].ownerDocument,S.map(a,Ft),d=0;d<s;d++)u=a[d],Tt.test(u.type||"")&&!y.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):V(u.textContent.replace(jt,""),u,l))}return n}function Bt(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(p(r)),r.parentNode&&(n&>(r)&&Dt(p(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,d=e.cloneNode(!0),c=gt(e);if(!(_.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=p(d),r=0,i=(o=p(e)).length;r<i;r++)s=o[r],u=a[r],l=void 0,"input"===(l=u.nodeName.toLowerCase())&&kt.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||p(e),a=a||p(d),r=0,i=o.length;r<i;r++)zt(o[r],a[r]);else zt(e,d);return 0<(a=p(d,"script")).length&&Dt(a,!c&&p(e,"script")),d},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(dt(n)){if(t=n[y.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[y.expando]=void 0}n[l.expando]&&(n[l.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Bt(this,e,!0)},remove:function(e){return Bt(this,e)},text:function(e){return d(this,function(e){return void 0===e?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ut(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ht(this,e).appendChild(e)})},prepend:function(){return Ut(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Ht(this,e)).insertBefore(e,t.firstChild)})},before:function(){return Ut(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ut(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(p(e,!1)),e.textContent="");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 d(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!It.test(e)&&!m[(Lt.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(p(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Ut(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(p(this)),t)&&t.replaceChild(e,this)},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=[],r=S(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),S(r[o])[a](t),F.apply(n,t.get());return this.pushStack(n)}});function Nt(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:b).getComputedStyle(e)}function Jt(e,t,n){var r,i={};for(r in t)i[r]=e.style[r],e.style[r]=t[r];for(r in n=n.call(e),t)e.style[r]=i[r];return n}var Gt,Vt,qt,Zt,Xt,Kt,$t,A,Qt=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),en=/^--/,tn=new RegExp(yt.join("|"),"i");function nn(){var e;A&&($t.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",A.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",vt.appendChild($t).appendChild(A),e=b.getComputedStyle(A),Gt="1%"!==e.top,Kt=12===rn(e.marginLeft),A.style.right="60%",Zt=36===rn(e.right),Vt=36===rn(e.width),A.style.position="absolute",qt=12===rn(A.offsetWidth/3),vt.removeChild($t),A=null)}function rn(e){return Math.round(parseFloat(e))}function on(e,t,n){var r,i=en.test(t),o=e.style;return(n=n||Nt(e))&&(r=n.getPropertyValue(t)||n[t],""!==(r=i?r&&(r.replace(ee,"$1")||void 0):r)||gt(e)||(r=S.style(e,t)),!_.pixelBoxStyles())&&Qt.test(r)&&tn.test(t)&&(i=o.width,e=o.minWidth,t=o.maxWidth,o.minWidth=o.maxWidth=o.width=r,r=n.width,o.width=i,o.minWidth=e,o.maxWidth=t),void 0!==r?r+"":r}function an(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}$t=M.createElement("div"),(A=M.createElement("div")).style&&(A.style.backgroundClip="content-box",A.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle="content-box"===A.style.backgroundClip,S.extend(_,{boxSizingReliable:function(){return nn(),Vt},pixelBoxStyles:function(){return nn(),Zt},pixelPosition:function(){return nn(),Gt},reliableMarginLeft:function(){return nn(),Kt},scrollboxSize:function(){return nn(),qt},reliableTrDimensions:function(){var e,t,n;return null==Xt&&(e=M.createElement("table"),t=M.createElement("tr"),n=M.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",vt.appendChild(e).appendChild(t).appendChild(n),n=b.getComputedStyle(t),Xt=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===t.offsetHeight,vt.removeChild(e)),Xt}}));var sn=["Webkit","Moz","ms"],un=M.createElement("div").style,ln={};function dn(e){var t=S.cssProps[e]||ln[e];return t||(e in un?e:ln[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=sn.length;n--;)if((e=sn[n]+t)in un)return e}(e)||e)}var cn=/^(none|table(?!-c[ea]).+)/,hn={position:"absolute",visibility:"hidden",display:"block"},fn={letterSpacing:"0",fontWeight:"400"};function mn(e,t,n){var r=pt.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function _n(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=S.css(e,n+yt[a],!0,i)),r?("content"===n&&(u-=S.css(e,"padding"+yt[a],!0,i)),"margin"!==n&&(u-=S.css(e,"border"+yt[a]+"Width",!0,i))):(u+=S.css(e,"padding"+yt[a],!0,i),"padding"!==n?u+=S.css(e,"border"+yt[a]+"Width",!0,i):s+=S.css(e,"border"+yt[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function pn(e,t,n){var r=Nt(e),i=(!_.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=on(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Qt.test(a)){if(!n)return a;a="auto"}return(!_.boxSizingReliable()&&i||!_.reliableTrDimensions()&&w(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),o=s in e)&&(a=e[s]),(a=parseFloat(a)||0)+_n(e,t,n||(i?"border":"content"),o,r,a)+"px"}function O(e,t,n,r,i){return new O.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=on(e,"opacity"))?"1":t}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=x(t),u=en.test(t),l=e.style;if(u||(t=dn(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=pt.exec(n))&&i[1]&&(n=bt(e,t,i),o="number"),null==n||n!=n||("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),_.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r)))||(u?l.setProperty(t,n):l[t]=n)}},css:function(e,t,n,r){var i,o=x(t);return en.test(t)||(t=dn(o)),"normal"===(i=void 0===(i=(o=S.cssHooks[t]||S.cssHooks[o])&&"get"in o?o.get(e,!0,n):i)?on(e,t,r):i)&&t in fn&&(i=fn[t]),(""===n||n)&&(o=parseFloat(i),!0===n||isFinite(o))?o||0:i}}),S.each(["height","width"],function(e,a){S.cssHooks[a]={get:function(e,t,n){if(t)return!cn.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?pn(e,a,n):Jt(e,hn,function(){return pn(e,a,n)})},set:function(e,t,n){var r=Nt(e),i=!_.scrollboxSize()&&"absolute"===r.position,o=(i||n)&&"border-box"===S.css(e,"boxSizing",!1,r),n=n?_n(e,a,n,o,r):0;return o&&i&&(n-=Math.ceil(e["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(r[a])-_n(e,a,"border",!1,r)-.5)),n&&(o=pt.exec(t))&&"px"!==(o[3]||"px")&&(e.style[a]=t,t=S.css(e,a)),mn(0,t,n)}}}),S.cssHooks.marginLeft=an(_.reliableMarginLeft,function(e,t){if(t)return(parseFloat(on(e,"marginLeft"))||e.getBoundingClientRect().left-Jt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(i,o){S.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+yt[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(S.cssHooks[i+o].set=mn)}),S.fn.extend({css:function(e,t){return d(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Nt(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=O).prototype={constructor:O,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=O.propHooks[this.prop];return(e&&e.get?e:O.propHooks._default).get(this)},run:function(e){var t,n=O.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:O.propHooks._default).set(this),this}}).init.prototype=O.prototype,(O.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||!S.cssHooks[e.prop]&&null==e.elem.style[dn(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=O.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=O.prototype.init,S.fx.step={};var yn,vn,gn=/^(?:toggle|show|hide)$/,wn=/queueHooks$/;function bn(){vn&&(!1===M.hidden&&b.requestAnimationFrame?b.requestAnimationFrame(bn):b.setTimeout(bn,S.fx.interval),S.fx.tick())}function Mn(){return b.setTimeout(function(){yn=void 0}),yn=Date.now()}function Sn(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=yt[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function kn(e,t,n){for(var r,i=(I.tweeners[t]||[]).concat(I.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function I(i,e,t){var n,o,r,a,s,u,l,d=0,c=I.prefilters.length,h=S.Deferred().always(function(){delete f.elem}),f=function(){if(!o){for(var e=yn||Mn(),e=Math.max(0,m.startTime+m.duration-e),t=1-(e/m.duration||0),n=0,r=m.tweens.length;n<r;n++)m.tweens[n].run(t);if(h.notifyWith(i,[m,t,e]),t<1&&r)return e;r||h.notifyWith(i,[m,1,0]),h.resolveWith(i,[m])}return!1},m=h.promise({elem:i,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:yn||Mn(),duration:t.duration,tweens:[],createTween:function(e,t){t=S.Tween(i,m.opts,e,t,m.opts.specialEasing[e]||m.opts.easing);return m.tweens.push(t),t},stop:function(e){var t=0,n=e?m.tweens.length:0;if(!o){for(o=!0;t<n;t++)m.tweens[t].run(1);e?(h.notifyWith(i,[m,1,0]),h.resolveWith(i,[m,e])):h.rejectWith(i,[m,e])}return this}}),_=m.props,p=_,y=m.opts.specialEasing;for(r in p)if(s=y[a=x(r)],u=p[r],Array.isArray(u)&&(s=u[1],u=p[r]=u[0]),r!==a&&(p[a]=u,delete p[r]),(l=S.cssHooks[a])&&"expand"in l)for(r in u=l.expand(u),delete p[a],u)r in p||(p[r]=u[r],y[r]=s);else y[a]=s;for(;d<c;d++)if(n=I.prefilters[d].call(m,i,_,m.opts))return v(n.stop)&&(S._queueHooks(m.elem,m.opts.queue).stop=n.stop.bind(n)),n;return S.map(_,kn,m),v(m.opts.start)&&m.opts.start.call(i,m),m.progress(m.opts.progress).done(m.opts.done,m.opts.complete).fail(m.opts.fail).always(m.opts.always),S.fx.timer(S.extend(f,{elem:i,anim:m,queue:m.opts.queue})),m}S.Animation=S.extend(I,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return bt(n.elem,e,pt.exec(t),n),n}]},tweener:function(e,t){for(var n,r=0,i=(e=v(e)?(t=e,["*"]):e.match(Y)).length;r<i;r++)n=e[r],I.tweeners[n]=I.tweeners[n]||[],I.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,d="width"in t||"height"in t,c=this,h={},f=e.style,m=e.nodeType&&_t(e),_=y.get(e,"fxshow");for(r in n.queue||(null==(a=S._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,S.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],gn.test(i)){if(delete t[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!_||void 0===_[r])continue;m=!0}h[r]=_&&_[r]||S.style(e,r)}if((u=!S.isEmptyObject(t))||!S.isEmptyObject(h))for(r in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(l=_&&_.display)&&(l=y.get(e,"display")),"none"===(d=S.css(e,"display"))&&(l?d=l:(St([e],!0),l=e.style.display||l,d=S.css(e,"display"),St([e]))),"inline"===d||"inline-block"===d&&null!=l)&&"none"===S.css(e,"float")&&(u||(c.done(function(){f.display=l}),null==l&&(d=f.display,l="none"===d?"":d)),f.display="inline-block"),n.overflow&&(f.overflow="hidden",c.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),u=!1,h)u||(_?"hidden"in _&&(m=_.hidden):_=y.access(e,"fxshow",{display:l}),o&&(_.hidden=!m),m&&St([e],!0),c.done(function(){for(r in m||St([e]),y.remove(e,"fxshow"),h)S.style(e,r,h[r])})),u=kn(m?_[r]:0,r,c),r in _||(_[r]=u.start,m&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?I.prefilters.unshift(e):I.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(_t).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){function i(){var e=I(this,S.extend({},t),a);(o||y.get(this,"finish"))&&e.stop(!0)}var o=S.isEmptyObject(t),a=S.speed(e,n,r);return i.finish=i,o||!1===a.queue?this.each(i):this.queue(a.queue,i)},stop:function(i,e,o){function a(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=S.timers,r=y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&wn.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=y.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=S.timers,o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,r){var i=S.fn[r];S.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(Sn(r,!0),e,t,n)}}),S.each({slideDown:Sn("show"),slideUp:Sn("hide"),slideToggle:Sn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){S.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(yn=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),yn=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){vn||(vn=!0,bn())},S.fx.stop=function(){vn=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(r,e){return r=S.fx&&S.fx.speeds[r]||r,this.queue(e=e||"fx",function(e,t){var n=b.setTimeout(e,r);t.stop=function(){b.clearTimeout(n)}})},a=M.createElement("input"),o=M.createElement("select").appendChild(M.createElement("option")),a.type="checkbox",_.checkOn=""!==a.value,_.optSelected=o.selected,(a=M.createElement("input")).value="t",a.type="radio",_.radioValue="t"===a.value;var Ln,Tn=S.expr.attrHandle,Dn=(S.fn.extend({attr:function(e,t){return d(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 r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?Ln:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):!(i&&"get"in i&&null!==(r=i.get(e,t)))&&null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){var n;if(!_.radioValue&&"radio"===t&&w(e,"input"))return n=e.value,e.setAttribute("type",t),n&&(e.value=n),t}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Y);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),Ln={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var a=Tn[t]||S.find.attr;Tn[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=Tn[o],Tn[o]=r,r=null!=a(e,t,n)?o:null,Tn[o]=i),r}}),/^(?:input|select|textarea|button)$/i),Pn=/^(?:a|area)$/i;function Cn(e){return(e.match(Y)||[]).join(" ")}function En(e){return e.getAttribute&&e.getAttribute("class")||""}function Yn(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Y)||[]}S.fn.extend({prop:function(e,t){return d(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):Dn.test(e.nodeName)||Pn.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(S.propHooks.selected={get:function(e){e=e.parentNode;return e&&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}),S.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){S(this).addClass(t.call(this,e,En(this)))}):(e=Yn(t)).length?this.each(function(){if(r=En(this),n=1===this.nodeType&&" "+Cn(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Cn(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){S(this).removeClass(t.call(this,e,En(this)))}):arguments.length?(e=Yn(t)).length?this.each(function(){if(r=En(this),n=1===this.nodeType&&" "+Cn(r)+" "){for(o=0;o<e.length;o++)for(i=e[o];-1<n.indexOf(" "+i+" ");)n=n.replace(" "+i+" "," ");a=Cn(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"==a||Array.isArray(t);return v(t)?this.each(function(e){S(this).toggleClass(t.call(this,e,En(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=Yn(t),this.each(function(){if(s)for(o=S(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!=a||((r=En(this))&&y.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",!r&&!1!==t&&y.get(this,"__className__")||""))}))},hasClass:function(e){for(var t,n=0,r=" "+e+" ";t=this[n++];)if(1===t.nodeType&&-1<(" "+Cn(En(t))+" ").indexOf(r))return!0;return!1}});function xn(e){e.stopPropagation()}var An=/\r/g,On=(S.fn.extend({val:function(t){var n,e,r,i=this[0];return arguments.length?(r=v(t),this.each(function(e){1!==this.nodeType||(null==(e=r?t.call(this,e,S(this).val()):t)?e="":"number"==typeof e?e+="":Array.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)})):i?(n=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(i,"value"))?e:"string"==typeof(e=i.value)?e.replace(An,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:Cn(S.text(e))}},select:{get:function(e){for(var t,n=e.options,r=e.selectedIndex,i="select-one"===e.type,o=i?null:[],a=i?r+1:n.length,s=r<0?a:i?r:0;s<a;s++)if(((t=n[s]).selected||s===r)&&!t.disabled&&(!t.parentNode.disabled||!w(t.parentNode,"optgroup"))){if(t=S(t).val(),i)return t;o.push(t)}return o},set:function(e,t){for(var n,r,i=e.options,o=S.makeArray(t),a=i.length;a--;)((r=i[a]).selected=-1<S.inArray(S.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},_.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),b.location),In={guid:Date.now()},Rn=/\?/,jn=(S.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new b.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t},/^(?:focusinfocus|focusoutblur)$/),Hn=(S.extend(S.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,d,c=[n||M],h=B.call(e,"type")?e.type:e,f=B.call(e,"namespace")?e.namespace.split("."):[],m=d=o=n=n||M;if(3!==n.nodeType&&8!==n.nodeType&&!jn.test(h+S.event.triggered)&&(-1<h.indexOf(".")&&(h=(f=h.split(".")).shift(),f.sort()),s=h.indexOf(":")<0&&"on"+h,(e=e[S.expando]?e:new S.Event(h,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),l=S.event.special[h]||{},r||!l.trigger||!1!==l.trigger.apply(n,t))){if(!r&&!l.noBubble&&!j(n)){for(a=l.delegateType||h,jn.test(a+h)||(m=m.parentNode);m;m=m.parentNode)c.push(m),o=m;o===(n.ownerDocument||M)&&c.push(o.defaultView||o.parentWindow||b)}for(i=0;(m=c[i++])&&!e.isPropagationStopped();)d=m,e.type=1<i?a:l.bindType||h,(u=(y.get(m,"events")||Object.create(null))[e.type]&&y.get(m,"handle"))&&u.apply(m,t),(u=s&&m[s])&&u.apply&&dt(m)&&(e.result=u.apply(m,t),!1===e.result)&&e.preventDefault();return e.type=h,r||e.isDefaultPrevented()||l._default&&!1!==l._default.apply(c.pop(),t)||!dt(n)||s&&v(n[h])&&!j(n)&&((o=n[s])&&(n[s]=null),S.event.triggered=h,e.isPropagationStopped()&&d.addEventListener(h,xn),n[h](),e.isPropagationStopped()&&d.removeEventListener(h,xn),S.event.triggered=void 0,o)&&(n[s]=o),e.result}},simulate:function(e,t,n){n=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(n,null,t)}}),S.fn.extend({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)}}),/\[\]$/),Wn=/\r?\n/g,Fn=/^(?:submit|button|image|reset|file)$/i,zn=/^(?:input|select|textarea|keygen)/i;S.param=function(e,t){function n(e,t){t=v(t)?t():t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)}var r,i=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){n(this.name,this.value)});else for(r in e)!function n(r,e,i,o){if(Array.isArray(e))S.each(e,function(e,t){i||Hn.test(r)?o(r,t):n(r+"["+("object"==typeof t&&null!=t?e:"")+"]",t,i,o)});else if(i||"object"!==q(e))o(r,e);else for(var t in e)n(r+"["+t+"]",e[t],i,o)}(r,e[r],t,n);return i.join("&")},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")&&zn.test(this.nodeName)&&!Fn.test(e)&&(this.checked||!kt.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(Wn,"\r\n")}}):{name:t.name,value:n.replace(Wn,"\r\n")}}).get()}});var Un=/%20/g,Bn=/#.*$/,Nn=/([?&])_=[^&]*/,Jn=/^(.*?):[ \t]*([^\r\n]*)$/gm,Gn=/^(?:GET|HEAD)$/,Vn=/^\/\//,qn={},Zn={},Xn="*/".concat("*"),Kn=M.createElement("a");function $n(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(Y)||[];if(v(t))for(;n=i[r++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Qn(t,r,i,o){var a={},s=t===Zn;function u(e){var n;return a[e]=!0,S.each(t[e]||[],function(e,t){t=t(r,i,o);return"string"!=typeof t||s||a[t]?s?!(n=t):void 0:(r.dataTypes.unshift(t),u(t),!1)}),n}return u(r.dataTypes[0])||!a["*"]&&u("*")}function er(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r=r||{})[n]=t[n]);return r&&S.extend(!0,e,r),e}Kn.href=On.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:On.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(On.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xn,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":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?er(er(e,S.ajaxSettings),t):er(S.ajaxSettings,e)},ajaxPrefilter:$n(qn),ajaxTransport:$n(Zn),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var u,l,d,n,c,h,f,r,m=S.ajaxSetup({},t=t||{}),_=m.context||m,p=m.context&&(_.nodeType||_.jquery)?S(_):S.event,y=S.Deferred(),v=S.Callbacks("once memory"),g=m.statusCode||{},i={},o={},a="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n)for(n={};t=Jn.exec(d);)n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?d:null},setRequestHeader:function(e,t){return null==h&&(e=o[e.toLowerCase()]=o[e.toLowerCase()]||e,i[e]=t),this},overrideMimeType:function(e){return null==h&&(m.mimeType=e),this},statusCode:function(e){if(e)if(h)w.always(e[w.status]);else for(var t in e)g[t]=[g[t],e[t]];return this},abort:function(e){e=e||a;return u&&u.abort(e),s(0,e),this}};if(y.promise(w),m.url=((e||m.url||On.href)+"").replace(Vn,On.protocol+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(Y)||[""],null==m.crossDomain){e=M.createElement("a");try{e.href=m.url,e.href=e.href,m.crossDomain=Kn.protocol+"//"+Kn.host!=e.protocol+"//"+e.host}catch(e){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=S.param(m.data,m.traditional)),Qn(qn,m,t,w),!h){for(r in(f=S.event&&m.global)&&0==S.active++&&S.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Gn.test(m.type),l=m.url.replace(Bn,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(Un,"+")):(e=m.url.slice(l.length),m.data&&(m.processData||"string"==typeof m.data)&&(l+=(Rn.test(l)?"&":"?")+m.data,delete m.data),!1===m.cache&&(l=l.replace(Nn,"$1"),e=(Rn.test(l)?"&":"?")+"_="+In.guid+++e),m.url=l+e),m.ifModified&&(S.lastModified[l]&&w.setRequestHeader("If-Modified-Since",S.lastModified[l]),S.etag[l])&&w.setRequestHeader("If-None-Match",S.etag[l]),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&w.setRequestHeader("Content-Type",m.contentType),w.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Xn+"; q=0.01":""):m.accepts["*"]),m.headers)w.setRequestHeader(r,m.headers[r]);if(m.beforeSend&&(!1===m.beforeSend.call(_,w,m)||h))return w.abort();if(a="abort",v.add(m.complete),w.done(m.success),w.fail(m.error),u=Qn(Zn,m,t,w)){if(w.readyState=1,f&&p.trigger("ajaxSend",[w,m]),h)return w;m.async&&0<m.timeout&&(c=b.setTimeout(function(){w.abort("timeout")},m.timeout));try{h=!1,u.send(i,s)}catch(e){if(h)throw e;s(-1,e)}}else s(-1,"No Transport")}return w;function s(e,t,n,r){var i,o,a,s=t;h||(h=!0,c&&b.clearTimeout(c),u=void 0,d=r||"",w.readyState=0<e?4:0,r=200<=e&&e<300||304===e,n&&(a=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a=a||i}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(m,w,n)),!r&&-1<S.inArray("script",m.dataTypes)&&S.inArray("json",m.dataTypes)<0&&(m.converters["text script"]=function(){}),a=function(e,t,n,r){var i,o,a,s,u,l={},d=e.dataTypes.slice();if(d[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=d.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=d.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],d.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(m,a,w,r),r?(m.ifModified&&((n=w.getResponseHeader("Last-Modified"))&&(S.lastModified[l]=n),n=w.getResponseHeader("etag"))&&(S.etag[l]=n),204===e||"HEAD"===m.type?s="nocontent":304===e?s="notmodified":(s=a.state,i=a.data,r=!(o=a.error))):(o=s,!e&&s||(s="error",e<0&&(e=0))),w.status=e,w.statusText=(t||s)+"",r?y.resolveWith(_,[i,s,w]):y.rejectWith(_,[w,s,o]),w.statusCode(g),g=void 0,f&&p.trigger(r?"ajaxSuccess":"ajaxError",[w,m,r?i:o]),v.fireWith(_,[w,s]),f&&(p.trigger("ajaxComplete",[w,m]),--S.active||S.event.trigger("ajaxStop")))}},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,i){S[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:i,dataType:r,data:t,success:n},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){for(var t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){return this[0]&&(v(e)&&(e=e.call(this[0])),e=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(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=v(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new b.XMLHttpRequest}catch(e){}};var tr={0:200,1223:204},nr=S.ajaxSettings.xhr(),rr=(_.cors=!!nr&&"withCredentials"in nr,_.ajax=nr=!!nr,S.ajaxTransport(function(i){var o,a;if(_.cors||nr&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(tr[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&b.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),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")}),S.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=S("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),M.head.appendChild(r[0])},abort:function(){i&&i()}}}),[]),ir=/(=)\?(?=&|$)|\?\?/,or=(S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=rr.pop()||S.expando+"_"+In.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(ir.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&ir.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(ir,"$1"+r):!1!==e.jsonp&&(e.url+=(Rn.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=b[r],b[r]=function(){o=arguments},n.always(function(){void 0===i?S(b).removeProp(r):b[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,rr.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),_.createHTMLDocument=((e=M.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===e.childNodes.length),S.parseHTML=function(e,t,n){var r;return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(_.createHTMLDocument?((r=(t=M.implementation.createHTMLDocument("")).createElement("base")).href=M.location.href,t.head.appendChild(r)):t=M),r=!n&&[],(n=qe.exec(e))?[t.createElement(n[1])]:(n=Ct([e],t,r),r&&r.length&&S(r).remove(),S.merge([],n.childNodes)))},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Cn(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s=S.css(e,"position"),u=S(e),l={};"static"===s&&(e.style.position="relative"),o=u.offset(),r=S.css(e,"top"),a=S.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1<(r+a).indexOf("auto")?(i=(s=u.position()).top,s.left):(i=parseFloat(r)||0,parseFloat(a)||0),null!=(t=v(t)?t.call(e,n,S.extend({},o)):t).top&&(l.top=t.top-o.top+i),null!=t.left&&(l.left=t.left-o.left+s),"using"in t?t.using.call(e,l):u.css(l)}},S.fn.extend({offset:function(t){var e,n;return arguments.length?void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)}):(n=this[0])?n.getClientRects().length?(e=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===S.css(e,"position");)e=e.offsetParent;return e||vt})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return d(this,function(e,t,n){var r;if(j(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=an(_.pixelPosition,function(e,t){if(t)return t=on(e,n),Qt.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return d(this,function(e,t,n){var r;return j(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),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,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup 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\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g),ar=(S.proxy=function(e,t){var n,r;if("string"==typeof t&&(r=e[t],t=e,e=r),v(e))return n=s.call(arguments,2),(r=function(){return e.apply(t||this,n.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,r},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=w,S.isFunction=v,S.isWindow=j,S.camelCase=x,S.type=q,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(or,"$1")},void 0!==(dr=function(){return S}.apply(lr,[]))&&(ur.exports=dr),b.jQuery),sr=b.$;return S.noConflict=function(e){return b.$===S&&(b.$=sr),e&&b.jQuery===S&&(b.jQuery=ar),S},void 0===R&&(b.jQuery=b.$=S),S})},function(e,t,n){var r=n(34);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(34),i=n(11)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Object(e),i))?t:o?r(e):"Object"==(t=r(e))&&"function"==typeof e.callee?"Arguments":t}},function(e,t,n){var r=n(9),i=n(27),o=n(11)("species");e.exports=function(e,t){var e=r(e).constructor;return void 0===e||null==(e=r(e)[o])?t:i(e)}},function(n,Y,e){"use strict";var t=e(17),x=e.n(t),A=e(1),O=e(6),i=e(39);function s(e,t,n){var r=e;if(t+n<r.length){for(;n--;)if(128!=(192&r[++t]))return;return 1}}var r=function(e){for(var t=[],n=e,r=0,i=e.length;r<i;){if(n[r]<128)t.push(String.fromCharCode(n[r]));else{if(!(n[r]<192))if(n[r]<224){if(s(n,r,1)){var o=(31&n[r])<<6|63&n[r+1];if(128<=o){t.push(String.fromCharCode(65535&o)),r+=2;continue}}}else if(n[r]<240){if(s(n,r,2)){o=(15&n[r])<<12|(63&n[r+1])<<6|63&n[r+2];if(2048<=o&&55296!=(63488&o)){t.push(String.fromCharCode(65535&o)),r+=3;continue}}}else if(n[r]<248&&s(n,r,3)){var a=(7&n[r])<<18|(63&n[r+1])<<12|(63&n[r+2])<<6|63&n[r+3];if(65536<a&&a<1114112){a-=65536,t.push(String.fromCharCode(a>>>10|55296)),t.push(String.fromCharCode(1023&a|56320)),r+=4;continue}}t.push(String.fromCharCode(65533))}++r}return t.join("")},g=e(5);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==o(e)?e:e+""}(r.key),r)}}t=new ArrayBuffer(2),new DataView(t).setInt16(0,256,!0);var w=256===new Int16Array(t)[0],H=function(){function v(){if(!(this instanceof v))throw new TypeError("Cannot call a class as a function")}return e=v,n=[{key:"parseScriptData",value:function(e,t,n){var r={};try{var i=v.parseValue(e,t,n),o=v.parseValue(e,t+i.size,n-i.size);r[i.data]=o.data}catch(e){A.a.e("AMF",e.toString())}return r}},{key:"parseObject",value:function(e,t,n){if(n<3)throw new g.a("Data not enough when parse ScriptDataObject");var r=v.parseString(e,t,n),e=v.parseValue(e,t+r.size,n-r.size),t=e.objectEnd;return{data:{name:r.data,value:e.data},size:r.size+e.size,objectEnd:t}}},{key:"parseVariable",value:function(e,t,n){return v.parseObject(e,t,n)}},{key:"parseString",value:function(e,t,n){if(n<2)throw new g.a("Data not enough when parse String");n=new DataView(e,t,n).getUint16(0,!w),e=0<n?r(new Uint8Array(e,t+2,n)):"";return{data:e,size:2+n}}},{key:"parseLongString",value:function(e,t,n){if(n<4)throw new g.a("Data not enough when parse LongString");n=new DataView(e,t,n).getUint32(0,!w),e=0<n?r(new Uint8Array(e,t+4,n)):"";return{data:e,size:4+n}}},{key:"parseDate",value:function(e,t,n){if(n<10)throw new g.a("Data size invalid when parse Date");e=new DataView(e,t,n),t=e.getFloat64(0,!w);return t+=60*e.getInt16(8,!w)*1e3,{data:new Date(t),size:10}}},{key:"parseValue",value:function(e,t,n){if(n<1)throw new g.a("Data not enough when parse Value");var r=new DataView(e,t,n),i=1,o=r.getUint8(0),a=!1;try{switch(o){case 0:s=r.getFloat64(1,!w),i+=8;break;case 1:var s=!!r.getUint8(1);i+=1;break;case 2:var u=v.parseString(e,t+1,n-1);s=u.data,i+=u.size;break;case 3:s={};var l=0;for(9==(16777215&r.getUint32(n-4,!w))&&(l=3);i<n-4;){var d=v.parseObject(e,t+i,n-i-l);if(d.objectEnd)break;s[d.data.name]=d.data.value,i+=d.size}i<=n-3&&9==(16777215&r.getUint32(i-1,!w))&&(i+=3);break;case 8:s={},i+=4;var c=0;for(9==(16777215&r.getUint32(n-4,!w))&&(c=3);i<n-8;){var h=v.parseVariable(e,t+i,n-i-c);if(h.objectEnd)break;s[h.data.name]=h.data.value,i+=h.size}i<=n-3&&9==(16777215&r.getUint32(i-1,!w))&&(i+=3);break;case 9:i=1,a=!(s=void 0);break;case 10:s=[];var f=r.getUint32(1,!w);i+=4;for(var m=0;m<f;m++){var _=v.parseValue(e,t+i,n-i);s.push(_.data),i+=_.size}break;case 11:var p=v.parseDate(e,t+1,n-1);s=p.data,i+=p.size;break;case 12:var y=v.parseString(e,t+1,n-1);s=y.data,i+=y.size;break;default:i=n,A.a.w("AMF","Unsupported AMF value type "+o)}}catch(e){A.a.e("AMF",e.toString())}return{data:s,size:i,objectEnd:a}}}],(t=null)&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==u(e)?e:e+""}(r.key),r)}}var he=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");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}return e=t,(n=[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var e=this._total_bytes-this._buffer_index;if(e<=0)throw new g.a("ExpGolomb: _fillCurrentWord() but no bytes available");var e=Math.min(4,e),t=new Uint8Array(4);t.set(this._buffer.subarray(this._buffer_index,this._buffer_index+e)),this._current_word=new DataView(t.buffer).getUint32(0,!1),this._buffer_index+=e,this._current_word_bits_left=8*e}},{key:"readBits",value:function(e){if(32<e)throw new g.b("ExpGolomb: readBits() bits exceeded max 32bits!");var t,n;return e<=this._current_word_bits_left?(t=this._current_word>>>32-e,this._current_word<<=e,this._current_word_bits_left-=e,t):(t=this._current_word_bits_left?this._current_word:0,t>>>=32-this._current_word_bits_left,e=e-this._current_word_bits_left,this._fillCurrentWord(),e=Math.min(e,this._current_word_bits_left),n=this._current_word>>>32-e,this._current_word<<=e,this._current_word_bits_left-=e,t<<e|n)}},{key:"readBool",value:function(){return 1===this.readBits(1)}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){for(var 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)}}])&&l(e.prototype,n),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}();function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==d(e)?e:e+""}(r.key),r)}}var W=function(){function D(){if(!(this instanceof D))throw new TypeError("Cannot call a class as a function")}return e=D,n=[{key:"_ebsp2rbsp",value:function(e){for(var t=e,n=t.byteLength,r=new Uint8Array(n),i=0,o=0;o<n;o++)2<=o&&3===t[o]&&0===t[o-1]&&0===t[o-2]||(r[i]=t[o],i++);return new Uint8Array(r.buffer,0,i)}},{key:"parseSPS",value:function(e){var e=D._ebsp2rbsp(e),t=new he(e),e=(t.readByte(),t.readByte()),n=(t.readByte(),t.readByte()),r=(t.readUEG(),D.getProfileString(e)),n=D.getLevelString(n),i=1,o=420,a=8;if((100===e||110===e||122===e||244===e||44===e||83===e||86===e||118===e||128===e||138===e||144===e)&&(3===(i=t.readUEG())&&t.readBits(1),i<=3&&(o=[0,420,422,444][i]),a=t.readUEG()+8,t.readUEG(),t.readBits(1),t.readBool()))for(var s=3!==i?8:12,u=0;u<s;u++)t.readBool()&&D._skipScalingList(t,u<6?16:64);t.readUEG();e=t.readUEG();if(0===e)t.readUEG();else if(1===e){t.readBits(1),t.readSEG(),t.readSEG();for(var l=t.readUEG(),d=0;d<l;d++)t.readSEG()}var e=t.readUEG(),c=(t.readBits(1),t.readUEG()),h=t.readUEG(),f=t.readBits(1),m=(0===f&&t.readBits(1),t.readBits(1),0),_=0,p=0,y=0,v=(t.readBool()&&(m=t.readUEG(),_=t.readUEG(),p=t.readUEG(),y=t.readUEG()),1),g=1,w=0,b=!0,M=0,S=0,k=(t.readBool()&&(t.readBool()&&(0<(L=t.readByte())&&L<16?(v=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][L-1],g=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][L-1]):255===L&&(v=t.readByte()<<8|t.readByte(),g=t.readByte()<<8|t.readByte())),t.readBool()&&t.readBool(),t.readBool()&&(t.readBits(4),t.readBool())&&t.readBits(24),t.readBool()&&(t.readUEG(),t.readUEG()),t.readBool())&&(L=t.readBits(32),k=t.readBits(32),b=t.readBool(),w=(M=k)/(S=2*L)),1),L=(1===v&&1===g||(k=v/g),0),T=0,i=(T=0===i?(L=1,2-f):(L=3===i?1:2,(1===i?2:1)*(2-f)),16*(c+1)),c=16*(h+1)*(2-f),h=(i-=(m+_)*L,c-=(p+y)*T,Math.ceil(i*k));return t.destroy(),t=null,{profile_string:r,level_string:n,bit_depth:a,ref_frames:e,chroma_format:o,chroma_format_string:D.getChromaFormatString(o),frame_rate:{fixed:b,fps:w,fps_den:S,fps_num:M},sar_ratio:{width:v,height:g},codec_size:{width:i,height:c},present_size:{width:h,height:c}}}},{key:"_skipScalingList",value:function(e,t){for(var n=8,r=8,i=0;i<t;i++)n=0===(r=0!==r?(n+e.readSEG()+256)%256:r)?n:r}},{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"}}}],(t=null)&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),M=e(14);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==h(e)?e:e+""}(r.key),r)}}var F=function(){function ce(){if(!(this instanceof ce))throw new TypeError("Cannot call a class as a function")}return e=ce,n=[{key:"_ebsp2rbsp",value:function(e){for(var t=e,n=t.byteLength,r=new Uint8Array(n),i=0,o=0;o<n;o++)2<=o&&3===t[o]&&0===t[o-1]&&0===t[o-2]||(r[i]=t[o],i++);return new Uint8Array(r.buffer,0,i)}},{key:"parseVPS",value:function(e){e=ce._ebsp2rbsp(e),e=new he(e);e.readByte(),e.readByte(),e.readBits(4),e.readBits(2),e.readBits(6);return{num_temporal_layers:e.readBits(3)+1,temporal_id_nested:e.readBool()}}},{key:"parseSPS",value:function(e){for(var e=ce._ebsp2rbsp(e),t=new he(e),n=(t.readByte(),t.readByte(),t.readBits(4),t.readBits(3)),e=(t.readBool(),t.readBits(2)),R=t.readBool(),r=t.readBits(5),j=t.readByte(),H=t.readByte(),W=t.readByte(),F=t.readByte(),z=t.readByte(),U=t.readByte(),B=t.readByte(),N=t.readByte(),J=t.readByte(),G=t.readByte(),i=t.readByte(),o=[],a=[],s=0;s<n;s++)o.push(t.readBool()),a.push(t.readBool());if(0<n)for(var u=n;u<8;u++)t.readBits(2);for(var l=0;l<n;l++)o[l]&&(t.readByte(),t.readByte(),t.readByte(),t.readByte(),t.readByte(),t.readByte(),t.readByte(),t.readByte(),t.readByte(),t.readByte(),t.readByte()),a[l]&&t.readByte();t.readUEG();for(var d=t.readUEG(),c=(3==d&&t.readBits(1),t.readUEG()),h=t.readUEG(),f=(t.readBool()&&(t.readUEG(),t.readUEG(),t.readUEG(),t.readUEG()),t.readUEG()),V=t.readUEG(),q=t.readUEG(),m=t.readBool()?0:n;m<=n;m++)t.readUEG(),t.readUEG(),t.readUEG();t.readUEG(),t.readUEG(),t.readUEG(),t.readUEG(),t.readUEG(),t.readUEG();var _=t.readBool();if(_&&t.readBool())for(var p=0;p<4;p++)for(var y=0;y<(3===p?2:6);y++)if(t.readBool()){var Z=Math.min(64,1<<4+(p<<1));1<p&&t.readSEG();for(var v=0;v<Z;v++)t.readSEG()}else t.readUEG();t.readBool(),t.readBool();t.readBool()&&(t.readByte(),t.readUEG(),t.readUEG(),t.readBool());for(var g=t.readUEG(),w=0,b=0;b<g;b++){var M=!1;if(M=0!==b?t.readBool():M){b===g&&t.readUEG(),t.readBool(),t.readUEG();for(var S=0,k=0;k<=w;k++){var L=t.readBool(),T=!1;L||(T=t.readBool()),(L||T)&&S++}w=S}else{for(var D=t.readUEG(),P=t.readUEG(),w=D+P,C=0;C<D;C++)t.readUEG(),t.readBool();for(var E=0;E<P;E++)t.readUEG(),t.readBool()}}if(t.readBool())for(var X=t.readUEG(),K=0;K<X;K++){for(var $=0;$<q+4;$++)t.readBits(1);t.readBits(1)}var _=0,Y=1,x=1,Q=!1,ee=1,te=1;t.readBool(),t.readBool();if(t.readBool()){t.readBool()&&(0<(A=t.readByte())&&A<16?(Y=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][A-1],x=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][A-1]):255===A&&(Y=t.readBits(16),x=t.readBits(16))),t.readBool()&&t.readBool(),t.readBool()&&(t.readBits(3),t.readBool(),t.readBool())&&(t.readByte(),t.readByte(),t.readByte());t.readBool()&&(t.readUEG(),t.readUEG()),t.readBool(),t.readBool(),t.readBool();if(t.readBool()&&(t.readUEG(),t.readUEG(),t.readUEG(),t.readUEG()),t.readBool()){var ee=t.readBits(32),te=t.readBits(32),A=t.readBool();if(A)if(t.readUEG(),t.readBool()){var ne=!1,re=!1,O=!1,ne=t.readBool(),re=t.readBool();(ne||re)&&((O=t.readBool())&&(t.readByte(),t.readBits(5),t.readBool(),t.readBits(5)),t.readBits(4),t.readBits(4),O&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(var ie=0;ie<=n;ie++){var oe=t.readBool(),Q=oe,ae=!1,I=1,se=!1;if((ae=oe?ae:t.readBool())?t.readSEG():se=t.readBool(),se||(I=t.readUEG()+1),ne)for(var ue=0;ue<I;ue++)t.readUEG(),t.readUEG(),O&&(t.readUEG(),t.readUEG());if(re)for(var le=0;le<I;le++)t.readUEG(),t.readUEG(),O&&(t.readUEG(),t.readUEG())}}}t.readBool()&&(t.readBool(),t.readBool(),t.readBool(),_=t.readUEG(),t.readUEG(),t.readUEG(),t.readUEG(),t.readUEG())}t.readBool();var A="hvc1.".concat(r,".1.L").concat(i,".B0"),de=1!==Y&&1!==x?Y/x:1;return t.destroy(),t=null,{codec_mimetype:A,level_string:ce.getLevelString(i),profile_idc:r,bit_depth:f+8,ref_frames:1,chroma_format:d,chroma_format_string:ce.getChromaFormatString(d),general_level_idc:i,general_profile_space:e,general_tier_flag:R,general_profile_idc:r,general_profile_compatibility_flags_1:j,general_profile_compatibility_flags_2:H,general_profile_compatibility_flags_3:W,general_profile_compatibility_flags_4:F,general_constraint_indicator_flags_1:z,general_constraint_indicator_flags_2:U,general_constraint_indicator_flags_3:B,general_constraint_indicator_flags_4:N,general_constraint_indicator_flags_5:J,general_constraint_indicator_flags_6:G,min_spatial_segmentation_idc:_,constant_frame_rate:0,chroma_format_idc:d,bit_depth_luma_minus8:f,bit_depth_chroma_minus8:V,frame_rate:{fixed:Q,fps:te/ee,fps_den:ee,fps_num:te},sar_ratio:{width:Y,height:x},codec_size:{width:c,height:h},present_size:{width:c*de,height:h}}}},{key:"parsePPS",value:function(e){var e=ce._ebsp2rbsp(e),e=new he(e),t=(e.readByte(),e.readByte(),e.readUEG(),e.readUEG(),e.readBool(),e.readBool(),e.readBits(3),e.readBool(),e.readBool(),e.readUEG(),e.readUEG(),e.readSEG(),e.readBool(),e.readBool(),e.readBool()&&e.readUEG(),e.readSEG(),e.readSEG(),e.readBool(),e.readBool(),e.readBool(),e.readBool(),e.readBool()),e=e.readBool(),n=1;return e&&t?n=0:e?n=3:t&&(n=2),{parallelismType:n}}},{key:"getChromaFormatString",value:function(e){switch(e){case 0:return"4:0:0";case 1:return"4:2:0";case 2:return"4:2:2";case 3:return"4:4:4";default:return"Unknown"}}},{key:"getProfileString",value:function(e){switch(e){case 1:return"Main";case 2:return"Main10";case 3:return"MainSP";case 4:return"Rext";case 9:return"SCC";default:return"Unknown"}}},{key:"getLevelString",value:function(e){return(e/30).toFixed(1)}}],(t=null)&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function m(e){return e.byteOffset%2==0&&e.byteLength%2==0}function _(e){return e.byteOffset%4==0&&e.byteLength%4==0}function p(e,t){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var S=function(e,t){var n;return e.byteLength===t.byteLength&&(_(e)&&_(t)?(n=t,p(new Uint32Array(e.buffer,e.byteOffset,e.byteLength/4),new Uint32Array(n.buffer,n.byteOffset,n.byteLength/4))):m(e)&&m(t)?(n=t,p(new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2))):p(e,t))};function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==y(e)?e:e+""}(r.key),r)}}var b=function(){function c(e,t){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");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=e.hasAudioTrack,this._hasVideo=e.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new i.a,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._resolutionChanged=!1,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=(t=new ArrayBuffer(2),new DataView(t).setInt16(0,256,!0),256===new Int16Array(t)[0])}return e=c,n=[{key:"probe",value:function(e){var t,n,r,i,e=new Uint8Array(e);return e.byteLength<9?{needMoreData:!0}:(t={match:!1},70!==e[0]||76!==e[1]||86!==e[2]||1!==e[3]||(n=(4&e[4])>>>2!=0,r=0!=(1&e[4]),(e=e[i=5]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3])<9)?t:{match:!0,consumed:e,dataOffset:e,hasAudioTrack:n,hasVideoTrack:r})}}],(t=[{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}},{key:"bindDataSource",value:function(e){return e.onDataArrival=this.parseChunks.bind(this),this}},{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:"resetMediaInfo",value:function(){this._mediaInfo=new i.a}},{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:"parseChunks",value:function(e,t){if(!(this._onError&&this._onMediaInfo&&this._onTrackMetadata&&this._onDataAvailable))throw new g.a("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var n=0,r=this._littleEndian;if(0===t){if(!(13<e.byteLength))return 0;n=c.probe(e).dataOffset}for(this._firstParse&&(this._firstParse=!1,t+n!==this._dataOffset&&A.a.w(this.TAG,"First time parsing but chunk byteStart invalid!"),0!==new DataView(e,n).getUint32(0,!r)&&A.a.w(this.TAG,"PrevTagSize0 !== 0 !!!"),n+=4);n<e.byteLength;){this._dispatch=!0;var i=new DataView(e,n);if(n+11+4>e.byteLength)break;var o=i.getUint8(0),a=16777215&i.getUint32(0,!r);if(n+11+a+4>e.byteLength)break;if(8!==o&&9!==o&&18!==o)A.a.w(this.TAG,"Unsupported tag type ".concat(o,", skipped"));else{var s=i.getUint8(4),u=i.getUint8(5),l=i.getUint8(6)|u<<8|s<<16|i.getUint8(7)<<24,d=(0!=(16777215&i.getUint32(7,!r))&&A.a.w(this.TAG,"Meet tag which has StreamID != 0!"),n+11);switch(o){case 8:this._parseAudioData(e,d,a,l);break;case 9:this._parseVideoData(e,d,a,l,t+n);break;case 18:this._parseScriptData(e,d,a,l)}u=i.getUint32(11+a,!r);u!==11+a&&A.a.w(this.TAG,"Invalid PrevTagSize ".concat(u))}n+=11+a+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),n}},{key:"_parseScriptData",value:function(e,t,n,r){e=H.parseScriptData(e,t,n);if(e.hasOwnProperty("onMetaData")){if(null==e.onMetaData||"object"!==y(e.onMetaData))return void A.a.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&A.a.w(this.TAG,"Found another onMetaData tag!"),this._metadata=e;var i,t=this._metadata.onMetaData;this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},t)),"boolean"==typeof t.hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=t.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),"boolean"==typeof t.hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=t.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),"number"==typeof t.audiodatarate&&(this._mediaInfo.audioDataRate=t.audiodatarate),"number"==typeof t.videodatarate&&(this._mediaInfo.videoDataRate=t.videodatarate),"number"==typeof t.width&&(this._mediaInfo.width=t.width),"number"==typeof t.height&&(this._mediaInfo.height=t.height),"number"==typeof t.duration?this._durationOverrided||(n=Math.floor(t.duration*this._timescale),this._duration=n,this._mediaInfo.duration=n):this._mediaInfo.duration=0,"number"==typeof t.framerate&&0<(n=Math.floor(1e3*t.framerate))&&(i=n/1e3,this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=i,this._referenceFrameRate.fps_num=n,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=i),"object"===y(t.keyframes)?(this._mediaInfo.hasKeyframesIndex=!0,n=t.keyframes,this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(n),t.keyframes=null):this._mediaInfo.hasKeyframesIndex=!1,this._dispatch=!1,this._mediaInfo.metadata=t,A.a.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}0<Object.keys(e).length&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},e,{timestamp:r}))}},{key:"_parseKeyframesIndex",value:function(e){for(var t=[],n=[],r=1;r<e.times.length;r++){var i=this._timestampBase+Math.floor(1e3*e.times[r]);t.push(i),n.push(e.filepositions[r])}return{times:t,filepositions:n}}},{key:"_parseAudioData",value:function(e,t,n,r){if(n<=1)A.a.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");else if(!0!==this._hasAudioFlagOverrided||!1!==this._hasAudio){this._littleEndian;var i=new DataView(e,t,n).getUint8(0),o=i>>>4;if(2!=o&&10!=o)this._onError(M.a.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+o);else{var a=0,s=(12&i)>>>2;if(0<=s&&s<=4){var a=this._flvSoundRateTable[s],i=1&i,u=this._audioMetadata,l=this._audioTrack;if(u||(!1===this._hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),(u=this._audioMetadata={type:"audio"}).id=l.id,u.timescale=this._timescale,u.duration=this._duration,u.audioSampleRate=a,u.channelCount=0==i?1:2),10==o){a=this._parseAACAudioData(e,t+1,n-1);if(null!=a)if(0===a.packetType){if(u.config){if(S(a.data.config,u.config))return;A.a.w(this.TAG,"AudioSpecificConfig has been changed, re-generate initialization segment")}var i=a.data,i=(u.audioSampleRate=i.samplingRate,u.channelCount=i.channelCount,u.codec=i.codec,u.originalCodec=i.originalCodec,u.config=i.config,u.refSampleDuration=1024/u.audioSampleRate*u.timescale,A.a.v(this.TAG,"Parsed AudioSpecificConfig"),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",u),this._mediaInfo);i.audioCodec=u.originalCodec,i.audioSampleRate=u.audioSampleRate,i.audioChannelCount=u.channelCount,i.hasVideo?null!=i.videoCodec&&(i.mimeType='video/x-flv; codecs="'+i.videoCodec+","+i.audioCodec+'"'):i.mimeType='video/x-flv; codecs="'+i.audioCodec+'"',i.isComplete()&&this._onMediaInfo(i)}else 1===a.packetType?(i=this._timestampBase+r,i={unit:a.data,length:a.data.byteLength,dts:i,pts:i},l.samples.push(i),l.length+=a.data.length):A.a.e(this.TAG,"Flv: Unsupported AAC data type ".concat(a.packetType))}else if(2==o){if(!u.codec){i=this._parseMP3AudioData(e,t+1,n-1,!0);if(null==i)return;u.audioSampleRate=i.samplingRate,u.channelCount=i.channelCount,u.codec=i.codec,u.originalCodec=i.originalCodec,u.refSampleDuration=1152/u.audioSampleRate*u.timescale,A.a.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",u);a=this._mediaInfo;a.audioCodec=u.codec,a.audioSampleRate=u.audioSampleRate,a.audioChannelCount=u.channelCount,a.audioDataRate=i.bitRate,a.hasVideo?null!=a.videoCodec&&(a.mimeType='video/x-flv; codecs="'+a.videoCodec+","+a.audioCodec+'"'):a.mimeType='video/x-flv; codecs="'+a.audioCodec+'"',a.isComplete()&&this._onMediaInfo(a)}o=this._parseMP3AudioData(e,t+1,n-1,!1);null!=o&&(u=this._timestampBase+r,i={unit:o,length:o.byteLength,dts:u,pts:u},l.samples.push(i),l.length+=o.length)}}else this._onError(M.a.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+s)}}}},{key:"_parseAACAudioData",value:function(e,t,n){var r,i;if(!(n<=1))return r={},i=new Uint8Array(e,t,n),r.packetType=i[0],0===i[0]?r.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):r.data=i.subarray(1),r;A.a.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!")}},{key:"_parseAACAudioSpecificConfig",value:function(e,t,n){var r,i,e=new Uint8Array(e,t,n),t=null,n=0,o=null,n=r=e[0]>>>3;if((i=(7&e[0])<<1|e[1]>>>7)<0||i>=this._mpegSamplingRates.length)this._onError(M.a.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");else{var a=this._mpegSamplingRates[i],s=(120&e[1])>>>3;if(!(s<0||8<=s))return 5===n&&(o=(7&e[1])<<1|e[2]>>>7,e[2]),-1!==(e=self.navigator.userAgent.toLowerCase()).indexOf("firefox")?o=6<=i?(n=5,t=new Array(4),i-3):(n=2,t=new Array(2),i):-1!==e.indexOf("android")?(n=2,t=new Array(2),o=i):(n=5,o=i,t=new Array(4),6<=i?o=i-3:1==s&&(n=2,t=new Array(2),o=i)),t[0]=n<<3,t[0]|=(15&i)>>>1,t[1]=(15&i)<<7,t[1]|=(15&s)<<3,5===n&&(t[1]|=(15&o)>>>1,t[2]=(1&o)<<7,t[2]|=8,t[3]=0),{config:t,samplingRate:a,channelCount:s,codec:"mp4a.40."+n,originalCodec:"mp4a.40."+r};this._onError(M.a.FORMAT_ERROR,"Flv: AAC invalid channel configuration")}}},{key:"_parseMP3AudioData",value:function(e,t,n,r){if(!(n<4)){this._littleEndian;e=new Uint8Array(e,t,n),t=null;if(r){if(255!==e[0])return;var n=e[1]>>>3&3,r=(6&e[1])>>1,i=(240&e[2])>>>4,o=(12&e[2])>>>2,a=3!=(e[3]>>>6&3)?2:1,s=0,u=0;switch(n){case 0:s=this._mpegAudioV25SampleRateTable[o];break;case 2:s=this._mpegAudioV20SampleRateTable[o];break;case 3:s=this._mpegAudioV10SampleRateTable[o]}switch(r){case 1:i<this._mpegAudioL3BitRateTable.length&&(u=this._mpegAudioL3BitRateTable[i]);break;case 2:i<this._mpegAudioL2BitRateTable.length&&(u=this._mpegAudioL2BitRateTable[i]);break;case 3:i<this._mpegAudioL1BitRateTable.length&&(u=this._mpegAudioL1BitRateTable[i])}t={bitRate:u,samplingRate:s,channelCount:a,codec:"mp3",originalCodec:"mp3"}}else t=e;return t}A.a.w(this.TAG,"Flv: Invalid MP3 packet, header missing!")}},{key:"_parseVideoData",value:function(e,t,n,r,i){var o,a;n<=1?A.a.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!"):!0===this._hasVideoFlagOverrided&&!1===this._hasVideo||(o=(240&(a=new Uint8Array(e,t,n)[0]))>>>4,7==(a=15&a)?this._parseAVCVideoPacket(e,t+1,n-1,r,i,o):12==a?this._parseHEVCVideoPacket(e,t+1,n-1,r,i,o):this._onError(M.a.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(a)))}},{key:"_parseAVCVideoPacket",value:function(e,t,n,r,i,o){var a,s,u;n<4?A.a.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime"):(a=this._littleEndian,s=(u=new DataView(e,t,n)).getUint8(0),u=(16777215&u.getUint32(0,!a))<<8>>8,0===s?this._parseAVCDecoderConfigurationRecord(e,t+4,n-4):1===s?this._parseAVCVideoData(e,t+4,n-4,r,i,o,u):2!==s&&this._onError(M.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(s)))}},{key:"_parseHEVCVideoPacket",value:function(e,t,n,r,i,o){var a,s,u;n<4?A.a.w(this.TAG,"Flv: Invalid HEVC packet, missing HEVCPacketType or/and CompositionTime"):(a=this._littleEndian,s=(u=new DataView(e,t,n)).getUint8(0),u=(16777215&u.getUint32(0,!a))<<8>>8,0===s?this._parseHEVCDecoderConfigurationRecord(e,t+4,n-4):1===s?this._parseHEVCVideoData(e,t+4,n-4,r,i,o,u):2!==s&&this._onError(M.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(s)))}},{key:"_parseAVCDecoderConfigurationRecord",value:function(e,t,n){if(n<7)A.a.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");else{var r=this._videoMetadata,i=this._videoTrack,o=this._littleEndian,a=new DataView(e,t,n);if(r){if(void 0!==r.avcc){var s=new Uint8Array(e,t,n);if(S(s,r.avcc))return;A.a.w(this.TAG,"AVCDecoderConfigurationRecord has been changed, re-generate initialization segment")}}else!1===this._hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),(r=this._videoMetadata={type:"video"}).id=i.id,r.timescale=this._timescale,r.duration=this._duration;s=a.getUint8(0),i=a.getUint8(1);a.getUint8(2),a.getUint8(3);if(1!==s||0===i)this._onError(M.a.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");else if(this._naluLengthSize=1+(3&a.getUint8(4)),3!==this._naluLengthSize&&4!==this._naluLengthSize)this._onError(M.a.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));else{var u=31&a.getUint8(5);if(0==u)this._onError(M.a.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");else{1<u&&A.a.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(u));for(var l=6,d=0;d<u;d++){var c=a.getUint16(l,!o);if(l+=2,0!==c){var h=new Uint8Array(e,t+l,c),c=(l+=c,W.parseSPS(h));if(0===d){r.codecWidth=c.codec_size.width,r.codecHeight=c.codec_size.height,r.presentWidth=c.present_size.width,r.presentHeight=c.present_size.height,r.profile=c.profile_string,r.level=c.level_string,r.bitDepth=c.bit_depth,r.chromaFormat=c.chroma_format,r.sarRatio=c.sar_ratio,r.frameRate=c.frame_rate,!1!==c.frame_rate.fixed&&0!==c.frame_rate.fps_num&&0!==c.frame_rate.fps_den||(r.frameRate=this._referenceFrameRate);for(var f=r.frameRate.fps_den,m=r.frameRate.fps_num,_=(r.refSampleDuration=r.timescale*(f/m),h.subarray(1,4)),p="avc1.",y=0;y<3;y++){var v=_[y].toString(16);p+=v=v.length<2?"0"+v:v}r.codec=p;f=this._mediaInfo;f.width=r.codecWidth,f.height=r.codecHeight,f.fps=r.frameRate.fps,f.profile=r.profile,f.level=r.level,f.refFrames=c.ref_frames,f.chromaFormat=c.chroma_format_string,f.sarNum=r.sarRatio.width,f.sarDen=r.sarRatio.height,f.videoCodec=p,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 g=a.getUint8(l);if(0===g)this._onError(M.a.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");else{1<g&&A.a.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(g)),l++;for(var w=0;w<g;w++){var b=a.getUint16(l,!o);l+=2,0!==b&&(l+=b)}r.avcc=new Uint8Array(n),r.avcc.set(new Uint8Array(e,t,n),0),A.a.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",r)}}}}}},{key:"_parseHEVCDecoderConfigurationRecord",value:function(e,t,n){if(n<22)A.a.w(this.TAG,"Flv: Invalid HEVCDecoderConfigurationRecord, lack of data!");else{var r=this._videoMetadata,i=this._videoTrack,o=this._littleEndian,a=new DataView(e,t,n);if(r){if(void 0!==r.hvcc){var s=new Uint8Array(e,t,n);if(S(s,r.hvcc))return;A.a.w(this.TAG,"HEVCDecoderConfigurationRecord has been changed, re-generate initialization segment")}}else!1===this._hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),(r=this._videoMetadata={type:"video"}).id=i.id,r.timescale=this._timescale,r.duration=this._duration;s=a.getUint8(0),i=31&a.getUint8(1);if(1!==s||0==i)this._onError(M.a.FORMAT_ERROR,"Flv: Invalid HEVCDecoderConfigurationRecord");else if(this._naluLengthSize=1+(3&a.getUint8(21)),3!==this._naluLengthSize&&4!==this._naluLengthSize)this._onError(M.a.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));else{for(var u=a.getUint8(22),l=0,d=23;l<u;l++){var c=63&a.getUint8(d+0),h=a.getUint16(d+1,!o);d+=3;for(var f=0;f<h;f++){var m,_,p,y=a.getUint16(d+0,!o);0!==f?d+=2+y:33==c?(d+=2,m=new Uint8Array(e,t+d,y),m=F.parseSPS(m),r.codecWidth=m.codec_size.width,r.codecHeight=m.codec_size.height,r.presentWidth=m.present_size.width,r.presentHeight=m.present_size.height,r.profile=m.profile_string,r.level=m.level_string,r.bitDepth=m.bit_depth,r.chromaFormat=m.chroma_format,r.sarRatio=m.sar_ratio,r.frameRate=m.frame_rate,!1!==m.frame_rate.fixed&&0!==m.frame_rate.fps_num&&0!==m.frame_rate.fps_den||(r.frameRate=this._referenceFrameRate),p=r.frameRate.fps_den,_=r.frameRate.fps_num,r.refSampleDuration=r.timescale*(p/_),r.codec=m.codec_mimetype,(p=this._mediaInfo).width=r.codecWidth,p.height=r.codecHeight,p.fps=r.frameRate.fps,p.profile=r.profile,p.level=r.level,p.refFrames=m.ref_frames,p.chromaFormat=m.chroma_format_string,p.sarNum=r.sarRatio.width,p.sarDen=r.sarRatio.height,p.videoCodec=m.codec_mimetype,p.hasAudio?null!=p.audioCodec&&(p.mimeType='video/x-flv; codecs="'+p.videoCodec+","+p.audioCodec+'"'):p.mimeType='video/x-flv; codecs="'+p.videoCodec+'"',p.isComplete()&&this._onMediaInfo(p),d+=y):d+=2+y}}r.hvcc=new Uint8Array(n),r.hvcc.set(new Uint8Array(e,t,n),0),A.a.v(this.TAG,"Parsed HEVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",r)}}}},{key:"_parseAVCVideoData",value:function(e,t,n,r,i,o,a){for(var s=this._littleEndian,u=new DataView(e,t,n),l=[],d=0,c=0,h=this._naluLengthSize,f=this._timestampBase+r,m=1===o;c<n;){if(n<=c+4){A.a.w(this.TAG,"Malformed Nalu near timestamp ".concat(f,", offset = ").concat(c,", dataSize = ").concat(n));break}var _=u.getUint32(c,!s);if(3===h&&(_>>>=8),n-h<_)return void A.a.w(this.TAG,"Malformed Nalus near timestamp ".concat(f,", NaluSize > DataSize!"));var p=31&u.getUint8(c+h),y=(5==p&&(m=!0),new Uint8Array(e,t+c,h+_));l.push({type:p,data:y}),d+=y.byteLength,c+=h+_}l.length&&(r=this._videoTrack,o={units:l,length:d,isKeyframe:m,dts:f,cts:a,pts:f+a},m&&(o.fileposition=i),r.samples.push(o),r.length+=d)}},{key:"_parseHEVCVideoData",value:function(e,t,n,r,i,o,a){for(var s=this._littleEndian,u=new DataView(e,t,n),l=[],d=0,c=0,h=this._naluLengthSize,f=this._timestampBase+r,m=1===o;c<n;){if(n<=c+4){A.a.w(this.TAG,"Malformed Nalu near timestamp ".concat(f,", offset = ").concat(c,", dataSize = ").concat(n));break}var _=u.getUint32(c,!s);if(3===h&&(_>>>=8),n-h<_)return void A.a.w(this.TAG,"Malformed Nalus near timestamp ".concat(f,", NaluSize > DataSize!"));var p=31&u.getUint8(c+h),y=(19!=p&&20!=p||(m=!0),new Uint8Array(e,t+c,h+_));l.push({type:p,data:y}),d+=y.byteLength,c+=h+_}l.length&&(r=this._videoTrack,o={units:l,length:d,isKeyframe:m,dts:f,cts:a,pts:f+a},m&&(o.fileposition=i),r.samples.push(o),r.length+=d)}}])&&v(e.prototype,t),n&&v(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=k(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==k(e)?e:e+""}(r.key),r)}}var t=function(){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function")}return e=d,n=[{key:"init",value:function(){for(var e in d.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],hvc1:[],hvcC:[],pasp:[],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":[]})d.types.hasOwnProperty(e)&&(d.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);var t=d.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,r=Array.prototype.slice.call(arguments,1),i=r.length,o=0;o<i;o++)t+=r[o].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 a=8,s=0;s<i;s++)n.set(r[s],a),a+=r[s].byteLength;return n}},{key:"generateInitSegment",value:function(e){var t=d.box(d.types.ftyp,d.constants.FTYP),e=d.moov(e),n=new Uint8Array(t.byteLength+e.byteLength);return n.set(t,0),n.set(e,t.byteLength),n}},{key:"moov",value:function(e){var t=d.mvhd(e.timescale,e.duration),n=d.trak(e),e=d.mvex(e);return d.box(d.types.moov,t,n,e)}},{key:"mvhd",value:function(e,t){return d.box(d.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 d.box(d.types.trak,d.tkhd(e),d.mdia(e))}},{key:"tkhd",value:function(e){var t=e.id,n=e.duration,r=e.presentWidth,e=e.presentHeight;return d.box(d.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,r>>>8&255,255&r,0,0,e>>>8&255,255&e,0,0]))}},{key:"mdia",value:function(e){return d.box(d.types.mdia,d.mdhd(e),d.hdlr(e),d.minf(e))}},{key:"mdhd",value:function(e){var t=e.timescale,e=e.duration;return d.box(d.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?d.constants.HDLR_AUDIO:d.constants.HDLR_VIDEO;return d.box(d.types.hdlr,t)}},{key:"minf",value:function(e){var t=null,t="audio"===e.type?d.box(d.types.smhd,d.constants.SMHD):d.box(d.types.vmhd,d.constants.VMHD);return d.box(d.types.minf,t,d.dinf(),d.stbl(e))}},{key:"dinf",value:function(){return d.box(d.types.dinf,d.box(d.types.dref,d.constants.DREF))}},{key:"stbl",value:function(e){return d.box(d.types.stbl,d.stsd(e),d.box(d.types.stts,d.constants.STTS),d.box(d.types.stsc,d.constants.STSC),d.box(d.types.stsz,d.constants.STSZ),d.box(d.types.stco,d.constants.STCO))}},{key:"stsd",value:function(e){return"audio"===e.type?"mp3"===e.codec?d.box(d.types.stsd,d.constants.STSD_PREFIX,d.mp3(e)):d.box(d.types.stsd,d.constants.STSD_PREFIX,d.mp4a(e)):"video"===e.type&&e.codec.startsWith("hvc1")?d.box(d.types.stsd,d.constants.STSD_PREFIX,d.hvc1(e)):d.box(d.types.stsd,d.constants.STSD_PREFIX,d.avc1(e))}},{key:"mp3",value:function(e){var t=e.channelCount,e=e.audioSampleRate,t=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 d.box(d.types[".mp3"],t)}},{key:"mp4a",value:function(e){var t=e.channelCount,n=e.audioSampleRate,t=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 d.box(d.types.mp4a,t,d.esds(e))}},{key:"esds",value:function(e){var e=e.config||[],t=e.length,t=new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e).concat([6,1,2]));return d.box(d.types.esds,t)}},{key:"avc1",value:function(e){var t=e.avcc,n=e.codecWidth,e=e.codecHeight,n=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 d.box(d.types.avc1,n,d.box(d.types.avcC,t))}},{key:"hvc1",value:function(e){var t=e.hvcc,n=e.codecWidth,e=e.codecHeight,n=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 d.box(d.types.hvc1,n,d.box(d.types.hvcC,t))}},{key:"mvex",value:function(e){return d.box(d.types.mvex,d.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 d.box(d.types.trex,e)}},{key:"moof",value:function(e,t){return d.box(d.types.moof,d.mfhd(e.sequenceNumber),d.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 d.box(d.types.mfhd,e)}},{key:"traf",value:function(e,t){var n=e.id,n=d.box(d.types.tfhd,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n])),t=d.box(d.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t])),r=d.sdtp(e),e=d.trun(e,r.byteLength+16+16+8+16+8+8);return d.box(d.types.traf,n,t,e,r)}},{key:"sdtp",value:function(e){for(var t=e.samples||[],n=t.length,r=new Uint8Array(4+n),i=0;i<n;i++){var o=t[i].flags;r[i+4]=o.isLeading<<6|o.dependsOn<<4|o.isDependedOn<<2|o.hasRedundancy}return d.box(d.types.sdtp,r)}},{key:"trun",value:function(e,t){var n=e.samples||[],r=n.length,e=12+16*r,i=new Uint8Array(e);i.set([0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,255&r,(t+=8+e)>>>24&255,t>>>16&255,t>>>8&255,255&t],0);for(var o=0;o<r;o++){var a=n[o].duration,s=n[o].size,u=n[o].flags,l=n[o].cts;i.set([a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s,u.isLeading<<2|u.dependsOn,u.isDependedOn<<6|u.hasRedundancy<<4|u.isNonSync,0,0,l>>>24&255,l>>>16&255,l>>>8&255,255&l],12+16*o)}return d.box(d.types.trun,i)}},{key:"mdat",value:function(e){return d.box(d.types.mdat,e)}}],(t=null)&&L(e.prototype,t),n&&L(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),I=(t.init(),t);function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=T(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==T(e)?e:e+""}(r.key),r)}}var R=function(){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function")}return t=e,r=[{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=null)&&D(t.prototype,n),r&&D(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}(),j=e(24);function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=P(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==P(e)?e:e+""}(r.key),r)}}var U=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");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.c("audio"),this._videoSegmentInfoList=new j.c("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!O.a.chrome||!(O.a.version.major<50||50===O.a.version.major&&O.a.version.build<2661)),this._fillSilentAfterSeek=O.a.msedge||O.a.msie,this._mp3UseMpegAudio=!O.a.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return e=t,(n=[{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:"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}},{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 g.a("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,r="mp4",i=t.codec;if("audio"===e)n="mp3"===(this._audioMeta=t).codec&&this._mp3UseMpegAudio?(r="mpeg",i="",new Uint8Array):I.generateInitSegment(t);else{if("video"!==e)return;this._videoMeta=t,n=I.generateInitSegment(t)}if(!this._onInitSegment)throw new g.a("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:i,container:"".concat(e,"/").concat(r),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},e=(null!=e&&(n.samples.push(e),n.length=e.length),{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.samples,r=void 0,i=-1,o=this._audioMeta.refSampleDuration,a="mp3"===this._audioMeta.codec&&this._mp3UseMpegAudio,s=this._dtsBaseInited&&void 0===this._audioNextDts,u=!1;if(n&&0!==n.length&&(1!==n.length||t)){for(var l=0,d=null,c=0,c=a?(l=0,e.length):(l=8)+e.length,h=null,t=(1<n.length&&(c-=(h=n.pop()).length),null!=this._audioStashedLastSample&&(t=this._audioStashedLastSample,this._audioStashedLastSample=null,n.unshift(t),c+=t.length),null!=h&&(this._audioStashedLastSample=h),n[0].dts-this._dtsBase),f=(this._audioNextDts?r=t-this._audioNextDts:this._audioSegmentInfoList.isEmpty()?(r=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&"mp3"!==this._audioMeta.originalCodec&&(u=!0)):r=null!=(Y=this._audioSegmentInfoList.getLastSampleBefore(t))?(E=t-(Y.originalDts+Y.duration),t-(Y.dts+Y.duration+(E=E<=3?0:E))):0,u&&(Y=t-r,null!=(E=this._videoSegmentInfoList.getLastSegmentBefore(t))&&E.beginDts<Y?(t=R.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount))&&(x=E.beginDts,Y=Y-E.beginDts,A.a.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(x,", duration: ").concat(Y)),n.unshift({unit:t,dts:x,pts:x}),c+=t.byteLength):u=!1),[]),m=0;m<n.length;m++){var _=n[m],p=_.unit,y=_.dts-this._dtsBase,v=y,g=!1,w=null,b=0;if(!(y<-.001)){if("mp3"!==this._audioMeta.codec){var M=y;if((r=y-(M=this._audioNextDts?this._audioNextDts:M))<=-3*o){A.a.w(this.TAG,"Dropping 1 audio frame (originalDts: ".concat(y," ms ,curRefDts: ").concat(M," ms) due to dtsCorrection: ").concat(r," ms overlap."));continue}if(3*o<=r&&this._fillAudioTimestampGap&&!O.a.safari){var g=!0,S=Math.floor(r/o),k=(A.a.w(this.TAG,"Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\n"+"originalDts: ".concat(y," ms, curRefDts: ").concat(M," ms, ")+"dtsCorrection: ".concat(Math.round(r)," ms, generate: ").concat(S," frames")),v=Math.floor(M),b=Math.floor(M+o)-v,R.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount));null==k&&(A.a.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),k=p);for(var w=[],L=0;L<S;L++){M+=o;var T=Math.floor(M),D=Math.floor(M+o)-T,T={dts:T,pts:T,cts:0,unit:k,size:k.byteLength,duration:D,originalDts:y,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};w.push(T),c+=T.size}}else v=Math.floor(M),b=Math.floor(M+o)-v;this._audioNextDts=M+o}else{v=y-r;b=m!==n.length-1?n[m+1].dts-this._dtsBase-r-v:null!=h?h.dts-this._dtsBase-r-v:1<=f.length?f[f.length-1].duration:Math.floor(o),this._audioNextDts=v+b}-1===i&&(i=v),f.push({dts:v,pts:v,cts:0,unit:_.unit,size:_.unit.byteLength,duration:b,originalDts:y,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),g&&f.push.apply(f,w)}}if(0===f.length)e.samples=[],e.length=0;else{a?d=new Uint8Array(c):((d=new Uint8Array(c))[0]=c>>>24&255,d[1]=c>>>16&255,d[2]=c>>>8&255,d[3]=255&c,d.set(I.types.mdat,4));for(var P=0;P<f.length;P++){var C=f[P].unit;d.set(C,l),l+=C.byteLength}var E=f[f.length-1],Y=E.dts+E.duration,x=new j.b,t=(x.beginDts=i,x.endDts=Y,x.beginPts=i,x.endPts=Y,x.originalBeginDts=f[0].originalDts,x.originalEndDts=E.originalDts+E.duration,x.firstSample=new j.d(f[0].dts,f[0].pts,f[0].duration,f[0].originalDts,!1),x.lastSample=new j.d(E.dts,E.pts,E.duration,E.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(x),e.samples=f,e.sequenceNumber++,null),t=a?new Uint8Array:I.moof(e,i),u=(e.samples=[],e.length=0,{type:"audio",data:this._mergeBoxes(t,d).buffer,sampleCount:f.length,info:x});a&&s&&(u.timestampOffset=i),this._onMediaSegment("audio",u)}}}}},{key:"_remuxVideo",value:function(e,t){if(null!=this._videoMeta){var n=e,r=n.samples,i=void 0,o=-1,a=-1;if(r&&0!==r.length&&(1!==r.length||t)){for(var s=8,u=null,t=8+e.length,l=null,e=(1<r.length&&(t-=(l=r.pop()).length),null!=this._videoStashedLastSample&&(e=this._videoStashedLastSample,this._videoStashedLastSample=null,r.unshift(e),t+=e.length),null!=l&&(this._videoStashedLastSample=l),r[0].dts-this._dtsBase),d=(i=this._videoNextDts?e-this._videoNextDts:!this._videoSegmentInfoList.isEmpty()&&null!=(k=this._videoSegmentInfoList.getLastSampleBefore(e))?(L=e-(k.originalDts+k.duration),e-(k.dts+k.duration+(L=L<=3?0:L))):0,new j.b),c=[],h=0;h<r.length;h++){var f,m=r[h],_=m.dts-this._dtsBase,p=m.isKeyframe,y=_-i,v=m.cts,g=y+v,w=(-1===o&&(o=y,a=g),0);w=h!==r.length-1?r[h+1].dts-this._dtsBase-i-y:null!=l?l.dts-this._dtsBase-i-y:1<=c.length?c[c.length-1].duration:Math.floor(this._videoMeta.refSampleDuration),p&&((f=new j.d(y,g,w,m.dts,!0)).fileposition=m.fileposition,d.appendSyncPoint(f)),c.push({dts:y,pts:g,cts:v,units:m.units,size:m.length,isKeyframe:p,duration:w,originalDts:_,flags:{isLeading:0,dependsOn:p?2:1,isDependedOn:p?1:0,hasRedundancy:0,isNonSync:p?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.types.mdat,4);for(var b=0;b<c.length;b++)for(var M=c[b].units;M.length;){var S=M.shift().data;u.set(S,s),s+=S.byteLength}var e=c[c.length-1],k=e.dts+e.duration,L=e.pts+e.duration,k=(this._videoNextDts=k,d.beginDts=o,d.endDts=k,d.beginPts=a,d.endPts=L,d.originalBeginDts=c[0].originalDts,d.originalEndDts=e.originalDts+e.duration,d.firstSample=new j.d(c[0].dts,c[0].pts,c[0].duration,c[0].originalDts,c[0].isKeyframe),d.lastSample=new j.d(e.dts,e.pts,e.duration,e.originalDts,e.isKeyframe),this._isLive||this._videoSegmentInfoList.append(d),n.samples=c,n.sequenceNumber++,this._forceFirstIDR&&((t=c[0].flags).dependsOn=2,t.isNonSync=0),I.moof(n,o));n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(k,u).buffer,sampleCount:c.length,info:d})}}}},{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}}])&&z(e.prototype,n),r&&z(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}(),B=e(62),C=e(3);e(4);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==E(e)?e:e+""}(r.key),r)}}t=function(){function e(t,n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.TAG="TransmuxingController",this._emitter=new x.a,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 r=this._currentSegmentIndex=0;this._mediaDataSource.segments.forEach(function(e){e.timestampBase=r,r+=e.duration,e.cors=t.cors,e.withCredentials=t.withCredentials,n.referrerPolicy&&(e.referrerPolicy=n.referrerPolicy)}),isNaN(r)||this._mediaDataSource.duration===r||(this._mediaDataSource.duration=r),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return t=e,(n=[{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],n=this._ioctl=new B.a(n,this._config,e);n.onError=this._onIOException.bind(this),n.onSeeked=this._onIOSeeked.bind(this),n.onComplete=this._onIOComplete.bind(this),n.onRedirect=this._onIORedirect.bind(this),n.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):n.onDataArrival=this._onInitChunkArrival.bind(this),n.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;null!=this._mediaInfo&&this._mediaInfo.isSeekable()&&((t=this._searchSegmentIndexContains(e))===this._currentSegmentIndex?null==(n=this._mediaInfo.segments[t])?this._pendingSeekTime=e:(n=n.getNearestKeyframe(e),this._remuxer.seek(n.milliseconds),this._ioctl.seek(n.fileposition),this._pendingResolveSeekPoint=n.milliseconds):null==(n=this._mediaInfo.segments[t])?(this._pendingSeekTime=e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(t)):(n=n.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,n.fileposition),this._pendingResolveSeekPoint=n.milliseconds,this._reportSegmentMediaInfo(t)),this._enableStatisticsReporter())}},{key:"_searchSegmentIndexContains",value:function(e){for(var t=this._mediaDataSource.segments,n=t.length-1,r=0;r<t.length;r++)if(e<t[r].timestampBase){n=r-1;break}return n}},{key:"_onInitChunkArrival",value:function(e,t){var n,r=this;return 0<t?(this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,this._demuxer.parseChunks(e,t)):(n=b.probe(e)).match?(this._demuxer=new b(n,this._config),this._remuxer||(this._remuxer=new U(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.a.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){r._internalAbort()}),this._emitter.emit(C.a.DEMUX_ERROR,M.a.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),0)}},{key:"_onMediaInfo",value:function(e){var t=this,e=(null==this._mediaInfo&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,i.a.prototype)),Object.assign({},e));Object.setPrototypeOf(e,i.a.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=e,this._reportSegmentMediaInfo(this._currentSegmentIndex),null!=this._pendingSeekTime&&Promise.resolve().then(function(){var e=t._pendingSeekTime;t._pendingSeekTime=null,t.seek(e)})}},{key:"_onMetaDataArrived",value:function(e){this._emitter.emit(C.a.METADATA_ARRIVED,e)}},{key:"_onScriptDataArrived",value:function(e){this._emitter.emit(C.a.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(C.a.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(C.a.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(e,t){A.a.e(this.TAG,"IOException: type = ".concat(e,", code = ").concat(t.code,", msg = ").concat(t.msg)),this._emitter.emit(C.a.IO_ERROR,e,t),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(e,t){A.a.e(this.TAG,"DemuxException: type = ".concat(e,", info = ").concat(t)),this._emitter.emit(C.a.DEMUX_ERROR,e,t)}},{key:"_onRemuxerInitSegmentArrival",value:function(e,t){this._emitter.emit(C.a.INIT_SEGMENT,e,t)}},{key:"_onRemuxerMediaSegmentArrival",value:function(e,t){null==this._pendingSeekTime&&(this._emitter.emit(C.a.MEDIA_SEGMENT,e,t),null!=this._pendingResolveSeekPoint)&&"video"===e&&(e=t.info.syncPoints,t=this._pendingResolveSeekPoint,this._pendingResolveSeekPoint=null,O.a.safari&&0<e.length&&e[0].originalDts===t&&(t=e[0].pts),this._emitter.emit(C.a.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=Object.assign({},e);e.duration=this._mediaInfo.duration,e.segmentCount=this._mediaInfo.segmentCount,delete e.segments,delete e.keyframesIndex,this._emitter.emit(C.a.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,this._emitter.emit(C.a.STATISTICS_INFO,e)}},{key:"_onVideoResolutionChanged",value:function(e){this._emitter.emit(C.a.VIDEO_RESOLUTION_CHANGED,e)}},{key:"_onParsedData",value:function(e,t,n,r){this._emitter.emit(C.a.PARSEDDATA_ARRIVED,e,t,n,r)}}])&&N(t.prototype,n),r&&N(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Y.a=t},function(t,n,e){"use strict";var i=e(1);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==o(e)?e:e+""}(r.key),r)}}var s=function(){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");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}return t=e,(n=[{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}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}(),l=e(4),u=e(6),d=e(5);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==c(e)?e:e+""}(r.key),r)}}function H(e,t,n){t=m(t);var r=e,t=h()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n);if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");e=r;if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r)return(r=Object.getOwnPropertyDescriptor(r,t)).get?r.get.call(arguments.length<3?e:n):r.value}).apply(null,arguments)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(e,t){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function o(e,t){var n;if(this instanceof o)return(n=H(this,o,["fetch-stream-loader"])).TAG="FetchStreamLoader",n._seekHandler=e,n._config=t,n._needStash=!0,n._requestAbort=!1,n._contentLength=null,n._receivedLength=0,n;throw new TypeError("Cannot call a class as a function")}var t,n=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&_(n,e),n=o,e=[{key:"isSupported",value:function(){try{var e=u.a.msedge&&15048<=u.a.version.minor,t=!u.a.msedge||e;return self.fetch&&self.ReadableStream&&t}catch(e){return!1}}}],(t=[{key:"destroy",value:function(){var e,t,n,r,i;this.isWorking()&&this.abort(),e=o,t="destroy",n=this,i=f(m(1&(r=3)?e.prototype:e),t,n),(2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i)([])}},{key:"open",value:function(e,t){var n=this,r=(this._dataSource=e,this._range=t,e.url),i=(this._config.reuseRedirectedURL&&null!=e.redirectedURL&&(r=e.redirectedURL),this._seekHandler.getConfig(r,t)),o=new self.Headers;if("object"===c(i.headers)){var a,s=i.headers;for(a in s)s.hasOwnProperty(a)&&o.append(a,s[a])}r={method:"GET",headers:o,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if("object"===c(this._config.headers))for(var u in this._config.headers)o.append(u,this._config.headers[u]);!1===e.cors&&(r.mode="same-origin"),e.withCredentials&&(r.credentials="include"),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),self.AbortController&&(this._abortController=new self.AbortController,r.signal=this._abortController.signal),this._status=l.c.kConnecting,self.fetch(i.url,r).then(function(e){if(n._requestAbort)n._status=l.c.kIdle,e.body.cancel();else{var t;if(e.ok&&200<=e.status&&e.status<=299)return e.url!==i.url&&n._onURLRedirect&&(t=n._seekHandler.removeURLParameters(e.url),n._onURLRedirect(t)),null!=(t=e.headers.get("Content-Length"))&&(n._contentLength=parseInt(t),0!==n._contentLength)&&n._onContentLengthKnown&&n._onContentLengthKnown(n._contentLength),n._pump.call(n,e.body.getReader());if(n._status=l.c.kError,!n._onError)throw new d.d("FetchStreamLoader: Http code invalid, "+e.status+" "+e.statusText);n._onError(l.b.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})}}).catch(function(e){if(!n._abortController||!n._abortController.signal.aborted){if(n._status=l.c.kError,!n._onError)throw e;n._onError(l.b.EXCEPTION,{code:-1,msg:e.message})}})}},{key:"abort",value:function(){if(this._requestAbort=!0,(this._status!==l.c.kBuffering||!u.a.chrome)&&this._abortController)try{this._abortController.abort()}catch(e){}}},{key:"_pump",value:function(r){var i=this;return r.read().then(function(e){if(e.done)if(null!==i._contentLength&&i._receivedLength<i._contentLength){i._status=l.c.kError;var t=l.b.EARLY_EOF,n={code:-1,msg:"Fetch stream meet Early-EOF"};if(!i._onError)throw new d.d(n.msg);i._onError(t,n)}else i._status=l.c.kComplete,i._onComplete&&i._onComplete(i._range.from,i._range.from+i._receivedLength-1);else if(i._abortController&&i._abortController.signal.aborted)i._status=l.c.kComplete;else{if(!0===i._requestAbort)return i._status=l.c.kComplete,r.cancel();i._status=l.c.kBuffering;t=e.value.buffer,n=i._range.from+i._receivedLength;i._receivedLength+=t.byteLength,i._onDataArrival&&i._onDataArrival(t,n,i._receivedLength),i._pump(r)}}).catch(function(e){if(i._abortController&&i._abortController.signal.aborted)i._status=l.c.kComplete;else if(11!==e.code||!u.a.msedge){i._status=l.c.kError;var t=0,n=null,n=19!==e.code&&"network error"!==e.message||!(null===i._contentLength||null!==i._contentLength&&i._receivedLength<i._contentLength)?(t=l.b.EXCEPTION,{code:e.code,msg:e.message}):(t=l.b.EARLY_EOF,{code:e.code,msg:"Fetch stream meet Early-EOF"});if(!i._onError)throw new d.d(n.msg);i._onError(t,n)}})}}])&&r(n.prototype,t),e&&r(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}(l.a);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==y(e)?e:e+""}(r.key),r)}}function W(e,t,n){t=b(t);var r=e,t=g()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n);if(t&&("object"==y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");e=r;if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}function w(){return(w="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}(e,t);if(r)return(r=Object.getOwnPropertyDescriptor(r,t)).get?r.get.call(arguments.length<3?e:n):r.value}).apply(null,arguments)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function M(e,t){return(M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var S=function(e){function o(e,t){var n;if(this instanceof o)return(n=W(this,o,["xhr-moz-chunked-loader"])).TAG="MozChunkedLoader",n._seekHandler=e,n._config=t,n._needStash=!0,n._xhr=null,n._requestAbort=!1,n._contentLength=null,n._receivedLength=0,n;throw new TypeError("Cannot call a class as a function")}var t,n=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&M(n,e),n=o,e=[{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 i.a.w("MozChunkedLoader",e.message),!1}}}],(t=[{key:"destroy",value:function(){var e,t,n,r,i;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),e=o,t="destroy",n=this,i=w(b(1&(r=3)?e.prototype:e),t,n),(2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i)([])}},{key:"open",value:function(e,t){this._dataSource=e,this._range=t;var n=e.url,n=(this._config.reuseRedirectedURL&&null!=e.redirectedURL&&(n=e.redirectedURL),this._seekHandler.getConfig(n,t)),r=(this._requestURL=n.url,this._xhr=new XMLHttpRequest);if(r.open("GET",n.url,!0),r.responseType="moz-chunked-arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onloadend=this._onLoadEnd.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),"object"===y(n.headers)){var i,o=n.headers;for(i in o)o.hasOwnProperty(i)&&r.setRequestHeader(i,o[i])}if("object"===y(this._config.headers)){var a,s=this._config.headers;for(a in s)s.hasOwnProperty(a)&&r.setRequestHeader(a,s[a])}this._status=l.c.kConnecting,r.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=l.c.kComplete}},{key:"_onReadyStateChange",value:function(e){var t,e=e.target;if(2===e.readyState)if(null!=e.responseURL&&e.responseURL!==this._requestURL&&this._onURLRedirect&&(t=this._seekHandler.removeURLParameters(e.responseURL),this._onURLRedirect(t)),0!==e.status&&(e.status<200||299<e.status)){if(this._status=l.c.kError,!this._onError)throw new d.d("MozChunkedLoader: Http code invalid, "+e.status+" "+e.statusText);this._onError(l.b.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})}else this._status=l.c.kBuffering}},{key:"_onProgress",value:function(e){var t;this._status!==l.c.kError&&(null===this._contentLength&&null!==e.total&&0!==e.total&&(this._contentLength=e.total,this._onContentLengthKnown)&&this._onContentLengthKnown(this._contentLength),e=e.target.response,t=this._range.from+this._receivedLength,this._receivedLength+=e.byteLength,this._onDataArrival)&&this._onDataArrival(e,t,this._receivedLength)}},{key:"_onLoadEnd",value:function(e){!0===this._requestAbort?this._requestAbort=!1:this._status!==l.c.kError&&(this._status=l.c.kComplete,this._onComplete)&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(e){this._status=l.c.kError;var t=0,n=null,n=this._contentLength&&e.loaded<this._contentLength?(t=l.b.EARLY_EOF,{code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=l.b.EXCEPTION,{code:-1,msg:e.constructor.name+" "+e.type});if(!this._onError)throw new d.d(n.msg);this._onError(t,n)}}])&&v(n.prototype,t),e&&v(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}(l.a);l.a;function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=k(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==k(e)?e:e+""}(r.key),r)}}function F(e,t,n){t=P(t);var r=e,t=T()?Reflect.construct(t,n||[],P(e).constructor):t.apply(e,n);if(t&&("object"==k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");e=r;if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(T=function(){return!!e})()}function D(){return(D="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=P(e)););return e}(e,t);if(r)return(r=Object.getOwnPropertyDescriptor(r,t)).get?r.get.call(arguments.length<3?e:n):r.value}).apply(null,arguments)}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e,t){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var E=function(e){function o(e,t){var n;if(this instanceof o)return(n=F(this,o,["xhr-range-loader"])).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 s,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;throw new TypeError("Cannot call a class as a function")}var t,n=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&C(n,e),n=o,e=[{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 i.a.w("RangeLoader",e.message),!1}}}],(t=[{key:"destroy",value:function(){var e,t,n,r,i;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),e=o,t="destroy",n=this,i=D(P(1&(r=3)?e.prototype:e),t,n),(2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i)([])}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(e,t){this._dataSource=e,this._range=t,this._status=l.c.kConnecting;e=!1;null!=this._dataSource.filesize&&0!==this._dataSource.filesize&&(e=!0,this._totalLength=this._dataSource.filesize),this._totalLengthReceived||e?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,n=(this._config.reuseRedirectedURL&&(null!=this._currentRedirectedURL?n=this._currentRedirectedURL:null!=e.redirectedURL&&(n=e.redirectedURL)),this._seekHandler.getConfig(n,t)),r=(this._currentRequestURL=n.url,this._xhr=new XMLHttpRequest);if(r.open("GET",n.url,!0),r.responseType="arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onload=this._onLoad.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),"object"===k(n.headers)){var i,o=n.headers;for(i in o)o.hasOwnProperty(i)&&r.setRequestHeader(i,o[i])}if("object"===k(this._config.headers)){var a,s=this._config.headers;for(a in s)s.hasOwnProperty(a)&&r.setRequestHeader(a,s[a])}r.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=l.c.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=e.target;if(2===e.readyState)if(null!=e.responseURL&&(t=this._seekHandler.removeURLParameters(e.responseURL),e.responseURL!==this._currentRequestURL)&&t!==this._currentRedirectedURL&&(this._currentRedirectedURL=t,this._onURLRedirect)&&this._onURLRedirect(t),200<=e.status&&e.status<=299)this._waitForTotalLength||(this._status=l.c.kBuffering);else{if(this._status=l.c.kError,!this._onError)throw new d.d("RangeLoader: Http code invalid, "+e.status+" "+e.statusText);this._onError(l.b.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})}}},{key:"_onProgress",value:function(e){if(this._status!==l.c.kError){if(null===this._contentLength){var t=!1;if(this._waitForTotalLength&&(this._waitForTotalLength=!1,t=this._totalLengthReceived=!0,n=e.total,this._internalAbort(),null!=n&0!==n)&&(this._totalLength=n),-1===this._range.to?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,t)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var n=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(n)}}},{key:"_normalizeSpeed",value:function(e){var t,n=this._chunkSizeKBList,r=n.length-1,i=0,o=r;if(e<n[0])return n[0];for(;i<=o;){if((t=i+Math.floor((o-i)/2))===r||e>=n[t]&&e<n[t+1])return n[t];n[t]<e?i=t+1:o=t-1}}},{key:"_onLoad",value:function(e){var t,n;this._status!==l.c.kError&&(this._waitForTotalLength?this._waitForTotalLength=!1:((this._lastTimeLoaded=0)!==(t=0===(t=this._speedSampler.lastSecondKBps)&&(this._zeroSpeedChunkCount++,3<=this._zeroSpeedChunkCount)?this._speedSampler.currentKBps:t)&&(t=this._normalizeSpeed(t),this._currentSpeedNormalized!==t)&&(this._currentSpeedNormalized=t,this._currentChunkSizeKB=t),t=e.target.response,e=this._range.from+this._receivedLength,this._receivedLength+=t.byteLength,n=!1,null!=this._contentLength&&this._receivedLength<this._contentLength?this._openSubRange():n=!0,this._onDataArrival&&this._onDataArrival(t,e,this._receivedLength),n&&(this._status=l.c.kComplete,this._onComplete)&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)))}},{key:"_onXhrError",value:function(e){this._status=l.c.kError;var t=0,n=null,n=this._contentLength&&0<this._receivedLength&&this._receivedLength<this._contentLength?(t=l.b.EARLY_EOF,{code:-1,msg:"RangeLoader meet Early-Eof"}):(t=l.b.EXCEPTION,{code:-1,msg:e.constructor.name+" "+e.type});if(!this._onError)throw new d.d(n.msg);this._onError(t,n)}}])&&L(n.prototype,t),e&&L(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}(l.a);function Y(e){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=Y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=Y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==Y(e)?e:e+""}(r.key),r)}}function z(e,t,n){t=O(t);var r=e,t=A()?Reflect.construct(t,n||[],O(e).constructor):t.apply(e,n);if(t&&("object"==Y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");e=r;if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(A=function(){return!!e})()}function U(){return(U="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=O(e)););return e}(e,t);if(r)return(r=Object.getOwnPropertyDescriptor(r,t)).get?r.get.call(arguments.length<3?e:n):r.value}).apply(null,arguments)}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,t){return(B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var N=function(e){function o(){var e;if(this instanceof o)return(e=z(this,o,["websocket-loader"])).TAG="WebSocketLoader",e._needStash=!0,e._ws=null,e._requestAbort=!1,e._receivedLength=0,e;throw new TypeError("Cannot call a class as a function")}var t,n=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&B(n,e),n=o,e=[{key:"isSupported",value:function(){try{return void 0!==self.WebSocket}catch(e){return!1}}}],(t=[{key:"destroy",value:function(){var e,t,n,r,i;this._ws&&this.abort(),e=o,t="destroy",n=this,i=U(O(1&(r=3)?e.prototype:e),t,n),(2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i)([])}},{key:"open",value:function(t){try{var e=this._ws=new self.WebSocket(t.url);e.binaryType="arraybuffer",e.onopen=this._onWebSocketOpen.bind(this),e.onclose=this._onWebSocketClose.bind(this),e.onmessage=this._onWebSocketMessage.bind(this),e.onerror=this._onWebSocketError.bind(this),this._status=l.c.kConnecting}catch(e){this._status=l.c.kError;t={code:e.code,msg:e.message};if(!this._onError)throw new d.d(t.msg);this._onError(l.b.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=l.c.kComplete}},{key:"_onWebSocketOpen",value:function(e){this._status=l.c.kBuffering}},{key:"_onWebSocketClose",value:function(e){!0===this._requestAbort?this._requestAbort=!1:(this._status=l.c.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-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=l.c.kError;e={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(!this._onError)throw new d.d(e.msg);this._onError(l.b.EXCEPTION,e)}}},{key:"_dispatchArrayBuffer",value:function(e){var t=this._receivedLength;this._receivedLength+=e.byteLength,this._onDataArrival&&this._onDataArrival(e,t,this._receivedLength)}},{key:"_onWebSocketError",value:function(e){this._status=l.c.kError;e={code:e.code,msg:e.message};if(!this._onError)throw new d.d(e.msg);this._onError(l.b.EXCEPTION,e)}}])&&x(n.prototype,t),e&&x(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}(l.a);function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=I(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=I(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==I(e)?e:e+""}(r.key),r)}}var G=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this._zeroStart=e||!1}return e=t,(n=[{key:"getConfig",value:function(e,t){var n={};return 0!==t.from||-1!==t.to?(t=-1!==t.to?"bytes=".concat(t.from.toString(),"-").concat(t.to.toString()):"bytes=".concat(t.from.toString(),"-"),n.Range=t):this._zeroStart&&(n.Range="bytes=0-"),{url:e,headers:n}}},{key:"removeURLParameters",value:function(e){return e}}])&&J(e.prototype,n),r&&J(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}();function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=R(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==R(e)?e:e+""}(r.key),r)}}var q=function(){function n(e,t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");this._startName=e,this._endName=t}return e=n,(t=[{key:"getConfig",value:function(e,t){var n;return 0===t.from&&-1===t.to||(n=!0,-1===e.indexOf("?")&&(e+="?",n=!1),n&&(e+="&"),e+="".concat(this._startName,"=").concat(t.from.toString()),-1!==t.to&&(e+="&".concat(this._endName,"=").concat(t.to.toString()))),{url:e,headers:{}}}},{key:"removeURLParameters",value:function(e){var t=e.split("?")[0],n=void 0,r=e.indexOf("?"),i="";if(null!=(n=-1!==r?e.substring(r+1):n)&&0<n.length)for(var o=n.split("&"),a=0;a<o.length;a++){var s=o[a].split("=");s[0]!==this._startName&&s[0]!==this._endName&&(0<a&&(i+="&"),i+=o[a])}return 0===i.length?t:t+"?"+i}}])&&V(e.prototype,t),r&&V(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=j(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==j(e)?e:e+""}(r.key),r)}}e=function(){function r(e,t,n){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");this.TAG="IOController",this._config=t,this._extraData=n,this._stashInitialSize=393216,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,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()}return e=r,(t=[{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:"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===E?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var e=this._config;if("range"===e.seekType)this._seekHandler=new G(this._config.rangeLoadZeroStart);else if("param"===e.seekType){var t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new q(t,n)}else{if("custom"!==e.seekType)throw new d.b("Invalid seekType in config: ".concat(e.seekType));if("function"!=typeof e.customSeekHandler)throw new d.b("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=N;else if(p.isSupported())this._loaderClass=p;else if(S.isSupported())this._loaderClass=S;else{if(!E.isSupported())throw new d.d("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=E}}},{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;t={from:e,to:-1};this._currentRange={from:t.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,t),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(e){if(!e||"string"!=typeof e||0===e.length)throw new d.b("Url must be a non-empty string!");this._dataSource.url=e}},{key:"_expandBuffer",value:function(e){for(var t,n,r=this._stashSize;r+1048576<e;)r*=2;(r+=1048576)!==this._bufferSize&&(t=new ArrayBuffer(r),0<this._stashUsed&&(n=new Uint8Array(this._stashBuffer,0,this._stashUsed),new Uint8Array(t,0,r).set(n,0)),this._stashBuffer=t,this._bufferSize=r)}},{key:"_normalizeSpeed",value:function(e){var t,n=this._speedNormalizeList,r=n.length-1,i=0,o=r;if(e<n[0])return n[0];for(;i<=o;){if((t=i+Math.floor((o-i)/2))===r||e>=n[t]&&e<n[t+1])return n[t];n[t]<e?i=t+1:o=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 d.a("IOController: No existing consumer (onDataArrival) callback!");var r,i,o;this._paused||(this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof)&&this._onRecoveredEarlyEof(),this._speedSampler.addBytes(e.byteLength),0!==(r=this._speedSampler.lastSecondKBps)&&(r=this._normalizeSpeed(r),this._speedNormalized!==r)&&(this._speedNormalized=r,this._adjustStashSize(r)),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):(r=new Uint8Array(this._stashBuffer,0,this._bufferSize),0<this._stashUsed?(i=this._stashBuffer.slice(0,this._stashUsed),(o=this._dispatchChunks(i,this._stashByteStart))<i.byteLength?0<o&&(i=new Uint8Array(i,o),r.set(i,0),this._stashUsed=i.byteLength,this._stashByteStart+=o):(this._stashUsed=0,this._stashByteStart+=o),this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),r=new Uint8Array(this._stashBuffer,0,this._bufferSize)),r.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength):(i=this._dispatchChunks(e,t))<e.byteLength&&((o=e.byteLength-i)>this._bufferSize&&(this._expandBuffer(o),r=new Uint8Array(this._stashBuffer,0,this._bufferSize)),r.set(new Uint8Array(e,i),0),this._stashUsed+=o,this._stashByteStart=t+i))):0===this._stashUsed?(r=this._dispatchChunks(e,t))<e.byteLength&&((o=e.byteLength-r)>this._bufferSize&&this._expandBuffer(o),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,r),0),this._stashUsed+=o,this._stashByteStart=t+r):(this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength),(i=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&&(t=new Uint8Array(this._stashBuffer,o),i.set(t,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),r=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;i.a.w(this.TAG,"".concat(r," bytes unconsumed data remain when flush buffer, dropped"))}return this._stashUsed=0,this._stashByteStart=0,r}return 0}},{key:"_onLoaderComplete",value:function(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(e,t){switch(i.a.e(this.TAG,"Loader error, code = ".concat(t.code,", msg = ").concat(t.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=l.b.UNRECOVERABLE_EARLY_EOF),e){case l.b.EARLY_EOF:var n;if(!this._config.isLive)if(this._totalLength)return void((n=this._currentRange.to+1)<this._totalLength&&(i.a.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(n,!1)));e=l.b.UNRECOVERABLE_EARLY_EOF;break;case l.b.UNRECOVERABLE_EARLY_EOF:case l.b.CONNECTING_TIMEOUT:case l.b.HTTP_STATUS_CODE_INVALID:case l.b.EXCEPTION:}if(!this._onError)throw new d.d("IOException: "+t.msg);this._onError(e,t)}}])&&Z(e.prototype,t),n&&Z(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();n.a=e},function(e,t,n){var r=n(13),i=n(7),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(42)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var u=n(23),l=n(12),d=n(44);e.exports=function(s){return function(e,t,n){var r,i=u(e),o=l(i.length),a=d(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(34);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var o=n(11)("iterator"),a=!1;try{var r=[7][o]();r.return=function(){a=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var r=[7],i=r[o]();i.next=function(){return{done:n=!0}},r[o]=function(){return i},e(r)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(9);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(59),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){n=n.call(e,t);if("object"!=typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,n){"use strict";n(126);var r,u=n(19),l=n(22),d=n(8),c=n(35),h=n(11),f=n(98),m=h("species"),_=!d(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),p=(r=(n=/(?:)/).exec,n.exec=function(){return r.apply(this,arguments)},2===(n="ab".split(n)).length&&"a"===n[0]&&"b"===n[1]);e.exports=function(n,e,t){var o,r,i=h(n),a=!d(function(){var e={};return e[i]=function(){return 7},7!=""[n](e)}),s=a?!d(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},"split"===n&&(t.constructor={},t.constructor[m]=function(){return t}),t[i](""),!e}):void 0;a&&s&&("replace"!==n||_)&&("split"!==n||p)||(o=/./[i],t=(s=t(c,i,""[n],function(e,t,n,r,i){return t.exec===f?a&&!i?{done:!0,value:o.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}))[0],r=s[1],u(String.prototype,n,t),l(RegExp.prototype,i,2==e?function(e,t){return r.call(e,this,t)}:function(e){return r.call(e,this)}))}},function(e,t,n){var c=n(26),h=n(121),f=n(93),m=n(9),_=n(12),p=n(95),y={},v={};(t=e.exports=function(e,t,n,r,i){var o,a,s,u,i=i?function(){return e}:p(e),l=c(n,r,t?2:1),d=0;if("function"!=typeof i)throw TypeError(e+" is not iterable!");if(f(i)){for(o=_(e.length);d<o;d++)if((u=t?l(m(a=e[d])[0],a[1]):l(e[d]))===y||u===v)return u}else for(s=i.call(e);!(a=s.next()).done;)if((u=h(s,l,a.value,t))===y||u===v)return u}).BREAK=y,t.RETURN=v},function(e,t,n){n=n(7).navigator;e.exports=n&&n.userAgent||""},function(e,t,n){"use strict";var y=n(7),v=n(2),g=n(19),w=n(55),b=n(38),M=n(71),S=n(54),k=n(10),L=n(8),T=n(67),D=n(50),P=n(84);e.exports=function(n,e,t,r,i,o){function a(e){var n=_[e];g(_,e,"delete"==e?function(e){return!(o&&!k(e))&&n.call(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!k(e))&&n.call(this,0===e?0:e)}:"get"==e?function(e){return o&&!k(e)?void 0:n.call(this,0===e?0:e)}:"add"==e?function(e){return n.call(this,0===e?0:e),this}:function(e,t){return n.call(this,0===e?0:e,t),this})}var s,u,l,d,c,h=y[n],f=h,m=i?"set":"add",_=f&&f.prototype,p={};return"function"==typeof f&&(o||_.forEach&&!L(function(){(new f).entries().next()}))?(u=(s=new f)[m](o?{}:-0,1)!=s,l=L(function(){s.has(1)}),d=T(function(e){new f(e)}),c=!o&&L(function(){for(var e=new f,t=5;t--;)e[m](t,t);return!e.has(-0)}),d||(((f=e(function(e,t){S(e,f,n);e=P(new h,e,f);return null!=t&&M(t,i,e[m],e),e})).prototype=_).constructor=f),(l||c)&&(a("delete"),a("has"),i)&&a("get"),(c||u)&&a(m),o&&_.clear&&delete _.clear):(f=r.getConstructor(e,n,i,m),w(f.prototype,t),b.NEED=!0),D(f,n),p[n]=f,v(v.G+v.W+v.F*(f!=h),p),o||r.setStrong(f,n,i),f}},function(e,t,n){for(var r,i=n(7),o=n(22),n=n(41),a=n("typed_array"),s=n("view"),n=!(!i.ArrayBuffer||!i.DataView),u=n,l=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(r=i[d[l++]])?(o(r.prototype,a,!0),o(r.prototype,s,!0)):u=!1;e.exports={ABV:n,CONSTR:u,TYPED:a,VIEW:s}},function(e,t,i){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==o(e)?e:e+""}(r.key),r)}}var n=function(){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function")}return t=e,r=[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Object.assign=Object.assign||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 r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t},"function"!=typeof self.Promise&&i(471).polyfill()}}],(n=null)&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();n.install(),t.a=n},function(e,t,n){e.exports=n(475).default},function(e,t,n){var r=n(10),i=n(7).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){t.f=n(11)},function(e,t,n){var r=n(63)("keys"),i=n(41);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){n=n(7).document;e.exports=n&&n.documentElement},function(e,t,i){function o(e,t){if(r(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")}var n=i(10),r=i(9);e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,n,r){try{(r=i(26)(Function.call,i(29).f(Object.prototype,"__proto__").set,2))(e,[]),n=!(e instanceof Array)}catch(e){n=!0}return function(e,t){return o(e,t),n?e.__proto__=t:r(e,t),e}}({},!1):void 0),check:o}},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){var r=n(10),i=n(82).set;e.exports=function(e,t,n){var t=t.constructor;return t!==n&&"function"==typeof t&&(t=t.prototype)!==n.prototype&&r(t)&&i&&i(e,t),e}},function(e,t,n){"use strict";var i=n(28),o=n(35);e.exports=function(e){var t=String(o(this)),n="",r=i(e);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;0<r;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||22025.465794806718<n(10)||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:-1e-6<e&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){var o=n(28),a=n(35);e.exports=function(i){return function(e,t){var n,e=String(a(e)),t=o(t),r=e.length;return t<0||r<=t?i?"":void 0:(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?i?e.charAt(t):n:i?e.slice(t,t+2):r-56320+(n-55296<<10)+65536}}},function(e,t,n){"use strict";function y(){return this}var v=n(42),g=n(2),w=n(19),b=n(22),M=n(52),S=n(120),k=n(50),L=n(47),T=n(11)("iterator"),D=!([].keys&&"next"in[].keys()),P="values";e.exports=function(e,t,n,r,i,o,a){S(n,t,r);function s(e){if(!D&&e in h)return h[e];switch(e){case"keys":case P:return function(){return new n(this,e)}}return function(){return new n(this,e)}}var u,l,r=t+" Iterator",d=i==P,c=!1,h=e.prototype,f=h[T]||h["@@iterator"]||i&&h[i],m=f||s(i),_=i?d?s("entries"):m:void 0,p="Array"==t&&h.entries||f;if(p&&(p=L(p.call(new e)))!==Object.prototype&&p.next&&(k(p,r,!0),v||"function"==typeof p[T]||b(p,T,y)),d&&f&&f.name!==P&&(c=!0,m=function(){return f.call(this)}),v&&!a||!D&&!c&&h[T]||b(h,T,m),M[t]=m,M[r]=y,i)if(u={values:d?m:s(P),keys:o?m:s("keys"),entries:_},a)for(l in u)l in h||w(h,l,u[l]);else g(g.P+g.F*(D||c),t,u);return u}},function(e,t,n){var r=n(91),i=n(35);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},function(e,t,n){var r=n(10),i=n(34),o=n(11)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(11)("match");e.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,!"/./"[t](n)}catch(e){}}return!0}},function(e,t,n){var r=n(52),i=n(11)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){"use strict";var r=n(16),i=n(40);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(59),i=n(11)("iterator"),o=n(52);e.exports=n(13).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){"use strict";var a=n(18),s=n(44),u=n(12);e.exports=function(e){for(var t=a(this),n=u(t.length),r=arguments.length,i=s(1<r?arguments[1]:void 0,n),r=2<r?arguments[2]:void 0,o=void 0===r?n:s(r,n);i<o;)t[i++]=e;return t}},function(e,t,n){"use strict";var r=n(48),i=n(125),o=n(52),a=n(23);e.exports=n(89)(Array,"Array",function(e,t){this._t=a(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,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r,i,o=n(68),a=RegExp.prototype.exec,s=String.prototype.replace,n=a,u="lastIndex",l=(r=/a/,i=/b*/g,a.call(r,"a"),a.call(i,"a"),0!==r[u]||0!==i[u]),d=void 0!==/()??/.exec("")[1];e.exports=n=l||d?function(e){var t,n,r,i;return d&&(n=new RegExp("^"+this.source+"$(?!\\s)",o.call(this))),l&&(t=this[u]),r=a.call(this,e),l&&r&&(this[u]=this.global?r.index+r[0].length:t),d&&r&&1<r.length&&s.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r}:n},function(e,t,n){"use strict";var r=n(88)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){function r(){var e,t=+this;y.hasOwnProperty(t)&&(e=y[t],delete y[t],e())}function i(e){r.call(e.data)}var o,a=n(26),s=n(114),u=n(81),l=n(77),d=n(7),c=d.process,h=d.setImmediate,f=d.clearImmediate,m=d.MessageChannel,_=d.Dispatch,p=0,y={},v="onreadystatechange";h&&f||(h=function(e){for(var t=[],n=1;n<arguments.length;)t.push(arguments[n++]);return y[++p]=function(){s("function"==typeof e?e:Function(e),t)},o(p),p},f=function(e){delete y[e]},"process"==n(34)(c)?o=function(e){c.nextTick(a(r,e,1))}:_&&_.now?o=function(e){_.now(a(r,e,1))}:m?(m=(n=new m).port2,n.port1.onmessage=i,o=a(m.postMessage,m,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(o=function(e){d.postMessage(e+"","*")},d.addEventListener("message",i,!1)):o=v in l("script")?function(e){u.appendChild(l("script"))[v]=function(){u.removeChild(this),r.call(e)}}:function(e){setTimeout(a(r,e,1),0)}),e.exports={set:h,clear:f}},function(R,e,t){"use strict";var n=t(7),r=t(15),j=t(42),i=t(74),o=t(22),a=t(55),s=t(8),u=t(54),H=t(28),W=t(12),d=t(133),l=t(46).f,F=t(16).f,z=t(96),t=t(50),c="ArrayBuffer",h="DataView",f="prototype",m="Wrong index!",_=n[c],p=n[h],y=n.Math,v=n.RangeError,g=n.Infinity,w=_,U=y.abs,b=y.pow,B=y.floor,N=y.log,J=y.LN2,n="byteLength",y="byteOffset",M=r?"_b":"buffer",S=r?"_l":n,k=r?"_o":y;function L(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,n=(1<<s)-1,u=n>>1,l=23===t?b(2,-24)-b(2,-77):0,d=0,c=e<0||0===e&&1/e<0?1:0;for((e=U(e))!=e||e===g?(i=e!=e?1:0,r=n):(r=B(N(e)/J),e*(o=b(2,-r))<1&&(r--,o*=2),2<=(e+=1<=r+u?l/o:l*b(2,1-u))*o&&(r++,o/=2),n<=r+u?(i=0,r=n):1<=r+u?(i=(e*o-1)*b(2,t),r+=u):(i=e*b(2,u-1)*b(2,t),r=0));8<=t;a[d++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;0<s;a[d++]=255&r,r/=256,s-=8);return a[--d]|=128*c,a}function T(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,u=n-1,i=e[u--],l=127&i;for(i>>=7;0<s;l=256*l+e[u],u--,s-=8);for(r=l&(1<<-s)-1,l>>=-s,s+=t;0<s;r=256*r+e[u],u--,s-=8);if(0===l)l=1-a;else{if(l===o)return r?NaN:i?-g:g;r+=b(2,t),l-=a}return(i?-1:1)*r*b(2,l-t)}function D(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function P(e){return[255&e]}function C(e){return[255&e,e>>8&255]}function E(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function G(e){return L(e,52,8)}function V(e){return L(e,23,4)}function Y(e,t,n){F(e[f],t,{get:function(){return this[n]}})}function x(e,t,n,r){n=d(+n);if(n+t>e[S])throw v(m);var i=e[M]._b,n=n+e[k],e=i.slice(n,n+t);return r?e:e.reverse()}function A(e,t,n,r,i,o){n=d(+n);if(n+t>e[S])throw v(m);for(var a=e[M]._b,s=n+e[k],u=r(+i),l=0;l<t;l++)a[s+l]=u[o?l:t-l-1]}if(i.ABV){if(!s(function(){_(1)})||!s(function(){new _(-1)})||s(function(){return new _,new _(1.5),new _(NaN),_.name!=c})){for(var O,s=(_=function(e){return u(this,_),new w(d(e))})[f]=w[f],I=l(w),q=0;I.length>q;)(O=I[q++])in _||o(_,O,w[O]);j||(s.constructor=_)}var l=new p(new _(2)),Z=p[f].setInt8;l.setInt8(0,2147483648),l.setInt8(1,2147483649),!l.getInt8(0)&&l.getInt8(1)||a(p[f],{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},!0)}else _=function(e){u(this,_,c);e=d(e);this._b=z.call(new Array(e),0),this[S]=e},p=function(e,t,n){u(this,p,h),u(e,_,h);var r=e[S],t=H(t);if(t<0||r<t)throw v("Wrong offset!");if(r<t+(n=void 0===n?r-t:W(n)))throw v("Wrong length!");this[M]=e,this[k]=t,this[S]=n},r&&(Y(_,n,"_l"),Y(p,"buffer","_b"),Y(p,n,"_l"),Y(p,y,"_o")),a(p[f],{getInt8:function(e){return x(this,1,e)[0]<<24>>24},getUint8:function(e){return x(this,1,e)[0]},getInt16:function(e){e=x(this,2,e,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(e){e=x(this,2,e,arguments[1]);return e[1]<<8|e[0]},getInt32:function(e){return D(x(this,4,e,arguments[1]))},getUint32:function(e){return D(x(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return T(x(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return T(x(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){A(this,1,e,P,t)},setUint8:function(e,t){A(this,1,e,P,t)},setInt16:function(e,t){A(this,2,e,C,t,arguments[2])},setUint16:function(e,t){A(this,2,e,C,t,arguments[2])},setInt32:function(e,t){A(this,4,e,E,t,arguments[2])},setUint32:function(e,t){A(this,4,e,E,t,arguments[2])},setFloat32:function(e,t){A(this,4,e,V,t,arguments[2])},setFloat64:function(e,t){A(this,8,e,G,t,arguments[2])}});t(_,c),t(p,h),o(p[f],i.VIEW,!0),e[c]=_,e[h]=p},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){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(138)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(H,W){function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var e="Netscape",F=40;function _(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 _(null)}C="Microsoft Internet Explorer"==e?(_.prototype.am=function(e,t,n,r,i,o){var a=32767&t;for(t>>=15;0<=--o;){var s=32767&this[e],u=this[e++]>>15,l=t*s+u*a,i=((s=a*s+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+t*u+(i>>>30);n[r++]=1073741823&s}return i},30):"Netscape"!=e?(_.prototype.am=function(e,t,n,r,i,o){for(;0<=--o;){var a=t*this[e++]+n[r]+i,i=Math.floor(a/67108864);n[r++]=67108863&a}return i},26):(_.prototype.am=function(e,t,n,r,i,o){var a=16383&t;for(t>>=14;0<=--o;){var s=16383&this[e],u=this[e++]>>14,l=t*s+u*a,i=((s=a*s+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+t*u;n[r++]=268435455&s}return i},28),_.prototype.DB=C,_.prototype.DM=(1<<C)-1,_.prototype.DV=1<<C;_.prototype.FV=Math.pow(2,52),_.prototype.F1=52-C,_.prototype.F2=2*C-52;for(var z="0123456789abcdefghijklmnopqrstuvwxyz",n=[],t="0".charCodeAt(0),r=0;r<=9;++r)n[t++]=r;for(t="a".charCodeAt(0),r=10;r<36;++r)n[t++]=r;for(t="A".charCodeAt(0),r=10;r<36;++r)n[t++]=r;function s(e){return z.charAt(e)}function U(e,t){e=n[e.charCodeAt(t)];return null==e?-1:e}function m(e){var t=p();return t.fromInt(e),t}function y(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 g(e){this.m=e}function w(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 B(e,t){return e&t}function o(e,t){return e|t}function N(e,t){return e^t}function J(e,t){return e&~t}function u(){}function G(e){return e}function b(e){this.r2=p(),this.q3=p(),_.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}g.prototype.convert=function(e){return e.s<0||0<=e.compareTo(this.m)?e.mod(this.m):e},g.prototype.revert=function(e){return e},g.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},g.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},g.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},w.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(_.ZERO)&&this.m.subTo(t,t),t},w.prototype.revert=function(e){var t=p();return e.copyTo(t),this.reduce(t),t},w.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],r=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,r,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)},w.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},w.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},_.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},_.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},_.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 r=e.length,i=!1,o=0;0<=--r;){var a=8==n?255&e[r]:U(e,r);a<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,(o+=n)>=this.DB&&(o-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,0<o)&&(this[this.t-1]|=(1<<this.DB-o)-1<<o),this.clamp(),i&&_.ZERO.subTo(this,this)},_.prototype.clamp=function(){for(var e=this.s&this.DM;0<this.t&&this[this.t-1]==e;)--this.t},_.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},_.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},_.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(e/this.DB),a=this.s<<n&this.DM,s=this.t-1;0<=s;--s)t[s+o+1]=this[s]>>r|a,a=(this[s]&i)<<n;for(s=o-1;0<=s;--s)t[s]=0;t[o]=a,t.t=this.t+o+1,t.s=this.s,t.clamp()},_.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 r=e%this.DB,i=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<i,t[a-n]=this[a]>>r;0<r&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}},_.prototype.subTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:0<r&&(t[n++]=r),t.t=n,t.clamp()},_.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;0<=--i;)t[i]=0;for(i=0;i<r.t;++i)t[i+n.t]=n.am(0,r[i],t,i,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&_.ZERO.subTo(t,t)},_.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 r=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,r,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()},_.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t)null!=t&&t.fromInt(0),null!=n&&this.copyTo(n);else{null==n&&(n=p());var o=p(),a=this.s,e=e.s,s=this.DB-y(r[r.t-1]);if(0<s?(r.lShiftTo(s,o),i.lShiftTo(s,n)):(r.copyTo(o),i.copyTo(n)),0!=(i=o[(r=o.t)-1])){var u=i*(1<<this.F1)+(1<r?o[r-2]>>this.F2:0),l=this.FV/u,u=(1<<this.F1)/u,d=1<<this.F2,c=n.t,h=c-r,f=null==t?p():t;for(o.dlShiftTo(h,f),0<=n.compareTo(f)&&(n[n.t++]=1,n.subTo(f,n)),_.ONE.dlShiftTo(r,f),f.subTo(o,o);o.t<r;)o[o.t++]=0;for(;0<=--h;){var m=n[--c]==i?this.DM:Math.floor(n[c]*l+(n[c-1]+d)*u);if((n[c]+=o.am(0,m,n,h,0,r))<m)for(o.dlShiftTo(h,f),n.subTo(f,n);n[c]<--m;)n.subTo(f,n)}null!=t&&(n.drShiftTo(r,t),a!=e)&&_.ZERO.subTo(t,t),n.t=r,n.clamp(),0<s&&n.rShiftTo(s,n),a<0&&_.ZERO.subTo(n,n)}}}},_.prototype.invDigit=function(){var e,t;return this.t<1||0==(1&(e=this[0]))?0:0<(t=(t=(t=(t=(t=3&e)*(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},_.prototype.isEven=function(){return 0==(0<this.t?1&this[0]:this.s)},_.prototype.exp=function(e,t){if(4294967295<e||e<1)return _.ONE;var n,r=p(),i=p(),o=t.convert(this),a=y(e)-1;for(o.copyTo(r);0<=--a;)t.sqrTo(r,i),0<(e&1<<a)?t.mulTo(i,o,r):(n=r,r=i,i=n);return t.revert(r)},_.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,r=!1,i="",o=this.t,a=this.DB-o*this.DB%e;if(0<o--)for(a<this.DB&&0<(t=this[o]>>a)&&(r=!0,i=s(t));0<=o;)a<e?(t=(this[o]&(1<<a)-1)<<e-a,t|=this[--o]>>(a+=this.DB-e)):(t=this[o]>>(a-=e)&n,a<=0&&(a+=this.DB,--o)),(r=0<t?!0:r)&&(i+=s(t));return r?i:"0"},_.prototype.negate=function(){var e=p();return _.ZERO.subTo(this,e),e},_.prototype.abs=function(){return this.s<0?this.negate():this},_.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},_.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+y(this[this.t-1]^this.s&this.DM)},_.prototype.mod=function(e){var t=p();return this.abs().divRemTo(e,null,t),this.s<0&&0<t.compareTo(_.ZERO)&&e.subTo(t,t),t},_.prototype.modPowInt=function(e,t){return t=new(e<256||t.isEven()?g:w)(t),this.exp(e,t)},_.ZERO=m(0),_.ONE=m(1),u.prototype.convert=G,u.prototype.revert=G,u.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},u.prototype.sqrTo=function(e,t){e.squareTo(t)},b.prototype.convert=function(e){var t;return e.s<0||e.t>2*this.m.t?e.mod(this.m):e.compareTo(this.m)<0?e:(t=p(),e.copyTo(t),this.reduce(t),t)},b.prototype.revert=function(e){return e},b.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)},b.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},b.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var l,d,c,V,q,h=[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],Z=67108864/h[h.length-1];function X(e){var t,n,s=this,r=e.length,i=0,o=s.i=s.j=s.m=0;for(s.S=[],s.c=[],r||(e=[r++]);i<256;)s.S[i]=i++;for(i=0;i<256;i++)o=o+(t=s.S[i])+e[i%r]&255,n=s.S[o],s.S[i]=n,s.S[o]=t;s.g=function(e){var t=s.S,n=s.i+1&255,r=t[n],i=s.j+r&255,o=t[i];t[n]=o,t[i]=r;for(var a=t[r+o&255];--e;)o=t[i=i+(r=t[n=n+1&255])&255],t[n]=o,t[i]=r,a=256*a+t[r+o&255];return s.i=n,s.j=i,a},s.g(256)}function f(e,t,n,r){for(e+="",r=n=0;r<e.length;r++){var i=t,o=255&r,a=(n^=19*t[255&r])+e.charCodeAt(r);i[o]=255&a}for(r in e="",t)e+=String.fromCharCode(t[r]);return e}function K(){}function M(){this.j=this.i=0,this.S=[]}_.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},_.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||36<e)return"0";var t=this.chunkSize(e),n=m(t=Math.pow(e,t)),r=p(),i=p(),o="";for(this.divRemTo(n,r,i);0<r.signum();)o=(t+i.intValue()).toString(e).substr(1)+o,r.divRemTo(n,r,i);return i.intValue().toString(e)+o},_.prototype.fromRadix=function(e,t){this.fromInt(0);for(var n=this.chunkSize(t=null==t?10:t),r=Math.pow(t,n),i=!1,o=0,a=0,s=0;s<e.length;++s){var u=U(e,s);u<0?"-"==e.charAt(s)&&0==this.signum()&&(i=!0):(a=t*a+u,++o>=n&&(this.dMultiply(r),this.dAddOffset(a,0),a=o=0))}0<o&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(a,0)),i&&_.ZERO.subTo(this,this)},_.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(_.ONE.shiftLeft(e-1),o,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(_.ONE.shiftLeft(e-1),this);else{var r=7&e;(n=[]).length=1+(e>>3),t.nextBytes(n),0<r?n[0]&=(1<<r)-1:n[0]=0,this.fromString(n,256)}},_.prototype.bitwiseTo=function(e,t,n){for(var r,i=Math.min(e.t,this.t),o=0;o<i;++o)n[o]=t(this[o],e[o]);if(e.t<this.t){for(r=e.s&this.DM,o=i;o<this.t;++o)n[o]=t(this[o],r);n.t=this.t}else{for(r=this.s&this.DM,o=i;o<e.t;++o)n[o]=t(r,e[o]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},_.prototype.changeBit=function(e,t){return e=_.ONE.shiftLeft(e),this.bitwiseTo(e,t,e),e},_.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,0<r?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},_.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},_.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]}},_.prototype.multiplyLowerTo=function(e,t,n){var r,i=Math.min(this.t+e.t,t);for(n.s=0,n.t=i;0<i;)n[--i]=0;for(r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(r=Math.min(e.t,t);i<r;++i)this.am(0,e[i],n,i,0,t-i);n.clamp()},_.prototype.multiplyUpperTo=function(e,t,n){var r=n.t=this.t+e.t- --t;for(n.s=0;0<=--r;)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)},_.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 r=this.t-1;0<=r;--r)n=(t*n+this[r])%e;return n},_.prototype.millerRabin=function(e){var t=this.subtract(_.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var r=t.shiftRight(n),e=e+1>>1;h.length<e&&(e=h.length);for(var i=p(),o=0;o<e;++o){i.fromInt(h[Math.floor(Math.random()*h.length)]);var a=i.modPow(r,this);if(0!=a.compareTo(_.ONE)&&0!=a.compareTo(t)){for(var s=1;s++<n&&0!=a.compareTo(t);)if(0==(a=a.modPowInt(2,this)).compareTo(_.ONE))return!1;if(0!=a.compareTo(t))return!1}}return!0},_.prototype.clone=function(){var e=p();return this.copyTo(e),e},_.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]},_.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},_.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},_.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},_.prototype.toByteArray=function(){var e,t=this.t,n=[],r=(n[0]=this.s,this.DB-t*this.DB%8),i=0;if(0<t--)for(r<this.DB&&(e=this[t]>>r)!=(this.s&this.DM)>>r&&(n[i++]=e|this.s<<this.DB-r);0<=t;)r<8?(e=(this[t]&(1<<r)-1)<<8-r,e|=this[--t]>>(r+=this.DB-8)):(e=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&e)&&(e|=-256),0==i&&(128&this.s)!=(128&e)&&++i,(0<i||e!=this.s)&&(n[i++]=e);return n},_.prototype.equals=function(e){return 0==this.compareTo(e)},_.prototype.min=function(e){return this.compareTo(e)<0?this:e},_.prototype.max=function(e){return 0<this.compareTo(e)?this:e},_.prototype.and=function(e){var t=p();return this.bitwiseTo(e,B,t),t},_.prototype.or=function(e){var t=p();return this.bitwiseTo(e,o,t),t},_.prototype.xor=function(e){var t=p();return this.bitwiseTo(e,N,t),t},_.prototype.andNot=function(e){var t=p();return this.bitwiseTo(e,J,t),t},_.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},_.prototype.shiftLeft=function(e){var t=p();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},_.prototype.shiftRight=function(e){var t=p();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},_.prototype.getLowestSetBit=function(){for(var e,t,n=0;n<this.t;++n)if(0!=this[n])return n*this.DB+(e=this[n],t=void 0,0==e?-1:((t=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));return this.s<0?this.t*this.DB:-1},_.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},_.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)},_.prototype.setBit=function(e){return this.changeBit(e,o)},_.prototype.clearBit=function(e){return this.changeBit(e,J)},_.prototype.flipBit=function(e){return this.changeBit(e,N)},_.prototype.add=function(e){var t=p();return this.addTo(e,t),t},_.prototype.subtract=function(e){var t=p();return this.subTo(e,t),t},_.prototype.multiply=function(e){var t=p();return this.multiplyTo(e,t),t},_.prototype.divide=function(e){var t=p();return this.divRemTo(e,t,null),t},_.prototype.remainder=function(e){var t=p();return this.divRemTo(e,null,t),t},_.prototype.divideAndRemainder=function(e){var t=p(),n=p();return this.divRemTo(e,t,n),[t,n]},_.prototype.modPow=function(e,t){var n=e.bitLength(),r=m(1);if(n<=0)return r;var i=n<18?1:n<48?3:n<144?4:n<768?5:6,o=new(n<8?g:t.isEven()?b:w)(t),a=[],s=3,u=i-1,l=(1<<i)-1;if(a[1]=o.convert(this),1<i)for(n=p(),o.sqrTo(a[1],n);s<=l;)a[s]=p(),o.mulTo(n,a[s-2],a[s]),s+=2;for(var d,c=e.t-1,h=!0,f=p(),n=y(e[c])-1;0<=c;){for(u<=n?d=e[c]>>n-u&l:(d=(e[c]&(1<<n+1)-1)<<u-n,0<c&&(d|=e[c-1]>>this.DB+n-u)),s=i;0==(1&d);)d>>=1,--s;if((n-=s)<0&&(n+=this.DB,--c),h)a[d].copyTo(r),h=!1;else{for(;1<s;)o.sqrTo(r,f),o.sqrTo(f,r),s-=2;0<s?o.sqrTo(r,f):(s=r,r=f,f=s),o.mulTo(f,a[d],r)}for(;0<=c&&0==(e[c]&1<<n);)o.sqrTo(r,f),s=r,r=f,f=s,--n<0&&(n=this.DB-1,--c)}return o.revert(r)},_.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return _.ZERO;for(var n=e.clone(),r=this.clone(),i=m(1),o=m(0),a=m(0),s=m(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),t?(i.isEven()&&o.isEven()||(i.addTo(this,i),o.subTo(e,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;r.isEven();)r.rShiftTo(1,r),t?(a.isEven()&&s.isEven()||(a.addTo(this,a),s.subTo(e,s)),a.rShiftTo(1,a)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);0<=n.compareTo(r)?(n.subTo(r,n),t&&i.subTo(a,i),o.subTo(s,o)):(r.subTo(n,r),t&&a.subTo(i,a),s.subTo(o,s))}return 0!=r.compareTo(_.ONE)?_.ZERO:0<=s.compareTo(e)?s.subtract(e):s.signum()<0&&(s.addTo(e,s),s.signum()<0)?s.add(e):s},_.prototype.pow=function(e){return this.exp(e,new u)},_.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),e=e.s<0?e.negate():e.clone(),n=(t.compareTo(e)<0&&(n=t,t=e,e=n),t.getLowestSetBit()),r=e.getLowestSetBit();if(r<0)return t;for(0<(r=n<r?n:r)&&(t.rShiftTo(r,t),e.rShiftTo(r,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<r&&e.lShiftTo(r,e),e},_.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=h[h.length-1]){for(t=0;t<h.length;++t)if(n[0]==h[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<h.length;){for(var r=h[t],i=t+1;i<h.length&&r<Z;)r*=h[i++];for(r=n.modInt(r);t<i;)if(r%h[t++]==0)return!1}return n.millerRabin(e)},_.prototype.square=function(){var e=p();return this.squareTo(e),e},l=[],d=Math,c=52,d.seedrandom=function(e,t){var n=[],e=f(function e(t,n,r,i,o){if(r=[],o=a(t),n&&"object"==o)for(i in t)if(i.indexOf("S")<5)try{r.push(e(t[i],n-1))}catch(e){}return r.length?r:t+("string"!=o?"\0":"")}(t?[e,l]:arguments.length?e:[(new Date).getTime(),l,window],3),n),r=new X(n);return f(r.S,l),d.random=function(){for(var e=r.g(6),t=q,n=0;e<c;)e=256*(e+n),t*=256,n=r.g(1);for(;V<=e;)e/=2,t/=2,n>>>=1;return(e+n)/t},e},q=d.pow(256,6),c=d.pow(2,c),V=2*c,f(d.random(),l),K.prototype.nextBytes=function(e){for(var t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random())},M.prototype.init=function(e){for(var t,n,r=0;r<256;++r)this.S[r]=r;for(r=t=0;r<256;++r)t=t+this.S[r]+e[r%e.length]&255,n=this.S[r],this.S[r]=this.S[t],this.S[t]=n;this.j=this.i=0},M.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 S,k=256;function $(){var e;e=(new Date).getTime(),L[T++]^=255&e,L[T++]^=e>>8&255,L[T++]^=e>>16&255,L[T++]^=e>>24&255,k<=T&&(T-=k)}if(null==L){var L=[],T=0;if("Netscape"==e&&F<"5"&&window.crypto)for(var Q=window.crypto.random(32),D=0;D<Q.length;++D)L[T++]=255&Q.charCodeAt(D);for(;T<k;)D=Math.floor(65536*Math.random()),L[T++]=D>>>8,L[T++]=255&D;T=0,$()}function ee(){if(null==S){for($(),(S=new M).init(L),T=0;T<L.length;++T)L[T]=0;T=0}return S.next()}function P(){}P.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=ee()};var te=function(e){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}for(var t=function(e,t){var n,r,i,o,a,s,u,l,d,c,h,f,m=[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],_=[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,d=0;d<e.length;d+=16){for(n=_[0],r=_[1],i=_[2],o=_[3],a=_[4],s=_[5],u=_[6],l=_[7],c=0;c<64;c++)p[c]=c<16?e[c+d]:y(y(y(v(p[c-2],17)^v(p[c-2],19)^p[c-2]>>>10,p[c-7]),v(p[c-15],7)^v(p[c-15],18)^p[c-15]>>>3),p[c-16]),h=y(y(y(y(l,v(a,6)^v(a,11)^v(a,25)),a&s^~a&u),m[c]),p[c]),f=y(v(n,2)^v(n,13)^v(n,22),n&r^n&i^r&i),l=u,u=s,s=a,a=y(o,h),o=i,i=r,r=n,n=y(h,f);_[0]=y(n,_[0]),_[1]=y(r,_[1]),_[2]=y(i,_[2]),_[3]=y(o,_[3]),_[4]=y(a,_[4]),_[5]=y(s,_[5]),_[6]=y(u,_[6]),_[7]=y(l,_[7])}return _}(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 r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):(127<r&&r<2048?t+=String.fromCharCode(r>>6|192):t=(t+=String.fromCharCode(r>>12|224))+String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t}(e)),8*e.length),n="",r=0;r<4*t.length;r++)n+="0123456789abcdef".charAt(t[r>>2]>>8*(3-r%4)+4&15)+"0123456789abcdef".charAt(t[r>>2]>>8*(3-r%4)&15);return n};var C=function(e){var t=e;function n(e,t){return e<<t|e>>>32-t}function r(e){for(var t="",n=7;0<=n;n--)t+=(e>>>4*n&15).toString(16);return t}for(var i,o,a,s,u,l=Array(80),d=1732584193,c=4023233417,h=2562383102,f=271733878,m=3285377520,_=(t=function(e){for(var e=e.replace(/\r\n/g,"\n"),t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):(127<r&&r<2048?t+=String.fromCharCode(r>>6|192):t=(t+=String.fromCharCode(r>>12|224))+String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t}(t)).length,p=[],y=0;y<_-3;y+=4)i=t.charCodeAt(y)<<24|t.charCodeAt(y+1)<<16|t.charCodeAt(y+2)<<8|t.charCodeAt(y+3),p.push(i);switch(_%4){case 0:y=2147483648;break;case 1:y=t.charCodeAt(_-1)<<24|8388608;break;case 2:y=t.charCodeAt(_-2)<<24|t.charCodeAt(_-1)<<16|32768;break;case 3:y=t.charCodeAt(_-3)<<24|t.charCodeAt(_-2)<<16|t.charCodeAt(_-1)<<8|128}for(p.push(y);p.length%16!=14;)p.push(0);for(p.push(_>>>29),p.push(_<<3&4294967295),t=0;t<p.length;t+=16){for(y=0;y<16;y++)l[y]=p[t+y];for(y=16;y<=79;y++)l[y]=n(l[y-3]^l[y-8]^l[y-14]^l[y-16],1);for(i=d,_=c,o=h,a=f,s=m,y=0;y<=19;y++)u=n(i,5)+(_&o|~_&a)+s+l[y]+1518500249&4294967295,s=a,a=o,o=n(_,30),_=i,i=u;for(y=20;y<=39;y++)u=n(i,5)+(_^o^a)+s+l[y]+1859775393&4294967295,s=a,a=o,o=n(_,30),_=i,i=u;for(y=40;y<=59;y++)u=n(i,5)+(_&o|_&a|o&a)+s+l[y]+2400959708&4294967295,s=a,a=o,o=n(_,30),_=i,i=u;for(y=60;y<=79;y++)u=n(i,5)+(_^o^a)+s+l[y]+3395469782&4294967295,s=a,a=o,o=n(_,30),_=i,i=u;d=d+i&4294967295,c=c+_&4294967295,h=h+o&4294967295,f=f+a&4294967295,m=m+s&4294967295}return(u=r(d)+r(c)+r(h)+r(f)+r(m)).toLowerCase()};function E(e,t){return new _(e,t)}function Y(){this.n=null,this.e=0,this.coeff=this.dmq1=this.dmp1=this.q=this.p=this.d=null}Y.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},Y.prototype.setPublic=function(e,t){null!=e&&null!=t&&0<e.length&&0<t.length?(this.n=E(e,16),this.e=parseInt(t,16)):alert("Invalid RSA public key")},Y.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=[],r=e.length-1;0<=r&&0<t;){var i=e.charCodeAt(r--);i<128?n[--t]=i:127<i&&i<2048?(n[--t]=63&i|128,n[--t]=i>>6|192):(n[--t]=63&i|128,n[--t]=i>>6&63|128,n[--t]=i>>12|224)}for(n[--t]=0,r=new P,i=[];2<t;){for(i[0]=0;0==i[0];)r.nextBytes(i);n[--t]=i[0]}return n[--t]=2,n[--t]=0,new _(n)}(e,this.n.bitLength()+7>>3))||null==(e=this.doPublic(e))?null:0==(1&(e=e.toString(16)).length)?e:"0"+e},Y.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)},Y.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&0<e.length&&0<t.length?(this.n=E(e,16),this.e=parseInt(t,16),this.d=E(n,16)):alert("Invalid RSA private key")},Y.prototype.setPrivateEx=function(e,t,n,r,i,o,a,s){null!=e&&null!=t&&0<e.length&&0<t.length?(this.n=E(e,16),this.e=parseInt(t,16),this.d=E(n,16),this.p=E(r,16),this.q=E(i,16),this.dmp1=E(o,16),this.dmq1=E(a,16),this.coeff=E(s,16)):alert("Invalid RSA private key")},Y.prototype.generate=function(e,t){var n=new K,r=e>>1;this.e=parseInt(t,16);for(var i=new _(t,16);;){for(;this.p=new _(e-r,1,n),0!=this.p.subtract(_.ONE).gcd(i).compareTo(_.ONE)||!this.p.isProbablePrime(10););for(;this.q=new _(r,1,n),0!=this.q.subtract(_.ONE).gcd(i).compareTo(_.ONE)||!this.q.isProbablePrime(10););this.p.compareTo(this.q)<=0&&(o=this.p,this.p=this.q,this.q=o);var o=this.p.subtract(_.ONE),a=this.q.subtract(_.ONE),s=o.multiply(a);if(0==s.gcd(i).compareTo(_.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(s),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},Y.prototype.decrypt=function(e){if(null==(e=this.doPrivate(E(e,16))))return null;for(var t=this.n.bitLength()+7>>3,n=e.toByteArray(),r=0;r<n.length&&0==n[r];)++r;if(n.length-r!=t-1||2!=n[r])return null;for(++r;0!=n[r];)if(++r>=n.length)return null;for(var i="";++r<n.length;){var o=255&n[r];o<128?i+=String.fromCharCode(o):191<o&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i};var x=[],A=(x.sha1="3021300906052b0e03021a05000414",x.sha256="3031300d060960864801650304020105000420",[]);function O(e,t,n){t/=4;for(var e=(0,A[n])(e),n="00"+x[n]+e,e="",t=t-4-n.length,r=0;r<t;r+=2)e+="ff";return sPaddedMessageHex="0001"+e+n}function ne(e,t,n){return e=e,t=t,n=n,(r=new Y).setPublic(t,n),r.doPublic(e).toString(16).replace(/^1f+00/,"");var r}function re(e){for(var t in x){var n=x[t],r=n.length;if(e.substring(0,r)==n)return[t,e.substring(r)]}return[]}A.sha1=C,A.sha256=te,Y.prototype.signString=function(e,t){return e=O(e,this.n.bitLength(),t),this.doPrivate(E(e,16)).toString(16)},Y.prototype.signStringWithSHA1=function(e){return e=O(e,this.n.bitLength(),"sha1"),this.doPrivate(E(e,16)).toString(16)},Y.prototype.signStringWithSHA256=function(e){return e=O(e,this.n.bitLength(),"sha256"),this.doPrivate(E(e,16)).toString(16)},Y.prototype.verifyString=function(e,t){return t=t.replace(/[ \n]+/g,""),0!=(t=re(this.doPublic(E(t,16)).toString(16).replace(/^1f+00/,""))).length&&t[1]==(0,A[t[0]])(e)},Y.prototype.verifyHexSignatureForMessage=function(e,t){var n,r,e=E(e,16);return t=t,e=e,n=this.n.toString(16),r=this.e.toString(16),0!=(n=re(e=ne(e,n,r))).length&&(e=n[1])==(t=(0,A[n[0]])(t))};var I,R,j=R={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(){R.Sbox_Inv=Array(256);for(var e=0;e<256;e++)R.Sbox_Inv[R.Sbox[e]]=e;for(R.ShiftRowTab_Inv=Array(16),e=0;e<16;e++)R.ShiftRowTab_Inv[R.ShiftRowTab[e]]=e;for(R.xtime=Array(256),e=0;e<128;e++)R.xtime[e]=e<<1,R.xtime[128+e]=e<<1^27},Done:function(){delete R.Sbox_Inv,delete R.ShiftRowTab_Inv,delete R.xtime},ExpandKey:function(e){var t,n=e.length,r=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 i=n;i<t;i+=4){var o=e.slice(i-4,i);i%n==0?(o=[R.Sbox[o[1]]^r,R.Sbox[o[2]],R.Sbox[o[3]],R.Sbox[o[0]]],256<=(r<<=1)&&(r^=283)):24<n&&i%n==16&&(o=[R.Sbox[o[0]],R.Sbox[o[1]],R.Sbox[o[2]],R.Sbox[o[3]]]);for(var a=0;a<4;a++)e[i+a]=e[i+a-n]^o[a]}},Encrypt:function(e,t){var n=t.length;R.AddRoundKey(e,t.slice(0,16));for(var r=16;r<n-16;r+=16)R.SubBytes(e,R.Sbox),R.ShiftRows(e,R.ShiftRowTab),R.MixColumns(e),R.AddRoundKey(e,t.slice(r,r+16));R.SubBytes(e,R.Sbox),R.ShiftRows(e,R.ShiftRowTab),R.AddRoundKey(e,t.slice(r,n))},Decrypt:function(e,t){var n=t.length;for(R.AddRoundKey(e,t.slice(n-16,n)),R.ShiftRows(e,R.ShiftRowTab_Inv),R.SubBytes(e,R.Sbox_Inv),n-=32;16<=n;n-=16)R.AddRoundKey(e,t.slice(n,n+16)),R.MixColumns_Inv(e),R.ShiftRows(e,R.ShiftRowTab_Inv),R.SubBytes(e,R.Sbox_Inv);R.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),r=0;r<16;r++)e[r]=n[t[r]]},MixColumns:function(e){for(var t=0;t<16;t+=4){var n=e[t+0],r=e[t+1],i=e[t+2],o=e[t+3],a=n^r^i^o;e[t+0]^=a^R.xtime[n^r],e[t+1]^=a^R.xtime[r^i],e[t+2]^=a^R.xtime[i^o],e[t+3]^=a^R.xtime[o^n]}},MixColumns_Inv:function(e){for(var t=0;t<16;t+=4){var n=e[t+0],r=e[t+1],i=e[t+2],o=e[t+3],a=n^r^i^o,s=R.xtime[a],u=R.xtime[R.xtime[s^n^i]]^a;a^=R.xtime[R.xtime[s^r^o]],e[t+0]^=u^R.xtime[n^r],e[t+1]^=a^R.xtime[r^i],e[t+2]^=u^R.xtime[i^o],e[t+3]^=a^R.xtime[o^n]}}},e=(I={},j.Init(),I.b256to64=function(e){for(var t,n,r="",i=0,o=e.length,a=0;a<o;a++)n=e.charCodeAt(a),0==i?(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>2&63),t=(3&n)<<4):1==i?(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t|n>>4&15),t=(15&n)<<2):2==i&&(r=(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t|n>>6&3))+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&n)),3==(i+=1)&&(i=0);return 0<i&&(r=r+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)+"="),1==i&&(r+="="),r},I.b64to256=function(e){for(var t,n="",r=0,i=0,o=e.length,a=0;a<o;a++)0<=(t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e.charAt(a)))&&(r&&(n+=String.fromCharCode(i|t>>6-r&255)),i=t<<(r=r+2&7)&255);return n},I.b16to64=function(e){var t,n,r="";for(e.length%2==1&&(e="0"+e),t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>2)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((3&n)<<4));0<(3&r.length);)r+="=";return r},I.b64to16=function(e){for(var t,n="",r=0,i=0;i<e.length&&"="!=e.charAt(i);++i)(v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e.charAt(i)))<0||(r=0==r?(n+=s(v>>2),t=3&v,1):1==r?(n+=s(t<<2|v>>4),t=15&v,2):2==r?(n=(n+=s(t))+s(v>>2),t=3&v,3):(n=(n+=s(t<<2|v>>4))+s(15&v),0));return 1==r&&(n+=s(t<<2)),n},I.string2bytes=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n));return t},I.bytes2string=function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},I.blockXOR=function(e,t){for(var n=Array(16),r=0;r<16;r++)n[r]=e[r]^t[r];return n},I.blockIV=function(){var e=new P,t=Array(16);return e.nextBytes(t),t},I.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},I.depad=function(e){for(e=e.slice(0);0==e[e.length-1];)e=e.slice(0,e.length-1);return e},I.encryptAESCBC=function(e,t){var n=t.slice(0);j.ExpandKey(n);for(var r=I.string2bytes(e),r=I.pad16(r),i=I.blockIV(),o=0;o<r.length/16;o++){var a=r.slice(16*o,16*o+16),s=i.slice(16*o,16*o+16),a=I.blockXOR(s,a);j.Encrypt(a,n),i=i.concat(a)}return n=I.bytes2string(i),I.b256to64(n)},I.decryptAESCBC=function(e,t){var n=t.slice(0);j.ExpandKey(n);for(var e=I.b64to256(e),r=I.string2bytes(e),i=[],o=1;o<r.length/16;o++){var a=r.slice(16*o,16*o+16),s=r.slice(16*(o-1),16*(o-1)+16);j.Decrypt(a,n),a=I.blockXOR(s,a),i=i.concat(a)}return i=I.depad(i),I.bytes2string(i)},I.wrap60=function(e){for(var t="",n=0;n<e.length;n++)n%60==0&&0!=n&&(t+="\n"),t+=e[n];return t},I.generateAESKey=function(){var e=Array(16);return(new P).nextBytes(e),e},I.generateRSAKey=function(e,t){Math.seedrandom(te(e));e=new Y;return e.generate(t,"10001"),e},I.publicKeyString=function(e){return pubkey=e.n.toString(16)},I.publicKeyID=function(e){var t=e;function s(e,t){var n=2147483648&e,r=2147483648&t,i=1073741824&e,o=1073741824&t,e=(1073741823&e)+(1073741823&t);return i&o?2147483648^e^n^r:i|o?1073741824&e?3221225472^e^n^r:1073741824^e^n^r:e^n^r}function n(e,t,n,r,i,o,a){return e=s(e,s(s(t&n|~t&r,i),a)),s(e<<o|e>>>32-o,t)}function r(e,t,n,r,i,o,a){return e=s(e,s(s(t&r|n&~r,i),a)),s(e<<o|e>>>32-o,t)}function i(e,t,n,r,i,o,a){return e=s(e,s(s(t^n^r,i),a)),s(e<<o|e>>>32-o,t)}function o(e,t,n,r,i,o,a){return e=s(e,s(s(n^(t|~r),i),a)),s(e<<o|e>>>32-o,t)}function a(e){for(var t="",n="",r=0;r<=3;r++)t+=(n="0"+(n=e>>>8*r&255).toString(16)).substr(n.length-2,2);return t}var u,l,d,c,h=function(e){for(var t,n=e.length,r=n+8,r=16*((r-r%64)/64+1),i=Array(r-1),o=0;o<n;)t=o%4*8,i[(o-o%4)/4]|=e.charCodeAt(o)<<t,o++;return i[(o-o%4)/4]|=128<<o%4*8,i[r-2]=n<<3,i[r-1]=n>>>29,i}(t=function(e){for(var e=e.replace(/\r\n/g,"\n"),t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):(127<r&&r<2048?t+=String.fromCharCode(r>>6|192):t=(t+=String.fromCharCode(r>>12|224))+String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t}(t)),f=1732584193,m=4023233417,_=2562383102,p=271733878;for(t=0;t<h.length;t+=16)f=n(u=f,l=m,d=_,c=p,h[t+0],7,3614090360),p=n(p,f,m,_,h[t+1],12,3905402710),_=n(_,p,f,m,h[t+2],17,606105819),m=n(m,_,p,f,h[t+3],22,3250441966),f=n(f,m,_,p,h[t+4],7,4118548399),p=n(p,f,m,_,h[t+5],12,1200080426),_=n(_,p,f,m,h[t+6],17,2821735955),m=n(m,_,p,f,h[t+7],22,4249261313),f=n(f,m,_,p,h[t+8],7,1770035416),p=n(p,f,m,_,h[t+9],12,2336552879),_=n(_,p,f,m,h[t+10],17,4294925233),m=n(m,_,p,f,h[t+11],22,2304563134),f=n(f,m,_,p,h[t+12],7,1804603682),p=n(p,f,m,_,h[t+13],12,4254626195),_=n(_,p,f,m,h[t+14],17,2792965006),f=r(f,m=n(m,_,p,f,h[t+15],22,1236535329),_,p,h[t+1],5,4129170786),p=r(p,f,m,_,h[t+6],9,3225465664),_=r(_,p,f,m,h[t+11],14,643717713),m=r(m,_,p,f,h[t+0],20,3921069994),f=r(f,m,_,p,h[t+5],5,3593408605),p=r(p,f,m,_,h[t+10],9,38016083),_=r(_,p,f,m,h[t+15],14,3634488961),m=r(m,_,p,f,h[t+4],20,3889429448),f=r(f,m,_,p,h[t+9],5,568446438),p=r(p,f,m,_,h[t+14],9,3275163606),_=r(_,p,f,m,h[t+3],14,4107603335),m=r(m,_,p,f,h[t+8],20,1163531501),f=r(f,m,_,p,h[t+13],5,2850285829),p=r(p,f,m,_,h[t+2],9,4243563512),_=r(_,p,f,m,h[t+7],14,1735328473),f=i(f,m=r(m,_,p,f,h[t+12],20,2368359562),_,p,h[t+5],4,4294588738),p=i(p,f,m,_,h[t+8],11,2272392833),_=i(_,p,f,m,h[t+11],16,1839030562),m=i(m,_,p,f,h[t+14],23,4259657740),f=i(f,m,_,p,h[t+1],4,2763975236),p=i(p,f,m,_,h[t+4],11,1272893353),_=i(_,p,f,m,h[t+7],16,4139469664),m=i(m,_,p,f,h[t+10],23,3200236656),f=i(f,m,_,p,h[t+13],4,681279174),p=i(p,f,m,_,h[t+0],11,3936430074),_=i(_,p,f,m,h[t+3],16,3572445317),m=i(m,_,p,f,h[t+6],23,76029189),f=i(f,m,_,p,h[t+9],4,3654602809),p=i(p,f,m,_,h[t+12],11,3873151461),_=i(_,p,f,m,h[t+15],16,530742520),f=o(f,m=i(m,_,p,f,h[t+2],23,3299628645),_,p,h[t+0],6,4096336452),p=o(p,f,m,_,h[t+7],10,1126891415),_=o(_,p,f,m,h[t+14],15,2878612391),m=o(m,_,p,f,h[t+5],21,4237533241),f=o(f,m,_,p,h[t+12],6,1700485571),p=o(p,f,m,_,h[t+3],10,2399980690),_=o(_,p,f,m,h[t+10],15,4293915773),m=o(m,_,p,f,h[t+1],21,2240044497),f=o(f,m,_,p,h[t+8],6,1873313359),p=o(p,f,m,_,h[t+15],10,4264355552),_=o(_,p,f,m,h[t+6],15,2734768916),m=o(m,_,p,f,h[t+13],21,1309151649),f=o(f,m,_,p,h[t+4],6,4149444226),p=o(p,f,m,_,h[t+11],10,3174756917),_=o(_,p,f,m,h[t+2],15,718787259),m=o(m,_,p,f,h[t+9],21,3951481745),f=s(f,u),m=s(m,l),_=s(_,d),p=s(p,c);return(a(f)+a(m)+a(_)+a(p)).toLowerCase()},I.publicKeyFromString=function(e){var e=e.split("|")[0],t=new Y;return t.setPublic(e,"10001"),t},I.encrypt=function(e,t,n){var r="";try{r+=I.publicKeyFromString(t).encrypt(e)+"?"}catch(e){return{status:"Invalid public key"}}return{status:"success",cipher:r}},I.decrypt=function(e,t){e=e.split("?");return{status:"success",plaintext:t.decrypt(e[0]),signature:"unsigned"}},I);H.exports=e},function(e,t,n){e.exports=!n(15)&&!n(8)(function(){return 7!=Object.defineProperty(n(77)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(7),i=n(13),o=n(42),a=n(78),s=n(16).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=!o&&r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var a=n(21),s=n(23),u=n(64)(!1),l=n(79)("IE_PROTO");e.exports=function(e,t){var n,r=s(e),i=0,o=[];for(n in r)n!=l&&a(r,n)&&o.push(n);for(;t.length>i;)!a(r,n=t[i++])||~u(o,n)||o.push(n);return o}},function(e,t,n){var a=n(16),s=n(9),u=n(43);e.exports=n(15)?Object.defineProperties:function(e,t){s(e);for(var n,r=u(t),i=r.length,o=0;o<i;)a.f(e,n=r[o++],t[n]);return e}},function(e,t,n){var r=n(23),i=n(46).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){if(!a||"[object Window]"!=o.call(e))return i(r(e));try{return i(e)}catch(e){return a.slice()}}},function(e,t,n){"use strict";var h=n(15),f=n(43),m=n(65),_=n(58),p=n(18),y=n(57),i=Object.assign;e.exports=!i||n(8)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=i({},e)[n]||Object.keys(i({},t)).join("")!=r})?function(e,t){for(var n=p(e),r=arguments.length,i=1,o=m.f,a=_.f;i<r;)for(var s,u=y(arguments[i++]),l=o?f(u).concat(o(u)):f(u),d=l.length,c=0;c<d;)s=l[c++],h&&!a.call(u,s)||(n[s]=u[s]);return n}:i},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(27),i=n(10),d=n(114),c=[].slice,h={};e.exports=Function.bind||function(a){var s=r(this),u=c.call(arguments,1),l=function(){var e=u.concat(c.call(arguments));if(this instanceof l){var t=s,n=e.length,r=e;if(!(n in h)){for(var i=[],o=0;o<n;o++)i[o]="a["+o+"]";h[n]=Function("F,a","return new F("+i.join(",")+")")}return h[n](t,r)}return d(s,e,a)};return i(s.prototype)&&(l.prototype=s.prototype),l}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?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 r=n(7).parseInt,i=n(51).trim,n=n(83),o=/^[-+]?0[xX]/;e.exports=8!==r(n+"08")||22!==r(n+"0x16")?function(e,t){e=i(String(e),3);return r(e,t>>>0||(o.test(e)?16:10))}:r},function(e,t,n){var r=n(7).parseFloat,i=n(51).trim;e.exports=1/r(n(83)+"-0")!=-1/0?function(e){var e=i(String(e),3),t=r(e);return 0===t&&"-"==e.charAt(0)?-0:t}:r},function(e,t,n){var r=n(34);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(10),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return-1e-8<(e=+e)&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){"use strict";var r=n(45),i=n(40),o=n(50),a={};n(22)(a,n(11)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var i=n(9);e.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){r=t.return;throw void 0!==r&&i(r.call(t)),e}}},function(e,t,n){var r=n(375);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var d=n(27),c=n(18),h=n(57),f=n(12);e.exports=function(e,t,n,r,i){d(t);var o=c(e),a=h(o),s=f(o.length),u=i?s-1:0,l=i?-1:1;if(n<2)for(;;){if(u in a){r=a[u],u+=l;break}if(u+=l,i?u<0:s<=u)throw TypeError("Reduce of empty array with no initial value")}for(;i?0<=u:u<s;u+=l)u in a&&(r=t(r,a[u],u,o));return r}},function(e,t,n){"use strict";var u=n(18),l=n(44),d=n(12);e.exports=[].copyWithin||function(e,t){var n=u(this),r=d(n.length),i=l(e,r),o=l(t,r),e=2<arguments.length?arguments[2]:void 0,a=Math.min((void 0===e?r:l(e,r))-o,r-i),s=1;for(o<i&&i<o+a&&(s=-1,o+=a-1,i+=a-1);0<a--;)o in n?n[i]=n[o]:delete n[i],i+=s,o+=s;return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r=n(98);n(2)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(e,t,n){n(15)&&"g"!=/./g.flags&&n(16).f(RegExp.prototype,"flags",{configurable:!0,get:n(68)})},function(I,R,n){"use strict";function r(){}var t,i,o,a,s=n(42),h=n(7),u=n(26),e=n(59),l=n(2),d=n(10),c=n(27),f=n(54),m=n(71),_=n(60),p=n(100).set,y=n(395)(),v=n(129),g=n(396),w=n(72),b=n(130),M="Promise",S=h.TypeError,k=h.process,L=k&&k.versions,T=L&&L.v8||"",D=h[M],P="process"==e(k),C=i=v.f,L=!!function(){try{var e=D.resolve(1),t=(e.constructor={})[n(11)("species")]=function(e){e(r,r)};return(P||"function"==typeof PromiseRejectionEvent)&&e.then(r)instanceof t&&0!==T.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),E=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},Y=function(c,n){var r;c._n||(c._n=!0,r=c._c,y(function(){for(var i,l=c._v,d=1==c._s,e=0,t=function(e){var t,n,r,i,o=d?e.ok:e.fail,a=e.resolve,s=e.reject,u=e.domain;try{o?(d||(2==c._h&&(i=c,p.call(h,function(){var e;P?k.emit("rejectionHandled",i):(e=h.onrejectionhandled)&&e({promise:i,reason:i._v})})),c._h=1),!0===o?t=l:(u&&u.enter(),t=o(l),u&&(u.exit(),r=!0)),t===e.promise?s(S("Promise-chain cycle")):(n=E(t))?n.call(t,a,s):a(t)):s(l)}catch(e){u&&!r&&u.exit(),s(e)}};r.length>e;)t(r[e++]);c._c=[],c._n=!1,n&&!c._h&&(i=c,p.call(h,function(){var e,t,n=i._v,r=x(i);if(r&&(e=g(function(){P?k.emit("unhandledRejection",n,i):(t=h.onunhandledrejection)?t({promise:i,reason:n}):(t=h.console)&&t.error&&t.error("Unhandled promise rejection",n)}),i._h=P||x(i)?2:1),i._a=void 0,r&&e.e)throw e.v}))}))},x=function(e){return 1!==e._h&&0===(e._a||e._c).length},A=function(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()),Y(t,!0))},O=function(e){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw S("Promise can't be resolved itself");(n=E(e))?y(function(){var t={_w:r,_d:!1};try{n.call(e,u(O,t,1),u(A,t,1))}catch(e){A.call(t,e)}}):(r._v=e,r._s=1,Y(r,!1))}catch(e){A.call({_w:r,_d:!1},e)}}};L||(D=function(e){f(this,D,M,"_h"),c(e),t.call(this);try{e(u(O,this,1),u(A,this,1))}catch(e){A.call(this,e)}},(t=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(55)(D.prototype,{then:function(e,t){var n=C(_(this,D));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=P?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&Y(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new t;this.promise=e,this.resolve=u(O,e,1),this.reject=u(A,e,1)},v.f=C=function(e){return e===D||e===a?new o:i(e)}),l(l.G+l.W+l.F*!L,{Promise:D}),n(50)(D,M),n(53)(M),a=n(13)[M],l(l.S+l.F*!L,M,{reject:function(e){var t=C(this);return(0,t.reject)(e),t.promise}}),l(l.S+l.F*(s||!L),M,{resolve:function(e){return b(s&&this===a?D:this,e)}}),l(l.S+l.F*!(L&&n(67)(function(e){D.all(e).catch(r)})),M,{all:function(e){var a=this,t=C(a),s=t.resolve,u=t.reject,n=g(function(){var r=[],i=0,o=1;m(e,!1,function(e){var t=i++,n=!1;r.push(void 0),o++,a.resolve(e).then(function(e){n||(n=!0,r[t]=e,--o)||s(r)},u)}),--o||s(r)});return n.e&&u(n.v),t.promise},race:function(e){var t=this,n=C(t),r=n.reject,i=g(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(e,t,n){"use strict";var i=n(27);function r(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=i(n),this.reject=i(r)}e.exports.f=function(e){return new r(e)}},function(e,t,n){var r=n(9),i=n(10),o=n(129);e.exports=function(e,t){return r(e),i(t)&&t.constructor===e?t:((0,(e=o.f(e)).resolve)(t),e.promise)}},function(e,t,n){"use strict";function a(e,t){var n,r=m(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n}var s=n(16).f,u=n(45),l=n(55),d=n(26),c=n(54),h=n(71),r=n(89),i=n(125),o=n(53),f=n(15),m=n(38).fastKey,_=n(49),p=f?"_s":"size";e.exports={getConstructor:function(e,i,n,r){var o=e(function(e,t){c(e,o,i,"_i"),e._t=i,e._i=u(null),e._f=void 0,e._l=void 0,e[p]=0,null!=t&&h(t,n,e[r],e)});return l(o.prototype,{clear:function(){for(var e=_(this,i),t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[p]=0},delete:function(e){var t,n,r=_(this,i),e=a(r,e);return e&&(t=e.n,n=e.p,delete r._i[e.i],e.r=!0,n&&(n.n=t),t&&(t.p=n),r._f==e&&(r._f=t),r._l==e&&(r._l=n),r[p]--),!!e},forEach:function(e){_(this,i);for(var t,n=d(e,1<arguments.length?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!a(_(this,i),e)}}),f&&s(o.prototype,"size",{get:function(){return _(this,i)[p]}}),o},def:function(e,t,n){var r,i=a(e,t);return i?i.v=n:(e._l=i={i:r=m(t,!0),k:t,v:n,p:t=e._l,n:void 0,r:!1},e._f||(e._f=i),t&&(t.n=i),e[p]++,"F"!==r&&(e._i[r]=i)),e},getEntry:a,setStrong:function(e,n,t){r(e,n,function(e,t){this._t=_(e,n),this._k=t,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?i(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,i(1))},t?"entries":"values",!t,!0),o(n)}}},function(e,t,n){"use strict";function a(e){return e._l||(e._l=new r)}function r(){this.a=[]}function i(e,t){return _(e.a,function(e){return e[0]===t})}var s=n(55),u=n(38).getWeak,o=n(9),l=n(10),d=n(54),c=n(71),h=n(31),f=n(21),m=n(49),_=h(5),p=h(6),y=0;r.prototype={get:function(e){e=i(this,e);if(e)return e[1]},has:function(e){return!!i(this,e)},set:function(e,t){var n=i(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(t){var e=p(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},e.exports={getConstructor:function(e,n,r,i){var o=e(function(e,t){d(e,o,n,"_i"),e._t=n,e._i=y++,e._l=void 0,null!=t&&c(t,r,e[i],e)});return s(o.prototype,{delete:function(e){var t;return!!l(e)&&(!0===(t=u(e))?a(m(this,n)).delete(e):t&&f(t,this._i)&&delete t[this._i])},has:function(e){var t;return!!l(e)&&(!0===(t=u(e))?a(m(this,n)).has(e):t&&f(t,this._i))}}),o},def:function(e,t,n){var r=u(o(t),!0);return!0===r?a(e).set(t,n):r[e._i]=n,e},ufstore:a}},function(e,t,n){var r=n(28),i=n(12);e.exports=function(e){if(void 0===e)return 0;var e=r(e),t=i(e);if(e!==t)throw RangeError("Wrong length!");return t}},function(e,t,n){var r=n(46),i=n(65),o=n(9),n=n(7).Reflect;e.exports=n&&n.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){var o=n(12),a=n(85),s=n(35);e.exports=function(e,t,n,r){var e=String(s(e)),i=e.length,n=void 0===n?" ":String(n),t=o(t);return t<=i||""==n?e:(t=t-i,(i=a.call(n,Math.ceil(t/n.length))).length>t&&(i=i.slice(0,t)),r?i+e:e+i)}},function(e,t,n){var u=n(15),l=n(43),d=n(23),c=n(58).f;e.exports=function(s){return function(e){for(var t,n=d(e),r=l(n),i=r.length,o=0,a=[];o<i;)t=r[o++],u&&!c.call(n,t)||a.push(s?[t,n[t]]:n[t]);return a}}},function(e,t){e=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n,r,i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);i?(n=new Uint8Array(16),e.exports=function(){return i(n),n}):(r=new Array(16),e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r})},function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var t=t||0,n=r;return[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){!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"},s=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 عام"]},r=function(a){return function(e,t,n,r){var i=s(e),o=u[a][s(e)];if(i===2)o=o[t?0:1];return o.replace(/%d/i,e)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],o;e.defineLocale("ar",{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:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("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 s=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(a){return function(e,t,n,r){var i=s(e),o=u[a][s(e)];if(i===2)o=o[t?0:1];return o.replace(/%d/i,e)}},n=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],r;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"},s=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(a){return function(e,t,n,r){var i=s(e),o=u[a][s(e)];if(i===2)o=o[t?0:1];return o.replace(/%d/i,e)}},r=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],i;e.defineLocale("ar-ly",{months:r,monthsShort:r,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"},r;e.defineLocale("ar-ps",{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]}).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,function(e){return n[e]}).split("").reverse().join("").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={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r;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 i={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,r=e>=100?100:null;return e+(i[t]||i[n]||i[r])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
- //! moment.js locale configuration
- function i(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 r={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};if(n==="m")return t?"хвіліна":"хвіліну";else if(n==="h")return t?"гадзіна":"гадзіну";else return e+" "+i(r[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"},r;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"},r;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"},r;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 r={mm:"munutenn",MM:"miz",dd:"devezh"};return e+" "+i(r[n],e)}function n(e){switch(r(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function r(e){if(e>9)return r(e%10);return e}function i(e,t){if(t===2)return o(e);return e}function o(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 a=[/^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],s=/^(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,l=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,d=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],c=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],h=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i],f;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:h,fullWeekdaysParse:d,shortWeekdaysParse:c,minWeekdaysParse:h,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:u,monthsShortStrictRegex:l,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,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,r){switch(n){case"m":return t?"jedna minuta":r?"jednu minutu":"jedne minute"}}function n(e,t,n){var r=e+" ";switch(n){case"ss":if(e===1)r+="sekunda";else if(e===2||e===3||e===4)r+="sekunde";else r+="sekundi";return r;case"mm":if(e===1)r+="minuta";else if(e===2||e===3||e===4)r+="minute";else r+="minuta";return r;case"h":return t?"jedan sat":"jedan sat";case"hh":if(e===1)r+="sat";else if(e===2||e===3||e===4)r+="sata";else r+="sati";return r;case"dd":if(e===1)r+="dan";else r+="dana";return r;case"MM":if(e===1)r+="mjesec";else if(e===2||e===3||e===4)r+="mjeseca";else r+="mjeseci";return r;case"yy":if(e===1)r+="godina";else if(e===2||e===3||e===4)r+="godine";else r+="godina";return r}}var r;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:n,m:t,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},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={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^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],i=/^(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,o;function a(e){return e>1&&e<5&&~~(e/10)!==1}function s(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":if(t||r)return i+(a(e)?"sekundy":"sekund");else return i+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":if(t||r)return i+(a(e)?"minuty":"minut");else return i+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":if(t||r)return i+(a(e)?"hodiny":"hodin");else return i+"hodinami";case"d":return t||r?"den":"dnem";case"dd":if(t||r)return i+(a(e)?"dny":"dní");else return i+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":if(t||r)return i+(a(e)?"měsíce":"měsíců");else return i+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":if(t||r)return i+(a(e)?"roky":"let");else return i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,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:r,longMonthsParse:r,shortMonthsParse:r,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:s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,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("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="",r=["","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=r[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,r){var i={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?i[n][0]:i[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,r){var i={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?i[n][0]:i[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,r){var i={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?i[n][0]:i[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=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],r;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 i(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],r=t&&t.hours();if(i(n))n=n.apply(t);return n.replace("{}",r%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("_"),r="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],i=/^(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,o;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 r[e.month()];else return n[e.month()]},monthsRegex:i,monthsShortRegex:i,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("_"),r="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],i=/^(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,o;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 r[e.month()];else return n[e.month()]},monthsRegex:i,monthsShortRegex:i,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("_"),r="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],i=/^(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,o;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 r[e.month()];else return n[e.month()]},monthsRegex:i,monthsShortRegex:i,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("_"),r="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],i=/^(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,o;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 r[e.month()];else return n[e.month()]},monthsRegex:i,monthsShortRegex:i,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,r){var i={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 i[n][2]?i[n][2]:i[n][1];return r?i[n][0]:i[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"},r;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(" "),r=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",n[7],n[8],n[9]],t;function i(e,t,n,r){var i="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":i=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":i=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":i=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":i=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":i=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":i=r?"vuoden":"vuotta";break}i=o(e,r)+" "+i;return i}function o(e,t){return e<10?t?r[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: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("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,r=/(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,i=[/^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],o;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:r,monthsShortRegex:r,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,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("_"),r="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 r[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,r,i,o,a;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,r,i,o,a;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,r){var i={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 r?i[n][0]:i[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,r){var i={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 r?i[n][0]:i[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"},r;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"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],i=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],o;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:r,longMonthsParse:r,shortMonthsParse:i,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 r=e+" ";switch(n){case"ss":if(e===1)r+="sekunda";else if(e===2||e===3||e===4)r+="sekunde";else r+="sekundi";return r;case"m":return t?"jedna minuta":"jedne minute";case"mm":if(e===1)r+="minuta";else if(e===2||e===3||e===4)r+="minute";else r+="minuta";return r;case"h":return t?"jedan sat":"jednog sata";case"hh":if(e===1)r+="sat";else if(e===2||e===3||e===4)r+="sata";else r+="sati";return r;case"dd":if(e===1)r+="dan";else r+="dana";return r;case"MM":if(e===1)r+="mjesec";else if(e===2||e===3||e===4)r+="mjeseca";else r+="mjeseci";return r;case"yy":if(e===1)r+="godina";else if(e===2||e===3||e===4)r+="godine";else r+="godina";return r}}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 r(e,t,n,r){var i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(r||t?" év":" éve")}return""}function i(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 i.call(this,true)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,false)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy: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("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 o(e){if(e%100===11)return true;else if(e%10===1)return false;return true}function t(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":if(o(e))return i+(t||r?"sekúndur":"sekúndum");return i+"sekúnda";case"m":return t?"mínúta":"mínútu";case"mm":if(o(e))return i+(t||r?"mínútur":"mínútum");else if(t)return i+"mínúta";return i+"mínútu";case"hh":if(o(e))return i+(t||r?"klukkustundir":"klukkustundum");return i+"klukkustund";case"d":if(t)return"dagur";return r?"dag":"degi";case"dd":if(o(e)){if(t)return i+"dagar";return i+(r?"daga":"dögum")}else if(t)return i+"dagur";return i+(r?"dag":"degi");case"M":if(t)return"mánuður";return r?"mánuð":"mánuði";case"MM":if(o(e)){if(t)return i+"mánuðir";return i+(r?"mánuði":"mánuðum")}else if(t)return i+"mánuður";return i+(r?"mánuð":"mánuði");case"y":return t||r?"ár":"ári";case"yy":if(o(e))return i+(t||r?"ár":"árum");return i+(t||r?"á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 r={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+(r[e]||r[t]||r[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"},r;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"},r;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"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"],i;e.defineLocale("ku",{months:r,monthsShort:r,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
- function t(e,t,n,r){var i={s:["çend sanîye","çend sanîyeyan"],ss:[e+" sanîye",e+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[e+" deqîqe",e+" deqîqeyan"],h:["saetek","saetekê"],hh:[e+" saet",e+" saetan"],d:["rojek","rojekê"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyekê"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehekê"],MM:[e+" meh",e+" mehan"],y:["salek","salekê"],yy:[e+" sal",e+" salan"]};return t?i[n][0]:i[n][1]}function r(e){e=""+e;var t=e.substring(e.length-1),n=e.length>1?e.substring(e.length-2):"";if(!(n==12||n==13)&&(t=="2"||t=="3"||n=="50"||t=="70"||t=="80"))return"yê";return"ê"}var n;e.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:true,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(e,t,n){if(e<12)return n?"bn":"BN";else return n?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(e,t){var n=t.toLowerCase();if(n.includes("w")||n.includes("m"))return e+".";return e+r(e)},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
- //! moment.js locale configuration
- var r={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+(r[e]||r[t]||r[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,r){var i={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?i[n][0]:i[n][1]}function n(e){var t=e.substr(0,e.indexOf(" "));if(i(t))return"a "+e;return"an "+e}function r(e){var t=e.substr(0,e.indexOf(" "));if(i(t))return"viru "+e;return"virun "+e}function i(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 i(n);return i(t)}else if(e<1e4){while(e>=10)e=e/10;return i(e)}else{e=e/1e3;return i(e)}}var o;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:r,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 r(e,t,n,r){if(t)return"kelios sekundės";else return r?"kelių sekundžių":"kelias sekundes"}function o(e,t,n,r){return t?s(n)[0]:r?s(n)[1]:s(n)[2]}function a(e){return e%10===0||e>10&&e<20}function s(e){return t[e].split("_")}function i(e,t,n,r){var i=e+" ";if(e===1)return i+o(e,t,n[0],r);else if(t)return i+(a(e)?s(n)[1]:s(n)[0]);else if(r)return i+s(n)[1];else return i+(a(e)?s(n)[1]:s(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:r,ss:i,m:o,mm:i,h:o,hh:i,d:o,dd:i,M:o,MM:i,y:o,yy:i},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 r={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 i(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+" "+i(r[n],e,t)}function o(e,t,n){return i(r[n],e,t)}function a(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:a,ss:n,m:o,mm:n,h:o,hh:n,d:o,dd:n,M:o,MM:n,y:o,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 i={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 r=i.words[n];if(n.length===1)return t?r[0]:r[1];else return e+" "+i.correctGrammaticalCase(e,r)}},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:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"dan",dd:i.translate,M:"mjesec",MM:i.translate,y:"godinu",yy:i.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,r){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"},r;function i(e,t,n,r){var i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे";break}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां";break}return i.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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},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"},r;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:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én 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"},r;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("_"),r="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],i=/^(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,o;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 r[e.month()];else return n[e.month()]},monthsRegex:i,monthsShortRegex:i,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("_"),r="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],i=/^(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,o;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 r[e.month()];else return n[e.month()]},monthsRegex:i,monthsShortRegex:i,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"},r;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("_"),r="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],i;function o(e){return e%10<5&&e%10>1&&~~(e/10)%10!==1}function a(e,t,n){var r=e+" ";switch(n){case"ss":return r+(o(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(o(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(o(e)?"godziny":"godzin");case"ww":return r+(o(e)?"tygodnie":"tygodni");case"MM":return r+(o(e)?"miesiące":"miesięcy");case"yy":return r+(o(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,t){if(!e)return n;else if(/D MMMM/.test(t))return r[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:a,m:a,mm:a,h:a,hh:a,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:a,M:"miesiąc",MM:a,y:"rok",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("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 r={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"},i=" ";if(e%100>=20||e>=100&&e%100===0)i=" de ";return e+i+r[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 i(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 r={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};if(n==="m")return t?"минута":"минуту";else return e+" "+i(r[n],+e)}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],r;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=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"],r;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("_"),r;function o(e){return e>1&&e<5}function i(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekúnd":"pár sekundami";case"ss":if(t||r)return i+(o(e)?"sekundy":"sekúnd");else return i+"sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":if(t||r)return i+(o(e)?"minúty":"minút");else return i+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":if(t||r)return i+(o(e)?"hodiny":"hodín");else return i+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":if(t||r)return i+(o(e)?"dni":"dní");else return i+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":if(t||r)return i+(o(e)?"mesiace":"mesiacov");else return i+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":if(t||r)return i+(o(e)?"roky":"rokov");else return i+"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: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
- function t(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":if(e===1)i+=t?"sekundo":"sekundi";else if(e===2)i+=t||r?"sekundi":"sekundah";else if(e<5)i+=t||r?"sekunde":"sekundah";else i+="sekund";return i;case"m":return t?"ena minuta":"eno minuto";case"mm":if(e===1)i+=t?"minuta":"minuto";else if(e===2)i+=t||r?"minuti":"minutama";else if(e<5)i+=t||r?"minute":"minutami";else i+=t||r?"minut":"minutami";return i;case"h":return t?"ena ura":"eno uro";case"hh":if(e===1)i+=t?"ura":"uro";else if(e===2)i+=t||r?"uri":"urama";else if(e<5)i+=t||r?"ure":"urami";else i+=t||r?"ur":"urami";return i;case"d":return t||r?"en dan":"enim dnem";case"dd":if(e===1)i+=t||r?"dan":"dnem";else if(e===2)i+=t||r?"dni":"dnevoma";else i+=t||r?"dni":"dnevi";return i;case"M":return t||r?"en mesec":"enim mesecem";case"MM":if(e===1)i+=t||r?"mesec":"mesecem";else if(e===2)i+=t||r?"meseca":"mesecema";else if(e<5)i+=t||r?"mesece":"meseci";else i+=t||r?"mesecev":"meseci";return i;case"y":return t||r?"eno leto":"enim letom";case"yy":if(e===1)i+=t||r?"leto":"letom";else if(e===2)i+=t||r?"leti":"letoma";else if(e<5)i+=t||r?"leta":"leti";else i+=t||r?"let":"leti";return i}}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","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){if(e%10>=1&&e%10<=4&&(e%100<10||e%100>=20))return e%10===1?t[0]:t[1];return t[2]},translate:function(e,t,n,r){var i=a.words[n],o;if(n.length===1){if(n==="y"&&t)return"jedna godina";return r||t?i[0]:i[1]}o=a.correctGrammaticalCase(e,i);if(n==="yy"&&t&&o==="godinu")return e+" godina";return e+" "+o}},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:a.translate,dd:a.translate,M:a.translate,MM:a.translate,y:a.translate,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:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){if(e%10>=1&&e%10<=4&&(e%100<10||e%100>=20))return e%10===1?t[0]:t[1];return t[2]},translate:function(e,t,n,r){var i=a.words[n],o;if(n.length===1){if(n==="y"&&t)return"једна година";return r||t?i[0]:i[1]}o=a.correctGrammaticalCase(e,i);if(n==="yy"&&t&&o==="годину")return e+" година";return e+" "+o}},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:a.translate,dd:a.translate,M:a.translate,MM:a.translate,y:a.translate,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"},r;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 r={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+(r[e]||r[t]||r[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 o={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,r=e%100-n,i=e>=100?100:null;return e+(o[n]||o[r]||o[i])}},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 o="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 r(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 i(e,t,n,r){var i=a(e);switch(n){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}function a(e){var t=Math.floor(e%1e3/100),n=Math.floor(e%100/10),r=e%10,i="";if(t>0)i+=o[t]+"vatlh";if(n>0)i+=(i!==""?" ":"")+o[n]+"maH";if(r>0)i+=(i!==""?" ":"")+o[r];return i===""?"pagh":i}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:r,s:"puS lup",ss:i,m:"wa’ tup",mm:i,h:"wa’ rep",hh:i,d:"wa’ jaj",dd:i,M:"wa’ jar",MM:i,y:"wa’ DIS",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 o={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_Pzt_Sal_Çar_Per_Cum_Cmt".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,r=e%100-n,i=e>=100?100:null;return e+(o[n]||o[r]||o[i])}},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,r){var i={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 r?i[n][0]:t?i[n][0]:i[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 r=e*100+t;if(r<600)return"يېرىم كېچە";else if(r<900)return"سەھەر";else if(r<1130)return"چۈشتىن بۇرۇن";else if(r<1230)return"چۈش";else if(r<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 i(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 r={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};if(n==="m")return t?"хвилина":"хвилину";else if(n==="h")return t?"година":"годину";else return e+" "+i(r[n],+e)}function n(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},r;if(e===true)return n["nominative"].slice(1,7).concat(n["nominative"].slice(0,1));if(!e)return n["nominative"];r=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative";return n[r][e.day()]}function r(e){return function(){return e+"о"+(this.hours()===11?"б":"")+"] LT"}}var o;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:r("[Сьогодні "),nextDay:r("[Завтра "),lastDay:r("[Вчора "),nextWeek:r("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[Минулої] dddd [").call(this);case 1:case 2:case 4:return r("[Минулого] 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=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"],r;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 r=e*100+t;if(r<600)return"凌晨";else if(r<900)return"早上";else if(r<1130)return"上午";else if(r<1230)return"中午";else if(r<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 r=e*100+t;if(r<600)return"凌晨";else if(r<900)return"早上";else if(r<1200)return"上午";else if(r===1200)return"中午";else if(r<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 r=e*100+t;if(r<600)return"凌晨";else if(r<900)return"早上";else if(r<1130)return"上午";else if(r<1230)return"中午";else if(r<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 r=e*100+t;if(r<600)return"凌晨";else if(r<900)return"早上";else if(r<1130)return"上午";else if(r<1230)return"中午";else if(r<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";n.r(t);n(1);var o=n(33),a=n(75),s=n(61),u=n(3);t.default=function(n){var r=null,i=function(e,t){n.postMessage({msg:"logcat_callback",data:{type:e,logcat:t}})}.bind(this);a.a.install(),n.addEventListener("message",function(e){switch(e.data.cmd){case"init":(r=new s.a(e.data.param[0],e.data.param[1])).on(u.a.IO_ERROR,function(e,t){n.postMessage({msg:u.a.IO_ERROR,data:{type:e,info:t}})}.bind(this)),r.on(u.a.DEMUX_ERROR,function(e,t){n.postMessage({msg:u.a.DEMUX_ERROR,data:{type:e,info:t}})}.bind(this)),r.on(u.a.INIT_SEGMENT,function(e,t){e={msg:u.a.INIT_SEGMENT,data:{type:e,data:t}};n.postMessage(e,[t.data])}.bind(this)),r.on(u.a.MEDIA_SEGMENT,function(e,t){e={msg:u.a.MEDIA_SEGMENT,data:{type:e,data:t}};n.postMessage(e,[t.data])}.bind(this)),r.on(u.a.LOADING_COMPLETE,function(){var e={msg:u.a.LOADING_COMPLETE};n.postMessage(e)}.bind(this)),r.on(u.a.RECOVERED_EARLY_EOF,function(){var e={msg:u.a.RECOVERED_EARLY_EOF};n.postMessage(e)}.bind(this)),r.on(u.a.MEDIA_INFO,function(e){e={msg:u.a.MEDIA_INFO,data:e};n.postMessage(e)}.bind(this)),r.on(u.a.METADATA_ARRIVED,function(e){e={msg:u.a.METADATA_ARRIVED,data:e};n.postMessage(e)}.bind(this)),r.on(u.a.SCRIPTDATA_ARRIVED,function(e){e={msg:u.a.SCRIPTDATA_ARRIVED,data:e};n.postMessage(e)}.bind(this)),r.on(u.a.STATISTICS_INFO,function(e){e={msg:u.a.STATISTICS_INFO,data:e};n.postMessage(e)}.bind(this)),r.on(u.a.RECOMMEND_SEEKPOINT,function(e){n.postMessage({msg:u.a.RECOMMEND_SEEKPOINT,data:e})}.bind(this)),r.on(u.a.VIDEO_RESOLUTION_CHANGED,function(e){e={msg:u.a.VIDEO_RESOLUTION_CHANGED,data:e};n.postMessage(e)}.bind(this));break;case"destroy":r&&(r.destroy(),r=null),n.postMessage({msg:"destroyed"});break;case"start":r.start();break;case"stop":r.stop();break;case"seek":r.seek(e.data.param);break;case"pause":r.pause();break;case"resume":r.resume();break;case"logging_config":var t=e.data.param;o.a.applyConfig(t),!0===t.enableCallback?o.a.addLogListener(i):o.a.removeLogListener(i)}})}},function(e,t,c){function o(n){var r={};function i(e){var t;return(r[e]||(t=r[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,i),t.l=!0,t)).exports}i.m=n,i.c=r,i.i=function(e){return e},i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var e=i(i.s=ENTRY_MODULE);return e.default||e}var h="[\\.|\\-|\\+|\\w|/|@]+",f="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+h+").*?\\)";function m(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function _(e,t,n){var r={},i=(r[n]=[],t.toString()),t=i.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(t){for(var o,t=t[1],a=new RegExp("(\\\\n|\\W)"+m(t)+f,"g");o=a.exec(i);)"dll-reference"!==o[3]&&r[n].push(o[3]);for(a=new RegExp("\\("+m(t)+'\\("(dll-reference\\s('+h+'))"\\)\\)'+f,"g");o=a.exec(i);)e[o[2]]||(r[n].push(o[1]),e[o[2]]=c(o[1]).m),r[o[2]]=r[o[2]]||[],r[o[2]].push(o[4]);for(var s,u=Object.keys(r),l=0;l<u.length;l++)for(var d=0;d<r[u[l]].length;d++)s=r[u[l]][d],isNaN(+s)||(r[u[l]][d]=+r[u[l]][d])}return r}function a(e,t){for(var n={main:[t]},r={main:[]},i={main:{}};function(n){return Object.keys(n).reduce(function(e,t){return e||0<n[t].length},!1)}(n);)for(var o=Object.keys(n),a=0;a<o.length;a++){var s=o[a],u=n[s].pop();if(i[s]=i[s]||{},!i[s][u]&&e[s][u]){i[s][u]=!0,r[s]=r[s]||[],r[s].push(u);for(var l=_(e,e[s][u],s),d=Object.keys(l),c=0;c<d.length;c++)n[d[c]]=n[d[c]]||[],n[d[c]]=n[d[c]].concat(l[d[c]])}}return r}e.exports=function(e,t){var n={main:c.m},r=(t=t||{}).all?{main:Object.keys(n.main)}:a(n,e),i="",e=(Object.keys(r).filter(function(e){return"main"!==e}).forEach(function(t){for(var e=0;r[t][e];)e++;r[t].push(e),n[t][e]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",i=i+"var "+t+" = ("+o.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+r[t].map(function(e){return JSON.stringify(e)+": "+n[t][e].toString()}).join(",")+"});\n"}),i=i+"new (("+o.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+r.main.map(function(e){return JSON.stringify(e)+": "+n.main[e].toString()}).join(",")+"}))(self);",new window.Blob([i],{type:"text/javascript"}));return t.bare||(t=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(e),(e=new window.Worker(t)).objectURL=t),e}},function(e,t,n){n(281),e.exports=n(474)},function(e,t,n){"use strict";n(282);n=(n=n(454))&&n.__esModule?n:{default:n};n.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),n.default._babelPolyfill=!0},function(e,t,n){"use strict";n(283),n(426),n(428),n(431),n(433),n(435),n(437),n(439),n(441),n(443),n(445),n(447),n(449),n(453)},function(e,t,n){n(284),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(365),n(366),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(376),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(388),n(97),n(389),n(126),n(390),n(127),n(391),n(392),n(393),n(394),n(128),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(421),n(422),n(423),n(424),n(425),e.exports=n(13)},function(R,j,e){"use strict";function r(e){var t=P[e]=g(M[L]);return t._k=e,t}function n(e,t){_(e);for(var n,r=B(t=p(t)),i=0,o=r.length;i<o;)I(e,n=r[i++],t[n]);return e}function t(e){var t=ee.call(this,e=y(e,!0));return!(this===E&&u(P,e)&&!u(C,e))&&(!(t||!u(this,e)||!u(P,e)||u(this,T)&&this[T][e])||t)}function i(e,t){var n;if(e=p(e),t=y(t,!0),e!==E||!u(P,t)||u(C,t))return!(n=K(e,t))||!u(P,t)||u(e,T)&&e[T][t]||(n.enumerable=!0),n}function o(e){for(var t,n=$(p(e)),r=[],i=0;n.length>i;)u(P,t=n[i++])||t==T||t==W||r.push(t);return r}function a(e){for(var t,n=e===E,r=$(n?C:p(e)),i=[],o=0;r.length>o;)!u(P,t=r[o++])||n&&!u(E,t)||i.push(P[t]);return i}var s=e(7),u=e(21),l=e(15),d=e(2),H=e(19),W=e(38).KEY,c=e(8),h=e(63),f=e(50),F=e(41),m=e(11),z=e(78),U=e(107),B=e(286),N=e(66),_=e(9),J=e(10),G=e(18),p=e(23),y=e(37),v=e(40),g=e(45),V=e(110),q=e(29),w=e(65),Z=e(16),X=e(43),K=q.f,b=Z.f,$=V.f,M=s.Symbol,S=s.JSON,k=S&&S.stringify,L="prototype",T=m("_hidden"),Q=m("toPrimitive"),ee={}.propertyIsEnumerable,D=h("symbol-registry"),P=h("symbols"),C=h("op-symbols"),E=Object[L],h="function"==typeof M&&!!w.f,Y=s.QObject,x=!Y||!Y[L]||!Y[L].findChild,A=l&&c(function(){return 7!=g(b({},"a",{get:function(){return b(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=K(E,t);r&&delete E[t],b(e,t,n),r&&e!==E&&b(E,t,r)}:b,O=h&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},I=function(e,t,n){return e===E&&I(C,t,n),_(e),t=y(t,!0),_(n),(u(P,t)?(n.enumerable?(u(e,T)&&e[T][t]&&(e[T][t]=!1),n=g(n,{enumerable:v(0,!1)})):(u(e,T)||b(e,T,v(1,{})),e[T][t]=!0),A):b)(e,t,n)};h||(H((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=F(0<arguments.length?arguments[0]:void 0),n=function(e){this===E&&n.call(C,e),u(this,T)&&u(this[T],t)&&(this[T][t]=!1),A(this,t,v(1,e))};return l&&x&&A(E,t,{configurable:!0,set:n}),r(t)})[L],"toString",function(){return this._k}),q.f=i,Z.f=I,e(46).f=V.f=o,e(58).f=t,w.f=a,l&&!e(42)&&H(E,"propertyIsEnumerable",t,!0),z.f=function(e){return r(m(e))}),d(d.G+d.W+d.F*!h,{Symbol:M});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)m(te[ne++]);for(var re=X(m.store),ie=0;re.length>ie;)U(re[ie++]);d(d.S+d.F*!h,"Symbol",{for:function(e){return u(D,e+="")?D[e]:D[e]=M(e)},keyFor:function(e){if(!O(e))throw TypeError(e+" is not a symbol!");for(var t in D)if(D[t]===e)return t},useSetter:function(){x=!0},useSimple:function(){x=!1}}),d(d.S+d.F*!h,"Object",{create:function(e,t){return void 0===t?g(e):n(g(e),t)},defineProperty:I,defineProperties:n,getOwnPropertyDescriptor:i,getOwnPropertyNames:o,getOwnPropertySymbols:a});Y=c(function(){w.f(1)});d(d.S+d.F*Y,"Object",{getOwnPropertySymbols:function(e){return w.f(G(e))}}),S&&d(d.S+d.F*(!h||c(function(){var e=M();return"[null]"!=k([e])||"{}"!=k({a:e})||"{}"!=k(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;i<arguments.length;)r.push(arguments[i++]);if(n=t=r[1],(J(t)||void 0!==e)&&!O(e))return N(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!O(t))return t}),r[1]=t,k.apply(S,r)}}),M[L][Q]||e(22)(M[L],Q,M[L].valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(s.JSON,"JSON",!0)},function(e,t,n){e.exports=n(63)("native-function-to-string",Function.toString)},function(e,t,n){var s=n(43),u=n(65),l=n(58);e.exports=function(e){var t=s(e),n=u.f;if(n)for(var r,i=n(e),o=l.f,a=0;i.length>a;)o.call(e,r=i[a++])&&t.push(r);return t}},function(e,t,n){var r=n(2);r(r.S,"Object",{create:n(45)})},function(e,t,n){var r=n(2);r(r.S+r.F*!n(15),"Object",{defineProperty:n(16).f})},function(e,t,n){var r=n(2);r(r.S+r.F*!n(15),"Object",{defineProperties:n(109)})},function(e,t,n){var r=n(23),i=n(29).f;n(30)("getOwnPropertyDescriptor",function(){return function(e,t){return i(r(e),t)}})},function(e,t,n){var r=n(18),i=n(47);n(30)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(18),i=n(43);n(30)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){n(30)("getOwnPropertyNames",function(){return n(110).f})},function(e,t,n){var r=n(10),i=n(38).onFreeze;n(30)("freeze",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(e,t,n){var r=n(10),i=n(38).onFreeze;n(30)("seal",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(e,t,n){var r=n(10),i=n(38).onFreeze;n(30)("preventExtensions",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(e,t,n){var r=n(10);n(30)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(e,t,n){var r=n(10);n(30)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(e,t,n){var r=n(10);n(30)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(e,t,n){var r=n(2);r(r.S+r.F,"Object",{assign:n(111)})},function(e,t,n){var r=n(2);r(r.S,"Object",{is:n(112)})},function(e,t,n){var r=n(2);r(r.S,"Object",{setPrototypeOf:n(82).set})},function(e,t,n){"use strict";var r=n(59),i={};i[n(11)("toStringTag")]="z",i+""!="[object z]"&&n(19)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(e,t,n){var r=n(2);r(r.P,"Function",{bind:n(113)})},function(e,t,n){var r=n(16).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(15)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(10),i=n(47),o=n(11)("hasInstance"),a=Function.prototype;o in a||n(16).f(a,o,{value:function(e){if("function"==typeof this&&r(e)){if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0}return!1}})},function(e,t,n){var r=n(2),n=n(115);r(r.G+r.F*(parseInt!=n),{parseInt:n})},function(e,t,n){var r=n(2),n=n(116);r(r.G+r.F*(parseFloat!=n),{parseFloat:n})},function(e,t,n){"use strict";function r(e){if("string"==typeof(t=l(e,!1))&&2<t.length){var t,n,r,i,e=(t=v?t.trim():f(t,3)).charCodeAt(0);if(43===e||45===e){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var o,a=t.slice(2),s=0,u=a.length;s<u;s++)if((o=a.charCodeAt(s))<48||i<o)return NaN;return parseInt(a,r)}}return+t}var i=n(7),o=n(21),a=n(34),s=n(84),l=n(37),u=n(8),d=n(46).f,c=n(29).f,h=n(16).f,f=n(51).trim,m="Number",_=w=i[m],p=w.prototype,y=a(n(45)(p))==m,v="trim"in String.prototype;if(!w(" 0o1")||!w("0b1")||w("+0x1")){for(var g,w=function(e){var e=arguments.length<1?0:e,t=this;return t instanceof w&&(y?u(function(){p.valueOf.call(t)}):a(t)!=m)?s(new _(r(e)),t,w):r(e)},b=n(15)?d(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),M=0;b.length>M;M++)o(_,g=b[M])&&!o(w,g)&&h(w,g,c(_,g));(w.prototype=p).constructor=w,n(19)(i,m,w)}},function(e,t,n){"use strict";function a(e,t){for(var n=-1,r=t;++n<6;)f[n]=(r+=e*f[n])%1e7,r=o(r/1e7)}function s(e){for(var t=6,n=0;0<=--t;)f[t]=o((n+=f[t])/e),n=n%e*1e7}function u(){for(var e,t=6,n="";0<=--t;)""===n&&0!==t&&0===f[t]||(e=String(f[t]),n=""===n?e:n+h.call("0",7-e.length)+e);return n}function l(e,t,n){return 0===t?n:t%2==1?l(e,t-1,n*e):l(e*e,t/2,n)}var r=n(2),d=n(28),c=n(117),h=n(85),i=1..toFixed,o=Math.floor,f=[0,0,0,0,0,0],m="Number.toFixed: incorrect invocation!";r(r.P+r.F*(!!i&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0))||!n(8)(function(){i.call({})})),"Number",{toFixed:function(e){var t,n,r=c(this,m),e=d(e),i="",o="0";if(e<0||20<e)throw RangeError(m);if(r!=r)return"NaN";if(r<=-1e21||1e21<=r)return String(r);if(r<0&&(i="-",r=-r),1e-21<r)if(r=(t=function(e){for(var t=0,n=e;4096<=n;)t+=12,n/=4096;for(;2<=n;)t+=1,n/=2;return t}(r*l(2,69,1))-69)<0?r*l(2,-t,1):r/l(2,t,1),r*=4503599627370496,0<(t=52-t)){for(a(0,r),n=e;7<=n;)a(1e7,0),n-=7;for(a(l(10,n,1),0),n=t-1;23<=n;)s(1<<23),n-=23;s(1<<n),a(1,1),s(2),o=u()}else a(0,r),a(1<<-t,0),o=u()+h.call("0",e);return o=0<e?i+((r=o.length)<=e?"0."+h.call("0",e-r)+o:o.slice(0,r-e)+"."+o.slice(r-e)):i+o}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(117),a=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==a.call(1,void 0)})||!i(function(){a.call({})})),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){n=n(2);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(2),i=n(7).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,n){var r=n(2);r(r.S,"Number",{isInteger:n(118)})},function(e,t,n){n=n(2);n(n.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(2),i=n(118),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,n){n=n(2);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){n=n(2);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(2),n=n(116);r(r.S+r.F*(Number.parseFloat!=n),"Number",{parseFloat:n})},function(e,t,n){var r=n(2),n=n(115);r(r.S+r.F*(Number.parseInt!=n),"Number",{parseInt:n})},function(e,t,n){var r=n(2),i=n(119),o=Math.sqrt,n=Math.acosh;r(r.S+r.F*!(n&&710==Math.floor(n(Number.MAX_VALUE))&&n(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:94906265.62425156<e?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},function(e,t,n){var n=n(2),r=Math.asinh;n(n.S+n.F*!(r&&0<1/r(0)),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var n=n(2),r=Math.atanh;n(n.S+n.F*!(r&&1/r(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(2),i=n(86);r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){n=n(2);n(n.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var n=n(2),r=Math.exp;n(n.S,"Math",{cosh:function(e){return(r(e=+e)+r(-e))/2}})},function(e,t,n){var r=n(2),n=n(87);r(r.S+r.F*(n!=Math.expm1),"Math",{expm1:n})},function(e,t,n){var r=n(2);r(r.S,"Math",{fround:n(329)})},function(e,t,n){var r=n(86),n=Math.pow,i=n(2,-52),o=n(2,-23),a=n(2,127)*(2-o),s=n(2,-126);e.exports=Math.fround||function(e){var t,n=Math.abs(e),e=r(e);return n<s?e*(n/s/o+1/i-1/i)*s*o:a<(t=(t=(1+o/i)*n)-(t-n))||t!=t?e*(1/0):e*t}},function(e,t,n){var n=n(2),u=Math.abs;n(n.S,"Math",{hypot:function(e,t){for(var n,r,i=0,o=0,a=arguments.length,s=0;o<a;)s<(n=u(arguments[o++]))?(i=i*(r=s/n)*r+1,s=n):i+=0<n?(r=n/s)*r:n;return s===1/0?1/0:s*Math.sqrt(i)}})},function(e,t,n){var r=n(2),i=Math.imul;r(r.S+r.F*n(8)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(e,t){var e=+e,t=+t,n=65535&e,r=65535&t;return 0|n*r+((65535&e>>>16)*r+n*(65535&t>>>16)<<16>>>0)}})},function(e,t,n){n=n(2);n(n.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var r=n(2);r(r.S,"Math",{log1p:n(119)})},function(e,t,n){n=n(2);n(n.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(2);r(r.S,"Math",{sign:n(86)})},function(e,t,n){var r=n(2),i=n(87),o=Math.exp;r(r.S+r.F*n(8)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(2),i=n(87),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},function(e,t,n){n=n(2);n(n.S,"Math",{trunc:function(e){return(0<e?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(2),o=n(44),a=String.fromCharCode,n=String.fromCodePoint;r(r.S+r.F*(!!n&&1!=n.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;i<r;){if(t=+arguments[i++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(2),a=n(23),s=n(12);r(r.S,"String",{raw:function(e){for(var t=a(e.raw),n=s(t.length),r=arguments.length,i=[],o=0;o<n;)i.push(String(t[o++])),o<r&&i.push(String(arguments[o]));return i.join("")}})},function(e,t,n){"use strict";n(51)("trim",function(e){return function(){return e(this,3)}})},function(e,t,n){"use strict";var r=n(88)(!0);n(89)(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}:(e=r(e,t),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var r=n(2),i=n(88)(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(90),a="endsWith",s=""[a];r(r.P+r.F*n(92)(a),"String",{endsWith:function(e){var t=o(this,e,a),n=1<arguments.length?arguments[1]:void 0,r=i(t.length),n=void 0===n?r:Math.min(i(n),r),r=String(e);return s?s.call(t,r,n):t.slice(n-r.length,n)===r}})},function(e,t,n){"use strict";var r=n(2),i=n(90);r(r.P+r.F*n(92)("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,1<arguments.length?arguments[1]:void 0)}})},function(e,t,n){var r=n(2);r(r.P,"String",{repeat:n(85)})},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(90),a="startsWith",s=""[a];r(r.P+r.F*n(92)(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(1<arguments.length?arguments[1]:void 0,t.length)),e=String(e);return s?s.call(t,e,n):t.slice(n,n+e.length)===e}})},function(e,t,n){"use strict";n(20)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(e,t,n){"use strict";n(20)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,n){"use strict";n(20)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,n){"use strict";n(20)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,n){"use strict";n(20)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,n){"use strict";n(20)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(e,t,n){"use strict";n(20)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(e,t,n){"use strict";n(20)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,n){"use strict";n(20)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(e,t,n){"use strict";n(20)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,n){"use strict";n(20)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,n){"use strict";n(20)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,n){"use strict";n(20)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,n){n=n(2);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var r=n(2),i=n(18),o=n(37);r(r.P+r.F*n(8)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=n(2),n=n(364);r(r.P+r.F*(Date.prototype.toISOString!==n),"Date",{toISOString:n})},function(e,t,n){"use strict";function r(e){return 9<e?e:"0"+e}var n=n(8),i=Date.prototype.getTime,o=Date.prototype.toISOString;e.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!n(function(){o.call(new Date(NaN))})?function(){var e,t,n;if(isFinite(i.call(this)))return e=this.getUTCFullYear(),t=this.getUTCMilliseconds(),(n=e<0?"-":9999<e?"+":"")+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+r(this.getUTCMonth()+1)+"-"+r(this.getUTCDate())+"T"+r(this.getUTCHours())+":"+r(this.getUTCMinutes())+":"+r(this.getUTCSeconds())+"."+(99<t?t:"0"+r(t))+"Z";throw RangeError("Invalid time value")}:o},function(e,t,n){var r=Date.prototype,i="Invalid Date",o=r.toString,a=r.getTime;new Date(NaN)+""!=i&&n(19)(r,"toString",function(){var e=a.call(this);return e==e?o.call(this):i})},function(e,t,n){var r=n(11)("toPrimitive"),i=Date.prototype;r in i||n(22)(i,r,n(367))},function(e,t,n){"use strict";var r=n(9),i=n(37);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),"number"!=e)}},function(e,t,n){var r=n(2);r(r.S,"Array",{isArray:n(66)})},function(e,t,n){"use strict";var c=n(26),r=n(2),h=n(18),f=n(121),m=n(93),_=n(12),p=n(94),y=n(95);r(r.S+r.F*!n(67)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,r,i,o=h(e),e="function"==typeof this?this:Array,a=arguments.length,s=1<a?arguments[1]:void 0,u=void 0!==s,l=0,d=y(o);if(u&&(s=c(s,2<a?arguments[2]:void 0,2)),null==d||e==Array&&m(d))for(n=new e(t=_(o.length));l<t;l++)p(n,l,u?s(o[l],l):o[l]);else for(i=d.call(o),n=new e;!(r=i.next()).done;l++)p(n,l,u?f(i,s,[r.value,l],!0):r.value);return n.length=l,n}})},function(e,t,n){"use strict";var r=n(2),i=n(94);r(r.S+r.F*n(8)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);e<t;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(2),i=n(23),o=[].join;r(r.P+r.F*(n(57)!=Object||!n(25)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(2),i=n(81),u=n(34),l=n(44),d=n(12),c=[].slice;r(r.P+r.F*n(8)(function(){i&&c.call(i)}),"Array",{slice:function(e,t){var n=d(this.length),r=u(this);if(t=void 0===t?n:t,"Array"==r)return c.call(this,e,t);for(var i=l(e,n),e=l(t,n),o=d(e-i),a=new Array(o),s=0;s<o;s++)a[s]="String"==r?this.charAt(i+s):this[i+s];return a}})},function(e,t,n){"use strict";var r=n(2),i=n(27),o=n(18),a=n(8),s=[].sort,u=[1,2,3];r(r.P+r.F*(a(function(){u.sort(void 0)})||!a(function(){u.sort(null)})||!n(25)(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},function(e,t,n){"use strict";var r=n(2),i=n(31)(0),n=n(25)([].forEach,!0);r(r.P+r.F*!n,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},function(e,t,n){var r=n(10),i=n(66),o=n(11)("species");e.exports=function(e){var t;return void 0===(t=i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t))&&null===(t=t[o])?void 0:t)?Array:t}},function(e,t,n){"use strict";var r=n(2),i=n(31)(1);r(r.P+r.F*!n(25)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(2),i=n(31)(2);r(r.P+r.F*!n(25)([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(2),i=n(31)(3);r(r.P+r.F*!n(25)([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(2),i=n(31)(4);r(r.P+r.F*!n(25)([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(2),i=n(123);r(r.P+r.F*!n(25)([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){"use strict";var r=n(2),i=n(123);r(r.P+r.F*!n(25)([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var r=n(2),i=n(64)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(25)(o)),"Array",{indexOf:function(e){return a?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(2),i=n(23),o=n(28),a=n(12),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(25)(s)),"Array",{lastIndexOf:function(e){if(u)return s.apply(this,arguments)||0;var t=i(this),n=a(t.length),r=n-1;for((r=1<arguments.length?Math.min(r,o(arguments[1])):r)<0&&(r=n+r);0<=r;r--)if(r in t&&t[r]===e)return r||0;return-1}})},function(e,t,n){var r=n(2);r(r.P,"Array",{copyWithin:n(124)}),n(48)("copyWithin")},function(e,t,n){var r=n(2);r(r.P,"Array",{fill:n(96)}),n(48)("fill")},function(e,t,n){"use strict";var r=n(2),i=n(31)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0)}}),n(48)("find")},function(e,t,n){"use strict";var r=n(2),i=n(31)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0)}}),n(48)(o)},function(e,t,n){n(53)("Array")},function(e,t,n){var r=n(7),o=n(84),i=n(16).f,a=n(46).f,s=n(91),u=n(68),l=m=r.RegExp,d=m.prototype,c=/a/g,h=/a/g,f=new m(c)!==c;if(n(15)&&(!f||n(8)(function(){return h[n(11)("match")]=!1,m(c)!=c||m(h)==h||"/a/i"!=m(c,"i")}))){for(var m=function(e,t){var n=this instanceof m,r=s(e),i=void 0===t;return!n&&r&&e.constructor===m&&i?e:o(f?new l(r&&!i?e.source:e,t):l((r=e instanceof m)?e.source:e,r&&i?u.call(e):t),n?this:d,m)},_=a(l),p=0;_.length>p;)!function(t){t in m||i(m,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})}(_[p++]);(d.constructor=m).prototype=d,n(19)(r,"RegExp",m)}n(53)("RegExp")},function(e,t,n){"use strict";n(127);function r(e){n(19)(RegExp.prototype,s,e,!0)}var i=n(9),o=n(68),a=n(15),s="toString",u=/./[s];n(8)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?r(function(){var e=i(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?o.call(e):void 0)}):u.name!=s&&r(function(){return u.call(this)})},function(e,t,n){"use strict";var d=n(9),c=n(12),h=n(99),f=n(69);n(70)("match",1,function(r,i,u,l){return[function(e){var t=r(this),n=null==e?void 0:e[i];return void 0!==n?n.call(e,t):new RegExp(e)[i](String(t))},function(e){var t=l(u,e,this);if(t.done)return t.value;var n=d(e),r=String(this);if(!n.global)return f(n,r);for(var i=n.unicode,o=[],a=n.lastIndex=0;null!==(s=f(n,r));){var s=String(s[0]);""===(o[a]=s)&&(n.lastIndex=h(r,c(n.lastIndex),i)),a++}return 0===a?null:o}]})},function(e,t,n){"use strict";var M=n(9),S=n(18),k=n(12),L=n(28),T=n(99),D=n(69),P=Math.max,C=Math.min,E=Math.floor,Y=/\$([$&`']|\d\d?|<[^>]*>)/g,x=/\$([$&`']|\d\d?)/g;n(70)("replace",2,function(i,o,w,b){return[function(e,t){var n=i(this),r=null==e?void 0:e[o];return void 0!==r?r.call(e,n,t):w.call(String(n),e,t)},function(e,t){var n=b(w,e,this,t);if(n.done)return n.value;for(var r,i=M(e),o=String(this),a="function"==typeof t,s=(a||(t=String(t)),i.global),u=(s&&(r=i.unicode,i.lastIndex=0),[]);null!==(f=D(i,o))&&(u.push(f),s);)""===String(f[0])&&(i.lastIndex=T(o,k(i.lastIndex),r));for(var l,d="",c=0,h=0;h<u.length;h++){for(var f=u[h],m=String(f[0]),_=P(C(L(f.index),o.length),0),p=[],y=1;y<f.length;y++)p.push(void 0===(l=f[y])?l:String(l));var v=f.groups,g=a?(g=[m].concat(p,_,o),void 0!==v&&g.push(v),String(t.apply(void 0,g))):function(o,a,s,u,l,e){var d=s+o.length,c=u.length,t=x;void 0!==l&&(l=S(l),t=Y);return w.call(e,t,function(e,t){var n;switch(t.charAt(0)){case"$":return"$";case"&":return o;case"`":return a.slice(0,s);case"'":return a.slice(d);case"<":n=l[t.slice(1,-1)];break;default:var r,i=+t;if(0==i)return e;if(c<i)return 0!==(r=E(i/10))&&r<=c?void 0===u[r-1]?t.charAt(1):u[r-1]+t.charAt(1):e;n=u[i-1]}return void 0===n?"":n})}(m,o,_,p,v,t);c<=_&&(d+=o.slice(c,_)+g,c=_+m.length)}return d+o.slice(c)}]})},function(e,t,n){"use strict";var s=n(9),u=n(112),l=n(69);n(70)("search",1,function(r,i,o,a){return[function(e){var t=r(this),n=null==e?void 0:e[i];return void 0!==n?n.call(e,t):new RegExp(e)[i](String(t))},function(e){var t,n=a(o,e,this);return n.done?n.value:(n=s(e),e=String(this),t=n.lastIndex,u(t,0)||(n.lastIndex=0),e=l(n,e),u(n.lastIndex,t)||(n.lastIndex=t),null===e?-1:e.index)}]})},function(e,t,n){"use strict";var c=n(91),y=n(9),v=n(60),g=n(99),w=n(12),b=n(69),h=n(98),r=n(8),M=Math.min,f=[].push,a="split",S="length",k="lastIndex",L=4294967295,T=!r(function(){RegExp(L,"y")});n(70)("split",2,function(i,o,m,_){var p="c"=="abbc"[a](/(b)*/)[1]||4!="test"[a](/(?:)/,-1)[S]||2!="ab"[a](/(?:ab)*/)[S]||4!="."[a](/(.?)(.?)/)[S]||1<"."[a](/()()/)[S]||""[a](/.?/)[S]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!c(e))return m.call(n,e,t);for(var r,i,o,a=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,l=void 0===t?L:t>>>0,d=new RegExp(e.source,s+"g");(r=h.call(d,n))&&!(u<(i=d[k])&&(a.push(n.slice(u,r.index)),1<r[S]&&r.index<n[S]&&f.apply(a,r.slice(1)),o=r[0][S],u=i,l<=a[S]));)d[k]===r.index&&d[k]++;return u===n[S]?!o&&d.test("")||a.push(""):a.push(n.slice(u)),l<a[S]?a.slice(0,l):a}:"0"[a](void 0,0)[S]?function(e,t){return void 0===e&&0===t?[]:m.call(this,e,t)}:m;return[function(e,t){var n=i(this),r=null==e?void 0:e[o];return void 0!==r?r.call(e,n,t):p.call(String(n),e,t)},function(e,t){var n=_(p,e,this,t,p!==m);if(n.done)return n.value;var n=y(e),r=String(this),e=v(n,RegExp),i=n.unicode,o=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(T?"y":"g"),a=new e(T?n:"^(?:"+n.source+")",o),s=void 0===t?L:t>>>0;if(0==s)return[];if(0===r.length)return null===b(a,r)?[r]:[];for(var u=0,l=0,d=[];l<r.length;){a.lastIndex=T?l:0;var c,h=b(a,T?r:r.slice(l));if(null===h||(c=M(w(a.lastIndex+(T?0:l)),r.length))===u)l=g(r,l,i);else{if(d.push(r.slice(u,l)),d.length===s)return d;for(var f=1;f<=h.length-1;f++)if(d.push(h[f]),d.length===s)return d;l=u=c}}return d.push(r.slice(u)),d}]})},function(e,t,n){var s=n(7),u=n(100).set,l=s.MutationObserver||s.WebKitMutationObserver,d=s.process,c=s.Promise,h="process"==n(34)(d);e.exports=function(){function e(){var e,t;for(h&&(e=d.domain)&&e.exit();n;){t=n.fn,n=n.next;try{t()}catch(e){throw n?i():r=void 0,e}}r=void 0,e&&e.enter()}var n,r,t,i,o,a;return i=h?function(){d.nextTick(e)}:!l||s.navigator&&s.navigator.standalone?c&&c.resolve?(t=c.resolve(void 0),function(){t.then(e)}):function(){u.call(s,e)}:(o=!0,a=document.createTextNode(""),new l(e).observe(a,{characterData:!0}),function(){a.data=o=!o}),function(e){e={fn:e,next:void 0};r&&(r.next=e),n||(n=e,i()),r=e}}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){"use strict";var r=n(131),i=n(49);e.exports=n(73)("Map",function(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}},{get:function(e){e=r.getEntry(i(this,"Map"),e);return e&&e.v},set:function(e,t){return r.def(i(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(131),i=n(49);e.exports=n(73)("Set",function(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";function r(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}}var o,i=n(7),a=n(31)(0),s=n(19),u=n(38),l=n(111),d=n(132),c=n(10),h=n(49),f=n(49),i=!i.ActiveXObject&&"ActiveXObject"in i,m="WeakMap",_=u.getWeak,p=Object.isExtensible,y=d.ufstore,v={get:function(e){var t;if(c(e))return!0===(t=_(e))?y(h(this,m)).get(e):t?t[this._i]:void 0},set:function(e,t){return d.def(h(this,m),e,t)}},g=e.exports=n(73)(m,r,v,d,!0,!0);f&&i&&(l((o=d.getConstructor(r,m)).prototype,v),u.NEED=!0,a(["delete","has","get","set"],function(r){var e=g.prototype,i=e[r];s(e,r,function(e,t){var n;return c(e)&&!p(e)?(this._f||(this._f=new o),n=this._f[r](e,t),"set"==r?this:n):i.call(this,e,t)})}))},function(e,t,n){"use strict";var r=n(132),i=n(49);n(73)("WeakSet",function(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,"WeakSet"),e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(2),i=n(74),o=n(101),u=n(9),l=n(44),d=n(12),a=n(10),s=n(7).ArrayBuffer,c=n(60),h=o.ArrayBuffer,f=o.DataView,m=i.ABV&&s.isView,_=h.prototype.slice,p=i.VIEW,o="ArrayBuffer";r(r.G+r.W+r.F*(s!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,o,{isView:function(e){return m&&m(e)||a(e)&&p in e}}),r(r.P+r.U+r.F*n(8)(function(){return!new h(2).slice(1,void 0).byteLength}),o,{slice:function(e,t){if(void 0!==_&&void 0===t)return _.call(u(this),e);for(var n=u(this).byteLength,r=l(e,n),i=l(void 0===t?n:t,n),e=new(c(this,h))(d(i-r)),o=new f(this),a=new f(e),s=0;r<i;)a.setUint8(s++,o.getUint8(r++));return e}}),n(53)(o)},function(e,t,n){var r=n(2);r(r.G+r.W+r.F*!n(74).ABV,{DataView:n(101).DataView})},function(e,t,n){n(36)("Int8",1,function(r){return function(e,t,n){return r(this,e,t,n)}})},function(e,t,n){n(36)("Uint8",1,function(r){return function(e,t,n){return r(this,e,t,n)}})},function(e,t,n){n(36)("Uint8",1,function(r){return function(e,t,n){return r(this,e,t,n)}},!0)},function(e,t,n){n(36)("Int16",2,function(r){return function(e,t,n){return r(this,e,t,n)}})},function(e,t,n){n(36)("Uint16",2,function(r){return function(e,t,n){return r(this,e,t,n)}})},function(e,t,n){n(36)("Int32",4,function(r){return function(e,t,n){return r(this,e,t,n)}})},function(e,t,n){n(36)("Uint32",4,function(r){return function(e,t,n){return r(this,e,t,n)}})},function(e,t,n){n(36)("Float32",4,function(r){return function(e,t,n){return r(this,e,t,n)}})},function(e,t,n){n(36)("Float64",8,function(r){return function(e,t,n){return r(this,e,t,n)}})},function(e,t,n){var r=n(2),i=n(27),o=n(9),a=(n(7).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(8)(function(){a(function(){})}),"Reflect",{apply:function(e,t,n){e=i(e),n=o(n);return a?a(e,t,n):s.call(e,t,n)}})},function(e,t,n){var r=n(2),i=n(45),o=n(27),a=n(9),s=n(10),u=n(8),l=n(113),d=(n(7).Reflect||{}).construct,c=u(function(){function e(){}return!(d(function(){},[],e)instanceof e)}),h=!u(function(){d(function(){})});r(r.S+r.F*(c||h),"Reflect",{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(h&&!c)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(l.apply(e,r))}r=n.prototype,n=i(s(r)?r:Object.prototype),r=Function.apply.call(e,n,t);return s(r)?r:n}})},function(e,t,n){var r=n(16),i=n(2),o=n(9),a=n(37);i(i.S+i.F*n(8)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){o(e),t=a(t,!0),o(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var r=n(2),i=n(29).f,o=n(9);r(r.S,"Reflect",{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";function r(e){this._t=o(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)}var i=n(2),o=n(9);n(120)(r,"Object",function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),i(i.S,"Reflect",{enumerate:function(e){return new r(e)}})},function(e,t,n){var o=n(29),a=n(47),s=n(21),r=n(2),u=n(10),l=n(9);r(r.S,"Reflect",{get:function e(t,n){var r,i=arguments.length<3?t:arguments[2];return l(t)===i?t[n]:(r=o.f(t,n))?s(r,"value")?r.value:void 0!==r.get?r.get.call(i):void 0:u(r=a(t))?e(r,n,i):void 0}})},function(e,t,n){var r=n(29),i=n(2),o=n(9);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},function(e,t,n){var r=n(2),i=n(47),o=n(9);r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,n){n=n(2);n(n.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(2),i=n(9),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},function(e,t,n){var r=n(2);r(r.S,"Reflect",{ownKeys:n(134)})},function(e,t,n){var r=n(2),i=n(9),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},function(e,t,n){var s=n(16),u=n(29),l=n(47),d=n(21),r=n(2),c=n(40),h=n(9),f=n(10);r(r.S,"Reflect",{set:function e(t,n,r){var i,o=arguments.length<4?t:arguments[3],a=u.f(h(t),n);if(!a){if(f(i=l(t)))return e(i,n,r,o);a=c(0)}if(d(a,"value")){if(!1===a.writable||!f(o))return!1;if(i=u.f(o,n)){if(i.get||i.set||!1===i.writable)return!1;i.value=r,s.f(o,n,i)}else s.f(o,n,c(0,r));return!0}return void 0!==a.set&&(a.set.call(o,r),!0)}})},function(e,t,n){var r=n(2),i=n(82);i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){n(427),e.exports=n(13).Array.includes},function(e,t,n){"use strict";var r=n(2),i=n(64)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0)}}),n(48)("includes")},function(e,t,n){n(429),e.exports=n(13).Array.flatMap},function(e,t,n){"use strict";var r=n(2),i=n(430),o=n(18),a=n(12),s=n(27),u=n(122);r(r.P,"Array",{flatMap:function(e){var t,n,r=o(this);return s(e),t=a(r.length),n=u(r,0),i(n,r,r,t,0,1,e,arguments[1]),n}}),n(48)("flatMap")},function(e,t,n){"use strict";var m=n(66),_=n(10),p=n(12),y=n(26),v=n(11)("isConcatSpreadable");e.exports=function e(t,n,r,i,o,a,s,u){for(var l,d,c=o,h=0,f=!!s&&y(s,u,3);h<i;){if(h in r){if(l=f?f(r[h],h,n):r[h],d=!1,(d=_(l)?void 0!==(d=l[v])?!!d:m(l):d)&&0<a)c=e(t,n,l,p(l.length),c,a-1)-1;else{if(9007199254740991<=c)throw TypeError();t[c]=l}c++}h++}return c}},function(e,t,n){n(432),e.exports=n(13).String.padStart},function(e,t,n){"use strict";var r=n(2),i=n(135),n=n(72),n=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n);r(r.P+r.F*n,"String",{padStart:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0,!0)}})},function(e,t,n){n(434),e.exports=n(13).String.padEnd},function(e,t,n){"use strict";var r=n(2),i=n(135),n=n(72),n=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n);r(r.P+r.F*n,"String",{padEnd:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0,!1)}})},function(e,t,n){n(436),e.exports=n(13).String.trimLeft},function(e,t,n){"use strict";n(51)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},function(e,t,n){n(438),e.exports=n(13).String.trimRight},function(e,t,n){"use strict";n(51)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},function(e,t,n){n(440),e.exports=n(78).f("asyncIterator")},function(e,t,n){n(107)("asyncIterator")},function(e,t,n){n(442),e.exports=n(13).Object.getOwnPropertyDescriptors},function(e,t,n){var r=n(2),u=n(134),l=n(23),d=n(29),c=n(94);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=l(e),i=d.f,o=u(r),a={},s=0;o.length>s;)void 0!==(n=i(r,t=o[s++]))&&c(a,t,n);return a}})},function(e,t,n){n(444),e.exports=n(13).Object.values},function(e,t,n){var r=n(2),i=n(136)(!1);r(r.S,"Object",{values:function(e){return i(e)}})},function(e,t,n){n(446),e.exports=n(13).Object.entries},function(e,t,n){var r=n(2),i=n(136)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){"use strict";n(128),n(448),e.exports=n(13).Promise.finally},function(e,t,n){"use strict";var r=n(2),i=n(13),o=n(7),a=n(60),s=n(130);r(r.P+r.R,"Promise",{finally:function(t){var n=a(this,i.Promise||o.Promise),e="function"==typeof t;return this.then(e?function(e){return s(n,t()).then(function(){return e})}:t,e?function(e){return s(n,t()).then(function(){throw e})}:t)}})},function(e,t,n){n(450),n(451),n(452),e.exports=n(13)},function(e,t,n){function r(i){return function(e,t){var n=2<arguments.length,r=n&&a.call(arguments,2);return i(n?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,t)}}var i=n(7),o=n(2),n=n(72),a=[].slice,n=/MSIE .\./.test(n);o(o.G+o.B+o.F*n,{setTimeout:r(i.setTimeout),setInterval:r(i.setInterval)})},function(e,t,n){var r=n(2),n=n(100);r(r.G+r.B,{setImmediate:n.set,clearImmediate:n.clear})},function(e,t,n){for(var r=n(97),i=n(43),o=n(19),a=n(7),s=n(22),u=n(52),n=n(11),l=n("iterator"),d=n("toStringTag"),c=u.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=i(h),m=0;m<f.length;m++){var _,p=f[m],y=h[p],v=a[p],g=v&&v.prototype;if(g&&(g[l]||s(g,l,c),g[d]||s(g,d,p),u[p]=c,y))for(_ in r)g[_]||o(g,_,r[_],!0)}},function(t,e,n){t=function(a){"use strict";var u,e=Object.prototype,l=e.hasOwnProperty,d=Object.defineProperty||function(e,t,n){e[t]=n.value},t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",n=t.asyncIterator||"@@asyncIterator",i=t.toStringTag||"@@toStringTag";function o(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(e){o=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var i,o,a,s,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype),r=new T(r||[]);return d(t,"_invoke",{value:(i=e,o=n,a=r,s=h,function(e,t){if(s===m)throw new Error("Generator is already running");if(s===_){if("throw"===e)throw t;return P()}for(a.method=e,a.arg=t;;){var n=a.delegate;if(n){n=function e(t,n){var r=n.method;var i=t.iterator[r];if(i===u)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=u,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;r=c(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,p;i=r.arg;if(!i)return n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p;{if(!i.done)return i;n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=u)}n.delegate=null;return p}(n,a);if(n){if(n===p)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===h)throw s=_,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=m;n=c(i,o,a);if("normal"===n.type){if(s=a.done?_:f,n.arg!==p)return{value:n.arg,done:a.done}}else"throw"===n.type&&(s=_,a.method="throw",a.arg=n.arg)}})}),t}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}a.wrap=s;var h="suspendedStart",f="suspendedYield",m="executing",_="completed",p={};function y(){}function v(){}function g(){}var t={},w=(o(t,r,function(){return this}),Object.getPrototypeOf),w=w&&w(w(D([]))),b=(w&&w!==e&&l.call(w,r)&&(t=w),g.prototype=y.prototype=Object.create(t));function M(e){["next","throw","return"].forEach(function(t){o(e,t,function(e){return this._invoke(t,e)})})}function S(a,s){var t;d(this,"_invoke",{value:function(n,r){function e(){return new s(function(e,t){!function t(e,n,r,i){var o,e=c(a[e],a,n);if("throw"!==e.type)return(n=(o=e.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(e){t("next",e,r,i)},function(e){t("throw",e,r,i)}):s.resolve(n).then(function(e){o.value=e,r(o)},function(e){return t("throw",e,r,i)});i(e.arg)}(n,r,e,t)})}return t=t?t.then(e,e):e()}})}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function D(t){if(t){var n,e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return n=-1,(e=function e(){for(;++n<t.length;)if(l.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=u,e.done=!0,e}).next=e}return{next:P}}function P(){return{value:u,done:!0}}return d(b,"constructor",{value:v.prototype=g,configurable:!0}),d(g,"constructor",{value:v,configurable:!0}),v.displayName=o(g,i,"GeneratorFunction"),a.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,o(e,i,"GeneratorFunction")),e.prototype=Object.create(b),e},a.awrap=function(e){return{__await:e}},M(S.prototype),o(S.prototype,n,function(){return this}),a.AsyncIterator=S,a.async=function(e,t,n,r,i){void 0===i&&(i=Promise);var o=new S(s(e,t,n,r),i);return a.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},M(b),o(b,i,"Generator"),o(b,r,function(){return this}),o(b,"toString",function(){return"[object Generator]"}),a.keys=function(e){var t,n=Object(e),r=[];for(t in n)r.push(t);return r.reverse(),function e(){for(;r.length;){var t=r.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},a.values=D,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(L),!e)for(var t in this)"t"===t.charAt(0)&&l.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=u)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function e(e,t){return o.type="throw",o.arg=n,r.next=e,t&&(r.method="next",r.arg=u),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var i=this.tryEntries[t],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc?null:i)?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n,r,i=this.tryEntries[t];if(i.tryLoc===e)return"throw"===(n=i.completion).type&&(r=n.arg,L(i)),r}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=u),p}},a}(t.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},function(e,t,n){n(455),e.exports=n(137).global},function(e,t,n){var r=n(456);r(r.G,{global:n(102)})},function(e,t,n){function _(e,t,n){var r,i,o,a=e&_.F,s=e&_.G,u=e&_.S,l=e&_.P,d=e&_.B,c=e&_.W,h=s?y:y[t]||(y[t]={}),f=h[b],m=s?p:u?p[t]:(p[t]||{})[b];for(r in n=s?t:n)(i=!a&&m&&void 0!==m[r])&&w(h,r)||(o=(i?m:n)[r],h[r]=s&&"function"!=typeof m[r]?n[r]:d&&i?v(o,p):c&&m[r]==o?function(r){function e(e,t,n){if(this instanceof r){switch(arguments.length){case 0:return new r;case 1:return new r(e);case 2:return new r(e,t)}return new r(e,t,n)}return r.apply(this,arguments)}return e[b]=r[b],e}(o):l&&"function"==typeof o?v(Function.call,o):o,l&&((h.virtual||(h.virtual={}))[r]=o,e&_.R)&&f&&!f[r]&&g(f,r,o))}var p=n(102),y=n(137),v=n(457),g=n(459),w=n(466),b="prototype";_.F=1,_.G=2,_.S=4,_.P=8,_.B=16,_.W=32,_.U=64,_.R=128,e.exports=_},function(e,t,n){var o=n(458);e.exports=function(r,i,e){if(o(r),void 0===i)return r;switch(e){case 1:return function(e){return r.call(i,e)};case 2:return function(e,t){return r.call(i,e,t)};case 3:return function(e,t,n){return r.call(i,e,t,n)}}return function(){return r.apply(i,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(460),i=n(465);e.exports=n(104)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(461),i=n(462),o=n(464),a=Object.defineProperty;t.f=n(104)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(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){var r=n(103);e.exports=function(e){if(r(e))return e;throw TypeError(e+" is not an object!")}},function(e,t,n){e.exports=!n(104)&&!n(138)(function(){return 7!=Object.defineProperty(n(463)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(103),i=n(102).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var i=n(103);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e))||"function"==typeof(n=e.valueOf)&&!i(r=n.call(e))||!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var d,c,h=n(139),f=n(140),m=0,_=0;e.exports=function(e,t,n){var r=t&&n||0,i=t||[],o=(e=e||{}).node||d,n=void 0!==e.clockseq?e.clockseq:c,a=(null!=o&&null!=n||(a=h(),null==o&&(o=d=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==n&&(n=c=16383&(a[6]<<8|a[7]))),void 0!==e.msecs?e.msecs:(new Date).getTime()),s=void 0!==e.nsecs?e.nsecs:_+1,u=a-m+(s-_)/1e4;if(u<0&&void 0===e.clockseq&&(n=n+1&16383),1e4<=(s=(u<0||m<a)&&void 0===e.nsecs?0:s))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");m=a,c=n,u=(1e4*(268435455&(a+=122192928e5))+(_=s))%4294967296,i[r++]=u>>>24&255,i[r++]=u>>>16&255,i[r++]=u>>>8&255,i[r++]=255&u,e=a/4294967296*1e4&268435455,i[r++]=e>>>8&255,i[r++]=255&e,i[r++]=e>>>24&15|16,i[r++]=e>>>16&255,i[r++]=n>>>8|128,i[r++]=255&n;for(var l=0;l<6;++l)i[r+l]=o[l];return t||f(i)}},function(e,t,n){var a=n(139),s=n(140);e.exports=function(e,t,n){var r=t&&n||0,i=("string"==typeof e&&(t="binary"===e?new Array(16):null,e=null),(e=e||{}).random||(e.rng||a)());if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[r+o]=i[o];return t||s(i)}},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 r={"./af":141,"./af.js":141,"./ar":142,"./ar-dz":143,"./ar-dz.js":143,"./ar-kw":144,"./ar-kw.js":144,"./ar-ly":145,"./ar-ly.js":145,"./ar-ma":146,"./ar-ma.js":146,"./ar-ps":147,"./ar-ps.js":147,"./ar-sa":148,"./ar-sa.js":148,"./ar-tn":149,"./ar-tn.js":149,"./ar.js":142,"./az":150,"./az.js":150,"./be":151,"./be.js":151,"./bg":152,"./bg.js":152,"./bm":153,"./bm.js":153,"./bn":154,"./bn-bd":155,"./bn-bd.js":155,"./bn.js":154,"./bo":156,"./bo.js":156,"./br":157,"./br.js":157,"./bs":158,"./bs.js":158,"./ca":159,"./ca.js":159,"./cs":160,"./cs.js":160,"./cv":161,"./cv.js":161,"./cy":162,"./cy.js":162,"./da":163,"./da.js":163,"./de":164,"./de-at":165,"./de-at.js":165,"./de-ch":166,"./de-ch.js":166,"./de.js":164,"./dv":167,"./dv.js":167,"./el":168,"./el.js":168,"./en-au":169,"./en-au.js":169,"./en-ca":170,"./en-ca.js":170,"./en-gb":171,"./en-gb.js":171,"./en-ie":172,"./en-ie.js":172,"./en-il":173,"./en-il.js":173,"./en-in":174,"./en-in.js":174,"./en-nz":175,"./en-nz.js":175,"./en-sg":176,"./en-sg.js":176,"./eo":177,"./eo.js":177,"./es":178,"./es-do":179,"./es-do.js":179,"./es-mx":180,"./es-mx.js":180,"./es-us":181,"./es-us.js":181,"./es.js":178,"./et":182,"./et.js":182,"./eu":183,"./eu.js":183,"./fa":184,"./fa.js":184,"./fi":185,"./fi.js":185,"./fil":186,"./fil.js":186,"./fo":187,"./fo.js":187,"./fr":188,"./fr-ca":189,"./fr-ca.js":189,"./fr-ch":190,"./fr-ch.js":190,"./fr.js":188,"./fy":191,"./fy.js":191,"./ga":192,"./ga.js":192,"./gd":193,"./gd.js":193,"./gl":194,"./gl.js":194,"./gom-deva":195,"./gom-deva.js":195,"./gom-latn":196,"./gom-latn.js":196,"./gu":197,"./gu.js":197,"./he":198,"./he.js":198,"./hi":199,"./hi.js":199,"./hr":200,"./hr.js":200,"./hu":201,"./hu.js":201,"./hy-am":202,"./hy-am.js":202,"./id":203,"./id.js":203,"./is":204,"./is.js":204,"./it":205,"./it-ch":206,"./it-ch.js":206,"./it.js":205,"./ja":207,"./ja.js":207,"./jv":208,"./jv.js":208,"./ka":209,"./ka.js":209,"./kk":210,"./kk.js":210,"./km":211,"./km.js":211,"./kn":212,"./kn.js":212,"./ko":213,"./ko.js":213,"./ku":214,"./ku-kmr":215,"./ku-kmr.js":215,"./ku.js":214,"./ky":216,"./ky.js":216,"./lb":217,"./lb.js":217,"./lo":218,"./lo.js":218,"./lt":219,"./lt.js":219,"./lv":220,"./lv.js":220,"./me":221,"./me.js":221,"./mi":222,"./mi.js":222,"./mk":223,"./mk.js":223,"./ml":224,"./ml.js":224,"./mn":225,"./mn.js":225,"./mr":226,"./mr.js":226,"./ms":227,"./ms-my":228,"./ms-my.js":228,"./ms.js":227,"./mt":229,"./mt.js":229,"./my":230,"./my.js":230,"./nb":231,"./nb.js":231,"./ne":232,"./ne.js":232,"./nl":233,"./nl-be":234,"./nl-be.js":234,"./nl.js":233,"./nn":235,"./nn.js":235,"./oc-lnc":236,"./oc-lnc.js":236,"./pa-in":237,"./pa-in.js":237,"./pl":238,"./pl.js":238,"./pt":239,"./pt-br":240,"./pt-br.js":240,"./pt.js":239,"./ro":241,"./ro.js":241,"./ru":242,"./ru.js":242,"./sd":243,"./sd.js":243,"./se":244,"./se.js":244,"./si":245,"./si.js":245,"./sk":246,"./sk.js":246,"./sl":247,"./sl.js":247,"./sq":248,"./sq.js":248,"./sr":249,"./sr-cyrl":250,"./sr-cyrl.js":250,"./sr.js":249,"./ss":251,"./ss.js":251,"./sv":252,"./sv.js":252,"./sw":253,"./sw.js":253,"./ta":254,"./ta.js":254,"./te":255,"./te.js":255,"./tet":256,"./tet.js":256,"./tg":257,"./tg.js":257,"./th":258,"./th.js":258,"./tk":259,"./tk.js":259,"./tl-ph":260,"./tl-ph.js":260,"./tlh":261,"./tlh.js":261,"./tr":262,"./tr.js":262,"./tzl":263,"./tzl.js":263,"./tzm":264,"./tzm-latn":265,"./tzm-latn.js":265,"./tzm.js":264,"./ug-cn":266,"./ug-cn.js":266,"./uk":267,"./uk.js":267,"./ur":268,"./ur.js":268,"./uz":269,"./uz-latn":270,"./uz-latn.js":270,"./uz.js":269,"./vi":271,"./vi.js":271,"./x-pseudo":272,"./x-pseudo.js":272,"./yo":273,"./yo.js":273,"./zh-cn":274,"./zh-cn.js":274,"./zh-hk":275,"./zh-hk.js":275,"./zh-mo":276,"./zh-mo.js":276,"./zh-tw":277,"./zh-tw.js":277};function i(e){e=o(e);return n(e)}function o(e){if(n.o(r,e))return r[e];throw(e=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",e}i.keys=function(){return Object.keys(r)},i.resolve=o,(e.exports=i).id=470},function(e,t,n){!function(re,ie){
- /*!
- * @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 r(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,i=0,t=void 0,o=void 0,a=function e(t,n){p[i]=t;p[i+1]=n;i+=2;if(i===2)if(o)o(y);else v()};function s(e){o=e}function l(e){a=e}var d=typeof window!=="undefined"?window:undefined,c=d||{},h=c.MutationObserver||c.WebKitMutationObserver,f=typeof self==="undefined"&&typeof re!=="undefined"&&{}.toString.call(re)==="[object process]",m=typeof Uint8ClampedArray!=="undefined"&&typeof importScripts!=="undefined"&&typeof MessageChannel!=="undefined";function R(){return function(){return re.nextTick(y)}}function j(){if(typeof t!=="undefined")return function(){t(y)};return _()}function H(){var e=0;var t=new h(y);var n=document.createTextNode("");t.observe(n,{characterData:true});return function(){n.data=e=++e%2}}function W(){var e=new MessageChannel;e.port1.onmessage=y;return function(){return e.port2.postMessage(0)}}function _(){var e=setTimeout;return function(){return e(y,1)}}var p=new Array(1e3);function y(){for(var e=0;e<i;e+=2){var t=p[e];var n=p[e+1];t(n);p[e]=undefined;p[e+1]=undefined}i=0}function F(){try{var e=Function("return this")().require("vertx");t=e.runOnLoop||e.runOnContext;return j()}catch(e){return _()}}var v=void 0;if(f)v=R();else if(h)v=H();else if(m)v=W();else if(d===undefined&&"function"==="function")v=F();else v=_();function g(e,t){var n=this;var r=new this.constructor(M);if(r[b]===undefined)O(r);var i=n._state;if(i){var o=arguments[i-1];a(function(){return x(i,r,o,n._result)})}else E(n,r,e,t);return r}function w(e){var t=this;if(e&&typeof e==="object"&&e.constructor===t)return e;var n=new t(M);D(n,e);return n}var b=Math.random().toString(36).substring(2);function M(){}var S=void 0,k=1,L=2;function z(){return new TypeError("You cannot resolve a promise with itself")}function U(){return new TypeError("A promises callback cannot return that same promise.")}function B(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}function N(e,r,i){a(function(t){var n=false;var e=B(i,r,function(e){if(n)return;n=true;if(r!==e)D(t,e);else P(t,e)},function(e){if(n)return;n=true;C(t,e)},"Settle: "+(t._label||" unknown promise"));if(!n&&e){n=true;C(t,e)}},e)}function J(t,e){if(e._state===k)P(t,e._result);else if(e._state===L)C(t,e._result);else E(e,undefined,function(e){return D(t,e)},function(e){return C(t,e)})}function T(e,t,n){if(t.constructor===e.constructor&&n===g&&t.constructor.resolve===w)J(e,t);else if(n===undefined)P(e,t);else if(u(n))N(e,t,n);else P(e,t)}function D(t,e){if(t===e)C(t,z());else if(r(e)){var n=void 0;try{n=e.then}catch(e){C(t,e);return}T(t,e,n)}else P(t,e)}function G(e){if(e._onerror)e._onerror(e._result);Y(e)}function P(e,t){if(e._state!==S)return;e._result=t;e._state=k;if(e._subscribers.length!==0)a(Y,e)}function C(e,t){if(e._state!==S)return;e._state=L;e._result=t;a(G,e)}function E(e,t,n,r){var i=e._subscribers;var o=i.length;e._onerror=null;i[o]=t;i[o+k]=n;i[o+L]=r;if(o===0&&e._state)a(Y,e)}function Y(e){var t=e._subscribers;var n=e._state;if(t.length===0)return;var r=void 0,i=void 0,o=e._result;for(var a=0;a<t.length;a+=3){r=t[a];i=t[a+n];if(r)x(n,r,i,o);else i(o)}e._subscribers.length=0}function x(e,t,n,r){var i=u(n),o=void 0,a=void 0,s=true;if(i){try{o=n(r)}catch(e){s=false;a=e}if(t===o){C(t,U());return}}else o=r;if(t._state!==S);else if(i&&s)D(t,o);else if(s===false)C(t,a);else if(e===k)P(t,o);else if(e===L)C(t,o)}function V(n,e){try{e(function e(t){D(n,t)},function e(t){C(n,t)})}catch(e){C(n,e)}}var A=0;function q(){return A++}function O(e){e[b]=A++;e._state=undefined;e._result=undefined;e._subscribers=[]}function Z(){return new Error("Array Methods must be provided an Array")}var X=function(){function e(e,t){this._instanceConstructor=e;this.promise=new e(M);if(!this.promise[b])O(this.promise);if(n(t)){this.length=t.length;this._remaining=t.length;this._result=new Array(this.length);if(this.length===0)P(this.promise,this._result);else{this.length=this.length||0;this._enumerate(t);if(this._remaining===0)P(this.promise,this._result)}}else C(this.promise,Z())}e.prototype._enumerate=function e(t){for(var n=0;this._state===S&&n<t.length;n++)this._eachEntry(t[n],n)};e.prototype._eachEntry=function e(t,n){var r=this._instanceConstructor;var i=r.resolve;if(i===w){var o=void 0;var a=void 0;var s=false;try{o=t.then}catch(e){s=true;a=e}if(o===g&&t._state!==S)this._settledAt(t._state,n,t._result);else if(typeof o!=="function"){this._remaining--;this._result[n]=t}else if(r===I){var u=new r(M);if(s)C(u,a);else T(u,t,o);this._willSettleAt(u,n)}else this._willSettleAt(new r(function(e){return e(t)}),n)}else this._willSettleAt(i(t),n)};e.prototype._settledAt=function e(t,n,r){var i=this.promise;if(i._state===S){this._remaining--;if(t===L)C(i,r);else this._result[n]=r}if(this._remaining===0)P(i,this._result)};e.prototype._willSettleAt=function e(t,n){var r=this;E(t,undefined,function(e){return r._settledAt(k,n,e)},function(e){return r._settledAt(L,n,e)})};return e}();function K(e){return new X(this,e).promise}function $(i){var o=this;if(!n(i))return new o(function(e,t){return t(new TypeError("You must pass an array to race."))});else return new o(function(e,t){var n=i.length;for(var r=0;r<n;r++)o.resolve(i[r]).then(e,t)})}function Q(e){var t=this;var n=new t(M);C(n,e);return n}function ee(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function te(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var I=function(){function t(e){this[b]=q();this._result=this._state=undefined;this._subscribers=[];if(M!==e){typeof e!=="function"&&ee();this instanceof t?V(this,e):te()}}t.prototype.catch=function e(t){return this.then(null,t)};t.prototype.finally=function e(t){var n=this;var r=n.constructor;if(u(t))return n.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})});return n.then(t,t)};return t}();function ne(){var e=void 0;if(typeof ie!=="undefined")e=ie;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=I}return I.prototype.then=g,I.all=K,I.race=$,I.resolve=w,I.reject=Q,I._setScheduler=s,I._setAsap=l,I._asap=a,I.polyfill=ne,I.Promise=I}()}.call(this,n(472),n(473))},function(e,t){var n,r,e=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return(n=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)}}}var s,u=[],l=!1,d=-1;function c(){l&&s&&(l=!1,s.length?u=s.concat(u):d=-1,u.length)&&h()}function h(){if(!l){for(var e=a(c),t=(l=!0,u.length);t;){for(s=u,u=[];++d<t;)s&&s[d].run();d=-1,t=u.length}s=null,l=!1,!function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return(r=clearTimeout)(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}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 f(e,t)),1!==u.length||l||a(h)},f.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=m,e.addListener=m,e.once=m,e.off=m,e.removeListener=m,e.removeAllListeners=m,e.emit=m,e.prependListener=m,e.prependOnceListener=m,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(R,e,t){"use strict";function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=j(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==j(e)?e:e+""}(r.key),r)}}t.r(e),t.d(e,"JSPlugin",function(){return ir});var W=function(){function o(e){if(this instanceof o)return this.elements=o.getSelector(e),this.element=this.get(0),this;throw new TypeError("Cannot call a class as a function")}return e=o,n=[{key:"camelCase",value:function(e){return e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()})}},{key:"getSelector",value:function(e,t){if(e&&"string"!=typeof e)return void 0!==e.length?e:[e];t=t||document;var n;return/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/.test(e)?(n=document.getElementById(e.substring(1)))?[n]:[]:[].slice.call(t.querySelectorAll(e)||[])}},{key:"setCss",value:function(e,t,n){t=o.camelCase(t),t=o.styleSupport(t);e.style[t]=n}},{key:"styleSupport",value:function(e){var t,n,r=e.charAt(0).toUpperCase()+e.slice(1),i=["Moz","Webkit","O","ms"],o=document.createElement("div");if(e in o.style)n=e;else for(var a=0;a<i.length;a++)if((t=i[a]+r)in o.style){n=t;break}return o=null,n}},{key:"getEventNameFromId",value:function(e){return e.split("__EVENT_EMITTER__")[0]}},{key:"isEventMatched",value:function(e,t){var n=t.split(".");return e.split(".").filter(function(e){return e}).every(function(e){return-1!==n.indexOf(e)})}},{key:"getElementEventName",value:function(e,t){var n=e.eventEmitterUUID||o.generateUUID();return e.eventEmitterUUID=n,o.getEventName(t,n)}},{key:"setEventName",value:function(e,t){var n=e.eventEmitterUUID||o.generateUUID();return e.eventEmitterUUID=n,o.getEventName(t,n)}},{key:"generateUUID",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}},{key:"getEventName",value:function(e,t){return"".concat(e,"__EVENT_EMITTER__").concat(t)}}],(t=[{key:"addClass",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return this.each(function(t){e.split(" ").forEach(function(e){t.classList.add(e)})}),this}},{key:"append",value:function(t){return this.each(function(e){"string"==typeof t?e.insertAdjacentHTML("beforeend",t):e.appendChild(t)}),this}},{key:"attr",value:function(t,n){return void 0===n?this.element?this.element.getAttribute(t):"":(this.each(function(e){e.setAttribute(t,n)}),this)}},{key:"children",value:function(){return new o(this.element.children)}},{key:"clone",value:function(){return new o(this.element.cloneNode(!0))}},{key:"css",value:function(n,t){var e=this;if(void 0!==t)return this.each(function(e){o.setCss(e,n,t)}),this;if("object"===j(n)){for(var r in n)!function(t){Object.prototype.hasOwnProperty.call(n,t)&&e.each(function(e){o.setCss(e,t,n[t])})}(r);return this}var i=o.camelCase(n),i=o.styleSupport(i);return getComputedStyle(this.element)[i]}},{key:"data",value:function(e,t){return this.attr("data-".concat(e),t)}},{key:"each",value:function(n){if(this.elements.length)if(this.elements.forEach)this.elements.forEach(function(e,t){n.call(e,e,t)});else for(var e=0,t=this.elements.length;e<t;e++)n.call(this.elements[e],this.elements[e],e);return this}},{key:"empty",value:function(){return this.each(function(e){e.innerHTML=""}),this}},{key:"eq",value:function(e){return new o(this.elements[e])}},{key:"find",value:function(e){return new o(o.getSelector(e,this.element))}},{key:"first",value:function(){return new o(this.elements[0])}},{key:"get",value:function(e){return void 0!==e?this.elements[e]:this.elements}},{key:"hasClass",value:function(e){return!!this.element&&this.element.classList.contains(e)}},{key:"height",value:function(){var e,t;return this.element?(t="border-box"===(e=window.getComputedStyle(this.element,null)).boxSizing&&e.borderTopWidth?parseFloat(e.borderTopWidth.replace("px","")):0,parseFloat(e.height.replace("px",""))-2*t):0}},{key:"hide",value:function(){this.each(function(e){e.style.display="none"})}},{key:"html",value:function(t){return void 0===t?this.element?this.element.innerHTML:"":(this.each(function(e){e.innerHTML=t}),this)}},{key:"index",value:function(){if(!this.element)return-1;for(var e=0;e++,this.element=this.element.previousElementSibling;);return e}},{key:"is",value:function(e){return"string"==typeof e?(this.element.matches||this.element.matchesSelector||this.element.msMatchesSelector||this.element.mozMatchesSelector||this.element.webkitMatchesSelector||this.element.oMatchesSelector).call(this.element,e):this.element===(e.element||e)}},{key:"next",value:function(){return this.element?new o(this.element.nextElementSibling):this}},{key:"off",value:function(e){var t=this;return Object.keys(o.eventListeners).forEach(function(n){var r=o.getEventNameFromId(n);(e=e||"mousedown mouseup mouseover mouseout mousemove mousewheel dblclick touchstart touchend touchmove").split(" ").forEach(function(e){o.isEventMatched(e,r)&&t.each(function(t){o.getElementEventName(t,r)===n&&o.eventListeners[n]&&(o.eventListeners[n].forEach(function(e){t.removeEventListener(r.split(".")[0],e)}),delete o.eventListeners[n])})})}),this}},{key:"offset",value:function(){var e;return this.element?{top:(e=this.element.getBoundingClientRect()).top+window.pageYOffset-document.documentElement.clientTop,left:e.left+window.pageXOffset-document.documentElement.clientLeft}:{left:0,top:0}}},{key:"offsetParent",value:function(){return this.element?new o(this.element.offsetParent):this}},{key:"on",value:function(e,r){var t=this;return e.split(" ").forEach(function(n){t.each(function(e){var t=o.setEventName(e,n);Array.isArray(o.eventListeners[t])||(o.eventListeners[t]=[]),o.eventListeners[t].push(r),e&&e.addEventListener(n.split(".")[0],r)})}),this}},{key:"one",value:function(t,n){return this.each(function(e){new o(e).on(t,function(){new o(e).off(t),n(t)})}),this}},{key:"outerHeight",value:function(e){var t;return this.element?void 0!==e?(e=this.element.offsetHeight,t=getComputedStyle(this.element),e+(parseInt(t.marginTop,10)+parseInt(t.marginBottom,10))):this.element.offsetHeight:0}},{key:"outerWidth",value:function(e){var t;return this.element?void 0!==e?(e=this.element.offsetWidth,t=window.getComputedStyle(this.element),e+(parseInt(t.marginLeft,10)+parseInt(t.marginRight,10))):this.element.offsetWidth:0}},{key:"parent",value:function(){return new o(this.element.parentElement)}},{key:"position",value:function(){return{left:this.element.offsetLeft,top:this.element.offsetTop}}},{key:"prepend",value:function(t){return this.each(function(e){"string"==typeof t?e.insertAdjacentHTML("afterbegin",t):e.insertBefore(t,e.firstChild)}),this}},{key:"prev",value:function(){return this.element?new o(this.element.previousElementSibling):this}},{key:"prevAll",value:function(e){if(!this.element)return this;for(var t=[];this.element=this.element.previousSibling;)3===this.element.nodeType||e&&!e(this.element)||t.push(this.element);return new o(t)}},{key:"remove",value:function(){return this.each(function(e){e.parentNode.removeChild(e)}),this}},{key:"show",value:function(){this.each(function(e){e.style.display=""})}},{key:"text",value:function(t){return void 0===t?this.element?this.element.textContent:"":(this.each(function(e){e.textContent=t}),this)}},{key:"val",value:function(e){return this.element?void 0===e?this.element.value:void(this.element.value=e):""}},{key:"width",value:function(){var e,t;return this.element?(t="border-box"===(e=window.getComputedStyle(this.element,null)).boxSizing&&e.borderTopWidth?parseFloat(e.borderTopWidth.replace("px","")):0,parseFloat(e.width.replace("px",""))-2*t):0}},{key:"mousedown",value:function(){var e;this.element&&(e=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window}),this.element.dispatchEvent(e))}},{key:"wrap",value:function(n){return this.each(function(e){var t=document.createElement("div");t.className=n,e.parentNode.insertBefore(t,e),t.appendChild(e)}),this}}])&&H(e.prototype,t),n&&H(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function S(e){return new W(e)}function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=F(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=F(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==F(e)?e:e+""}(r.key),r)}}W.eventListeners={};var g=new(function(){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this._keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}return t=e,(n=[{key:"$",value:function(e){var t=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,n=/^(?:\s*(<[\w\W]+>)[^>]*|.([\w-]*))$/;if(t.test(e))return t=t.exec(e),document.getElementById(t[2]);if(n.test(e)){for(var r=n.exec(e),i=document.getElementsByTagName("*"),o=[],a=0,s=i.length;a<s;a++)i[a].className.match(new RegExp("(\\s|^)"+r[2]+"(\\s|$)"))&&o.push(i[a]);return o}}},{key:"dateFormat",value:function(e,t){var n,r={"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))),r)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?r[n]:("00"+r[n]).substr((""+r[n]).length)));return t}},{key:"createBMPHeader",value:function(e,t){var n=4*Math.floor((3*e+3)/4)*t,r=new ArrayBuffer(54),i=new DataView(r);return i.setUint8(0,66),i.setUint8(1,77),i.setUint32(2,54+n,!0),i.setUint16(6,0,!0),i.setUint16(8,0,!0),i.setUint32(10,54,!0),i.setUint32(14,40,!0),i.setUint32(18,e,!0),i.setUint32(22,t,!0),i.setUint16(26,1,!0),i.setUint16(28,24,!0),i.setUint32(30,0,!0),i.setUint32(34,n,!0),i.setUint32(38,2835,!0),i.setUint32(42,2835,!0),i.setUint32(46,0,!0),i.setUint32(50,0,!0),new Uint8Array(r)}},{key:"createJPEGHeader",value:function(e,t,n){if(2<e.length&&255===e[0]&&216===e[1])return e;throw new Error("Invalid JPEG data")}},{key:"downloadFile",value:function(t,e,n,r){var i=t;if(!(t instanceof Blob||t instanceof File)){i=null;var o=e.toLowerCase().split(".").pop();if("bmp"===o&&n&&r){var a=this.createBMPHeader(n,r),s=new Uint8Array(a.length+t.length);s.set(a),s.set(t,a.length),i=new Blob([s])}else if(("jpg"===o||"jpeg"===o)&&n&&r)try{var u=this.createJPEGHeader(t,n,r),i=new Blob([u])}catch(e){console.warn("JPEG处理失败:",e),i=new Blob([t])}else i=new Blob([t])}a=window.URL.createObjectURL(i),s=window.document.createElement("a"),s.href=a,s.download=e,o=document.createEvent("MouseEvents");o.initEvent("click",!0,!0),s.dispatchEvent(o)}},{key:"generateBMPData",value:function(e){for(var t=e.getContext("2d"),n=e.width,r=e.height,i=t.getImageData(0,0,n,r).data,o=4*Math.floor((3*n+3)/4),a=new Uint8Array(o*r),s=0;s<r;s++)for(var u=0;u<n;u++){var l=4*(s*n+u),d=(r-1-s)*o+3*u;a[d]=i[2+l],a[1+d]=i[1+l],a[2+d]=i[l]}return a}},{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,r=e.length;n<r;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){var t;return null===e||""===e?null:(t=this.createxmlDoc(),"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,r,i,o,a,s="",u=0;for(e=this._utf8_encode(e);u<e.length;)r=(t=e.charCodeAt(u++))>>2,i=(3&t)<<4|(t=e.charCodeAt(u++))>>4,o=(15&t)<<2|(n=e.charCodeAt(u++))>>6,a=63&n,isNaN(t)?o=a=64:isNaN(n)&&(a=64),s=s+this._keyStr.charAt(r)+this._keyStr.charAt(i)+this._keyStr.charAt(o)+this._keyStr.charAt(a);return s}},{key:"decode",value:function(e){var t,n,r,i,o,a,s="",u=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");u<e.length;)r=this._keyStr.indexOf(e.charAt(u++)),t=(15&(i=this._keyStr.indexOf(e.charAt(u++))))<<4|(o=this._keyStr.indexOf(e.charAt(u++)))>>2,n=(3&o)<<6|(a=this._keyStr.indexOf(e.charAt(u++))),s+=String.fromCharCode(r<<2|i>>4),64!==o&&(s+=String.fromCharCode(t)),64!==a&&(s+=String.fromCharCode(n));return s=this._utf8_decode(s)}},{key:"_utf8_encode",value:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):t=127<r&&r<2048?(t+=String.fromCharCode(r>>6|192))+String.fromCharCode(63&r|128):(t=(t+=String.fromCharCode(r>>12|224))+String.fromCharCode(r>>6&63|128))+String.fromCharCode(63&r|128)}return t}},{key:"_utf8_decode",value:function(e){for(var t,n,r="",i=0,o=0;i<e.length;)(n=e.charCodeAt(i))<128?(r+=String.fromCharCode(n),i++):191<n&&n<224?(o=e.charCodeAt(i+1),r+=String.fromCharCode((31&n)<<6|63&o),i+=2):(o=e.charCodeAt(i+1),t=e.charCodeAt(i+2),r+=String.fromCharCode((15&n)<<12|(63&o)<<6|63&t),i+=3);return r}},{key:"isFirefox",value:function(){var e=!1,t=navigator.userAgent.toLowerCase(),n="";return e=t.match(/firefox\/([\d.]+)/)&&(n=t.match(/firefox\/([\d.]+)/)[1],-1<parseInt(n.split(".")[0],10))?!0:e}},{key:"isSafari",value:function(){var e=!1,t=navigator.userAgent.toLowerCase();return e=/safari/.test(t)&&!/chrome/.test(t)?!0:e}},{key:"getBrowserType",value:function(){return this.isSafari()?"safari":this.isFirefox()?"firefox":"chrome"}},{key:"getSafariVersion",value:function(){var e=navigator.userAgent;return-1!=e.indexOf("Safari")&&(e=e.match(/Version\/([\d.]+)/))?parseInt(e[1].split(".")[0],10):-1}},{key:"isSafariSupportHardecode",value:function(){var e,t=navigator.userAgent;return-1!=t.indexOf("Safari")&&!!(t=t.match(/Version\/([\d.]+)/))&&(t=t[1].split("."),e=parseInt(t[0],10),t=parseInt(t[1],10),16<e||16===e&&4<=t)}},{key:"isEdge",value:function(){return-1<navigator.userAgent.toLowerCase().indexOf("edge")}},{key:"isIOS",value:function(){return!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)}},{key:"dataURLtoBlob",value:function(e){for(var e=e.split(","),t=e[0].match(/:(.*?);/)[1],n=atob(e[1]),r=n.length,i=new Uint8Array(r);r--;)i[r]=n.charCodeAt(r);return new Blob([i],{type:t})}},{key:"intToHexString",value:function(e){e=e.toString(16);return e=1===e.length?"0"+e:e}},{key:"throttle",value:function(n,r){var i;return function(){var e=arguments,t=this;i=i||setTimeout(function(){n.apply(t,e),i=null},r)}}},{key:"deepMerge",value:function(n){for(var r=this,e=arguments.length,t=new Array(1<e?e-1:0),i=1;i<e;i++)t[i-1]=arguments[i];return t.forEach(function(e){for(var t in e)e.hasOwnProperty(t)&&("object"===F(e[t])&&null!==e[t]?(n[t]||(n[t]=Array.isArray(e[t])?[]:{}),r.deepMerge(n[t],e[t])):n[t]=e[t])}),n}}])&&z(t.prototype,n),r&&z(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}()),e=t(32),U=t.n(e);function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=B(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=B(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==B(e)?e:e+""}(r.key),r)}}e=function(){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function")}return t=e,(n=[{key:"createClientObject",value:function(e,t,n,r){return{socket:e,id:t,iCurChannel:n,iCurStream:r,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,r){var i=e.split("T")[0],e=e.split("T")[1],o="0"+parseInt(i.substring(0,4),10).toString(16),a=parseInt(i.substring(4,6),10),i=parseInt(i.substring(6),10),s=parseInt(e.substring(0,2),10),u=parseInt(e.substring(2,4),10),e=parseInt(e.substring(4,6),10),l=t.split("T")[0],t=t.split("T")[1],d="0"+parseInt(l.substring(0,4),10).toString(16),l=parseInt(l.substring(4,6),10),c=parseInt(t.substring(0,2),10),h=parseInt(t.substring(2,4),10),t=parseInt(t.substring(4,6),10),n=[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(o.substring(0,2),16),parseInt(o.substring(2,4),16),0,0,0,a,0,0,0,i,0,0,0,s,0,0,0,u,0,0,0,e,0,0,parseInt(d.substring(0,2),16),parseInt(d.substring(2,4),16),0,0,0,l,0,0,0,i,0,0,0,c,0,0,0,h,0,0,0,t,0,0,0,0,0,0,0,0,r,0,0,0];return new Uint8Array(n)}},{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 r=[0,0,0,0],i=0,o=t.length;i<o;i+=2)r[Math.floor(i/2)]=parseInt(t.substring(i,i+2),16);return new Uint8Array([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,r[0],r[1],r[2],r[3]])}},{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(t.prototype,n),r&&N(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=J(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=J(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==J(e)?e:e+""}(r.key),r)}}var V,q,Z,X,K,$,Q,ee,te,ne,re,ie,oe,ae,se,ue,le,de,ce,he=function(){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function")}return t=e,(n=[{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),r=[],i=0,o=n.length/2;i<o;i++)r[i]=parseInt(n.slice(2*i,2*i+2),16);return new Uint8Array(r)}},{key:"sdpParamsReverse",value:function(e){for(var t=[],n=0,r=e.length/2;n<r;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,e=e.slice(t,t+80),n=this.sdpParamsReverse(e.slice(24,28)),r=this.sdpParamsReverse(e.slice(40,48)),i=this.sdpParamsReverse(e.slice(32,40)),o=parseInt(e.slice(30,32),16),a=parseInt(e.slice(29,30),16);switch(n){case 28673:n=0;break;case 28945:case 49154:n=1,0===r&&(r=64e3),0===i&&(i=8e3),0===o&&(o=16),0===a&&(a=1);break;case 28944:case 49153:n=2,0===r&&(r=64e3),0===i&&(i=8e3),0===o&&(o=16),0===a&&(a=1);break;case 29217:case 49155:n=3,0===r&&(r=16e3),0===i&&(i=16e3),0===o&&(o=16),0===a&&(a=1);break;case 29280:case 29282:case 49156:n=4,0===r&&(r=16e3),0===i&&(i=8e3),0===o&&(o=16),0===a&&(a=1);break;case 8193:case 49157:n=6,0===r&&(r=32e3),0===i&&(i=16e3),0===o&&(o=16),0===a&&(a=1);break;case 49171:n=10,0===r&&(r=192e3),0===i&&(i=48e3),0===o&&(o=16),0===a&&(a=1)}return{iAudioType:n,iAudioBitRate:r,iAudioSamplingRate:i,iAudioBitWidth:o,iChannel:a}}},{key:"getSDPInfo",value:function(e){var t=e.indexOf("rtpmap:96 H264/")+15,t=e.slice(t,t+5),t=parseInt(t,10),n=e.indexOf("o=- ")+4,e=e.slice(n,n+16),n=parseInt(e,10)/1e3,e=60*(new Date).getTimezoneOffset()*1e3;return{iClockFrequency:t,iCurrentTime:Math.floor(n+e)}}},{key:"playCmd",value:function(e,t,n){t={sequence:0,cmd:t||"realplay",url:e};return n&&n.protocolType&&(t.protocolType=n.protocolType),JSON.stringify(t)}},{key:"playbackCmd",value:function(e,t,n,r){n={sequence:0,cmd:"playback",url:n,startTime:e,endTime:t};return r&&r.userName&&(n.userName=r.userName),r&&r.password&&(n.password=r.password),JSON.stringify(n)}},{key:"playRateCmd",value:function(e){var t={sequence:0,cmd:"speed",rate:e};return 1<arguments.length&&void 0!==arguments[1]&&arguments[1]&&(-2===e?e=3:-4===e&&(e=5),t={sequence:0,cmd:"changespeed",speed:e}),JSON.stringify(t)}},{key:"pauseCmd",value:function(){return JSON.stringify({sequence:1,cmd:"pause"})}},{key:"resumeCmd",value:function(){return JSON.stringify({sequence:1,cmd:"resume"})}},{key:"getError",value:function(e){var t=3001;return e&&(6===parseInt(e.statusCode,10)&&"streamLimit"===e.subStatusCode?t=3002:4===parseInt(e.statusCode,10)&&"badAuthorization"===e.subStatusCode&&(t=3003)),{iErrorNum:t,oError:e}}}])&&G(t.prototype,n),r&&G(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}(),n=t(105),fe=t.n(n),r=(V=Math,i=(n={}).lib={},q=i.Base={extend:function(e){me.prototype=this;var t=new me;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)}},Z=i.WordArray=q.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||X).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes;if(e=e.sigBytes,this.clamp(),r%4)for(var i=0;i<e;i++)t[r+i>>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535<n.length)for(i=0;i<e;i+=4)t[r+i>>>2]=n[i>>>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=V.ceil(t/4)},clone:function(){var e=q.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*V.random()|0);return new Z.init(t,e)}}),r=n.enc={},X=r.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;r<e;r++){var i=t[r>>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new Z.init(n,t/2)}},K=r.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;r<e;r++)n.push(String.fromCharCode(t[r>>>2]>>>24-r%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new Z.init(n,t)}},$=r.Utf8={stringify:function(e){try{return decodeURIComponent(escape(K.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return K.parse(unescape(encodeURIComponent(e)))}},Q=i.BufferedBlockAlgorithm=q.extend({reset:function(){this._data=new Z.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=$.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,n=t.words,r=t.sigBytes,i=this.blockSize,o=r/(4*i),o=e?V.ceil(o):V.max((0|o)-this._minBufferSize,0),r=V.min(4*(e=o*i),r);if(e){for(var a=0;a<e;a+=i)this._doProcessBlock(n,a);a=n.splice(0,e),t.sigBytes-=r}return new Z.init(a,r)},clone:function(){var e=q.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),i.Hasher=Q.extend({cfg:q.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){Q.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 ee.HMAC.init(n,t).finalize(e)}}}),ee=n.algo={},n);function me(){}te=r.lib.WordArray,r.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp(),e=[];for(var i=0;i<n;i+=3)for(var o=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<n;a++)e.push(r.charAt(o>>>6*(3-a)&63));if(t=r.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var t=e.length,n=this._map;(o=n.charAt(64))&&-1!=(o=e.indexOf(o))&&(t=o);for(var r,i,o=[],a=0,s=0;s<t;s++)s%4&&(r=n.indexOf(e.charAt(s-1))<<s%4*2,i=n.indexOf(e.charAt(s))>>>6-s%4*2,o[a>>>2]|=(r|i)<<24-a%4*8,a++);return te.create(o,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};var _e=Math;function k(e,t,n,r,i,o,a){return((e=e+(t&n|~t&r)+i+a)<<o|e>>>32-o)+t}function L(e,t,n,r,i,o,a){return((e=e+(t&r|n&~r)+i+a)<<o|e>>>32-o)+t}function T(e,t,n,r,i,o,a){return((e=e+(t^n^r)+i+a)<<o|e>>>32-o)+t}function D(e,t,n,r,i,o,a){return((e=e+(n^(t|~r))+i+a)<<o|e>>>32-o)+t}for(var i=r,pe=(n=i.lib).WordArray,ye=n.Hasher,n=i.algo,P=[],ve=0;ve<64;ve++)P[ve]=4294967296*_e.abs(_e.sin(ve+1))|0;function ge(e,t,n){var r=this._iv;r?this._iv=void 0:r=this._prevBlock;for(var i=0;i<n;i++)e[t+i]^=r[i]}n=n.MD5=ye.extend({_doReset:function(){this._hash=new pe.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=e[i=t+n];e[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var n=this._hash.words,i=e[t+0],r=e[t+1],o=e[t+2],a=e[t+3],s=e[t+4],u=e[t+5],l=e[t+6],d=e[t+7],c=e[t+8],h=e[t+9],f=e[t+10],m=e[t+11],_=e[t+12],p=e[t+13],y=e[t+14],v=e[t+15],g=k(n[0],M=n[1],b=n[2],w=n[3],i,7,P[0]),w=k(w,g,M,b,r,12,P[1]),b=k(b,w,g,M,o,17,P[2]),M=k(M,b,w,g,a,22,P[3]),g=k(g,M,b,w,s,7,P[4]),w=k(w,g,M,b,u,12,P[5]),b=k(b,w,g,M,l,17,P[6]),M=k(M,b,w,g,d,22,P[7]),g=k(g,M,b,w,c,7,P[8]),w=k(w,g,M,b,h,12,P[9]),b=k(b,w,g,M,f,17,P[10]),M=k(M,b,w,g,m,22,P[11]),g=k(g,M,b,w,_,7,P[12]),w=k(w,g,M,b,p,12,P[13]),b=k(b,w,g,M,y,17,P[14]),g=L(g,M=k(M,b,w,g,v,22,P[15]),b,w,r,5,P[16]),w=L(w,g,M,b,l,9,P[17]),b=L(b,w,g,M,m,14,P[18]),M=L(M,b,w,g,i,20,P[19]),g=L(g,M,b,w,u,5,P[20]),w=L(w,g,M,b,f,9,P[21]),b=L(b,w,g,M,v,14,P[22]),M=L(M,b,w,g,s,20,P[23]),g=L(g,M,b,w,h,5,P[24]),w=L(w,g,M,b,y,9,P[25]),b=L(b,w,g,M,a,14,P[26]),M=L(M,b,w,g,c,20,P[27]),g=L(g,M,b,w,p,5,P[28]),w=L(w,g,M,b,o,9,P[29]),b=L(b,w,g,M,d,14,P[30]),g=T(g,M=L(M,b,w,g,_,20,P[31]),b,w,u,4,P[32]),w=T(w,g,M,b,c,11,P[33]),b=T(b,w,g,M,m,16,P[34]),M=T(M,b,w,g,y,23,P[35]),g=T(g,M,b,w,r,4,P[36]),w=T(w,g,M,b,s,11,P[37]),b=T(b,w,g,M,d,16,P[38]),M=T(M,b,w,g,f,23,P[39]),g=T(g,M,b,w,p,4,P[40]),w=T(w,g,M,b,i,11,P[41]),b=T(b,w,g,M,a,16,P[42]),M=T(M,b,w,g,l,23,P[43]),g=T(g,M,b,w,h,4,P[44]),w=T(w,g,M,b,_,11,P[45]),b=T(b,w,g,M,v,16,P[46]),g=D(g,M=T(M,b,w,g,o,23,P[47]),b,w,i,6,P[48]),w=D(w,g,M,b,d,10,P[49]),b=D(b,w,g,M,y,15,P[50]),M=D(M,b,w,g,u,21,P[51]),g=D(g,M,b,w,_,6,P[52]),w=D(w,g,M,b,a,10,P[53]),b=D(b,w,g,M,f,15,P[54]),M=D(M,b,w,g,r,21,P[55]),g=D(g,M,b,w,c,6,P[56]),w=D(w,g,M,b,v,10,P[57]),b=D(b,w,g,M,l,15,P[58]),M=D(M,b,w,g,p,21,P[59]),g=D(g,M,b,w,s,6,P[60]),w=D(w,g,M,b,m,10,P[61]),b=D(b,w,g,M,o,15,P[62]),M=D(M,b,w,g,h,21,P[63]);n[0]=n[0]+g|0,n[1]=n[1]+M|0,n[2]=n[2]+b|0,n[3]=n[3]+w|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes,i=(t[r>>>5]|=128<<24-r%32,_e.floor(n/4294967296));for(t[15+(64+r>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t[14+(64+r>>>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++)r=t[n],t[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return e},clone:function(){var e=ye.clone.call(this);return e._hash=this._hash.clone(),e}}),i.MD5=ye._createHelper(n),i.HmacMD5=ye._createHmacHelper(n),n=(i=r).lib,d=n.Base,ne=n.WordArray,re=(n=i.algo).EvpKDF=d.extend({cfg:d.extend({keySize:4,hasher:n.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=(a=this.cfg).hasher.create(),r=ne.create(),i=r.words,o=a.keySize,a=a.iterations;i.length<o;){s&&n.update(s);var s=n.update(e).finalize(t);n.reset();for(var u=1;u<a;u++)s=n.finalize(s),n.reset();r.concat(s)}return r.sigBytes=4*o,r}}),i.EvpKDF=function(e,t,n){return re.create(n).compute(e,t)},r.lib.Cipher||(n=(d=r).lib,i=n.Base,ie=n.WordArray,oe=n.BufferedBlockAlgorithm,ae=d.enc.Base64,se=d.algo.EvpKDF,ue=n.Cipher=oe.extend({cfg:i.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(){oe.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(r){return{encrypt:function(e,t,n){return("string"==typeof t?ce:de).encrypt(r,e,t,n)},decrypt:function(e,t,n){return("string"==typeof t?ce:de).decrypt(r,e,t,n)}}}}),n.StreamCipher=ue.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),we=d.mode={},(o=(n.BlockCipherMode=i.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()).Encryptor=o.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize;ge.call(this,e,t,r),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),o.Decryptor=o.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=e.slice(t,t+r);n.decryptBlock(e,t),ge.call(this,e,t,r),this._prevBlock=i}}),we=we.CBC=o,o=(d.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=(n=n-e.sigBytes%n)<<24|n<<16|n<<8|n,i=[],o=0;o<n;o+=4)i.push(r);n=ie.create(i,n),e.concat(n)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},n.BlockCipher=ue.extend({cfg:ue.cfg.extend({mode:we,padding:o}),reset:function(){ue.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}),le=n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),we=(d.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return((e=e.salt)?ie.create([1398893684,1701076831]).concat(e).concat(t):t).toString(ae)},parse:function(e){var t,n=(e=ae.parse(e)).words;return 1398893684==n[0]&&1701076831==n[1]&&(t=ie.create(n.slice(2,4)),n.splice(0,4),e.sigBytes-=16),le.create({ciphertext:e,salt:t})}},de=n.SerializableCipher=i.extend({cfg:i.extend({format:we}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r);return t=i.finalize(t),i=i.cfg,le.create({ciphertext:t,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),d=(d.kdf={}).OpenSSL={execute:function(e,t,n,r){return r=r||ie.random(8),e=se.create({keySize:t+n}).compute(e,r),n=ie.create(e.words.slice(t),4*n),e.sigBytes=4*t,le.create({key:e,iv:n,salt:r})}},ce=n.PasswordBasedCipher=de.extend({cfg:de.cfg.extend({kdf:d}),encrypt:function(e,t,n,r){return n=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize),r.iv=n.iv,(e=de.encrypt.call(this,e,t,n.key,r)).mixIn(n),e},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),n=r.kdf.execute(n,e.keySize,e.ivSize,t.salt),r.iv=n.iv,de.decrypt.call(this,e,t,n.key,r)}}));for(var o=r,i=o.lib.BlockCipher,we=o.algo,a=[],be=[],Me=[],Se=[],ke=[],Le=[],Te=[],De=[],Pe=[],Ce=[],s=[],Ee=0;Ee<256;Ee++)s[Ee]=Ee<128?Ee<<1:Ee<<1^283;for(var Ye=0,xe=0,Ee=0;Ee<256;Ee++){var Ae=xe^xe<<1^xe<<2^xe<<3^xe<<4,Oe=s[be[a[Ye]=Ae=Ae>>>8^255&Ae^99]=Ye],Ie=s[Oe],Re=s[Ie],u=257*s[Ae]^16843008*Ae;Me[Ye]=u<<24|u>>>8,Se[Ye]=u<<16|u>>>16,ke[Ye]=u<<8|u>>>24,Le[Ye]=u,Te[Ae]=(u=16843009*Re^65537*Ie^257*Oe^16843008*Ye)<<24|u>>>8,De[Ae]=u<<16|u>>>16,Pe[Ae]=u<<8|u>>>24,Ce[Ae]=u,Ye?(Ye=Oe^s[s[s[Re^Oe]]],xe^=s[s[xe]]):Ye=xe=1}var je=[0,1,2,4,8,16,32,64,128,27,54],we=we.AES=i.extend({_doReset:function(){for(var e,t=(r=this._key).words,n=r.sigBytes/4,r=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],o=0;o<r;o++)o<n?i[o]=t[o]:(e=i[o-1],o%n?6<n&&4==o%n&&(e=a[e>>>24]<<24|a[e>>>16&255]<<16|a[e>>>8&255]<<8|a[255&e]):(e=a[(e=e<<8|e>>>24)>>>24]<<24|a[e>>>16&255]<<16|a[e>>>8&255]<<8|a[255&e],e^=je[o/n|0]<<24),i[o]=i[o-n]^e);for(t=this._invKeySchedule=[],n=0;n<r;n++)o=r-n,e=n%4?i[o]:i[o-4],t[n]=n<4||o<=4?e:Te[a[e>>>24]]^De[a[e>>>16&255]]^Pe[a[e>>>8&255]]^Ce[a[255&e]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,Me,Se,ke,Le,a)},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,Te,De,Pe,Ce,be),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var u=this._nRounds,l=e[t]^n[0],d=e[t+1]^n[1],c=e[t+2]^n[2],h=e[t+3]^n[3],f=4,m=1;m<u;m++)var _=r[l>>>24]^i[d>>>16&255]^o[c>>>8&255]^a[255&h]^n[f++],p=r[d>>>24]^i[c>>>16&255]^o[h>>>8&255]^a[255&l]^n[f++],y=r[c>>>24]^i[h>>>16&255]^o[l>>>8&255]^a[255&d]^n[f++],h=r[h>>>24]^i[l>>>16&255]^o[d>>>8&255]^a[255&c]^n[f++],l=_,d=p,c=y;_=(s[l>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^n[f++],p=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&l])^n[f++],y=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[l>>>8&255]<<8|s[255&d])^n[f++],h=(s[h>>>24]<<24|s[l>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^n[f++],e[t]=_,e[t+1]=p,e[t+2]=y,e[t+3]=h},keySize:8}),l=(o.AES=i._createHelper(we),r);function He(e){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function We(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=He(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=He(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==He(e)?e:e+""}(r.key),r)}}n=function(){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function")}return t=e,(n=[{key:"createClientObject",value:function(e,t,n,r,i){var o=l.AES.encrypt((new Date).getTime().toString(),l.enc.Hex.parse("1234567891234567123456789123456712345678912345671234567891234567"),{mode:l.mode.CBC,iv:l.enc.Hex.parse("12345678912345671234567891234567"),padding:l.pad.Pkcs7}).ciphertext.toString(),a=(o.length<64&&(o+=o),l.AES.encrypt((new Date).getTime().toString(),l.enc.Hex.parse("12345678912345671234567891234567"),{mode:l.mode.CBC,iv:l.enc.Hex.parse("12345678912345671234567891234567"),padding:l.pad.Pkcs7}).ciphertext.toString());return{socket:e,id:t,PKD:n,rand:r,playURL:i.playURL||"",auth:i.auth||"",token:i.token||"",key:o,iv:a,resolve:null,reject:null,stoping:!1}}},{key:"playCmd",value:function(e,t,n){t={sequence:0,cmd:t||"realplay",url:e.playURL,key:fe.a.encrypt(e.iv+":"+e.key,e.PKD).cipher.split("?")[0],authorization:l.AES.encrypt(e.rand+":"+e.auth,l.enc.Hex.parse(e.key),{mode:l.mode.CBC,iv:l.enc.Hex.parse(e.iv),padding:l.pad.Pkcs7}).ciphertext.toString(),token:l.AES.encrypt(e.token,l.enc.Hex.parse(e.key),{mode:l.mode.CBC,iv:l.enc.Hex.parse(e.iv),padding:l.pad.Pkcs7}).ciphertext.toString()};return n&&n.protocolType&&(t.protocolType=n.protocolType),JSON.stringify(t)}},{key:"playbackCmd",value:function(e,t,n,r){r={sequence:0,cmd:r||"playback",url:e.playURL,key:fe.a.encrypt(e.iv+":"+e.key,e.PKD).cipher.split("?")[0],authorization:l.AES.encrypt(e.rand+":"+e.auth,l.enc.Hex.parse(e.key),{mode:l.mode.CBC,iv:l.enc.Hex.parse(e.iv),padding:l.pad.Pkcs7}).ciphertext.toString(),token:l.AES.encrypt(e.token,l.enc.Hex.parse(e.key),{mode:l.mode.CBC,iv:l.enc.Hex.parse(e.iv),padding:l.pad.Pkcs7}).ciphertext.toString(),startTime:t,endTime:n};return JSON.stringify(r)}},{key:"seekCmd",value:function(e,t){return JSON.stringify({sequence:0,cmd:"seek",startTime:e,endTime:t})}},{key:"stopCmd",value:function(){return JSON.stringify({sequence:0,cmd:"stop"})}}])&&We(t.prototype,n),r&&We(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Fe(e){return(Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=Fe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=Fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==Fe(e)?e:e+""}(r.key),r)}}var d=function(){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function")}return t=e,(n=[{key:"createClientObject",value:function(e,t,n,r){return{socket:e,id:t,playURL:n,deviceSerial:r.deviceSerial||"",verificationCode:r.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 JSON.stringify(e)}},{key:"playbackCmd",value:function(e,t,n){e={sequence:0,cmd:"playback",deviceSerial:e.deviceSerial,verificationCode:e.verificationCode,url:e.playURL,startTime:t,endTime:n};return JSON.stringify(e)}}])&&ze(t.prototype,n),r&&ze(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}(),i=t(17),Ue=t.n(i),r="0x0000",i=r+"0",Be=i+"0001",Ne=i+"0002",Je=i+"0003",Ge=i+"0004",Ve=i+"0006",i=r+"1",qe=i+"0012",Ze=i+"0015",Xe=i+"0020",Ke=i+"0021",$e=r+"4",i=t(0),Qe=t.n(i);function et(e){return(et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=et(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==et(e)?e:e+""}(r.key),r)}}var nt=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this._bus=e,this.TAG=e.TAG||"Debug",this._config=e._config||e.options||{}}return e=t,(n=[{key:"D",value:function(){var e;this._config.openDebug&&(e=console).debug.apply(e,["[".concat(this.TAG,"] %c").concat(Qe()().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;this._config.openLogInfo&&(e=console).info.apply(e,["[".concat(this.TAG,"] %c").concat(Qe()().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,["[".concat(this.TAG,"] %c").concat(Qe()().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,["[".concat(this.TAG,"] %c").concat(Qe()().format("YYYY-MM-DD HH:mm:ss.SSS"),"%c"),"color: blue","color: black"].concat(Array.prototype.slice.call(arguments)))}}])&&tt(e.prototype,n),r&&tt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}();function rt(e){return(rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function it(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=rt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==rt(e)?e:e+""}(r.key),r)}}ot=new e,b=new he,at=new n,st=new d;var ot,b,at,st,ut=function(){function t(e){var i=this;if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.TAG="StreamClient",this._config=e,this._log=new nt({options:{openDebug:!1,openLogInfo:!1}}),this._emiter=new Ue.a,this.szProtocolVersion="0.1",this.iCiphersuites=0,this.aWebsocket=[],this.ERRORS={},this.getIndex=function(e){for(var t=-1,n=0,r=i.aWebsocket.length;n<r;n++)if(i.aWebsocket[n].id===e){t=n;break}return t},this.isConnect=!1,this.timeOutTimer=null}return e=t,(n=[{key:"openStream",value:function(e,h,f,n){var m=this,t=!1,r=e.split("://"),e=-1<e.indexOf("webSocketVideoCtrlProxy"),i=r[0],_=(/^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])/.test(r[1])||/^([a-zA-Z0-9]+(-[a-zA-Z0-9]+)*\.)+[a-zA-Z]{2,}/.test(r[1])||(t=!0),""),p=7681,y=1,v=0,v=t?(_=r[1].split("]:")[0]+"]",p=Math.floor(r[1].split("]:")[1].split("/")[0]),y=Math.floor(r[1].split("]:")[1].split("/")[1]/100),Math.floor(r[1].split("]:")[1].split("/")[1]%100)-1):(_=r[1].split(":")[0],p=Math.floor(r[1].split(":")[1].split("/")[0]),y=Math.floor(r[1].split(":")[1].split("/")[1]/100),Math.floor(r[1].split(":")[1].split("/")[1]%100)-1),t=(0===y&&(v=0),"&sessionID="),r=((h=h||{}).token&&!h.playURL&&(t="&token="),h.sessionID||h.session||(h.playURL?"":h.token)||""),i=i+"://"+_+":"+p+(h.mode?"/"+h.mode:"")+"?version="+this.szProtocolVersion+"&cipherSuites="+this.iCiphersuites+t+r+(h.proxy?"&proxy="+h.proxy:""),g=(e&&(i=i.replace("?","/webSocketVideoCtrlProxy/?")),new window.WebSocket(i)),w=(g.binaryType="arraybuffer",U.a.v4());return new Promise(function(d,c){g.onopen=function(){m.isConnect=!0,m._log.D("websocket onopen"),h.playURL||h.sessionID||h.deviceSerial||h.token||(m.aWebsocket.push(ot.createClientObject(g,w,y,v)),d(w))},m.timeOutTimer=setTimeout(function(){m.isConnect||(g.close(1e3,"CLOSE"),c("0x000010018"))},6e4),g.onmessage=function(e){if("string"==typeof e.data){var t=JSON.parse(e.data),n=m.getIndex(w);if(-1<n)if(m.aWebsocket[n].bisRecvEnd){if(m.aWebsocket[n].bisRecvEnd)return m._log.D("websocket 前一次关流失败,再次发送 end 结束命令 给流媒体"),void f({type:"end",cmd:"end",szId:w})}else if(t.cmd&&"end"===t.cmd)return m.aWebsocket[n].bisRecvEnd=!0,m._log.D("websocket test get onmessage: end1",t),void f({type:"end",cmd:"end",szId:w});if(t&&t.version&&t.cipherSuite)m._log.D("websocket onmessage: PKD",t),m.szProtocolVersion=t.version,m.iCiphersuites=parseInt(t.cipherSuite,10),t&&t.PKD&&t.rand?m.aWebsocket.push(at.createClientObject(g,w,t.PKD,t.rand,h)):(r="live://"+_+":"+p+"/"+y+"/"+v,-1===m.iCiphersuites?m.aWebsocket.push(st.createClientObject(g,w,r,h)):m.aWebsocket.push(b.createClientObject(g,w,r))),d(w);else{if(t&&t.sdp){m._log.D("websocket onmessage: sdp",t);var r=b.getMediaFromSdp(t.sdp),i=b.getSdpParams(t.sdp),o=b.getSDPInfo(t.sdp),i=(f({bHead:!0,oParams:i,buf:r,iClockFrequency:o.iClockFrequency,iCurrentTime:o.iCurrentTime,szId:w}),m.aWebsocket.findIndex(function(e){return e.id===w}));if(-1===i)return;m.aWebsocket[i].resolve()}if(t&&t.cmd&&("end"===t.cmd&&f({type:"exception",cmd:t.cmd,szId:w}),m._log.D("websocket test get onmessage: end 2",t)),t&&(t.status||t.statusString||void 0!==t.res)&&((t.statusString&&"ok"===t.statusString.toLowerCase()||200===parseInt(t.status,10)||void 0!==t.res&&0===parseInt(t.res,10))&&m.aWebsocket[n].resolve&&m.aWebsocket[n].resolve(t),t.statusString&&"ok"!==t.statusString.toLowerCase()||void 0!==t.status&&200!==parseInt(t.status,10)||void 0!==t.res&&0!==parseInt(t.res,10))){r=b.getError(t);if(!(-1<n))return g.close(3e3,"CLOSE"),c(r);try{m.aWebsocket[n].reject&&m.aWebsocket[n].reject(r)}catch(e){console.log(e)}f({type:"streamTransError",errorMsg:t.errorMsg,errorCode:void 0!==t.errorCode?t.errorCode:t.Code,szId:w}),m._log.D("websocket test get streamTransError ",t)}}}else{var o={},a=new Uint8Array(e.data);if(64===a.byteLength||40===a.byteLength){for(var s=-1,u=a.byteLength,l=0;l<u;l++)if(73===a[l]&&77===a[l+1]&&75===a[l+2]&&72===a[l+3]){s=l;break}o=-1!==s?{bHead:!0,buf:a.slice(s,s+40),szId:w}:{bHead:!1,buf:a,szId:w}}else o={bHead:!1,buf:a,szId:w};f(o),o=a=null}},g.onclose=function(e){var t;1e3!==e.code&&1005!==e.code&&1006!==e.code||(-1!==(t=m.aWebsocket.findIndex(function(e){return e.id===w}))?(m._log.I("Stream closed",e),m.aWebsocket[t].resolve(),m.aWebsocket[t].stoping?m.aWebsocket[t].stoping=!1:setTimeout(function(){n(e.code)},1e3),m.aWebsocket.splice(t,1)):n()),m.timeOutTimer&&(clearTimeout(m.timeOutTimer),m.timeOutTimer=null),m._log.D("websocket test onclose"),console.log("websocket onclose e.code",e.code)},g.onerror=function(e){m._log.D("0x000010000"),m._log.D("websocket test onerror"),console.log("onerror",e.type)}})}},{key:"startPlay",value:function(e,r,i,o,a){var s=this,u=this.getIndex(e);return r&&i&&"0.1"===this.szProtocolVersion&&(r=r.replace(/-/g,"").replace(/:/g,""),i=i.replace(/-/g,"").replace(/:/g,"")),new Promise(function(e,t){if(-1<u){s.aWebsocket[u].resolve=e,s.aWebsocket[u].reject=t;var n=null;r&&i?"0.1"!==s.szProtocolVersion?0===s.iCiphersuites?n=at.playbackCmd(s.aWebsocket[u],r,i,o):1===s.iCiphersuites?n=b.playbackCmd(r,i,s.aWebsocket[u].playURL,a):-1===s.iCiphersuites&&(n=st.playbackCmd(s.aWebsocket[u],r,i)):n=ot.playbackCmd(r,i,s.aWebsocket[u].iCurChannel,s.aWebsocket[u].iCurStream):0===s.aWebsocket[u].iCurChannel&&"0.1"===s.szProtocolVersion?n=ot.zeroPlayCmd(s.aWebsocket[u].iCurChannel,s.aWebsocket[u].iCurStream):"0.1"!==s.szProtocolVersion?0===s.iCiphersuites?n=at.playCmd(s.aWebsocket[u],o,a):1===s.iCiphersuites?n=b.playCmd(s.aWebsocket[u].playURL,o,a):-1===s.iCiphersuites&&(n=st.playCmd(s.aWebsocket[u])):n=ot.playCmd(s.aWebsocket[u].iCurChannel,s.aWebsocket[u].iCurStream);try{s.aWebsocket[u].socket.send(n)}catch(e){s._log.I(qe),t(e)}"0.1"===s.szProtocolVersion&&e()}else"0.1"===s.szProtocolVersion&&t()})}},{key:"singleFrame",value:function(){}},{key:"setPlayRate",value:function(o,a){var s=this,u=2<arguments.length&&void 0!==arguments[2]&&arguments[2];return new Promise(function(e,t){for(var n=0,r=s.aWebsocket.length;n<r;n++)if(s.aWebsocket[n].id===o){if("0.1"===s.szProtocolVersion){var i=ot.playRateCmd(a,u);s.aWebsocket[n].socket.send(i),e();break}s.aWebsocket[n].resolve=e,s.aWebsocket[n].reject=t;i=b.playRateCmd(a,u);s.aWebsocket[n].socket.send(i)}})}},{key:"seek",value:function(o,a,s){var u=this;return new Promise(function(e,t){for(var n,r=0,i=u.aWebsocket.length;r<i;r++)u.aWebsocket[r].id===o&&(u.aWebsocket[r].resolve=e,u.aWebsocket[r].reject=t,n=at.seekCmd(a,s),u.aWebsocket[r].socket.send(n))})}},{key:"pause",value:function(o){var a=this;return new Promise(function(e,t){for(var n=0,r=a.aWebsocket.length;n<r;n++)if(a.aWebsocket[n].id===o){if("0.1"===a.szProtocolVersion){var i=ot.pauseCmd();a.aWebsocket[n].socket.send(i),e();break}a.aWebsocket[n].resolve=e,a.aWebsocket[n].reject=t;i=b.pauseCmd();a.aWebsocket[n].socket.send(i)}})}},{key:"transmission",value:function(i,o){var a=this;return new Promise(function(e,t){for(var n=0,r=a.aWebsocket.length;n<r;n++)a.aWebsocket[n].id===i&&(a.aWebsocket[n].resolve=e,a.aWebsocket[n].reject=t,a.aWebsocket[n].socket.send(o))})}},{key:"resume",value:function(o){var a=this;return new Promise(function(e,t){for(var n=0,r=a.aWebsocket.length;n<r;n++)if(a.aWebsocket[n].id===o){if("0.1"===a.szProtocolVersion){var i=ot.resumeCmd();a.aWebsocket[n].socket.send(i),e();break}a.aWebsocket[n].resolve=e,a.aWebsocket[n].reject=t;i=b.resumeCmd();a.aWebsocket[n].socket.send(i)}})}},{key:"stop",value:function(i){var o=this;return new Promise(function(e,t){var n=o.aWebsocket.find(function(e){return e.id===i});if(!n)return o._log.I("".concat(Ze,": can't find related websocket, check the index.")),t(Ze);var r=o.getIndex(i);o.aWebsocket[r].bisRecvEnd=!1;try{n.resolve=e,n.socket.close(1e3,"CLOSE"),n.stoping=!0,e()}catch(e){o._log.I("".concat(qe,": send signalCmd to websocket failed.")),t(qe)}})}},{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}}])&&it(e.prototype,n),r&&it(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}();function lt(e){return(lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=lt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=lt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==lt(e)?e:e+""}(r.key),r)}}var ct=!1,ht={id:null,cmd:null,data:null,errorCode:0,status:null},ft={},mt={},_t=(window.JSAUDIOCOM_EncodeDataCBFun=function(e,t){ft[e]&&ft[e](new Uint8Array(t))},window.JSAUDIOCOM_DecodeDataCBFun=function(e,t){mt[e]&&mt[e](new Uint8Array(t))},function(){function r(e,t){var n=this;if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");t&&"function"==typeof t&&(this.fnCallBack=t),this.setCallBack=function(e,t,n,r,i){var o=ht;o.cmd=t,o.data=n,o.errorCode=r,o.status=i,e.fnCallBack(o)},this.iTalkEncodePort=-1,this.iTalkDecodePort=-1,ct?window.JSAudioInterComModule().then(function(e){n.oTalkWASM=e,n.setCallBack(n,"loaded")}):(t=e,(e=document.createElement("script")).type="text/javascript",e.src=t,e.onload=function(){window.JSAudioInterComModule().then(function(e){n.oTalkWASM=e,n.setCallBack(n,"loaded")})},document.body.appendChild(e),ct=!0)}return e=r,(t=[{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,r){0===this.oTalkWASM._JSAUDIOCOM_RegisterEncodeDataCallBack(this.iTalkEncodePort,t,r,e,n)&&(t=this.oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkEncodePort),console.log("resEncodeDataCallBack resError :"+t)),1!==this.oTalkWASM._JSAUDIOCOM_StartEncode(this.iTalkEncodePort)&&(r=this.oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkEncodePort),console.log("_JSAUDIOCOM_StartEncode resError :"+r))}},{key:"Talk_RegisterAudEncodeCB",value:function(e){return e&&"function"==typeof e?(ft[this.iTalkEncodePort]=e,1):0}},{key:"Talk_RegisterAudDecodeCB",value:function(e){return e&&"function"==typeof e?(mt[this.iTalkDecodePort]=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;var r,e=new Uint8Array(e);this.oTalkWASM.writeArrayToMemory(e,n);try{r=this.oTalkWASM._JSAUDIOCOM_InputEncodeData(this.iTalkEncodePort,n,t)}catch(e){console.error(e)}return 1!==r&&(e=this.oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkEncodePort),console.log("_JSAUDIOCOM_InputEncodeData resError :"+e)),null!==n&&(this.oTalkWASM._free(n),0),1}},{key:"Talk_DestroyAudEncode",value:function(){return this.oTalkWASM._JSAUDIOCOM_StopEncode(this.iTalkEncodePort),this.oTalkWASM._JSAUDIOCOM_ReleaseEncodeHandle(this.iTalkEncodePort),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,r,i){1!==this.oTalkWASM._JSAUDIOCOM_OpenStream(this.iTalkDecodePort,t,r,e,n,i)&&(t=this.oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkDecodePort),console.log("_JSAUDIOCOM_OpenStream resError :"+t)),this.oTalkWASM._JSAUDIOCOM_RegisterDecodeDataCallBack(this.iTalkDecodePort)}},{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_SetANRParam",value:function(){var e;1!==this.oTalkWASM._JSAUDIOCOM_SetANRParam(this.iTalkDecodePort,0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,1<arguments.length&&void 0!==arguments[1]?arguments[1]:3)&&(e=this.oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkDecodePort),console.log("_JSAUDIOCOM_SetANRParam resError :"+e))}},{key:"Talk_InputAudDecodeData",value:function(e,t){var n=this.oTalkWASM._malloc(t);return null===n?(console.log("inputdata malloc failed!!!"),-1):(e=new Uint8Array(e),this.oTalkWASM.writeArrayToMemory(e,n),1!==this.oTalkWASM._JSAUDIOCOM_InputStreamData(this.iTalkDecodePort,n,t)&&(e=this.oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkDecodePort),console.log("_JSAUDIOCOM_InputStreamData resError :"+e)),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)}},{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)),1}},{key:"Talk_GetLastError",value:function(){return this.oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkDecodePort)}}])&&dt(e.prototype,t),n&&dt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}());function pt(e){return(pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=pt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=pt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==pt(e)?e:e+""}(r.key),r)}}var vt=!1,gt={id:null,cmd:null,data:null,errorCode:0,status:null},wt=function(){function r(e,t){var n=this;if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");this.EZUITalk=null,t&&"function"==typeof t&&(this.fnCallBack=t),this.setCallBack=function(e,t,n,r,i){var o=gt;o.cmd=t,o.data=n,o.errorCode=r,o.status=i,e.fnCallBack(o)},vt?this.setCallBack(this,"loaded"):(t=e,(e=document.createElement("script")).type="text/javascript",e.src=t,e.onload=function(){n.setCallBack(n,"loaded")},document.body.appendChild(e),vt=!0)}return e=r,(t=[{key:"Talk_StartTalk",value:function(e,t,n){var r=this,i=(this.EZUITalk=new EZUITalk({accessToken:e.accessToken,channelNo:e.channelNo,deviceSerial:e.deviceSerial,env:e.env,filePath:e.filePath}),setTimeout(function(){vt||n()},3e3));this.EZUITalk.init(function(){r.EZUITalk.startTalk(function(e){t(e),clearTimeout(i),i=null},function(e){n(e)})},function(e){n(e)})}},{key:"Talk_StopTalk",value:function(){this.EZUITalk.stopTalk()}},{key:"Talk_GetLastError",value:function(){return this.oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkDecodePort)}}])&&yt(e.prototype,t),n&&yt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),r=t(56),bt=t.n(r);function Mt(e){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function St(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */St=function(){return a};var u,a={},e=Object.prototype,l=e.hasOwnProperty,d=Object.defineProperty||function(e,t,n){e[t]=n.value},t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",n=t.asyncIterator||"@@asyncIterator",i=t.toStringTag||"@@toStringTag";function o(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(u){o=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var i,o,a,s,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype),r=new T(r||[]);return d(t,"_invoke",{value:(i=e,o=n,a=r,s=h,function(e,t){if(s===m)throw Error("Generator is already running");if(s===_){if("throw"===e)throw t;return{value:u,done:!0}}for(a.method=e,a.arg=t;;){var n=a.delegate;if(n){n=function e(t,n){var r=n.method,i=t.iterator[r];if(i===u)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=u,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;r=c(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,p;i=r.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=u),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}(n,a);if(n){if(n===p)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===h)throw s=_,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=m;n=c(i,o,a);if("normal"===n.type){if(s=a.done?_:f,n.arg===p)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s=_,a.method="throw",a.arg=n.arg)}})}),t}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}a.wrap=s;var h="suspendedStart",f="suspendedYield",m="executing",_="completed",p={};function y(){}function v(){}function g(){}var t={},w=(o(t,r,function(){return this}),Object.getPrototypeOf),w=w&&w(w(D([]))),b=(w&&w!==e&&l.call(w,r)&&(t=w),g.prototype=y.prototype=Object.create(t));function M(e){["next","throw","return"].forEach(function(t){o(e,t,function(e){return this._invoke(t,e)})})}function S(a,s){var t;d(this,"_invoke",{value:function(n,r){function e(){return new s(function(e,t){!function t(e,n,r,i){var o,e=c(a[e],a,n);if("throw"!==e.type)return(n=(o=e.arg).value)&&"object"==Mt(n)&&l.call(n,"__await")?s.resolve(n.__await).then(function(e){t("next",e,r,i)},function(e){t("throw",e,r,i)}):s.resolve(n).then(function(e){o.value=e,r(o)},function(e){return t("throw",e,r,i)});i(e.arg)}(n,r,e,t)})}return t=t?t.then(e,e):e()}})}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function D(t){if(t||""===t){var n,e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return n=-1,(e=function e(){for(;++n<t.length;)if(l.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=u,e.done=!0,e}).next=e}throw new TypeError(Mt(t)+" is not iterable")}return d(b,"constructor",{value:v.prototype=g,configurable:!0}),d(g,"constructor",{value:v,configurable:!0}),v.displayName=o(g,i,"GeneratorFunction"),a.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,o(e,i,"GeneratorFunction")),e.prototype=Object.create(b),e},a.awrap=function(e){return{__await:e}},M(S.prototype),o(S.prototype,n,function(){return this}),a.AsyncIterator=S,a.async=function(e,t,n,r,i){void 0===i&&(i=Promise);var o=new S(s(e,t,n,r),i);return a.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},M(b),o(b,i,"Generator"),o(b,r,function(){return this}),o(b,"toString",function(){return"[object Generator]"}),a.keys=function(e){var t,n=Object(e),r=[];for(t in n)r.push(t);return r.reverse(),function e(){for(;r.length;){var t=r.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},a.values=D,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(L),!e)for(var t in this)"t"===t.charAt(0)&&l.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=u)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function e(e,t){return o.type="throw",o.arg=n,r.next=e,t&&(r.method="next",r.arg=u),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var i=this.tryEntries[t],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc?null:i)?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n,r,i=this.tryEntries[t];if(i.tryLoc===e)return"throw"===(n=i.completion).type&&(r=n.arg,L(i)),r}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=u),p}},a}function kt(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=Mt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=Mt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==Mt(e)?e:e+""}(r.key),r)}}function Dt(e,t,n){return t&&Tt(e.prototype,t),n&&Tt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.URL=window.URL||window.webkitURL;var Pt=function(){return Dt(function e(t,n,r,i,o){Lt(this,e),this.szUUID=t,this.szFileName=n,this.iStreamType=r,this.szPath="",this.bStart=!1,this.getStopData=!1,this.aStreamList=[],this.options=o,this.iPackType=i,this.bStop=!1,this.cbFn=null},[{key:"init",value:function(){var n=this,r=(0===this.iStreamType?this.szPath="Web/RecordFiles/":1===this.iStreamType&&(this.szPath="Web/PlaybackFiles/"),this.szPath+=this.getDateDir(),this.szPath.split("/"));return new Promise(function(t){window.requestFileSystem(window.TEMPORARY,n.options.iFileSize,function(e){n.createDir(e.root,r,function(){t()})},n.errorHandler)})}},{key:"getDateDir",value:function(){return g.dateFormat(new Date,"yyyy-MM-dd")}},{key:"createDir",value:function(e,t,n){var r=this;t.length?e.getDirectory(t[0],{create:!0},function(e){r.createDir(e,t.slice(1),n)},this.errorHandler):n()}},{key:"errorHandler",value:function(e){console.log("Error: "+e.toString())}},{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 r=this;window.requestFileSystem(window.TEMPORARY,this.options.iFileSize,function(e){e.root.getFile(r.szPath+"/"+r.szFileName,{create:!0},function(e){e.createWriter(function(e){r.bStart=!0,e.onwriteend=function(){r.writeFile(e)},e.onerror=function(){},e.seek(e.length);var t=new Blob([n]);e.write(t)},r.errorHandler)},r.errorHandler)},this.errorHandler)}},{key:"writeFileContent",value:function(e){this.aStreamList.push(e)}},{key:"writeFile",value:function(e){var t,n=this;0<this.aStreamList.length?(t=this.aStreamList.shift(),e.seek(e.length),e.length>=this.options.iFileSize&&this.options.cbEventHandler&&this.options.cbEventHandler(4001,this.szUUID),t=new Blob([t]),e.write(t)):!1===this.bStop&&setTimeout(function(){n.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 a=this;return new Promise(function(){s=St().mark(function e(o){return St().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a.bStop){e.next=2;break}return e.abrupt("return",o());case 2:if((!a.getStopData||0<a.aStreamList.length)&&5===a.iPackType)return e.abrupt("return",o());e.next=4;break;case 4:if(0<a.aStreamList.length&&5!==a.iPackType)return e.abrupt("return",o());e.next=6;break;case 6:return e.next=8,window.requestFileSystem(window.TEMPORARY,a.options.iFileSize,function(e){e.root.getFile(a.szPath+"/"+a.szFileName,{create:!1},function(i){i.file(function(e){var t,n,r;o(),a.cbFn?(t=setTimeout(function(){a.cbFn(null,e.name)},1e4),n=new Blob([e]),(r=new FileReader).readAsArrayBuffer(n),r.onload=function(){a.cbFn(r.result,e.name),clearTimeout(t)}):g.downloadFile(e,e.name),a.bStop=!1,setTimeout(function(){i.remove(function(){},function(){})},1e4)})},a.errorHandler)},a.errorHandler);case 8:case"end":return e.stop()}},e)});var s,t=function(){var e=this,a=arguments;return new Promise(function(t,n){var r=s.apply(e,a);function i(e){kt(r,t,n,i,o,"next",e)}function o(e){kt(r,t,n,i,o,"throw",e)}i(void 0)})};return function(e){return t.apply(this,arguments)}}())}}])}(),Ct=function(){return Dt(function e(t,n,r,i,o,a,s){Lt(this,e),this.szBasePath=t,this.szUUID=n,this.szFileName=r,this.aHeadBuf=new Uint8Array(i),this.iPackType=o,this.iStreamType=a,this.oWorker=null,this.oFileSystem=null,this.options=s,this.bHead=!0,this.isTranse=!0},[{key:"init",value:function(){var n=this;return new Promise(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 Pt(this.szUUID,this.szFileName,this.iStreamType,this.iPackType,this.options),new Promise(function(e,t){n.oFileSystem.init().then(function(){e()},function(e){t(e)})})}},{key:"initWorker",value:function(){var r=this;return new Promise(function(n){r.oWorker=new Worker("".concat(r.szBasePath,"systemTransform-worker.js")),r.oWorker.onmessage=function(e){var t=r.iPackType;1===r.options.iPackage&&(t=12),"loaded"===e.data.type?r.oWorker.postMessage({type:"create",buf:r.aHeadBuf.buffer,len:40,packType:t,options:{samplingParam:r.options.samplingParam,nKeyType:r.options.nKeyType,pKeyData:r.options.pKeyData,nKeyLen:r.options.nKeyLen}}):"created"===e.data.type?n():"outputData"===e.data.type&&(1500===e.data.dType?r.options.cbSecretKeyError&&r.options.cbSecretKeyError():(t=new Uint8Array(e.data.buf),1===r.options.iPackage?r.bHead?(r.oFileSystem.writeFileHeader(t),r.bHead=!1):r.oFileSystem.writeFileContent(t):(1===e.data.dType?r.oFileSystem.writeFileHeader(t):r.oFileSystem.writeFileContent(t),6===e.data.dType&&(r.oFileSystem.getStopData=!0))))}})}},{key:"inputData",value:function(e,t){var n,r;!0===this.isTranse?this.oWorker&&(r={type:"inputData",buf:(n=new Uint8Array(e)).buffer,len:n.length},t&&t.samplingParam&&(r.samplingParam=t.samplingParam),this.oWorker.postMessage(r,[n.buffer])):!0===this.bHead?(this.oFileSystem.writeFileHeader(e),this.bHead=!1):this.oFileSystem.writeFileContent(e)}},{key:"stopRecord",value:function(n){var r=this;return new Promise(function(e,t){!0===r.isTranse&&(r.oWorker?r.oWorker.postMessage({type:"release"}):t()),r.oFileSystem?(r.oFileSystem.bStop=!0,r.oFileSystem.cbFn=n,r.oFileSystem.stopWriteFile().then(function(){r.bHead=!0,e()},function(){t()})):t()})}}])}(),Et=function(){return Dt(function e(t,n){Lt(this,e),this.szBasePath=t,this.oStorageList={},this.options={iFileSize:1073741824},bt.a.extend(this.options,n)},[{key:"startRecord",value:function(e,t,n,r,i){var o=this,a=U.a.v4(),i=bt.a.extend({},this.options,i),s=new Ct(this.szBasePath,a,e,t,n,r,i);return new Promise(function(t,n){s.init().then(function(e){o.oStorageList[e]=s,t(e)},function(e){n(e)})})}},{key:"inputData",value:function(e,t,n){e=this.oStorageList[e];e&&e.inputData(t,n)}},{key:"stopRecord",value:function(r,i){var o=this;return new Promise(function(e,t){var n=o.oStorageList[r];n?n.stopRecord(i).then(function(){delete o.oStorageList[r],e()},function(){t()}):t()})}}])}();function Yt(e){return(Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */xt=function(){return a};var u,a={},e=Object.prototype,l=e.hasOwnProperty,d=Object.defineProperty||function(e,t,n){e[t]=n.value},t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",n=t.asyncIterator||"@@asyncIterator",i=t.toStringTag||"@@toStringTag";function o(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(u){o=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var i,o,a,s,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype),r=new T(r||[]);return d(t,"_invoke",{value:(i=e,o=n,a=r,s=h,function(e,t){if(s===m)throw Error("Generator is already running");if(s===_){if("throw"===e)throw t;return{value:u,done:!0}}for(a.method=e,a.arg=t;;){var n=a.delegate;if(n){n=function e(t,n){var r=n.method,i=t.iterator[r];if(i===u)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=u,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;r=c(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,p;i=r.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=u),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}(n,a);if(n){if(n===p)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===h)throw s=_,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=m;n=c(i,o,a);if("normal"===n.type){if(s=a.done?_:f,n.arg===p)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s=_,a.method="throw",a.arg=n.arg)}})}),t}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}a.wrap=s;var h="suspendedStart",f="suspendedYield",m="executing",_="completed",p={};function y(){}function v(){}function g(){}var t={},w=(o(t,r,function(){return this}),Object.getPrototypeOf),w=w&&w(w(D([]))),b=(w&&w!==e&&l.call(w,r)&&(t=w),g.prototype=y.prototype=Object.create(t));function M(e){["next","throw","return"].forEach(function(t){o(e,t,function(e){return this._invoke(t,e)})})}function S(a,s){var t;d(this,"_invoke",{value:function(n,r){function e(){return new s(function(e,t){!function t(e,n,r,i){var o,e=c(a[e],a,n);if("throw"!==e.type)return(n=(o=e.arg).value)&&"object"==Yt(n)&&l.call(n,"__await")?s.resolve(n.__await).then(function(e){t("next",e,r,i)},function(e){t("throw",e,r,i)}):s.resolve(n).then(function(e){o.value=e,r(o)},function(e){return t("throw",e,r,i)});i(e.arg)}(n,r,e,t)})}return t=t?t.then(e,e):e()}})}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function D(t){if(t||""===t){var n,e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return n=-1,(e=function e(){for(;++n<t.length;)if(l.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=u,e.done=!0,e}).next=e}throw new TypeError(Yt(t)+" is not iterable")}return d(b,"constructor",{value:v.prototype=g,configurable:!0}),d(g,"constructor",{value:v,configurable:!0}),v.displayName=o(g,i,"GeneratorFunction"),a.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,o(e,i,"GeneratorFunction")),e.prototype=Object.create(b),e},a.awrap=function(e){return{__await:e}},M(S.prototype),o(S.prototype,n,function(){return this}),a.AsyncIterator=S,a.async=function(e,t,n,r,i){void 0===i&&(i=Promise);var o=new S(s(e,t,n,r),i);return a.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},M(b),o(b,i,"Generator"),o(b,r,function(){return this}),o(b,"toString",function(){return"[object Generator]"}),a.keys=function(e){var t,n=Object(e),r=[];for(t in n)r.push(t);return r.reverse(),function e(){for(;r.length;){var t=r.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},a.values=D,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(L),!e)for(var t in this)"t"===t.charAt(0)&&l.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=u)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function e(e,t){return o.type="throw",o.arg=n,r.next=e,t&&(r.method="next",r.arg=u),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var i=this.tryEntries[t],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc?null:i)?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n,r,i=this.tryEntries[t];if(i.tryLoc===e)return"throw"===(n=i.completion).type&&(r=n.arg,L(i)),r}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=u),p}},a}function At(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function It(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=Yt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=Yt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==Yt(e)?e:e+""}(r.key),r)}}function Rt(e,t,n){return t&&It(e.prototype,t),n&&It(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.URL=window.URL||window.webkitURL;var jt=function(){return Rt(function e(t,n,r){Ot(this,e),this.szUUID=t,this.szFileName=n,this.szPath="",this.bStart=!1,this.aStreamList=[],this.options=r,this.cbFn=null,this.bStop=!1},[{key:"init",value:function(){var n=this,r=(this.szPath="Web/RecordFiles/",this.szPath+=this.getDateDir(),this.szPath.split("/"));return new Promise(function(t){window.requestFileSystem(window.TEMPORARY,n.options.iFileSize,function(e){n.createDir(e.root,r,function(){t()})},n.errorHandler)})}},{key:"getDateDir",value:function(){return g.dateFormat(new Date,"yyyy-MM-dd")}},{key:"createDir",value:function(e,t,n){var r=this;t.length?e.getDirectory(t[0],{create:!0},function(e){r.createDir(e,t.slice(1),n)},this.errorHandler):n()}},{key:"errorHandler",value:function(e){console.log("Error: "+e.toString())}},{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 r=this;window.requestFileSystem(window.TEMPORARY,this.options.iFileSize,function(e){e.root.getFile(r.szPath+"/"+r.szFileName,{create:!0},function(e){e.createWriter(function(e){r.bStart=!0,e.onwriteend=function(){r.writeFile(e)},e.onerror=function(){},e.seek(e.length);var t=new Blob([n]);e.write(t)},r.errorHandler)},r.errorHandler)},this.errorHandler)}},{key:"writeFileContent",value:function(e){this.aStreamList.push(e)}},{key:"writeFile",value:function(e){var t,n=this;0<this.aStreamList.length?(t=this.aStreamList.shift(),e.seek(e.length),e.length>=this.options.iFileSize&&this.options.cbEventHandler&&this.options.cbEventHandler(4001,this.szUUID),t=new Blob([t]),e.write(t)):!1===this.bStop&&setTimeout(function(){n.writeFile(e)},1e3),0===this.aStreamList.length&&!0===this.bStop&&this.bStart&&(this.bStart=!1,this.stopWriteFile())}},{key:"stopWriteFile",value:function(){var a=this;return new Promise(function(){s=xt().mark(function e(o){return xt().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a.bStop){e.next=2;break}return e.abrupt("return",o());case 2:if(0<a.aStreamList.length)return e.abrupt("return",o());e.next=4;break;case 4:return e.next=6,window.requestFileSystem(window.TEMPORARY,a.options.iFileSize,function(e){e.root.getFile(a.szPath+"/"+a.szFileName,{create:!1},function(i){i.file(function(e){var t,n,r;o(),a.cbFn?(t=setTimeout(function(){a.cbFn(null,e.name)},1e4),n=new Blob([e]),(r=new FileReader).readAsArrayBuffer(n),r.onload=function(){a.cbFn(r.result,e.name),clearTimeout(t)}):g.downloadFile(e,e.name),a.bStop=!1,i.remove(function(){},function(){})})},a.errorHandler)},a.errorHandler);case 6:case"end":return e.stop()}},e)});var s,t=function(){var e=this,a=arguments;return new Promise(function(t,n){var r=s.apply(e,a);function i(e){At(r,t,n,i,o,"next",e)}function o(e){At(r,t,n,i,o,"throw",e)}i(void 0)})};return function(e){return t.apply(this,arguments)}}())}}])}(),Ht=function(){return Rt(function e(t,n,r){Ot(this,e),this.szUUID=t,this.szFileName=n,this.oFileSystem=null,this.options=r,this.bFirst=!0},[{key:"init",value:function(){var n=this;return new Promise(function(e,t){n.initFileSystem().then(function(){e(n.szUUID)},function(e){t(e)})})}},{key:"initFileSystem",value:function(){var n=this;return this.oFileSystem=new jt(this.szUUID,this.szFileName,this.options),new Promise(function(e,t){n.oFileSystem.init().then(function(){e()},function(e){t(e)})})}},{key:"inputData",value:function(e){!0===this.bFirst?(this.oFileSystem.writeFileHeader(e),this.bFirst=!1):this.oFileSystem.writeFileContent(e)}},{key:"stopRecord",value:function(n){var r=this;return new Promise(function(e,t){r.oFileSystem?(r.oFileSystem.bStop=!0,r.oFileSystem.cbFn=n,r.oFileSystem.stopWriteFile().then(function(){r.bFirst=!0,e()},function(){t()})):t()})}}])}(),Wt=function(){return Rt(function e(t){Ot(this,e),this.oStorageList={},this.options={iFileSize:1073741824},bt.a.extend(this.options,t)},[{key:"startRecord",value:function(e,t){var r=this,n=U.a.v4(),t=bt.a.extend({},this.options,t),i=new Ht(n,e,t);return new Promise(function(t,n){i.init().then(function(e){r.oStorageList[e]=i,t(e)},function(e){n(e)})})}},{key:"inputData",value:function(e,t){e=this.oStorageList[e];e&&e.inputData(t)}},{key:"stopRecord",value:function(r,i){var o=this;return new Promise(function(e,t){var n=o.oStorageList[r];n?n.stopRecord(i).then(function(){delete o.oStorageList[r],e()},function(){t()}):t()})}}])}();function Ft(e){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ut(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=Ft(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=Ft(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==Ft(e)?e:e+""}(r.key),r)}}function Bt(e,t,n){return t&&Ut(e.prototype,t),n&&Ut(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Nt=function(){return Bt(function e(t,n,r,i,o,a){zt(this,e),this.szBasePath=t,this.szUUID=n,this.aHeadBuf=new Uint8Array(r),this.iPackType=i,this.iStreamType=o,this.oWorker=null,this.bHead=!0,this.isTranse=!0,this.options=a},[{key:"init",value:function(n){var r=this;return new Promise(function(e,t){r.initWorker(n).then(function(){e(r.szUUID)},function(e){t(e)})})}},{key:"initWorker",value:function(r){var i=this;return new Promise(function(n){i.oWorker=new Worker("".concat(i.szBasePath,"systemTransform-worker.js")),i.oWorker.onmessage=function(e){var t=i.iPackType;"loaded"===e.data.type?i.oWorker.postMessage({type:"create",buf:i.aHeadBuf.buffer,len:40,packType:t,options:i.options}):"created"===e.data.type?n():"outputData"===e.data.type&&r(e.data)}})}},{key:"inputData",value:function(e){!0===this.isTranse?this.oWorker&&(e=new Uint8Array(e),this.oWorker.postMessage({type:"inputData",buf:e.buffer,len:e.length},[e.buffer])):!0===this.bHead&&(this.bHead=!1)}},{key:"stopTransform",value:function(){var n=this;return new Promise(function(e,t){!0===n.isTranse&&n.oWorker?n.oWorker.postMessage({type:"release"}):t()})}}])}(),Jt=function(){return Bt(function e(t){zt(this,e),this.szBasePath=t,this.oTransformList={}},[{key:"initTransform",value:function(e,t,n,r,i){var o=this,a=U.a.v4(),s=new Nt(this.szBasePath,a,e,t,n,i);return new Promise(function(t,n){s.init(r).then(function(e){o.oTransformList[e]=s,t(e)},function(e){n(e)})})}},{key:"inputData",value:function(e,t){e=this.oTransformList[e];e&&e.inputData(t)}},{key:"stopTransform",value:function(r){var i=this;return new Promise(function(e,t){var n=i.oTransformList[r];n?n.stopTransform().then(function(){delete i.oTransformList[r],e()},function(){t()}):t()})}}])}();function Gt(e){return(Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=Gt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=Gt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==Gt(e)?e:e+""}(r.key),r)}}function Zt(e,t,n){return t&&qt(e.prototype,t),n&&qt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Xt=function(){return Zt(function e(t,n,r,i,o,a){Vt(this,e),this.szBasePath=t,this.szUUID=n,this.channelNum=r,this.sampleRate=i,this.bitsPerSample=o,this.dataLen=a,this.oWorker=null,this.isTranse=!0},[{key:"init",value:function(n){var r=this;return new Promise(function(e,t){r.initWorker(n).then(function(){e(r.szUUID)},function(e){t(e)})})}},{key:"initWorker",value:function(n){var r=this;return new Promise(function(t){r.oWorker=new Worker("".concat(r.szBasePath,"audioMixer-worker.js")),r.oWorker.onmessage=function(e){"loaded"===e.data.type?r.oWorker.postMessage({type:"create",channelNum:r.channelNum,sampleRate:r.sampleRate,bitsPerSample:r.bitsPerSample,dataLen:r.dataLen}):"created"===e.data.type?t():"outputData"===e.data.type&&n(e.data)}})}},{key:"inputData",value:function(e,t){this.isTranse&&this.oWorker&&(e=new Uint8Array(e),t=new Uint8Array(t),this.oWorker.postMessage({type:"inputData",buf1:e.buffer,buf2:t.buffer},[e.buffer,t.buffer]))}},{key:"stopAudioMixe",value:function(){var n=this;return new Promise(function(e,t){(n.isTranse&&n.oWorker?(n.oWorker.postMessage({type:"release"}),e):t)()})}}])}(),Kt=function(){return Zt(function e(t){Vt(this,e),this.szBasePath=t,this.oAudioMixerList={},this.oDataCacheList={}},[{key:"initAudioMixer",value:function(e,t,n,r,i){var o=this,a=U.a.v4(),s=new Xt(this.szBasePath,a,e,t,n,r);return new Promise(function(t,n){s.init(i).then(function(e){o.oAudioMixerList[e]=s,o.oDataCacheList[e]={cache0:[],cache1:[]},t(e)},function(e){n(e)})})}},{key:"inputData",value:function(e,t,n){var r=this.oDataCacheList[e],t=(r&&r["cache".concat(t)].push(n),this.oAudioMixerList[e]);t&&0<r.cache0.length&&0<r.cache1.length&&t.inputData(r.cache0.shift(),r.cache1.shift())}},{key:"stopAudioMixe",value:function(r){var i=this;return new Promise(function(e,t){var n=i.oAudioMixerList[r];n?n.stopAudioMixe().then(function(){delete i.oAudioMixerList[r],delete i.oDataCacheList[r],e()},function(){t()}):t()})}}])}();function $t(e){return($t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qt(e,t,n){t=tn(t);var r=e,t=en()?Reflect.construct(t,n||[],tn(e).constructor):t.apply(e,n);if(t&&("object"==$t(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");e=r;if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function en(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(en=function(){return!!e})()}function tn(e){return(tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rn(e,t)}function rn(e,t){return(rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function on(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function an(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=$t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=$t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==$t(e)?e:e+""}(r.key),r)}}function sn(e,t,n){return t&&an(e.prototype,t),n&&an(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function un(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||ln(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ln(e,t){var n;if(e)return"string"==typeof e?dn(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dn(e,t):void 0}function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}_=null,h=Symbol("CANVAS"),cn=Symbol("CANVASID"),c=Symbol("CONTEXT"),f=Symbol("SHAPES"),m=Symbol("DRAWSTATUS"),p=Symbol("SHAPETYPE"),hn=Symbol("MAXSHAPENUMSUPPORT"),y=Symbol("SHAPESTYLE"),v=Symbol("POLYGONDRAWING"),fn=Symbol("LINERAWING"),w=Symbol("CURRENTSHAPEINFO"),mn=Symbol("DRAWSHAPEMULTIONETIME"),_n=Symbol("EVENTCALLBACK"),pn="mouseup",yn="mousedown",vn="mousemove",S(document).on("touchstart",function(){pn="touchend",yn="touchstart",vn="touchmove",S(document).off("touchstart")}),gn=null,wn=function(){return sn(function e(){on(this,e),this.m_szId="",this.m_aPoint=[],this.m_bChoosed=!1,this.m_szDrawColor=_[y].szDrawColor,this.m_szFillColor=_[y].szFillColor,this.m_iTranslucent=_[y].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,this.m_isMouseIn=!1},[{key:"draw",value:function(){}},{key:"drag",value:function(e,t){if(2!==this.m_iEditType){for(var n=this.m_aPoint.length,r=0,r=0;r<n;r++)if(this.m_aPoint[r][0]+e-this.m_iDriftStartX>_.m_iCanvasWidth||this.m_aPoint[r][1]+t-this.m_iDriftStartY>_.m_iCanvasHeight||this.m_aPoint[r][0]+e-this.m_iDriftStartX<0||this.m_aPoint[r][1]+t-this.m_iDriftStartY<0)return this.m_iDriftStartX=e,void(this.m_iDriftStartY=t);for(r=0;r<n;r++)this.m_aPoint[r][0]=this.m_aPoint[r][0]+e-this.m_iDriftStartX,this.m_aPoint[r][1]=this.m_aPoint[r][1]+t-this.m_iDriftStartY;this.m_iDriftStartX=e,this.m_iDriftStartY=t,this.setPointInfo(this.m_aPoint),M()}}},{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),M())}},{key:"inShape",value:function(e,t){for(var n=!1,r=this.m_aPoint.length,i=0,o=r-1;i<r;o=i++)this.m_aPoint[i][1]>t!=this.m_aPoint[o][1]>t&&e<(this.m_aPoint[o][0]-this.m_aPoint[i][0])*(t-this.m_aPoint[i][1])/(this.m_aPoint[o][1]-this.m_aPoint[i][1])+this.m_aPoint[i][0]&&(n=!n);return n}},{key:"inArc",value:function(e,t,n){for(var r=!1,i=0,o=this.m_aPoint.length;i<o;i++)if(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]))<n){r=!0,this.m_iIndexChoosePoint=i;break}return r}},{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]))}}])}(),bn=function(){function t(){var e;return on(this,t),(e=Qt(this,t)).m_szType="Rect",e}return nn(t,wn),sn(t,[{key:"setPointInfo",value:function(e){if(null!=e){for(var t=e[0][0],n=e[0][1],r=e[0][0],i=e[0][1],o=0,a=e.length;o<a;o++)t>e[o][0]&&(t=e[o][0]),n>e[o][1]&&(n=e[o][1]),r<e[o][0]&&(r=e[o][0]),i<e[o][1]&&(i=e[o][1]);this.m_aPoint=[[t,n],[r,n],[r,i],[t,i]]}}},{key:"draw",value:function(){_[c].fillStyle=this.m_szFillColor,_[c].strokeStyle=this.m_szDrawColor;var e=this.m_aPoint[0][0],t=this.m_aPoint[0][1],n=this.m_aPoint[2][0]-e,r=this.m_aPoint[2][1]-t;if(_[c].globalAlpha=this.m_iTranslucent,_[c].fillRect(e,t,n,r),_[c].globalAlpha=1,_[c].font=_.tipsFont,_[c].fillText(this.m_szTips,(e+this.m_aPoint[2][0])/2,(t+this.m_aPoint[2][1])/2),this.m_bChoosed){var i=Math.round(n/2),o=Math.round(r/2);if(0===this.m_iEditType)for(var a=[e,e+i,e+n,e,e+n,e,e+i,e+n],s=[t,t,t,t+o,t+o,t+r,t+r,t+r],u=0;u<8;u++)_[c].beginPath(),_[c].arc(a[u],s[u],3,0,360,!1),_[c].fillStyle=this.m_szDrawColor,_[c].closePath(),_[c].fill()}_[c].strokeRect(e,t,n,r)}},{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),M())}},{key:"move",value:function(e){M(),this.m_bChoosed=!0;var t=e[0][0],n=e[0][1],r=e[1][0],e=e[1][1];this.setPointInfo([[t,n],[r,n],[r,e],[t,e]]),this.draw()}},{key:"inArc",value:function(e,t,n){for(var r=this.m_aPoint[0][0],i=this.m_aPoint[0][1],o=this.m_aPoint[2][0]-r,a=this.m_aPoint[2][1]-i,s=Math.round(o/2),u=Math.round(a/2),l=[r,r+s,r+o,r,r+o,r,r+s,r+o],d=[i,i,i,i+u,i+u,i+a,i+a,i+a],c=0;c<8;c++)if(Math.sqrt((e-l[c])*(e-l[c])+(t-d[c])*(t-d[c]))<n)return this.m_iIndexChoosePoint=c,!0;return!1}}])}(),Mn=function(){function r(e,t){var n;return on(this,r),(n=Qt(this,r)).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}return nn(r,wn),sn(r,[{key:"draw",value:function(){var e,t,n,r;"true"===this.m_szEnabled&&(e=this.m_aPoint[0][0],t=this.m_aPoint[0][1],n=this.m_aPoint[2][0]-e,r=this.m_aPoint[2][1]-t,_[c].beginPath(),_[c].strokeStyle=this.m_szDrawColor,_[c].globalAlpha=1,_[c].rect(e,t,n,r),_[c].font="15px serif",_[c].strokeText(this.m_szText,e,t+15),_[c].stroke())}},{key:"drag",value:function(e,t){var n=this.m_aPoint.length,r=0;if("0"===this.m_szAlignment){for(r=0;r<n;r++)if(this.m_aPoint[r][1]+t-this.m_iDriftStartY>_.m_iCanvasHeight||this.m_aPoint[r][0]+e-this.m_iDriftStartX<0||this.m_aPoint[r][1]+t-this.m_iDriftStartY<0)return this.m_iDriftStartX=e,void(this.m_iDriftStartY=t);for(r=0;r<n;r++)this.m_aPoint[r][0]=this.m_aPoint[r][0]+e-this.m_iDriftStartX,this.m_aPoint[r][1]=this.m_aPoint[r][1]+t-this.m_iDriftStartY}else if("1"===this.m_szAlignment||"2"===this.m_szAlignment){for(r=0;r<n;r++)if(this.m_aPoint[r][1]+t-this.m_iDriftStartY>_.m_iCanvasHeight||this.m_aPoint[r][1]+t-this.m_iDriftStartY<0)return this.m_iDriftStartX=e,void(this.m_iDriftStartY=t);for(r=0;r<n;r++)this.m_aPoint[r][1]=this.m_aPoint[r][1]+t-this.m_iDriftStartY}this.m_iDriftStartX=e,this.m_iDriftStartY=t,this.setEdgePoints(this.m_aPoint),M()}},{key:"stretch",value:function(){}}])}(),Sn=function(){function r(e,t){var n;return on(this,r),(n=Qt(this,r)).m_szType="TextTip",n.m_szText=e||"",n.m_szEnabled=t||"",n.m_szId="",n}return nn(r,wn),sn(r,[{key:"draw",value:function(){var e=this.m_aPoint[0][0],t=this.m_aPoint[0][1],n=this.m_aPoint[2][0]-e,r=this.m_aPoint[2][1]-t;_[c].fillStyle=this.m_szFillColor,_[c].strokeStyle=this.m_szDrawColor,_[c].globalAlpha=this.m_iTranslucent;_[c].fillRect(e-4,t,8+n,r),_[c].globalAlpha=1,_[c].font="16px serif",_[c].strokeText(this.m_szText,e,t+15),_[c].stroke()}},{key:"drag",value:function(e,t){if(this.m_szEnabled){for(var n=this.m_aPoint.length,r=0,r=0;r<n;r++)if(this.m_aPoint[r][1]+t-this.m_iDriftStartY>_.m_iCanvasHeight||this.m_aPoint[r][1]+t-this.m_iDriftStartY<0)return this.m_iDriftStartX=e,void(this.m_iDriftStartY=t);for(r=0;r<n;r++)this.m_aPoint[r][0]=this.m_aPoint[r][0]+e-this.m_iDriftStartX,this.m_aPoint[r][1]=this.m_aPoint[r][1]+t-this.m_iDriftStartY;this.m_iDriftStartX=e,this.m_iDriftStartY=t,this.setEdgePoints(this.m_aPoint),M()}}},{key:"stretch",value:function(){}}])}(),kn=function(){function t(){var e;return on(this,t),(e=Qt(this,t)).m_szType="Grid",e.m_iGridColNum=22,e.m_iGridRowNum=18,e.m_szGridMap="",e.m_aAddGridMap=[],e}return nn(t,wn),sn(t,[{key:"draw",value:function(){for(var e=_.m_iCanvasWidth/this.m_iGridColNum,t=_.m_iCanvasHeight/this.m_iGridRowNum,n="",r=0;r<this.m_iGridRowNum;r++){for(var i=this.m_szGridMap.substring(6*r,6*r+6),o=parseInt("f"+i,16).toString(2).split("").slice(4),a="",s=0;s<this.m_iGridColNum;s++){var u="",u="1"===o[s]?(_[c].strokeStyle=this.m_szDrawColor,_[c].globalAlpha=1,_[c].strokeRect(e*s,t*r,e,t),"1"):"0";this.m_aAddGridMap.length&&1===this.m_aAddGridMap[r][s]&&(_[c].strokeStyle=this.m_szDrawColor,_[c].strokeRect(e*s,t*r,e,t),u="1"),a+=u}n+=parseInt("1111"+a+"00",2).toString(16).substring(1)}this.m_szGridMap=n}},{key:"move",value:function(e,t,n,r){for(var i=_.m_iCanvasWidth/this.m_iGridColNum,o=_.m_iCanvasHeight/this.m_iGridRowNum,a=Math.floor(e/i),s=Math.floor(t/o),u=Math.floor(Math.abs(n-e)/i),l=Math.floor(Math.abs(r-t)/o),d=1,c=1,d=0<n-e?1:-1,c=0<r-t?1:-1,h=[],f=0;f<this.m_iGridRowNum;f++){h[f]=[];for(var m=0;m<this.m_iGridColNum;m++)h[f][m]=1===d?1===c?s<=f&&f<=s+l&&a<=m&&m<=a+u?1:0:f<=s&&s-l<=f&&a<=m&&m<=a+u?1:0:1===c?s<=f&&f<=s+l&&m<=a&&a-u<=m?1:0:f<=s&&s-l<=f&&m<=a&&a-u<=m?1:0}this.m_aAddGridMap=h,this.draw()}}])}(),Ln=function(){function t(){var e;return on(this,t),(e=Qt(this,t)).m_szType="Line",e.m_iLineType=0,e.m_iDirection=0,e.m_iArrowType=0,e.m_aCrossArrowPoint=[],e}return nn(t,wn),sn(t,[{key:"draw",value:function(){0===this.m_iLineType?this.drawNormalLine():1===this.m_iLineType?(this.drawNormalLine(),this.drawArrowLine(0,this.m_aPoint[1][0],this.m_aPoint[1][1],this.m_aPoint[0][0],this.m_aPoint[0][1])):2===this.m_iLineType?this.drawNormalLine():3===this.m_iLineType?this.drawCrossLine():4===this.m_iLineType?this.drawLineCount():5===this.m_iLineType&&this.drawFatArrowLine()}},{key:"drawNormalLine",value:function(){if(_[c].globalAlpha=1,0<this.m_aPoint.length){_[c].beginPath(),_[c].strokeStyle=this.m_szDrawColor,_[c].lineWidth=_.lineWidth,_[c].moveTo(this.m_aPoint[0][0],this.m_aPoint[0][1]);for(var e=1,t=this.m_aPoint.length;e<t;e++)_[c].lineTo(this.m_aPoint[e][0],this.m_aPoint[e][1]);if(_[c].stroke(),this.m_bChoosed)for(var n=0,r=this.m_aPoint.length;n<r;n++)_[c].beginPath(),_[c].fillStyle=this.m_szDrawColor,_[c].arc(this.m_aPoint[n][0],this.m_aPoint[n][1],_.lineWidth,0,2*Math.PI,!0),_[c].closePath(),_[c].fill();""!==this.m_szTips&&(_[c].fillStyle=this.m_szDrawColor,_[c].font=_.tipsFont,this.m_aPoint.length<=2?_[c].fillText(this.m_szTips,(this.m_aPoint[0][0]+this.m_aPoint[1][0])/2+10,(this.m_aPoint[0][1]+this.m_aPoint[1][1])/2+4):(this.setEdgePoints(this.m_aPoint),_[c].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)))}}},{key:"move",value:function(e,t){if(this.m_aPoint.length<this.m_iMaxPointNum&&0<this.m_aPoint.length){_[c].fillStyle=this.m_szDrawColor,_[c].strokeStyle=this.m_szDrawColor,_[c].globalAlpha=1;for(var n=0,r=0,n=0,r=this.m_aPoint.length;n<r;n++)_[c].beginPath(),_[c].arc(this.m_aPoint[n][0],this.m_aPoint[n][1],3,0,360,!1),_[c].fillStyle=this.m_szDrawColor,_[c].closePath(),_[c].fill();for(_[c].beginPath(),_[c].moveTo(this.m_aPoint[0][0],this.m_aPoint[0][1]),n=0,r=this.m_aPoint.length;n<r;n++)0!==n&&(_[c].lineTo(this.m_aPoint[n][0],this.m_aPoint[n][1]),_[c].moveTo(this.m_aPoint[n][0],this.m_aPoint[n][1]));_[c].lineTo(e,t),_[c].closePath(),_[c].stroke()}}},{key:"drawArrowLine",value:function(e,t,n,r,i,o,a,s){o=void 0!==o?o:30,a=void 0!==a?a:10,s=void 0!==s?s:_.lineWidth;var u=180*Math.atan2(n-i,t-r)/Math.PI,l=(u+o)*Math.PI/180,u=(u-o)*Math.PI/180,o=a*Math.cos(l),l=a*Math.sin(l),d=a*Math.cos(u),a=a*Math.sin(u),u=(_[c].save(),_[c].beginPath(),t-o);_[c].moveTo(u,n-l),_[c].lineTo(t,n),_[c].lineTo(t-d,n-a),_[c].moveTo(t,n),_[c].lineTo(r,i),1===e&&(_[c].moveTo(r+o,i+l),_[c].lineTo(r,i),_[c].lineTo(r+d,i+a)),_[c].strokeStyle=this.m_szDrawColor,_[c].lineWidth=s,_[c].stroke(),_[c].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,r=(90+n)*Math.PI/180,n=(n-90)*Math.PI/180,i=25*Math.cos(r),r=25*Math.sin(r),o=25*Math.cos(n),n=25*Math.sin(n),i=e-i,r=t-r,a=0,s=0,s=0===this.m_iDirection?(a=-10,-15):1===this.m_iDirection?a=10:(a=10,-15);0!==this.m_iDirection&&this.drawArrowLine(0,i,r,e,t),_[c].strokeStyle=this.m_szDrawColor,_[c].font=_.tipsFont,_[c].fillText("A",i+a,4+r),i=e-o,r=t-n,1!==this.m_iDirection&&this.drawArrowLine(0,i,r,e,t),_[c].strokeStyle=this.m_szDrawColor,_[c].font=_.tipsFont,_[c].fillText("B",i+s,4+r)}},{key:"drawFatArrowLine",value:function(){var n=this,e=(_[c].globalAlpha=1,function(e){var t=[],n=[],r=e[0][0]-(e[0][0]-e[1][0])/4,i=e[0][1]-(e[0][1]-e[1][1])/4,o=180*Math.atan2(e[0][1]-e[1][1],e[0][0]-e[1][0])/Math.PI,a=(90+o)*Math.PI/180,o=(o-90)*Math.PI/180,s=(t.push(e[0]),26*Math.cos(a)),u=26*Math.sin(a),s=(t.push([r-s,i-u]),26*Math.cos(o)),u=26*Math.sin(o),s=(n.push([r-s,i-u]),12*Math.cos(a)),u=12*Math.sin(a),a=(t.push([r-s,i-u]),12*Math.cos(o)),o=12*Math.sin(o);n.push([r-a,i-o]),t.push([e[1][0]-s,e[1][1]-u]),n.push([e[1][0]-a,e[1][1]-o]);for(var l=n.length-1;0<=l;l--)t.push(n[l]);return t.push(e[0]),t}(this.m_aPoint));if(this.m_aAuxiliaryPoint=[],e.forEach(function(e,t){[2,5].includes(t)||n.m_aAuxiliaryPoint.push(e)}),0<e.length){_[c].fillStyle=this.m_szFillColor,_[c].strokeStyle=this.m_szDrawColor,_[c].globalAlpha=1;var t=0,r=0;if(this.m_bChoosed)for(t=0,r=this.m_aPoint.length;t<r;t++)_[c].beginPath(),_[c].arc(this.m_aPoint[t][0],this.m_aPoint[t][1],5,0,360,!1),_[c].fillStyle=this.m_szDrawColor,_[c].closePath(),_[c].fill();for(_[c].beginPath(),_[c].moveTo(e[0][0],e[0][1]),t=0,r=e.length;t<r;t++)0!==t&&_[c].lineTo(e[t][0],e[t][1]);_[c].stroke();var i=180*Math.atan2(this.m_aPoint[0][1]-this.m_aPoint[1][1],this.m_aPoint[0][0]-this.m_aPoint[1][0])/Math.PI,o=0,a=0,a=0<i&&i<180?(o=e[1][0]+Math.abs((e[3][0]-e[1][0])/5),e[1][1]+Math.abs((e[3][1]-e[1][1])/5)):(o=e[6][0]+(e[6][0]-e[4][0])/5*1,e[6][1]+(e[6][1]-e[4][1])/5*1);_[c].font=_.tipsFont,_[c].fillStyle=this.m_szFontColor||"#FFFFFF",_[c].fillText(this.m_szTips,o,a),_[c].closePath(),_[c].stroke(),_[c].globalAlpha=this.m_iTranslucent,_[c].fillStyle=this.m_szFillColor,_[c].fill()}}},{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,r=(90+n)*Math.PI/180,n=(n-90)*Math.PI/180,i=25*Math.cos(r),r=25*Math.sin(r),o=25*Math.cos(n),n=25*Math.sin(n),a=0,s=0,a=e-i,s=t-r;1===this.m_iArrowType?this.drawArrowLine(0,a=e-o,s=t-n,e,t):0===this.m_iArrowType&&this.drawArrowLine(0,a,s,e,t),this.m_aCrossArrowPoint=[[e,t],[a,s]]}},{key:"inShape",value:function(e,t){var n=!1;if(5===this.m_iLineType&&this.m_aAuxiliaryPoint)for(var r=this.m_aAuxiliaryPoint,i=r.length,o=0,a=i-1;o<i;a=o++)r[o][1]>t!=r[a][1]>t&&e<(r[a][0]-r[o][0])*(t-r[o][1])/(r[a][1]-r[o][1])+r[o][0]&&(n=!n);else for(var s=0,u=this.m_aPoint.length-1;s<u;s++){var l=Math.sqrt((this.m_aPoint[s+1][0]-this.m_aPoint[s][0])*(this.m_aPoint[s+1][0]-this.m_aPoint[s][0])+(this.m_aPoint[s+1][1]-this.m_aPoint[s][1])*(this.m_aPoint[s+1][1]-this.m_aPoint[s][1]));Math.sqrt((e-this.m_aPoint[s][0])*(e-this.m_aPoint[s][0])+(t-this.m_aPoint[s][1])*(t-this.m_aPoint[s][1]))+Math.sqrt((e-this.m_aPoint[s+1][0])*(e-this.m_aPoint[s+1][0])+(t-this.m_aPoint[s+1][1])*(t-this.m_aPoint[s+1][1]))-l<1&&(n=!0)}return n}}])}(),Tn=function(){function t(){var e;return on(this,t),(e=Qt(this,t)).m_szType="Polygon",e.m_iPolygonType=1,e}return nn(t,wn),sn(t,[{key:"setPointInfo",value:function(e){if(null!=e){if(0===this.m_iPolygonType){for(var t=e[0][0],n=e[0][1],r=e[0][0],i=e[0][1],o=0,a=e.length;o<a;o++)t>e[o][0]&&(t=e[o][0]),n>e[o][1]&&(n=e[o][1]),r<e[o][0]&&(r=e[o][0]),i<e[o][1]&&(i=e[o][1]);this.m_aPoint=[[t,n],[r,n],[r,i],[t,i]]}else this.m_iPolygonType,this.m_aPoint=e;this.setEdgePoints(e)}}},{key:"draw",value:function(){if(0<this.m_aPoint.length){_[c].fillStyle=this.m_szFillColor,_[c].strokeStyle=this.m_szDrawColor,_[c].globalAlpha=1;var e=0,t=0;if(this.m_bChoosed)for(e=0,t=this.m_aPoint.length;e<t;e++)_[c].beginPath(),_[c].arc(this.m_aPoint[e][0],this.m_aPoint[e][1],3,0,360,!1),_[c].fillStyle=this.m_szDrawColor,_[c].closePath(),_[c].fill();for(_[c].beginPath(),_[c].moveTo(this.m_aPoint[0][0],this.m_aPoint[0][1]),e=0,t=this.m_aPoint.length;e<t;e++)0!==e&&_[c].lineTo(this.m_aPoint[e][0],this.m_aPoint[e][1]);_[c].stroke(),this.m_bClosed&&(_[c].font=_.tipsFont,_[c].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),_[c].closePath(),_[c].stroke(),_[c].globalAlpha=this.m_iTranslucent,_[c].fill())}}},{key:"move",value:function(e,t,n,r){if(1===this.m_iPolygonType){if(this.m_aPoint.length<this.m_iMaxPointNum&&0<this.m_aPoint.length){_[c].fillStyle=this.m_szFillColor,_[c].strokeStyle=this.m_szDrawColor,_[c].globalAlpha=1;for(var i=0,o=0,i=0,o=this.m_aPoint.length;i<o;i++)_[c].beginPath(),_[c].arc(this.m_aPoint[i][0],this.m_aPoint[i][1],3,0,360,!1),_[c].fillStyle=this.m_szDrawColor,_[c].closePath(),_[c].fill();for(_[c].beginPath(),_[c].moveTo(this.m_aPoint[0][0],this.m_aPoint[0][1]),i=0,o=this.m_aPoint.length;i<o;i++)0!==i&&_[c].lineTo(this.m_aPoint[i][0],this.m_aPoint[i][1]);_[c].lineTo(e,t),_[c].closePath(),_[c].stroke()}}else 0===this.m_iPolygonType&&(this.m_bChoosed=!0,this.setPointInfo([[n,r],[e,r],[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),M())}}])}(),Dn=function(){function t(){var e;return on(this,t),(e=Qt(this,t)).m_szType="Point",e.m_szId="",e.m_radius=_[c].pointRadius||10,e}return nn(t,wn),sn(t,[{key:"draw",value:function(){_[c].beginPath(),_[c].fillStyle=this.m_szDrawColor,_[c].globalAlpha=1,_[c].arc(this.m_aPoint[0][0],this.m_aPoint[0][1],this.m_radius,0,2*Math.PI,!0),_[c].closePath(),_[c].fill(),_[c].beginPath(),_[c].arc(this.m_aPoint[0][0],this.m_aPoint[0][1],this.m_radius,0,2*Math.PI),_[c].closePath(),_[c].lineWidth=2,_[c].strokeStyle="#FFFFFF",_[c].stroke(),""!==this.m_szTips&&(_[c].fillStyle=this.m_szDrawColor,_[c].font=this.m_bChoosed?_.tipsFont.replace("Normal","Bold"):_.tipsFont,_[c].fillText(this.m_szTips,this.m_aPoint[0][0]+this.m_radius+2,this.m_aPoint[0][1]+6))}},{key:"move",value:function(){}},{key:"stretch",value:function(){}},{key:"inShape",value:function(e,t){var n,r=!1,i=function(e,t){var n,r,i,o,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return i=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){i=!0,n=e},f:function(){try{r||null==a.return||a.return()}finally{if(i)throw n}}};if(Array.isArray(e)||(a=ln(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),o=0,{s:t=function(){},n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.m_aPoint);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(Math.sqrt(Math.pow(e-o[0],2)+Math.pow(t-o[1],2))<=this.m_radius){r=!0;break}}}catch(e){i.e(e)}finally{i.f()}return r}}])}();var _,h,cn,c,f,m,p,hn,y,v,fn,w,mn,_n,pn,yn,vn,gn,wn,bn,Mn,Sn,kn,Ln,Tn,Dn,Pn=function(){return sn(function e(t){on(this,e),(_=this)[cn]=t,this[h]=S("#"+t),this[c]=this[h].element.getContext("2d"),this[f]=[],this[m]=!1,this[p]="Rect",this[hn]=10,this[mn]=!0,this[w]={},this[_n]=null,this[y]={szDrawColor:"#ff0000",szFillColor:"#343434",iTranslucent:.7},this[v]=!1,this.m_iCanvasWidth=this[h].width(),this.m_iCanvasHeight=this[h].height(),this.m_iHorizontalResolution=0,this.m_iVerticalResolution=0,this.m_szDisplayMode="",this.m_szVideoFormat="",this.callBackWithoutLimit=!1,this.addShapeCallback=null,this.chooseShapeCallback=null,this.changeShapeCallback=null,this.hoverShapeCallback=null,this.moveCallback=null,this.mouseOutCallback=null,this.mouseDownCallback=null,this.tipsFont="28px serif",this.lineWidth=2,Cn(),En(),this[f].length=0},[{key:"setDrawMutiShapeOneTime",value:function(e){this[mn]=e}},{key:"setMaxShapeSupport",value:function(e){this[hn]=e}},{key:"getMaxShapeSupport",value:function(){return this[hn]}},{key:"setDrawStatus",value:function(e,t){this[m]=e,t&&e&&(this[_n]=t),e||(this[_n]=null)}},{key:"setShapeType",value:function(e){this[p]=e,M()}},{key:"setCurrentShapeInfo",value:function(e){for(var t=0,n=this[f].length;t<n;t++)if(this[f][t].m_szId===e.szId){this[f].splice(t,1);break}M(),this[w]=e||{szId:"",szTips:"",iMinClosed:3,iMaxPointNum:11,iPolygonType:1,iRedrawMode:0}}},{key:"setCurrentShapeId",value:function(e){this[w]=e||{szId:"",szTips:"",iMinClosed:3,iMaxPointNum:11,iPolygonType:1,iRedrawMode:0}}},{key:"getShapeType",value:function(){return this[p]}},{key:"getAllShapesInfo",value:function(){for(var e=[],t=0,n=this[f].length;t<n;t++)"Grid"===this[f][t].m_szType?e.push({szType:this[f][t].m_szType,szGridMap:this[f][t].m_szGridMap,iGridColNum:this[f][t].m_iGridColNum,iGridRowNum:this[f][t].m_iGridRowNum}):"RectOSD"===this[f][t].m_szType?e.push({szType:this[f][t].m_szType,szText:this[f][t].m_szText,szEnabled:this[f][t].m_szEnabled,szOSDType:this[f][t].m_szOSDType,iPositionX:this[f][t].m_aPoint[0][0],iPositionY:this[f][t].m_aPoint[0][1],szDateStyle:this[f][t].m_szDateStyle,szClockType:this[f][t].m_szClockType,szDisplayWeek:this[f][t].m_szDisplayWeek,szId:this[f][t].m_szId,szAlignment:this[f][t].m_szAlignment}):"TextTip"===this[f][t].m_szType?e.push({szType:this[f][t].m_szType,szText:this[f][t].m_szText,szEnabled:this[f][t].m_szEnabled,iPositionX:this[f][t].m_aPoint[0][0],iPositionY:this[f][t].m_aPoint[0][1],szDrawColor:this[f][t].m_szDrawColor,szFillColor:this[f][t].m_szFillColor,iTranslucent:this[f][t].m_iTranslucent,szId:this[f][t].m_szId}):e.push({szType:this[f][t].m_szType,aPoint:this[f][t].m_aPoint,szId:this[f][t].m_szId,bChoosed:this[f][t].m_bChoosed});return e}},{key:"deleteRepeatPolyonById",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"Polygon",n=this.getAllShapesInfo(),r=n.length;if(0<r)for(var i=0;i<r;i++)n[i].szType===t&&n[i].szId===e&&this.deleteShape(i)}},{key:"transformShapesInfo",value:function(e){return"Grid"===e.m_szType?{szType:e.m_szType,szGridMap:e.m_szGridMap,iGridColNum:e.m_iGridColNum,iGridRowNum:e.m_iGridRowNum}:"RectOSD"===e.m_szType?{szType:e.m_szType,szText:e.m_szText,szEnabled:e.m_szEnabled,szOSDType:e.m_szOSDType,iPositionX:e.m_aPoint[0][0],iPositionY:e.m_aPoint[0][1],szDateStyle:e.m_szDateStyle,szClockType:e.m_szClockType,szDisplayWeek:e.m_szDisplayWeek,szId:e.m_szId,szAlignment:e.m_szAlignment}:"TextTip"===e.m_szType?{szType:e.m_szType,szText:e.m_szText,szEnabled:e.m_szEnabled,iPositionX:e.m_aPoint[0][0],iPositionY:e.m_aPoint[0][1],szDrawColor:e.m_szDrawColor,szFillColor:e.m_szFillColor,iTranslucent:e.m_iTranslucent,szId:e.m_szId}:"Polygon"===e.m_szType?{szType:e.m_szType,szId:e.m_szId,bChoosed:e.m_bChoosed,iPolygonType:e.m_iPolygonType,iMinClosed:e.m_iMinClosed,iMaxPointNum:e.m_iMaxPointNum,iEditType:e.m_iEditType,aPoint:e.m_aPoint,bClosed:e.m_bClosed,szTips:e.m_szTips,szDrawColor:e.m_szDrawColor,szFillColor:e.m_szFillColor,iTranslucent:e.m_iTranslucent}:"Line"===e.m_szType?{szType:e.m_szType,szId:e.m_szId,bChoosed:e.m_bChoosed,aPoint:e.m_aPoint,szTips:e.m_szTips,iLineType:e.m_iLineType,iDirection:e.m_iDirection,iArrowType:e.m_iArrowType,szDrawColor:e.m_szDrawColor,aCrossArrowPoint:e.m_aCrossArrowPoint}:"Rect"===e.m_szType?{szType:e.m_szType,szId:e.m_szId,bChoosed:e.m_bChoosed,iEditType:e.m_iEditType,aPoint:e.m_aPoint,szTips:e.m_szTips,szDrawColor:e.m_szDrawColor,szFillColor:e.m_szFillColor,iTranslucent:e.m_iTranslucent}:"Point"===e.m_szType?{szType:e.m_szType,szId:e.m_szId,aPoint:e.m_aPoint,iEditType:e.m_iEditType,radius:e.m_radius}:{szType:e.m_szType,aPoint:e.m_aPoint}}},{key:"getShapesInfoByType",value:function(e){for(var t=[],n=0,r=this[f].length;n<r;n++)this[f][n].m_szType===e&&("Grid"===this[f][n].m_szType?t.push({szType:this[f][n].m_szType,szGridMap:this[f][n].m_szGridMap,iGridColNum:this[f][n].m_iGridColNum,iGridRowNum:this[f][n].m_iGridRowNum}):"RectOSD"===this[f][n].m_szType?t.push({szType:this[f][n].m_szType,szText:this[f][n].m_szText,szEnabled:this[f][n].m_szEnabled,szOSDType:this[f][n].m_szOSDType,iPositionX:this[f][n].m_aPoint[0][0],iPositionY:this[f][n].m_aPoint[0][1],szDateStyle:this[f][n].m_szDateStyle,szClockType:this[f][n].m_szClockType,szDisplayWeek:this[f][n].m_szDisplayWeek,szId:this[f][n].m_szId,szAlignment:this[f][n].m_szAlignment}):"TextTip"===this[f][n].m_szType?t.push({szType:this[f][n].m_szType,szText:this[f][n].m_szText,szEnabled:this[f][n].m_szEnabled,iPositionX:this[f][n].m_aPoint[0][0],iPositionY:this[f][n].m_aPoint[0][1],szDrawColor:this[f][n].m_szDrawColor,szFillColor:this[f][n].m_szFillColor,iTranslucent:this[f][n].m_iTranslucent,szId:this[f][n].m_szId}):t.push("Polygon"===e?{szType:this[f][n].m_szType,szId:this[f][n].m_szId,bChoosed:this[f][n].m_bChoosed,iPolygonType:this[f][n].m_iPolygonType,iMinClosed:this[f][n].m_iMinClosed,iMaxPointNum:this[f][n].m_iMaxPointNum,iEditType:this[f][n].m_iEditType,aPoint:this[f][n].m_aPoint,bClosed:this[f][n].m_bClosed,szTips:this[f][n].m_szTips,szDrawColor:this[f][n].m_szDrawColor,szFillColor:this[f][n].m_szFillColor,iTranslucent:this[f][n].m_iTranslucent}:"Line"===e?{szType:this[f][n].m_szType,szId:this[f][n].m_szId,bChoosed:this[f][n].m_bChoosed,aPoint:this[f][n].m_aPoint,szTips:this[f][n].m_szTips,iLineType:this[f][n].m_iLineType,iDirection:this[f][n].m_iDirection,iArrowType:this[f][n].m_iArrowType,szDrawColor:this[f][n].m_szDrawColor,szFillColor:this[f][n].m_szFillColor,aCrossArrowPoint:this[f][n].m_aCrossArrowPoint}:"Rect"===e?{szType:this[f][n].m_szType,szId:this[f][n].m_szId,bChoosed:this[f][n].m_bChoosed,iEditType:this[f][n].m_iEditType,aPoint:this[f][n].m_aPoint,szTips:this[f][n].m_szTips,szDrawColor:this[f][n].m_szDrawColor,szFillColor:this[f][n].m_szFillColor,iTranslucent:this[f][n].m_iTranslucent}:"Point"===e?{szType:this[f][n].m_szType,szId:this[f][n].m_szId,iEditType:this[f][n].m_iEditType,aPoint:this[f][n].m_aPoint}:{szType:this[f][n].m_szType,aPoint:this[f][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 r=0,i=t.length;r<i;r++)"Rect"===e?((n=new bn).m_iEditType=t[r].iEditType,n.m_szTips=t[r].szTips||"",n.m_szId=t[r].szId||"",n.m_szDrawColor=t[r].szDrawColor,n.m_szFillColor=t[r].szFillColor,n.m_iTranslucent=t[r].iTranslucent,n.m_iRedrawMode=t[r].iRedrawMode):"Polygon"===e?(n=new Tn,0===t[r].iPolygonType?n.m_bClosed=!0:n.m_bClosed=t[r].bClosed,n.m_szTips=t[r].szTips||"",n.m_szId=t[r].szId||"",n.m_iPolygonType=t[r].iPolygonType,n.m_iMinClosed=t[r].iMinClosed||3,n.m_iMaxPointNum=t[r].iMaxPointNum||11,n.m_iEditType=t[r].iEditType,n.m_szDrawColor=t[r].szDrawColor,n.m_szFillColor=t[r].szFillColor,n.m_iTranslucent=t[r].iTranslucent,n.m_iRedrawMode=t[r].iRedrawMode):"Line"===e?((n=new Ln).m_iLineType=t[r].iLineType,n.m_szTips=t[r].szTips||"",n.m_szId=t[r].szId,n.m_iDirection=t[r].iDirection,n.m_iArrowType=t[r].iArrowType,n.m_szDrawColor=t[r].szDrawColor,n.m_szFillColor=t[r].szFillColor,n.m_iTranslucent=t[r].iTranslucent,n.m_szFontColor=t[r].szFontColor,n.m_iEditType=t[r].iEditType,n.setPointInfo(t[r].aPoint)):"Point"===e&&((n=new Dn).m_szId=t[r].szId,n.m_szDrawColor=t[r].szDrawColor,n.m_szTips=t[r].szTips||"",n.m_iEditType=t[r].iEditType,n.setPointInfo(t[r].aPoint)),n.setPointInfo(t[r].aPoint),C(n);else"Grid"===e&&((n=new kn).m_szGridMap=t[0].szGridMap||"",n.m_iGridColNum=t[0].iGridColNum||22,n.m_iGridRowNum=t[0].iGridRowNum||18,C(n));M()}},{key:"addOSDShape",value:function(e,t,n,r,i){n||(r=r||(n=0)),i=i||{};t=new Mn(e,t),e=10*e.replace(/[^x00-xff]/g,"rr").length;t.m_szOSDType=i.szOSDType||"",t.m_szDateStyle=i.szDateStyle||"",t.m_szClockType=i.szClockType||"",t.m_szDisplayWeek=i.szDisplayWeek||"",t.m_szId=i.szId||"",t.m_szAlignment=""+i.szAlignment||"0","0"===t.m_szAlignment?t.m_aPoint=[[n,r],[e+n,r],[e+n,r+20],[n,r+20]]:"1"===t.m_szAlignment?t.m_aPoint=[[0,r],[e,r],[e,r+20],[0,r+20]]:"2"===t.m_szAlignment?t.m_aPoint=[[this.m_iCanvasWidth-e,r],[this.m_iCanvasWidth,r],[this.m_iCanvasWidth,r+20],[this.m_iCanvasWidth-e,r+20]]:t.m_aPoint=[[n,r],[e+n,r],[e+n,r+20],[n,r+20]],C(t),M()}},{key:"addTextTip",value:function(e,t,n,r,i){n||(r=r||(n=0)),i=i||{};var t=new Sn(e,t),e=(t.m_szDrawColor=i.szDrawColor||_[y].szDrawColor,t.m_szFillColor=i.szFillColor||_[y].szFillColor,t.m_iTranslucent=i.iTranslucent||_[y].iTranslucent,_[c].font="16px serif",_[c].measureText(e).width),o=1.2*parseInt(_[c].font,10);t.m_szId=i.szId||"",t.m_aPoint=[[n,r],[e+n,r],[e+n,r+o],[n,r+o]],C(t),M()}},{key:"selectShapeById",value:function(e,t){for(var n=0,r=_[f].length;n<r;n++)e===_[f][n].m_szType&&(t===_[f][n].m_szId?_[f][n].m_bChoosed=!0:_[f][n].m_bChoosed=!1);M()}},{key:"setCanvasSize",value:function(e,t){0<e&&0<t&&(this.m_iCanvasWidth=e,this.m_iCanvasHeight=t,M())}},{key:"setDrawStyle",value:function(e,t,n){this[y]={szDrawColor:e,szFillColor:t,iTranslucent:n}}},{key:"clearAllShape",value:function(){this[f].length=0,_[v]=!1,M()}},{key:"clearShapeByType",value:function(e){for(var t=this[f].length;0<t;t--)this[f][t-1].m_szType===e&&("Grid"===e?(this[f][t-1].m_szGridMap="",this[f][t-1].m_aAddGridMap=[]):this[f].splice(t-1,1));"Polygon"===e&&(_[v]=!1),M()}},{key:"deleteShape",value:function(e){this[f].length>e&&this[f].splice(e,1),M()}},{key:"updateCanvas",value:function(e){this[h]=S("#"+e),this[c]=this[h].element.getContext("2d"),this.m_iCanvasWidth=this[h].width(),this.m_iCanvasHeight=this[h].height(),Cn(),En()}},{key:"resizeCanvas",value:function(){this.m_iCanvasWidth=this[h].width(),this.m_iCanvasHeight=this[h].height()}},{key:"canvasRedraw",value:function(){M()}},{key:"registerCallback",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];this.addShapeCallback=e.addShapeCallback,this.chooseShapeCallback=e.chooseShapeCallback,this.changeShapeCallback=e.changeShapeCallback,this.hoverShapeCallback=e.hoverShapeCallback,this.moveCallback=e.moveCallback,this.mouseOutCallback=e.mouseOutCallback,this.mouseDownCallback=e.mouseDownCallback,this.callBackWithoutLimit=t}},{key:"setTipsFont",value:function(e){this.tipsFont=e}},{key:"setLineWidth",value:function(e){this.lineWidth=e,this[c].lineWidth=e}},{key:"setPointRadius",value:function(e){this.pointRadius=e,this[c].pointRadius=e}},{key:"destroySelf",value:function(){this[h]&&this[h].off(),this[h]=null,this[c]=null,this[_n]=null,window.removeEventListener("mouseup",gn)}}])}();function M(){_[c].clearRect(0,0,_.m_iCanvasWidth,_.m_iCanvasHeight);for(var e=0,t=_[f].length;e<t;e++)_[f][e].draw()}function C(e){_[f].length<_[hn]&&_[f].push(e)}function Cn(){var s=!1,u=0,l=0,d="draw",c=null;function o(){for(var e=-1,t=0,n=_[f].length;t<n;t++)if(_[f][t].m_bChoosed){e=t;break}return e}function t(e){var t,n,r;if("touchstart"===yn&&e.originalEvent&&(r="#"+_[h].element.id,e.offsetX=e.originalEvent.changedTouches[0].clientX-S(r).offset().left,e.offsetY=e.originalEvent.changedTouches[0].clientY-S(r).offset().top,e.button=0),_[h].element.style.cursor="default",null!=c&&"draw"===d)"Rect"===_[p]?(2<Math.abs(e.offsetX-u)&&2<Math.abs(e.offsetY-l)&&(C(c),_[mn]||0!==c.m_iRedrawMode||1!==_[hn]||(_[m]=!1)),_[_n]&&(n=c.m_aPoint[2]?(n=(r=un(c.m_aPoint[2],2))[0],r=r[1],u<n&&l<r?(t=c.m_aPoint[0],[Math.min(n,_.m_iCanvasWidth),Math.min(r,_.m_iCanvasHeight)]):(t=c.m_aPoint[2],c.m_aPoint[0])):(r=(n=[e.offsetX,e.offsetY])[1],u<(n=n[0])&&l<r?(t=c.m_aPoint[0]||[n,r],[n,r]):(t=[n,r],c.m_aPoint[0]||[n,r])),_[_n]&&_[_n]({startPos:t,endPos:n}),_.clearAllShape()),c=null):"Polygon"===_[p]&&0===c.m_iPolygonType&&_[v]?2<Math.abs(e.offsetX-u)&&2<Math.abs(e.offsetY-l)&&(C(c),_[v]=!1,_[mn]||0!==c.m_iRedrawMode||(_[m]=!1),window.onDrawShapeEvent)&&window.onDrawShapeEvent(c.m_szType,"onDrawEnd",c.m_szId):"Point"===_[p]&&_[m]&&(r=_.transformShapesInfo(c),_.addShapeCallback)&&_.addShapeCallback(_[p],r);else if("Point"===_[p]&&"drag"===d)for(var i,o=0,a=_[f].length;o<a;o++)_[f][o].inShape(e.offsetX,e.offsetY)&&2!==_[f][o].m_iEditType?(_[f][o].m_bChoosed=!0,_[f][o].getMouseDownPoints(e.offsetX,e.offsetY),i=_.transformShapesInfo(_[f][o]),_.changeShapeCallback&&_.changeShapeCallback(_[f][o].m_szType,i)):_[f][o].m_bChoosed=!1;s=!(!_[v]&&!_[fn]),_[v]||_[fn]||M()}_[h].element.oncontextmenu=function(){return!1},_[h].element.onselectstart=function(){return!1},_[h].off(),_[h].on(yn,function(e){if("touchstart"===yn&&e.originalEvent&&(t="#"+_[h].element.id,e.offsetX=e.originalEvent.changedTouches[0].clientX-S(t).offset().left,e.offsetY=e.originalEvent.changedTouches[0].clientY-S(t).offset().top,e.button=0),2===e.button)_[v]&&c?c.m_aPoint.length>=c.m_iMinClosed&&(c.m_bClosed=!0,_[v]=!1,c.setPointInfo(c.m_aPoint),C(c),M(),s=!1,_[mn]||0!==c.m_iRedrawMode||(_[m]=!1),window.onDrawShapeEvent)&&window.onDrawShapeEvent(c.m_szType,"onDrawEnd",c.m_szId):_[fn]&&c&&2<=c.m_aPoint.length&&(_[fn]=!1,c.setPointInfo(c.m_aPoint),C(c),M(),s=!1,_[mn]||(_[m]=!1),window.onDrawShapeEvent)&&window.onDrawShapeEvent(c.m_szType,"onDrawEnd",c.m_szId);else if(0===e.button){if(u=e.offsetX,l=e.offsetY,d="draw",!_[v]){var t=o();if("stretch"!==(d=-1!==t&&_[f][t].inArc(e.offsetX,e.offsetY,5)&&"Point"!==_[p]?"stretch":d))for(var n,r=0,i=_[f].length;r<i;r++)_[f][r].inShape(e.offsetX,e.offsetY)&&2!==_[f][r].m_iEditType?(_[f][r].m_bChoosed=!0,_[f][r].getMouseDownPoints(e.offsetX,e.offsetY),d="drag",window.onDrawShapeEvent&&window.onDrawShapeEvent(_[f][r].m_szType,"onChoose",_[f][r].m_szId),n=_.transformShapesInfo(_[f][r]),_.chooseShapeCallback&&_.chooseShapeCallback(_[f][r].m_szType,n)):_[f][r].m_bChoosed=!1;_[h].element.style.cursor="drag"===d?"move":"default","draw"===d&&1===_[f].length&&1===_[f][0].m_iRedrawMode&&_[m]&&(_.deleteRepeatPolyonById(_[f][0].m_szId,_[f][0].m_szType),_[m]=!0)}if("draw"===d&&_[m]){if(_[hn]<=_[f].length&&"Grid"!==_[p]&&"Point"!==_[p])return;"Rect"===_[p]?((c=new bn).m_szId=_[w].szId||"",c.m_szTips=_[w].szTips||""):"Grid"===_[p]?0===_[f].length&&C(c=new kn):"Polygon"===_[p]?(_[v]||(_[v]=!0,(c=new Tn).m_szId=_[w].szId||"",c.m_szTips=_[w].szTips||"",c.m_iMinClosed=_[w].iMinClosed||3,c.m_iMaxPointNum=_[w].iMaxPointNum||11,c.m_iPolygonType=_[w].iPolygonType||1,c.m_szDrawColor=_[w].szDrawColor||_[y].szDrawColor,c.m_szFillColor=_[w].szFillColor||_[y].szFillColor,c.m_iTranslucent=(void 0!==_[w].iTranslucent?_[w]:_[y]).iTranslucent,c.m_iRedrawMode=_[w].iRedrawMode),1===c.m_iPolygonType&&(c.addPoint(u,l),c.m_aPoint.length===c.m_iMaxPointNum)&&(c.m_bClosed=!0,_[v]=!1,C(c),M(),s=!1,_[mn]||0!==c.m_iRedrawMode||(_[m]=!1),window.onDrawShapeEvent)&&window.onDrawShapeEvent(c.m_szType,"onDrawEnd",c.m_szId)):"Point"===_[p]?((c=new Dn).m_szId=_[w].szId||"",c.m_szTips=_[w].szTips||"",c.m_szDrawColor=_[w].szDrawColor||_[y].szDrawColor,c.setPointInfo([[u,l]]),C(c),M()):"Line"===_[p]&&(_[fn]||(_[fn]=!0,(c=new Ln).m_szId=_[w].szId||"",c.m_iLineType=_[w].iLineType||0,c.m_szTips=_[w].szTips||"",c.m_iMinClosed=_[w].iMinClosed||2,c.m_iMaxPointNum=_[w].iMaxPointNum||11,c.m_szDrawColor=_[w].szDrawColor||_[y].szDrawColor,c.m_iRedrawMode=_[w].iRedrawMode),c.addPoint(u,l),c.m_aPoint.length===c.m_iMaxPointNum)&&(c.m_bClosed=!0,_[fn]=!1,C(c),M(),s=!1,_[mn]||(_[m]=!1),window.onDrawShapeEvent)&&window.onDrawShapeEvent(c.m_szType,"onDrawEnd",c.m_szId)}s=!0}_.mouseDownCallback&&_.mouseDownCallback(e.offsetX,e.offsetY)}),_[h].off(vn).on(vn,function(e){if("touchstart"===yn&&e.originalEvent&&(t="#"+_[h].element.id,e.offsetX=e.originalEvent.changedTouches[0].clientX-S(t).offset().left,e.offsetY=e.originalEvent.changedTouches[0].clientY-S(t).offset().top,e.button=0),_[v]||_[fn])_[m]&&s&&("Polygon"===_[p]&&0===c.m_iPolygonType&&(c.m_bClosed=!0),M(),c.move(e.offsetX,e.offsetY,u,l));else{var t=o();if(-1<t?s&&("drag"===d?(_[f][t].drag(e.offsetX,e.offsetY),window.onDrawShapeEvent&&window.onDrawShapeEvent(_[f][t].m_szType,"onDrag",_[f][t].m_szId)):"stretch"===d&&(_[f][t].stretch(e.offsetX,e.offsetY),window.onDrawShapeEvent)&&window.onDrawShapeEvent(_[f][t].m_szType,"onStretch",_[f][t].m_szId)):_[m]&&s&&("Rect"===_[p]?c.move([[u,l],[e.offsetX,e.offsetY]]):"Grid"===_[p]&&_[f][0].move(u,l,e.offsetX,e.offsetY)),!s){for(var n,r=0,i=_[f].length;r<i;r++)_[f][r].inShape(e.offsetX,e.offsetY)&&(2!==_[f][r].m_iEditType||_.callBackWithoutLimit)?(_[f][r].m_isMouseIn=!0,n=_.transformShapesInfo(_[f][r]),_.hoverShapeCallback&&_.hoverShapeCallback(_[f][r].m_szType,n,!0)):_[f][r].m_isMouseIn&&(_[f][r].m_isMouseIn=!1,n=_.transformShapesInfo(_[f][r]),_.hoverShapeCallback)&&_.hoverShapeCallback(_[f][r].m_szType,n,!1);_.moveCallback&&_.moveCallback(e.offsetX,e.offsetY)}}}),_[h].off(pn).on(pn,t),gn=function(e){!_[h].element.contains(e.target)&&_[m]&&t(e)},_[h].on("dblclick",function(){_[m]&&"Grid"===_[p]&&(_[f][0].m_szGridMap="fffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffc",M())}),_[h].on("mouseout",function(){_[h].element.style.cursor="default",s=!(!_[v]&&!_[fn]),_.mouseOutCallback&&_.mouseOutCallback()})}function En(){window.removeEventListener("mouseup",gn),window.addEventListener("mouseup",gn,{passive:!0})}var i=t(76),Yn=t.n(i),xn={2001:{rowSplit:3,colSplit:3,windowsConfig:{0:{row:2,col:2},1:{row:1,col:1,right:!0},2:{row:1,col:1,right:!0},3:{row:1,col:1,bottom:!0},4:{row:1,col:1,bottom:!0},5:{row:1,col:1,right:!0,bottom:!0}}},2002:{rowSplit:4,colSplit:4,windowsConfig:{0:{row:3,col:3},1:{row:1,col:1,right:!0},2:{row:1,col:1,right:!0},3:{row:1,col:1,right:!0},4:{row:1,col:1,bottom:!0},5:{row:1,col:1,bottom:!0},6:{row:1,col:1,bottom:!0},7:{row:1,col:1,right:!0,bottom:!0}}},2003:{rowSplit:3,colSplit:4,windowsConfig:{0:{row:2,col:2},1:{row:1,col:1},2:{row:1,col:1,right:!0},3:{row:1,col:1},4:{row:1,col:1,right:!0},5:{row:1,col:1,bottom:!0},6:{row:1,col:1,bottom:!0},7:{row:1,col:1,bottom:!0},8:{row:1,col:1,right:!0,bottom:!0}}},2004:{rowSplit:5,colSplit:5,windowsConfig:{0:{row:4,col:4},1:{row:1,col:1,right:!0},2:{row:1,col:1,right:!0},3:{row:1,col:1,right:!0},4:{row:1,col:1,right:!0},5:{row:1,col:1,bottom:!0},6:{row:1,col:1,bottom:!0},7:{row:1,col:1,bottom:!0},8:{row:1,col:1,bottom:!0},9:{row:1,col:1,right:!0,bottom:!0}}},2005:{rowSplit:6,colSplit:6,windowsConfig:{0:{row:5,col:5},1:{row:1,col:1,right:!0},2:{row:1,col:1,right:!0},3:{row:1,col:1,right:!0},4:{row:1,col:1,right:!0},5:{row:1,col:1,right:!0},6:{row:1,col:1,bottom:!0},7:{row:1,col:1,bottom:!0},8:{row:1,col:1,bottom:!0},9:{row:1,col:1,bottom:!0},10:{row:1,col:1,bottom:!0},11:{row:1,col:1,right:!0,bottom:!0}}},2006:{rowSplit:8,colSplit:8,windowsConfig:{0:{row:7,col:7},1:{row:1,col:1,right:!0},2:{row:1,col:1,right:!0},3:{row:1,col:1,right:!0},4:{row:1,col:1,right:!0},5:{row:1,col:1,right:!0},6:{row:1,col:1,right:!0},7:{row:1,col:1,right:!0},8:{row:1,col:1,bottom:!0},9:{row:1,col:1,bottom:!0},10:{row:1,col:1,bottom:!0},11:{row:1,col:1,bottom:!0},12:{row:1,col:1,bottom:!0},13:{row:1,col:1,bottom:!0},14:{row:1,col:1,bottom:!0},15:{row:1,col:1,right:!0,bottom:!0}}},2007:{rowSplit:5,colSplit:5,windowsConfig:{0:{row:3,col:3},1:{row:1,col:1},2:{row:1,col:1,right:!0},3:{row:1,col:1},4:{row:1,col:1,right:!0},5:{row:1,col:1},6:{row:1,col:1,right:!0},7:{row:1,col:1},8:{row:1,col:1},9:{row:1,col:1},10:{row:1,col:1},11:{row:1,col:1,right:!0},12:{row:1,col:1,bottom:!0},13:{row:1,col:1,bottom:!0},14:{row:1,col:1,bottom:!0},15:{row:1,col:1,bottom:!0},16:{row:1,col:1,right:!0,bottom:!0}}},3001:{rowSplit:2,colSplit:2,windowsConfig:{0:{row:2,col:1,bottom:!0},1:{row:2,col:1,right:!0,bottom:!0}}},3002:{rowSplit:2,colSplit:2,windowsConfig:{0:{row:2,col:1,bottom:!0},1:{row:1,col:1,right:!0},2:{row:1,col:1,right:!0,bottom:!0}}},3003:{rowSplit:4,colSplit:4,windowsConfig:{0:{row:4,col:2,bottom:!0},1:{row:2,col:1},2:{row:2,col:1,right:!0},3:{row:2,col:1},4:{row:2,col:1,right:!0,bottom:!0}}},3004:{rowSplit:2,colSplit:3,windowsConfig:{0:{row:1,col:1},1:{row:1,col:1},2:{row:1,col:1,right:!0},3:{row:1,col:1,bottom:!0},4:{row:1,col:1,bottom:!0},5:{row:1,col:1,bottom:!0,right:!0}}},3005:{rowSplit:2,colSplit:4,windowsConfig:{0:{row:1,col:1},1:{row:1,col:1},2:{row:1,col:1},3:{row:1,col:1,right:!0},4:{row:1,col:1,bottom:!0},5:{row:1,col:1,bottom:!0},6:{row:1,col:1,bottom:!0},7:{row:1,col:1,right:!0,bottom:!0}}},4001:{rowSplit:2,colSplit:1,windowsConfig:{0:{row:1,col:1,right:!0},1:{row:1,col:1,bottom:!0}}},4002:{rowSplit:2,colSplit:2,windowsConfig:{0:{row:1,col:2,right:!0},1:{row:1,col:1,bottom:!0},2:{row:1,col:1,right:!0,bottom:!0}}},4003:{rowSplit:4,colSplit:2,windowsConfig:{0:{row:2,col:2,right:!0},1:{row:1,col:1},2:{row:1,col:1},3:{row:1,col:1,bottom:!0},4:{row:1,col:1,bottom:!0,right:!0}}},4004:{rowSplit:3,colSplit:2,windowsConfig:{0:{row:1,col:1},1:{row:1,col:1,right:!0},2:{row:1,col:1},3:{row:1,col:1,right:!0},4:{row:1,col:1,bottom:!0},5:{row:1,col:1,bottom:!0,right:!0}}},4005:{rowSplit:4,colSplit:2,windowsConfig:{0:{row:1,col:1},1:{row:1,col:1,right:!0},2:{row:1,col:1},3:{row:1,col:1,right:!0},4:{row:1,col:1},5:{row:1,col:1,right:!0},6:{row:1,col:1,bottom:!0},7:{row:1,col:1,bottom:!0,right:!0}}},5001:{rowSplit:3,colSplit:2,windowsConfig:{0:{row:3,col:1,bottom:!0},1:{row:1,col:1,right:!0},2:{row:1,col:1,right:!0},3:{row:1,col:1,bottom:!0,right:!0}}},5002:{rowSplit:2,colSplit:3,windowsConfig:{0:{row:1,col:3,right:!0},1:{row:1,col:1,bottom:!0},2:{row:1,col:1,bottom:!0},3:{row:1,col:1,bottom:!0,right:!0}}},5003:{rowSplit:4,colSplit:2,windowsConfig:{0:{row:4,col:1,bottom:!0},1:{row:1,col:1,right:!0},2:{row:1,col:1,right:!0},3:{row:1,col:1,right:!0},4:{row:1,col:1,right:!0,bottom:!0}}},5004:{rowSplit:4,colSplit:2,windowsConfig:{0:{row:2,col:1},1:{row:2,col:1,right:!0},2:{row:1,col:1},3:{row:1,col:1,right:!0},4:{row:1,col:1,bottom:!0},5:{row:1,col:1,right:!0,bottom:!0}}},5005:{rowSplit:4,colSplit:4,windowsConfig:{0:{row:2,col:2},1:{row:2,col:2,right:!0},2:{row:2,col:2,bottom:!0},3:{row:1,col:1},4:{row:1,col:1,right:!0},5:{row:1,col:1,bottom:!0},6:{row:1,col:1,right:!0,bottom:!0}}},5006:{rowSplit:6,colSplit:5,windowsConfig:{0:{row:3,col:2},1:{row:3,col:2},2:{row:2,col:1,right:!0},3:{row:2,col:1,right:!0},4:{row:3,col:2,bottom:!0},5:{row:3,col:2,bottom:!0},6:{row:2,col:1,right:!0,bottom:!0}}},5007:{rowSplit:4,colSplit:3,windowsConfig:{0:{row:1,col:1},1:{row:1,col:1},2:{row:1,col:1,right:!0},3:{row:1,col:1},4:{row:1,col:1},5:{row:1,col:1,right:!0},6:{row:1,col:1},7:{row:1,col:1},8:{row:1,col:1,right:!0},9:{row:1,col:1,bottom:!0},10:{row:1,col:1,bottom:!0},11:{row:1,col:1,right:!0,bottom:!0}}},5008:{rowSplit:4,colSplit:4,windowsConfig:{0:{row:1,col:1},1:{row:1,col:1},2:{row:1,col:1},3:{row:1,col:1,right:!0},4:{row:1,col:1},5:{row:2,col:2},6:{row:1,col:1,right:!0},7:{row:1,col:1},8:{row:1,col:1,right:!0},9:{row:1,col:1,bottom:!0},10:{row:1,col:1,bottom:!0},11:{row:1,col:1,bottom:!0},12:{row:1,col:1,right:!0,bottom:!0}}},5009:{rowSplit:6,colSplit:8,windowsConfig:{0:{row:2,col:2},1:{row:2,col:2},2:{row:2,col:2},3:{row:2,col:2,right:!0},4:{row:2,col:2},5:{row:2,col:2},6:{row:2,col:2},7:{row:2,col:2,right:!0},8:{row:1,col:1},9:{row:1,col:1},10:{row:1,col:1},11:{row:1,col:1},12:{row:1,col:1},13:{row:1,col:1},14:{row:1,col:1},15:{row:1,col:1,right:!0},16:{row:1,col:1,bottom:!0},17:{row:1,col:1,bottom:!0},18:{row:1,col:1,bottom:!0},19:{row:1,col:1,bottom:!0},20:{row:1,col:1,bottom:!0},21:{row:1,col:1,bottom:!0},22:{row:1,col:1,bottom:!0},23:{row:1,col:1,bottom:!0,right:!0}}},5010:{rowSplit:7,colSplit:7,windowsConfig:{0:{row:2,col:2},1:{row:2,col:2},2:{row:1,col:1},3:{row:1,col:1},4:{row:1,col:1,right:!0},5:{row:1,col:1},6:{row:1,col:1},7:{row:1,col:1,right:!0},8:{row:2,col:2},9:{row:3,col:3},10:{row:1,col:1},11:{row:1,col:1,right:!0},12:{row:1,col:1},13:{row:1,col:1,right:!0},14:{row:1,col:1},15:{row:1,col:1},16:{row:1,col:1},17:{row:1,col:1,right:!0},18:{row:1,col:1},19:{row:1,col:1},20:{row:1,col:1},21:{row:1,col:1},22:{row:1,col:1},23:{row:1,col:1},24:{row:1,col:1,right:!0},25:{row:1,col:1,bottom:!0},26:{row:1,col:1,bottom:!0},27:{row:1,col:1,bottom:!0},28:{row:1,col:1,bottom:!0},29:{row:1,col:1,bottom:!0},30:{row:1,col:1,bottom:!0},31:{row:1,col:1,right:!0,bottom:!0}}},5011:{rowSplit:6,colSplit:8,windowsConfig:{0:{row:2,col:2},1:{row:2,col:2},2:{row:2,col:2},3:{row:2,col:2,right:!0},4:{row:1,col:1},5:{row:1,col:1},6:{row:1,col:1},7:{row:1,col:1},8:{row:1,col:1},9:{row:1,col:1},10:{row:1,col:1},11:{row:1,col:1,right:!0},12:{row:1,col:1},13:{row:1,col:1},14:{row:1,col:1},15:{row:1,col:1},16:{row:1,col:1},17:{row:1,col:1},18:{row:1,col:1},19:{row:1,col:1,right:!0},20:{row:1,col:1},21:{row:1,col:1},22:{row:1,col:1},23:{row:1,col:1},24:{row:1,col:1},25:{row:1,col:1},26:{row:1,col:1},27:{row:1,col:1,right:!0},28:{row:1,col:1,bottom:!0},29:{row:1,col:1,bottom:!0},30:{row:1,col:1,bottom:!0},31:{row:1,col:1,bottom:!0},32:{row:1,col:1,bottom:!0},33:{row:1,col:1,bottom:!0},34:{row:1,col:1,bottom:!0},35:{row:1,col:1,right:!0,bottom:!0}}}},An={1:{rowSplit:1,colSplit:1,windowsConfig:{0:{row:1,col:1}}},2:{rowSplit:3,colSplit:1,windowsConfig:{0:{row:2,col:1},1:{row:1,col:1,bottom:!0}}},3:{rowSplit:2,colSplit:2,windowsConfig:{0:{row:1,col:1},1:{row:1,col:1,right:!0},2:{row:1,col:1,bottom:!0},3:{row:1,col:1,bottom:!0,right:!0}}},4:{rowSplit:3,colSplit:3,windowsConfig:{0:{row:1,col:3,right:!0},1:{row:1,col:1},2:{row:1,col:1},3:{row:1,col:1,right:!0},4:{row:1,col:1,bottom:!0},5:{row:1,col:1,bottom:!0},6:{row:1,col:1,bottom:!0,right:!0}}},5:{rowSplit:3,colSplit:3,windowsConfig:{0:{row:1,col:1},1:{row:1,col:1},2:{row:1,col:1,right:!0},3:{row:1,col:1},4:{row:1,col:1},5:{row:1,col:1,right:!0},6:{row:1,col:1,bottom:!0},7:{row:1,col:1,bottom:!0},8:{row:1,col:1,right:!0,bottom:!0}}},6:{rowSplit:2,colSplit:2,windowsConfig:{0:{row:2,col:1},1:{row:2,col:1,right:!0},2:{row:1,col:1}}},7:{rowSplit:2,colSplit:2,windowsConfig:{0:{row:1,col:1},1:{row:1,col:1,right:!0},2:{row:1,col:1,bottom:!0},3:{row:1,col:1,bottom:!0,right:!0},4:{row:1,col:1}}}},e=0,he=1024,n=256,d=768,E={0:{splitType:1,mainWindow:0,correctList:[e]},1:{splitType:1,mainWindow:0,correctList:[d]},3:{splitType:1,mainWindow:0,correctList:[512]},5:{splitType:3,mainWindow:0,correctList:[e,n,n,n],pTZDisplayMode:"sector",defaultPtzParam:[null,{x:.5,y:.33,r:255,g:0,b:0},{x:.33,y:.66,r:0,g:255,b:0},{x:.66,y:.66,r:0,g:0,b:255}]},6:{splitType:3,mainWindow:0,correctList:[d,n,n,n],pTZDisplayMode:"sector",defaultPtzParam:[null,{x:.5,y:.33,r:255,g:0,b:0},{x:.33,y:.66,r:0,g:255,b:0},{x:.66,y:.66,r:0,g:0,b:255}]},7:{splitType:7,mainWindow:4,correctList:[n,n,n,n,e],pTZDisplayMode:"sector",defaultPtzParam:[{x:.33,y:.33,r:127.5,g:127.5,b:0},{x:.66,y:.33,r:255,g:0,b:0},{x:.33,y:.66,r:0,g:255,b:0},{x:.66,y:.66,r:0,g:0,b:255},null]},8:{splitType:5,mainWindow:4,correctList:[n,n,n,n,e,n,n,n,n],pTZDisplayMode:"rect",defaultPtzParam:[{x:.5,y:.25,r:127.5,g:127.5,b:0},{x:.337,y:.3125,r:255,g:0,b:0},{x:.6625,y:.3125,r:0,g:255,b:0},{x:.2625,y:.5,r:0,g:0,b:255},null,{x:.7375,y:.5,r:127.5,g:0,b:255},{x:.337,y:.687,r:0,g:255,b:255},{x:.5,y:.75,r:255,g:127.5,b:0},{x:.6625,y:.6875,r:0,g:127.5,b:127.5}]},9:{splitType:5,mainWindow:4,correctList:[n,n,n,n,d,n,n,n,n],pTZDisplayMode:"rect",defaultPtzParam:[{x:.5,y:.25,r:127.5,g:127.5,b:0},{x:.3375,y:.3125,r:255,g:0,b:0},{x:.6625,y:.3125,r:0,g:255,b:0},{x:.2625,y:.5,r:0,g:0,b:255},null,{x:.7375,y:.5,r:127.5,g:0,b:255},{x:.3375,y:.6875,r:0,g:255,b:255},{x:.5,y:.75,r:255,g:127.5,b:0},{x:.6625,y:.6875,r:0,g:127.5,b:127.5}]},15:{splitType:6,mainWindow:2,correctList:[n,n,e],pTZDisplayMode:"sector",defaultPtzParam:[{x:.25,y:1/3,r:127.5,g:127.5,b:0},{x:.75,y:1/3,r:255,g:0,b:0},null]},16:{splitType:2,mainWindow:0,correctList:[d,n],pTZDisplayMode:"sector",defaultPtzParam:[null,{x:.5,y:.2,r:127.5,g:127.5,b:0}]},17:{splitType:4,mainWindow:0,correctList:[d,n,n,n,n,n,n],pTZDisplayMode:"sector",defaultPtzParam:[null,{x:.49,y:.5,r:255,g:0,b:0},{x:.33,y:.33,r:0,g:255,b:0},{x:.5,y:.25,r:0,g:0,b:255},{x:.5,y:.75,r:255,g:255,b:0},{x:.7,y:.7,r:127.5,g:0,b:255},{x:.5,y:.25,r:0,g:255,b:255}]},18:{splitType:1,mainWindow:0,correctList:[1280]},19:{splitType:1,mainWindow:0,correctList:[1280]},20:{splitType:1,mainWindow:0,correctList:[1536]},21:{splitType:1,mainWindow:0,correctList:[he]},22:{splitType:3,mainWindow:0,correctList:[he,n,n,n],pTZDisplayMode:"sector",defaultPtzParam:[null,{x:.5,y:.33,r:255,g:0,b:0},{x:.33,y:.66,r:0,g:255,b:0},{x:.66,y:.66,r:0,g:0,b:255}]},23:{splitType:5,mainWindow:4,correctList:[n,n,n,n,he,n,n,n,n],pTZDisplayMode:"rect",defaultPtzParam:[{x:.337,y:.3125,r:255,g:0,b:0},{x:.5,y:.25,r:127.5,g:127.5,b:0},{x:.6625,y:.3125,r:0,g:255,b:0},{x:.2625,y:.5,r:0,g:0,b:255},null,{x:.7375,y:.5,r:127.5,g:0,b:255},{x:.337,y:.687,r:0,g:255,b:255},{x:.5,y:.75,r:255,g:127.5,b:0},{x:.6625,y:.6875,r:0,g:127.5,b:127.5}]}};function On(e){return(On="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Y=function(){return a};var u,a={},e=Object.prototype,l=e.hasOwnProperty,d=Object.defineProperty||function(e,t,n){e[t]=n.value},t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",n=t.asyncIterator||"@@asyncIterator",i=t.toStringTag||"@@toStringTag";function o(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(u){o=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var i,o,a,s,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype),r=new T(r||[]);return d(t,"_invoke",{value:(i=e,o=n,a=r,s=h,function(e,t){if(s===m)throw Error("Generator is already running");if(s===_){if("throw"===e)throw t;return{value:u,done:!0}}for(a.method=e,a.arg=t;;){var n=a.delegate;if(n){n=function e(t,n){var r=n.method,i=t.iterator[r];if(i===u)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=u,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;r=c(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,p;i=r.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=u),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}(n,a);if(n){if(n===p)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===h)throw s=_,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=m;n=c(i,o,a);if("normal"===n.type){if(s=a.done?_:f,n.arg===p)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s=_,a.method="throw",a.arg=n.arg)}})}),t}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}a.wrap=s;var h="suspendedStart",f="suspendedYield",m="executing",_="completed",p={};function y(){}function v(){}function g(){}var t={},w=(o(t,r,function(){return this}),Object.getPrototypeOf),w=w&&w(w(D([]))),b=(w&&w!==e&&l.call(w,r)&&(t=w),g.prototype=y.prototype=Object.create(t));function M(e){["next","throw","return"].forEach(function(t){o(e,t,function(e){return this._invoke(t,e)})})}function S(a,s){var t;d(this,"_invoke",{value:function(n,r){function e(){return new s(function(e,t){!function t(e,n,r,i){var o,e=c(a[e],a,n);if("throw"!==e.type)return(n=(o=e.arg).value)&&"object"==On(n)&&l.call(n,"__await")?s.resolve(n.__await).then(function(e){t("next",e,r,i)},function(e){t("throw",e,r,i)}):s.resolve(n).then(function(e){o.value=e,r(o)},function(e){return t("throw",e,r,i)});i(e.arg)}(n,r,e,t)})}return t=t?t.then(e,e):e()}})}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function D(t){if(t||""===t){var n,e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return n=-1,(e=function e(){for(;++n<t.length;)if(l.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=u,e.done=!0,e}).next=e}throw new TypeError(On(t)+" is not iterable")}return d(b,"constructor",{value:v.prototype=g,configurable:!0}),d(g,"constructor",{value:v,configurable:!0}),v.displayName=o(g,i,"GeneratorFunction"),a.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,o(e,i,"GeneratorFunction")),e.prototype=Object.create(b),e},a.awrap=function(e){return{__await:e}},M(S.prototype),o(S.prototype,n,function(){return this}),a.AsyncIterator=S,a.async=function(e,t,n,r,i){void 0===i&&(i=Promise);var o=new S(s(e,t,n,r),i);return a.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},M(b),o(b,i,"Generator"),o(b,r,function(){return this}),o(b,"toString",function(){return"[object Generator]"}),a.keys=function(e){var t,n=Object(e),r=[];for(t in n)r.push(t);return r.reverse(),function e(){for(;r.length;){var t=r.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},a.values=D,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(L),!e)for(var t in this)"t"===t.charAt(0)&&l.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=u)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function e(e,t){return o.type="throw",o.arg=n,r.next=e,t&&(r.method="next",r.arg=u),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var i=this.tryEntries[t],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc?null:i)?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n,r,i=this.tryEntries[t];if(i.tryLoc===e)return"throw"===(n=i.completion).type&&(r=n.arg,L(i)),r}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=u),p}},a}function In(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function x(s){return function(){var e=this,a=arguments;return new Promise(function(t,n){var r=s.apply(e,a);function i(e){In(r,t,n,i,o,"next",e)}function o(e){In(r,t,n,i,o,"throw",e)}i(void 0)})}}function Rn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=On(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=On(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==On(e)?e:e+""}(r.key),r)}}var jn=4194304,Hn=1,Wn=3,A=0,O=1,Fn=0,zn=1,Un=0,I=1,Bn=0,Nn=0,Jn=1,Gn=2,Vn=0,qn=1,Zn=2,Xn=1,Kn=2,$n=3,Qn=4,er=5,tr=6,nr=7,rr=8,ir=function(){function i(e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.TAG="JSPlugin",this.userFlag=e.userFlag||0;this.options=g.deepMerge({szId:"playWnd",iWidth:400,iHeight:300,iMaxSplit:4,iCurrentSplit:2,szBasePath:"./",bSupportSound:!0,bSupporDoubleClickFull:!0,fullFillContainerMode:!1,bSupportDecoder3:!0,bSupportMSE:!0,openDebug:!1,openLogInfo:!1,decodeEngine:0,renderEngine:"webgl",pluginMode:"default",displayMode:"default",videoRatio:"16:9",videoDisplayRatio:16/9,onlyPlayedAllowSelected:!1,showSelectedBorder:!0,clearCanvasFlag:!0,saveRawData:!1},e);var t={border:"#343434",borderSelect:"#FFCC00",background:"#4C4B4B"},t=g.deepMerge(t,e.oStyle);if(this.options.oStyle=t,this.oPluginColor={backgroundColor:this.options.szBackgroundColor||this.options.oStyle.background,subBackgroundColor:this.options.szSubBackgroundColor||this.options.oStyle.background,borderColor:this.options.szBorderColor||this.options.oStyle.border,selectBorderColor:this.options.szSelectBorderColor||this.options.oStyle.borderSelect},this._log=new nt(this),this.browserType=g.getBrowserType(),this.oZoomDrawStyle={drawColor:"#ff0000",fillColor:"",translucent:0},"customRatio"===this.options.displayMode&&this.options.videoRatio&&(e=this.options.videoRatio.split(":"),this.options.videoDisplayRatio=e[0]/e[1]),this.fileDownloadList={},this.oStreamClient=new ut,"default"===this.options.pluginMode){this.iCurrentPlayRate=1,this.iCurrentSoundWnd=-1,this.iMaxWndNum=this.options.iMaxSplit*this.options.iMaxSplit,this.bPluginFull=!1,this.oVideoWindow=null,this.oVideoWindowSize=null,this.iCurrentWndIndex=-1,this.f3DDrawCallback=null,this.fEDrawCallback=null,this.szPluginVersion="V3.0.0",this.isBrowserVisible=!0,this.isSycPlayback=!1,this.supportCustomContainer=!!this.options.supportCustomContainer,this.customContainerStyle=this.options.customContainerStyle||"fixed",this.oJSPlugin=S("#"+this.options.szId),this.customContainerDomList=[],this.generalScreenSplitMode=[1,2,3,4,5,6,7,8],this.irregularScreenSplitMode=[2001,2002,2003,2004,2005,2006,2007,3001,3002,3003,3004,3005,4001,4002,4003,4004,4005,5001,5002,5003,5004,5005,5006,5007,5008,5009,5010,5011],this.irregularSpecialSplitMode=[5006,5008,5010],this.specialFishSplitMode=[7,15],this.wndOnFullFillContainerState=!1,this.visibilitychange=null,this._listenBrowserVisibility(),this.supportCustomContainer?this.iMaxWndNum=this.options.maxWndNum||this.iMaxWndNum:this._createWindows(),this.oPlayCtrlAudio=null,this.audioStashArray=[],this.bAudioLoad=!1,this.bAudioInitFinished=!1,this.waterMarkMode="none",this.waterMarkData=null,this.aWndList=[];for(var n=0,r=this.iMaxWndNum;n<r;n++)this.aWndList[n]={},this.aWndList[n].bPlay=!1,this.aWndList[n].ezuikitMode=!1,this.aWndList[n].bForceStop=!1,this.aWndList[n].bLoad=!1,this.aWndList[n].streamMode=Fn,this.aWndList[n].filePlayInfo={},this.aWndList[n].bSupHardDecHEVC=!1,this.aWndList[n].streamType=Nn,this.aWndList[n].szPlayType="",this.aWndList[n].szStorageUUID="",this.aWndList[n].szVideoAudioMixinUUID="",this.aWndList[n].szStreamUUID="",this.aWndList[n].lastStreamUUID="",this.aWndList[n].szTransformUUID="",this.aWndList[n].stashArray=[],this.aWndList[n].frameInfo=null,this.aWndList[n].aHead=[],this.aWndList[n].iRate=1,this.aWndList[n].bEZoom=!1,this.aWndList[n].iRatio_x=1,this.aWndList[n].iRatio_y=1,this.aWndList[n].iZoomNum=0,this.aWndList[n].stDisplayRect={},this.aWndList[n].refreshInterval=-1,this.aWndList[n].b3DZoom=!1,this.aWndList[n].windowMode=Un,this.aWndList[n].fishEyeMode=0,this.aWndList[n].fishPlaceType=Wn,this.aWndList[n].canvasSubPortMap={},this.aWndList[n].canvasCorrectMap={},this.aWndList[n].subCanvasEventMap={},this.aWndList[n].canvasCruiseMap={},this.aWndList[n].subPortOperationMap={},this.aWndList[n].currentfishPort=0,this.aWndList[n].currentfishCanvas=null,this.aWndList[n].bEnableFECDrag=!0,this.aWndList[n].firstFrameTimer=null,this.aWndList[n].dataReceiveTimerTimer=null,this.aWndList[n].preTimer=Date.now(),this.aWndList[n].szSecretKey="",this.aWndList[n].bFrameForward=!1,this.aWndList[n].frameStartVideoTimeForMSE=0,this.aWndList[n].frameStartOSDTimeForMSE=0,this.aWndList[n].iMode=A,this.aWndList[n].iLastDuaration=-1,this.aWndList[n].iCurDuaration=-1,this.aWndList[n].iLastDuarationTemp=-1,this.aWndList[n].iBufferValue=0,this.aWndList[n].iCurrentOSDTime=-1,this.aWndList[n].isPause=!1,this.aWndList[n].isStreamPause=!1,this.aWndList[n].isAntialias=!1,this.aWndList[n].iDecodeType=0,this.aWndList[n].iYUVWidth=0,this.aWndList[n].iYUVHeight=0}this.oStorageManager=new Et(this.options.szBasePath+"/transform/"),this.oGenericStorageManager=new Wt,this.oTransformManager=new Jt(this.options.szBasePath+"/transform/"),this.oAudioMixerManager=new Kt(this.options.szBasePath+"/audioMixer/"),this.szAudioMixinUUID="",this.szAudioMixinStoryUUID="",this.szBroadCastStorageUUID="",this.oTalkPlayCtrl=null,this.oTalkSamplingParam=null,this.szTalkStreamId="",this.bTalkLoaded=!1,this.bStartTalkSuc=!1,this.oBroadCast=[],this.oBroadCastPlayCtrl=null,this.oBroadCastSamplingParam=null,this.bBroadCastLoaded=!1,this.voiceRecorderNode=null,this.talkRecoderNode=null,this.voiceMediaStream=null,this.talkMediaStream=null,this.szAudioStorageUUID="",this.displayBufSize=15,this.bHttps=-1<location.protocol.indexOf("https"),this.bSupportHEVC=this._supportHEVC(),window.wasmPlayerLoaded="function"==typeof window.JSPlayCtrl,this.forceStopedState=!1,window.wasmPlayerLoaded||this._loaderWasmPlayer(),"default"===this.options.pluginMode&&(this.supportCustomContainer||(this.oDrawCanvas=new Pn("".concat(this.options.szId,"_canvas_draw0"))),this._initEvent(),this._dealWndSelect(0))}return e=i,(t=[{key:"JS_CreateCustomPlayWindows",value:function(e,t){this.customContainerDomList[e]=S("#"+t),this._createCustomWindows(this.customContainerDomList[e],e),this._initSingleCustomEvent(this.customContainerDomList[e],e)}},{key:"_initSingleCustomEvent",value:function(e,t){var n=this;e.off().on("mousedown",function(){n.oEventCallback.windowEventSelect(parseInt(e.find(".play-window").eq(0).attr("wid"),10))}),e.off("dblclick").on("dblclick",function(){var e=n.iCurrentWndIndex;n.oEventCallback.mouseEvent(Kn,0,0,e)})}},{key:"getCurrentWindowIndex",value:function(){return this.iCurrentWndIndex}},{key:"_getOSDTime",value:function(e,t,n,r,i,o,a,s){t=t+"-"+n+"-"+r+" "+i+":"+o+":"+a;"safari"===this.browserType&&(t=t.replace(/-/g,"/")),this.aWndList[e].iCurrentOSDTime=new Date(t).getTime()+s}},{key:"_getOSDTimeForMseFrameForward",value:function(e){var t=1e3*(this.oJSPlugin.find("video.play-window").eq(e).get(0).currentTime-this.aWndList[e].frameStartVideoTimeForMSE);this.aWndList[e].iCurrentOSDTime=this.aWndList[e].frameStartOSDTimeForMSE+t}},{key:"_loaderWasmPlayer",value:function(){var e="".concat(this.options.szBasePath,"/playctrl/PlayCtrlWasm/wasmplayer.min.js"),t=document.createElement("script");t.type="text/javascript",t.src=e,t.onload=function(){window.wasmPlayerLoaded=!0},document.body.appendChild(t)}},{key:"_probeLibraryLoaded",value:function(){var r=this,i=0;return new Promise(function(e,t){var n=setInterval(function(){"function"==typeof window.JSPlayCtrl?(clearInterval(n),e()):150<++i&&(r._log.E("wasmPlayerLoaded failed"),clearInterval(n),t())},200)})}},{key:"_listenBrowserVisibility",value:function(){var e=this;this.visibilitychange||(this.visibilitychange=function(){document.hidden?e.isBrowserVisible=!1:e.isBrowserVisible=!0}),document.addEventListener("visibilitychange",this.visibilitychange,!1)}},{key:"_calcWindowWidthHeight",value:function(e,t){var n=0;return 1<this.options.videoDisplayRatio?e/this.options.videoDisplayRatio<t?(t=e/this.options.videoDisplayRatio,n=1):e=t*this.options.videoDisplayRatio:this.options.videoDisplayRatio<1&&(e/this.options.videoDisplayRatio<t?(e=Math.floor(e),t=Math.floor(e*this.options.videoDisplayRatio),n=1):(e=Math.floor(t*this.options.videoDisplayRatio),t=Math.floor(t))),{width:e,height:t,fixMode:n}}},{key:"_createGeneralWindows",value:function(){for(var e,t=this.options.iWidth%this.options.iCurrentSplit,n=this.options.iHeight%this.options.iCurrentSplit,r=(this.options.iWidth-t-2*this.options.iCurrentSplit)/this.options.iCurrentSplit,i=(this.options.iHeight-n-2*this.options.iCurrentSplit)/this.options.iCurrentSplit,o=(this.options.iWidth-t)/this.options.iCurrentSplit,a=(this.options.iHeight-n)/this.options.iCurrentSplit,s=this.options.iCurrentSplit,u=this.options.szId,l=(this.oJSPlugin=S("#"+u),0),d=0,c=("customRatio"===this.options.displayMode&&(0===(e=this._calcWindowWidthHeight(r,i)).fixMode?l=(r-e.width)/2:d=(i-e.height)/2,r=e.width,i=e.height),'<div class="parent-wnd" style="overflow:hidden;width:100%; height:100%; position: relative;">'),h=0;h<this.iMaxWndNum;h++){var f=r+(h%s==s-1?t:0),m=i+(h+s>=Math.pow(s,2)?n:0),_=o+(h%s==s-1?t:0),p=a+(h+s>=Math.pow(s,2)?n:0);c+='<div id="'.concat(u,"player-container-").concat(h,'" style="border:1px solid ').concat(this.oPluginColor.borderColor,"; box-sizing: border-box; position: relative; float: left; overflow: hidden; background-color: ").concat(this.oPluginColor.subBackgroundColor,"; width: ").concat(_,"px; height: ").concat(p,'px">')+'<div id="'.concat(u,"video-container-").concat(h,'" class="video-container" style="object-fit: fill; position:absolute; width: 100%; height: 100%">')+'<canvas id="'.concat(u,"_playCanvas").concat(h,'" class="play-window" style="object-fit: fill; position:absolute; top:').concat(d,"px; left:").concat(l,'px; background-color: transparent;" wid="').concat(h,'" width="').concat(f,'" height="').concat(m,'"></canvas>')+'<video autoplay muted id="'.concat(u,"_playWindow").concat(h,'" class="play-window" style="object-fit: fill; position:absolute; top:').concat(d,"px; left:").concat(l,'px;" wid="').concat(h,'" width="').concat(f,'" height="').concat(m,'"></video>')+'<img class="play-window" style="display:none;position:absolute; top:'.concat(d,"px; left:").concat(l,'px;" id="').concat(u,"_playImg").concat(h,'" src="">')+'<canvas id="'.concat(u,"_zoomCanvas").concat(h,'" class="zoom-window" style="position:absolute; top:').concat(d,"px; left:").concat(l,'px;" wid="').concat(h,'" width="').concat(f,'" height="').concat(m,'"></canvas>')+'<canvas id="'.concat(u,"_canvas_draw").concat(h,'" class="draw-window" style="position:absolute; top:').concat(d,"px; left:").concat(l,'px;" wid="').concat(h,'" width="').concat(f,'" height="').concat(m,'"></canvas>')+"</div></div>"}this.oJSPlugin.html(c+="</div>"),this.oJSPlugin.find("video.play-window").hide(),!this.options.onlyPlayedAllowSelected&&this.options.showSelectedBorder&&this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(0).css("border","1px solid "+this.oPluginColor.selectBorderColor)}},{key:"_createRegularWindows",value:function(){for(var e,t=parseInt(this.options.iCurrentSplit/10,10),n=this.options.iCurrentSplit%10,r=t*n,i=this.options.iWidth%n,o=this.options.iHeight%t,a=(this.options.iWidth-i-2*n)/n,s=(this.options.iHeight-o-2*t)/t,u=(this.options.iWidth-i)/n,l=(this.options.iHeight-o)/t,d=this.options.szId,c=(this.oJSPlugin=S("#"+d),0),h=0,f=("customRatio"===this.options.displayMode&&(0===(e=this._calcWindowWidthHeight(a,s)).fixMode?c=(a-e.width)/2:h=(s-e.height)/2,a=e.width,s=e.height),'<div class="parent-wnd" style="overflow:hidden;width:100%; height:100%; position: relative;">'),m=0;m<r;m++){var _=a+(m%n==n-1?i:0),p=s+(r<=m+t?o:0),y=u+(m%n==n-1?i:0),v=l+(r<=m+t?o:0);f+='<div id="'.concat(d,"player-container-").concat(m,'" style="border:1px solid ').concat(this.oPluginColor.borderColor,"; box-sizing: border-box; position: relative; float: left; overflow: hidden; background-color: ").concat(this.oPluginColor.subBackgroundColor,"; width: ").concat(y,"px; height: ").concat(v,'px">')+'<div id="'.concat(d,"video-container-").concat(m,'" class="video-container" style="object-fit: fill; position:absolute; width: 100%; height: 100%"><canvas id="').concat(d,"_playCanvas").concat(m,'" class="play-window" style="object-fit: fill; position:absolute; top:').concat(h,"px; left:").concat(c,'px; background-color: transparent;" wid="').concat(m,'" width="').concat(_,'" height="').concat(p,'"></canvas>')+'<video autoplay muted id="'.concat(d,"_playWindow").concat(m,'" class="play-window" style="object-fit: fill; position:absolute; top:').concat(h,"px; left:").concat(c,'px;" wid="').concat(m,'" width="').concat(_,'" height="').concat(p,'"></video>')+'<img class="play-window" style="display:none;position:absolute; top:'.concat(h,"px; left:").concat(c,'px;" id="').concat(d,"_playImg").concat(m,'" src="">')+'<canvas id="'.concat(d,"_zoomCanvas").concat(m,'" class="zoom-window" style="position:absolute; top:').concat(h,"px; left:").concat(c,'px;" wid="').concat(m,'" width="').concat(_,'" height="').concat(p,'"></canvas>')+'<canvas id="'.concat(d,"_canvas_draw").concat(m,'" class="draw-window" style="position:absolute; top:').concat(h,"px; left:").concat(c,'px;" wid="').concat(m,'" width="').concat(_,'" height="').concat(p,'"></canvas>')+"</div></div>"}this.oJSPlugin.html(f+="</div>")}},{key:"_createWindows",value:function(e,t){e&&t&&(this.options.iWidth=e,this.options.iHeight=t),this.generalScreenSplitMode.includes(this.options.iCurrentSplit)?this._createGeneralWindows():this.irregularScreenSplitMode.includes(this.options.iCurrentSplit)?(this._createGeneralWindows(),this.JS_ArrangeWindow(this.options.iCurrentSplit)):this._createRegularWindows()}},{key:"_createCustomWindows",value:function(e,t){var n=e.width(),r=e.height(),i=(e.find(".video-container").element&&e.find(".video-container").parent()&&e.find(".video-container").parent().remove(),this.options.szId),i='\n <div id="'.concat(i,"player-container-").concat(t,'" style="border:1px solid ').concat(this.oPluginColor.borderColor,"; box-sizing: border-box; position: relative; float: left; overflow: hidden; background-color: ").concat(this.oPluginColor.backgroundColor,'; width: 100%; height: 100%">\n <div id="').concat(i,"video-container-").concat(t,'" class="video-container" style="object-fit: fill; position:absolute; width: 100%; height: 100%">\n <canvas id="').concat(i,"_playCanvas").concat(t,'" class="play-window" wid="').concat(t,'" width="').concat(n,'" height="').concat(r,'" style="background-color: none;"></canvas>\n <video autoplay muted id="').concat(i,"_playWindow").concat(t,'" class="play-window" style="object-fit: fill;" wid="').concat(t,'" width="').concat(n,'" height="').concat(r,'"></video>\n <img class="play-window" style="display:none;position:absolute; top:0; left:0;" id="').concat(i,"_playImg").concat(t,'" src="">\n <canvas id="').concat(i,"_zoomCanvas").concat(t,'" class="zoom-window" style="position:absolute; top:0; left:0;" wid="').concat(t,'" width="').concat(n,'" height="').concat(r,'"></canvas>\n <canvas id="').concat(i,"_canvas_draw").concat(t,'" class="draw-window" style="position:absolute; top:0; left:0;" wid="').concat(t,'" width="').concat(n,'" height="').concat(r,'"></canvas>\n </div>\n </div>\n ');e.append(i),this.oJSPlugin.hasClass("parent-wnd")||this.oJSPlugin.addClass("parent-wnd"),this.oJSPlugin.find("video.play-window").hide()}},{key:"arrangeCustomWindow",value:function(){for(var e=this.options.iCurrentSplit,t=this.options.iCurrentSplit,n=this.options.aCustom,r=(n&&(e=1/n[0].width,t=1/n[0].height),this.options.iWidth%e),i=this.options.iHeight%t,o=(this.options.iWidth-r-2*e)/e,a=(this.options.iHeight-i-2*t)/t,s=(this.options.iWidth-r)/e,u=(this.options.iHeight-i)/t,l=null,d=null,c=null,h=null,f=null,m=null,_=this.oJSPlugin.find(".parent-wnd").eq(0).children(),p=_.length,y=0;y<p;y++){var v=o+(y%e==e-1?r:0),g=a+(y+t>=Math.pow(t,2)?i:0),w=s+(y%e==e-1?r:0),b=u+(y+t>=Math.pow(t,2)?i:0),w=((l=_.eq(y)).css("display","block"),l.css("width",w+"px"),l.css("height",b+"px"),l.css("left",0),l.css("top",0),(d=l.find(".draw-window")).attr("width",v),d.attr("height",g),d.css("left",0),d.css("top",0),(c=l.find("video.play-window")).attr("width",v),c.attr("height",g),c.css("left",0),c.css("top",0),(h=l.find("canvas.play-window")).attr("width",v),h.attr("height",g),h.css("left",0),h.css("top",0),h.css("width",v+"px"),h.css("height",g+"px"),(f=l.find("img.play-window")).css("width",v+"px"),f.css("height",g+"px"),f.css("left",0),f.css("top",0),(m=l.find(".zoom-window")).attr("width",v),m.attr("height",g),m.css("left",0),m.css("top",0),this.aWndList[y]);w.bPlay?h.css("background-color",this.oPluginColor.subBackgroundColor):h.css("background-color","transparent"),I===w.windowMode?this._updateFishEyePlayCanvas(y):A===w.iMode&&w.oPlayCtrl&&w.oPlayCtrl.JSPlayM4_SetCanvasSize&&w.oPlayCtrl.JSPlayM4_SetCanvasSize(v,g),O===w.iMode&&w.bEZoom&&(w.stDisplayRect={top:0,left:0,right:v,bottom:g},w.iRatio_x=1,w.iRatio_y=1,w.iZoomNum=0)}_.css("border","1px solid "+this.oPluginColor.borderColor),!this.options.onlyPlayedAllowSelected&&this.options.showSelectedBorder&&_.eq(this.iCurrentWndIndex).find(".play-window").eq(0).css("border","1px solid "+this.oPluginColor.selectBorderColor)}},{key:"_updateGeneralWindows",value:function(){for(var e,t=this.oJSPlugin.find(".parent-wnd").eq(0).children().elements.length,n=this.options.iWidth%this.options.iCurrentSplit,r=this.options.iHeight%this.options.iCurrentSplit,i=(this.options.iWidth-n-2*this.options.iCurrentSplit)/this.options.iCurrentSplit,o=(this.options.iHeight-r-2*this.options.iCurrentSplit)/this.options.iCurrentSplit,a=(this.options.iWidth-n)/this.options.iCurrentSplit,s=(this.options.iHeight-r)/this.options.iCurrentSplit,u=this.options.iCurrentSplit,l=0,d=0,c=("customRatio"===this.options.displayMode&&(0===(e=this._calcWindowWidthHeight(i,o)).fixMode?l=(i-e.width)/2:d=(o-e.height)/2,i=e.width,o=e.height),null),h=null,f=null,m=null,_=null,p=0;p<t;p++){var y=i+(p%u==u-1?n:0),v=o+(p+u>=Math.pow(u,2)?r:0),g=a+(p%u==u-1?n:0),w=s+(p+u>=Math.pow(u,2)?r:0),b=this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(p),g=(b.css("display","block"),b.css("width",g+"px"),b.css("height",w+"px"),(c=b.find(".draw-window")).attr("width",y),c.attr("height",v),c.css("left",l+"px"),c.css("top",d+"px"),(h=b.find("video.play-window")).attr("width",y),h.attr("height",v),h.css("left",l+"px"),h.css("top",d+"px"),(f=b.find("canvas.play-window")).attr("width",y),f.attr("height",v),f.css("left",l+"px"),f.css("top",d+"px"),f.css("width",y+"px"),f.css("height",v+"px"),(_=b.find("img.play-window")).css("width",y+"px"),_.css("height",v+"px"),_.css("left",l+"px"),_.css("top",d+"px"),(m=b.find(".zoom-window")).attr("width",y),m.attr("height",v),m.css("left",l+"px"),m.css("top",d+"px"),this.aWndList[p]);g.bPlay?f.css("background-color",this.oPluginColor.subBackgroundColor):f.css("background-color","transparent"),I===g.windowMode?this._updateFishEyePlayCanvas(p):A===g.iMode&&g.oPlayCtrl&&g.oPlayCtrl.JSPlayM4_SetCanvasSize&&g.oPlayCtrl.JSPlayM4_SetCanvasSize(y,v),O===g.iMode&&g.bEZoom&&(g.stDisplayRect={top:0,left:0,right:y,bottom:v},g.iRatio_x=1,g.iRatio_y=1,g.iZoomNum=0)}}},{key:"_updateIrregularWindows",value:function(){var l=this,e=xn[this.options.iCurrentSplit],d=e.rowSplit,c=e.colSplit,h=e.windowsConfig,f=this.options.iWidth%c,m=this.options.iHeight%d,_=null,p=null,y=null,v=null,g=null;Object.keys(h).forEach(function(e){var t,n,r,i,o,a,s,u;h[e]&&(u=(s=h[e]).row,o=s.col,i=s.right,s=s.bottom,r=(l.options.iWidth-f)/c,a=(l.options.iHeight-m)/d,n=t=0,o=r=r*o+(i?f:0),a=i=a*u+(s?m:0),"customRatio"===l.options.displayMode&&(0===(u=l._calcWindowWidthHeight(r,i)).fixMode?t=(r-u.width)/2:n=(i-u.height)/2,o=u.width-2,a=u.height-2),(s=l.oJSPlugin.find(".parent-wnd").eq(0).children().eq(e)).css("display","block"),s.css("width",r+"px"),s.css("height",i+"px"),(_=s.find(".draw-window")).attr("width",o),_.attr("height",a),_.css("left",t+"px"),_.css("top",n+"px"),(p=s.find("video.play-window")).attr("width",o),p.attr("height",a),p.css("left",t+"px"),p.css("top",n+"px"),(y=s.find("canvas.play-window")).attr("width",o),y.attr("height",a),y.css("left",t+"px"),y.css("top",n+"px"),y.css("width",o+"px"),y.css("height",a+"px"),(g=s.find("img.play-window")).css("width",o+"px"),g.css("height",a+"px"),g.css("left",t+"px"),g.css("top",n+"px"),(v=s.find(".zoom-window")).attr("width",o),v.attr("height",a),v.css("left",t+"px"),v.css("top",n+"px"),(u=l.aWndList[e]).bPlay?y.css("background-color",l.oPluginColor.subBackgroundColor):y.css("background-color","transparent"),I===u.windowMode?l._updateFishEyePlayCanvas(e):A===u.iMode&&u.oPlayCtrl&&u.oPlayCtrl.JSPlayM4_SetCanvasSize&&u.oPlayCtrl.JSPlayM4_SetCanvasSize(o,a),O===u.iMode)&&u.bEZoom&&(u.stDisplayRect={top:0,left:0,right:o,bottom:a},u.iRatio_x=1,u.iRatio_y=1,u.iZoomNum=0)})}},{key:"_updateSpecialWindows",value:function(){this._updateIrregularWindows();var e=xn[this.options.iCurrentSplit],t=e.rowSplit,e=e.colSplit,n=this.options.iWidth%e,r=this.options.iHeight%t,e=(this.options.iWidth-n)/e,t=(this.options.iHeight-r)/t;if(5006===this.options.iCurrentSplit){var i=this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(4),o=this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(5);i.css("top",-t+"px"),o.css("top",-t+"px")}else if(5008===this.options.iCurrentSplit){var i=this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(7),o=this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(8),a=this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(9),s=this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(10),u=this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(11),l=this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(12);i.css("left",-3*e+"px"),o.css("left",3*e+"px"),o.css("top",-t+"px"),a.css("left",-(e+n)+"px"),s.css("left",-(e+n)+"px"),u.css("left",-(e+n)+"px"),l.css("top",-(t+r)+"px"),l.css("left",3*e+"px")}else if(5010===this.options.iCurrentSplit){for(var d=this.oJSPlugin.find(".parent-wnd").eq(0).children(),c={},h=14;h<=31;h++)c["playContainer".concat(h)]=d.eq(h);i=function(e,t,n){for(var r=e;r<=t;r++)c["playContainer".concat(r)].css("left",n)},o=function(e,t,n,r){for(var i=e;i<=t;i++){var o=c["playContainer".concat(i)];o.css("left",n),o.css("top",r)}};i(14,15,-5*e+"px"),o(16,17,5*e+"px",-t+"px"),i(18,22,-(2*e+n)+"px"),o(23,24,5*e+"px",-t+"px"),i(25,29,-(2*e+n)+"px"),o(30,31,5*e+"px",-(t+r)+"px")}}},{key:"_updateRegularWindows",value:function(){for(var e,t=parseInt(this.options.iCurrentSplit/10,10),n=this.options.iCurrentSplit%10,r=t*n,i=this.options.iWidth%n,o=this.options.iHeight%t,a=(this.options.iWidth-i-2*n)/n,s=(this.options.iHeight-o-2*t)/t,u=(this.options.iWidth-i)/n,l=(this.options.iHeight-o)/t,d=(this.oJSPlugin=S("#"+this.options.szId),0),c=0,h=("customRatio"===this.options.displayMode&&(0===(e=this._calcWindowWidthHeight(a,s)).fixMode?d=(a-e.width)/2:c=(s-e.height)/2,a=e.width,s=e.height),null),f=null,m=null,_=null,p=null,y=0;y<r;y++){var v=a+(y%n==n-1?i:0),g=s+(r<=y+t?o:0),w=u+(y%n==n-1?i:0),b=l+(r<=y+t?o:0),M=this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(y),w=(M.css("display","block"),M.css("width",w+"px"),M.css("height",b+"px"),(h=M.find(".draw-window")).attr("width",v),h.attr("height",g),h.css("left",d+"px"),h.css("top",c+"px"),(f=M.find("video.play-window")).attr("width",v),f.attr("height",g),f.css("left",d+"px"),f.css("top",c+"px"),(m=M.find("canvas.play-window")).attr("width",v),m.attr("height",g),m.css("left",d+"px"),m.css("top",c+"px"),m.css("width",v+"px"),m.css("height",g+"px"),(p=M.find("img.play-window")).css("width",v+"px"),p.css("height",g+"px"),p.css("left",d+"px"),p.css("top",c+"px"),(_=M.find(".zoom-window")).attr("width",v),_.attr("height",g),_.css("left",d+"px"),_.css("top",c+"px"),this.aWndList[y]);w.bPlay?m.css("background-color",this.oPluginColor.subBackgroundColor):m.css("background-color","transparent"),I===w.windowMode?this._updateFishEyePlayCanvas(y):A===w.iMode&&w.oPlayCtrl&&w.oPlayCtrl.JSPlayM4_SetCanvasSize&&w.oPlayCtrl.JSPlayM4_SetCanvasSize(v,g),O===w.iMode&&w.bEZoom&&(w.stDisplayRect={top:0,left:0,right:v,bottom:g},w.iRatio_x=1,w.iRatio_y=1,w.iZoomNum=0)}}},{key:"_updateWnd",value:function(){this.options.aCustom&&0<this.options.aCustom.length?this.arrangeCustomWindow():this.supportCustomContainer?this.JS_UpdateCustomContainer():this.options.iWidth<=0||this.options.iHeight<=0||(this.generalScreenSplitMode.includes(this.options.iCurrentSplit)?this._updateGeneralWindows():this.irregularScreenSplitMode.includes(this.options.iCurrentSplit)?this.irregularSpecialSplitMode.includes(this.options.iCurrentSplit)?this._updateSpecialWindows():this._updateIrregularWindows():this._updateRegularWindows())}},{key:"_specifiesWindowAsSingleWindow",value:function(e){if(!this.supportCustomContainer)for(var t,n=this.oJSPlugin.find(".parent-wnd").eq(0).children().elements.length,r=this.options.iWidth-2,i=this.options.iHeight-2,o=0,a=0,s=("customRatio"===this.options.displayMode&&(0===(t=this._calcWindowWidthHeight(r,i)).fixMode?o=(r-t.width)/2:a=(i-t.height)/2,r=t.width,i=t.height),null),u=null,l=null,d=null,c=null,h=0;h<n;h++){var f,m=this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(h);m.css("display","block"),h===e?(m.css("width",this.options.iWidth+"px"),m.css("height",this.options.iHeight+"px"),m.css("left",0),m.css("top",0),(s=m.find(".draw-window")).attr("width",r),s.attr("height",i),s.css("left",o+"px"),s.css("top",a+"px"),(u=m.find("video.play-window")).attr("width",r),u.attr("height",i),u.css("left",o+"px"),u.css("top",a+"px"),(l=m.find("canvas.play-window")).attr("width",r),l.attr("height",i),l.css("left",o+"px"),l.css("top",a+"px"),l.css("width",r+"px"),l.css("height",i+"px"),(c=m.find("img.play-window")).css("width",r+"px"),c.css("height",i+"px"),c.css("left",o+"px"),c.css("top",a+"px"),(d=m.find(".zoom-window")).attr("width",r),d.attr("height",i),d.css("left",o+"px"),d.css("top",a+"px"),(f=this.aWndList[h]).bPlay?l.css("background-color",this.oPluginColor.subBackgroundColor):l.css("background-color","transparent"),I===f.windowMode?this._updateFishEyePlayCanvas(h):A===f.iMode&&f.oPlayCtrl&&f.oPlayCtrl.JSPlayM4_SetCanvasSize&&f.oPlayCtrl.JSPlayM4_SetCanvasSize(r,i)):m.css("display","none")}}},{key:"_dealWndSelect",value:function(a){var s,u,e,l,d,t,c=this;(1<arguments.length&&void 0!==arguments[1]&&arguments[1]||this.iCurrentWndIndex!==a&&this.aWndList)&&(this.iCurrentWndIndex=a,(s=this.aWndList[a]).bEZoom||s.b3DZoom)&&(this.oJSPlugin.find(".draw-window").off(),this.oDrawCanvas.setDrawStatus(!1),this.oDrawCanvas&&this.oDrawCanvas.destroySelf(),this.oDrawCanvas=new Pn("".concat(this.options.szId,"_canvas_draw").concat(a)),this.oDrawCanvas.setShapeType("Rect"),this.oDrawCanvas.setDrawStyle(this.oZoomDrawStyle.drawColor,this.oZoomDrawStyle.fillColor,this.oZoomDrawStyle.translucent),s.bEZoom?(u=null,u=(O===s.iMode?"".concat(this.options.szId,"_playWindow"):"".concat(this.options.szId,"_playCanvas")).concat(a),e=document.getElementById(u).getBoundingClientRect(),l=e.width,d=e.height,this.oDrawCanvas.setDrawStatus(!0,function(e){var t,n,r,i,o=document.getElementById("".concat(c.options.szId,"_zoomCanvas").concat(a));e.startPos&&e.endPos&&(e.startPos[0]>e.endPos[0]?(A===s.iMode?s.oPlayCtrl.JSPlayM4_SetDisplayRegion&&s.oPlayCtrl.JSPlayM4_SetDisplayRegion(u,0,s.iYUVWidth,0,s.iYUVHeight,!0):O===s.iMode&&s.refreshInterval&&(clearInterval(s.refreshInterval),o.getContext("2d").clearRect(0,0,l,d)),s.stDisplayRect={top:0,left:0,right:l,bottom:d},s.iRatio_x=1,s.iRatio_y=1,s.iZoomNum=0,c.fEDrawCallback&&c.fEDrawCallback({startX:0,startY:0,endX:l,endY:d,width:l,height:d})):(o=e.startPos[0],t=e.endPos[0],n=e.startPos[1],e=e.endPos[1],t-o<16||e-n<16||l<t-o||d<e-n||(A===s.iMode&&1!==(s.oPlayCtrl.JSPlayM4_SetDisplayRegion&&s.oPlayCtrl.JSPlayM4_SetDisplayRegion(u,o,t,n,e))&&(i=s.oPlayCtrl.JSPlayM4_GetLastError(),console.log("errorCode:"+i)),0!==s.iZoomNum&&(o=Math.round(o/s.iRatio_x)+s.stDisplayRect.left,n=Math.round(n/s.iRatio_y)+s.stDisplayRect.top,t=Math.round(t/s.iRatio_x)+s.stDisplayRect.left,e=Math.round(e/s.iRatio_y)+s.stDisplayRect.top),i=e-n,(r=t-o)<3)||i<3||(s.stDisplayRect={top:n,left:o,right:t,bottom:e},s.iRatio_x=l/r,s.iRatio_y=d/i,s.iZoomNum++,O===s.iMode&&(s.refreshInterval&&clearInterval(s.refreshInterval),c._simulateZoom(a,s.stDisplayRect),s.refreshInterval=setInterval(function(){c._simulateZoom(a,s.stDisplayRect)},300)),c.fEDrawCallback&&c.fEDrawCallback({startX:o/l,startY:n/d,endX:t/l,endY:e/d,width:l,height:d}))))})):s.b3DZoom&&(t=document.getElementById("".concat(this.options.szId,"_canvas_draw").concat(a)),this.oDrawCanvas.setDrawStatus(!0,function(e){c.f3DDrawCallback(e,{width:t.width,height:t.height})})))}},{key:"_initCallbackEvent",value:function(){var o=this;this.oEventCallback={windowEventSelect:function(e){o.oEventCallback.onGetSelectWndInfo&&o.oEventCallback.onGetSelectWndInfo(e)},pluginErrorHandler:function(e,t,n){o.oEventCallback.onPluginEventHandler&&o.oEventCallback.onPluginEventHandler(e,t,n)},secretKeyError:function(e){o.oEventCallback.onSecretKeyError&&o.oEventCallback.onSecretKeyError(e)},playInfoCallBack:function(e,t,n){o.oEventCallback.onPlayInfoCallBack&&o.oEventCallback.onPlayInfoCallBack(e,t,n)},firstFrameCallBack:function(e){o.oEventCallback.onFirstFrameDisplay&&o.oEventCallback.onFirstFrameDisplay(e)},windowEventOver:function(e){o.oEventCallback.onWindowEventOver&&o.oEventCallback.onWindowEventOver(e)},windowEventOut:function(e){o.oEventCallback.onWindowEventOut&&o.oEventCallback.onWindowEventOut(e)},windowEventUp:function(e){o.oEventCallback.onWindowEventUp&&o.oEventCallback.onWindowEventUp(e)},subWindowEventUp:function(e,t){o.oEventCallback.onSubWindowEventUp&&o.oEventCallback.onSubWindowEventUp(e,t)},windowFullCcreenChange:function(e){o.oEventCallback.onWindowFullCcreenChange&&o.oEventCallback.onWindowFullCcreenChange(e)},firstFrameDisplay:function(e,t,n){o.oEventCallback.onFirstFrameDisplay&&o.oEventCallback.onFirstFrameDisplay(e,t,n)},performanceLack:function(){o.oEventCallback.onPerformanceLack&&o.oEventCallback.onPerformanceLack()},fullFillContainerEvent:function(e,t){o.oEventCallback.onFullFillContainerEvent&&o.oEventCallback.onFullFillContainerEvent(e,t)},mouseEvent:function(e,t,n,r,i){o.oEventCallback.onMouseEvent&&o.oEventCallback.onMouseEvent(e,t,n,r,i)}}}},{key:"_PTZ2Window",value:function(e,t,n,r,i){var o=i.fPTZPositionX,i=i.fPTZPositionY,n=this.aWndList[n],a=n.canvasCorrectMap[r],r=document.getElementById(r),s=r.width,r=r.height,u=(n.subPortOperationMap[n.currentfishPort].diffY=e&&768===a?n.subPortOperationMap[n.currentfishPort].startY-t[1]:t[1]-n.subPortOperationMap[n.currentfishPort].startY,(n.subPortOperationMap[n.currentfishPort].totalY+n.subPortOperationMap[n.currentfishPort].diffY)/r*2*Math.PI),r=n.subPortOperationMap[n.currentfishPort].diffY/(2*r),l=Math.atan2(i-.5,o-.5),o=o+r*Math.cos(l),i=i+r*Math.sin(l),r=(!e||768!==a&&n.fishPlaceType!==Hn?n.subPortOperationMap[n.currentfishPort].diffX=t[0]-n.subPortOperationMap[n.currentfishPort].startX:n.subPortOperationMap[n.currentfishPort].diffX=n.subPortOperationMap[n.currentfishPort].startX-t[0],(n.subPortOperationMap[n.currentfishPort].totalX+n.subPortOperationMap[n.currentfishPort].diffX)/s*2*Math.PI),e=Math.sqrt(Math.pow(o-.5,2)+Math.pow(i-.5,2)),a=-r,t=.5+e*Math.cos(a+l),n=.5+e*Math.sin(a+l),s={};return s.PTZPositionX=t,s.PTZPositionY=n,s.inputXValue=r,s.inputYValue=u,s}},{key:"_showCoords",value:function(e,t,n,r,i){var o=this._checkPlay(t);if(0===o){var o=this.aWndList[t],e=[e.clientX,e.clientY],a={upDateType:4,fValue:0,fPTZParam:{fPTZPositionX:0,fPTZPositionY:0},fPTZZoom:0},s=o.canvasCorrectMap[n],u=o.canvasSubPortMap[n];if(r){var l=document.getElementById(n),d=l.getBoundingClientRect(),c=l.width,l=l.height,c=(e[0]-d.left)/c,d=(e[1]-d.top)/l;if(0===s||o.fishPlaceType===Hn)return a.upDateType=8,a.fPTZParam.fPTZPositionX=c,a.fPTZParam.fPTZPositionY=d,void o.oPlayCtrl.JSPlayM4_FEC_SetParam(o.currentfishPort,a);if(768===s)return l=this._PTZ2Window(r,e,t,n,i),a.upDateType=8,a.fPTZParam.fPTZPositionX=l.PTZPositionX,a.fPTZParam.fPTZPositionY=l.PTZPositionY,void o.oPlayCtrl.JSPlayM4_FEC_SetParam(o.currentfishPort,a)}var h=this._PTZ2Window(r,e,t,n,i);if(s<=768){switch(s){case 768:case 512:a.upDateType=4;break;case 256:if(a.upDateType=8,.4<Math.sqrt(Math.pow(h.PTZPositionX-.5,2)+Math.pow(h.PTZPositionY-.5,2)))return}a.fValue=h.inputXValue,a.fPTZParam.fPTZPositionX=h.PTZPositionX,a.fPTZParam.fPTZPositionY=h.PTZPositionY,o.oPlayCtrl.JSPlayM4_FEC_SetParam(u,a)}else o.oPlayCtrl.JSPlayM4_FEC_SetViewParam(u,2,h.inputXValue),o.oPlayCtrl.JSPlayM4_FEC_SetViewParam(u,1,h.inputYValue)}}},{key:"_initEvent",value:function(){var t=this,o=this,a=!1;this._initCallbackEvent(),this.supportCustomContainer||this.oJSPlugin.find(".parent-wnd").eq(0).children().each(function(e,n){var i,r,t=S(this);t.off().on("mousedown",function(){o.oJSPlugin.find(".parent-wnd").eq(0).children().css("border","1px solid "+o.oPluginColor.borderColor);var e,t=parseInt(o.oJSPlugin.find(".parent-wnd").eq(0).children().eq(n).find(".play-window").eq(0).attr("wid"),10);isNaN(t)||(e=o.oEventCallback&&o.oEventCallback.windowEventSelect(t),o._dealWndSelect(t),(!o.options.onlyPlayedAllowSelected||o.options.onlyPlayedAllowSelected&&e)&&o.options.showSelectedBorder&&o.oJSPlugin.find(".parent-wnd").eq(0).children().eq(n).css("border","1px solid "+o.oPluginColor.selectBorderColor))}),r=n,(i=t).on("mouseover",function(e){o.oEventCallback.windowEventOver(r),e.stopPropagation()}),i.on("mouseout",function(e){o.oEventCallback.windowEventOut(r),e.stopPropagation()}),i.on("mousedown",function(e){var t,n;a=!0,e.target!==i[0]&&(t=e.target.width,n=e.target.height,t=e.offsetX/t,n=e.offsetY/n,2===e.button?o.oEventCallback.mouseEvent(Qn,t,n,r,{offsetX:e.offsetX,offsetY:e.offsetY}):0===e.button&&o.oEventCallback.mouseEvent(Xn,t,n,r,{offsetX:e.offsetX,offsetY:e.offsetY}),e.stopPropagation())}),i.on("mousemove",function(e){var t,n;e.target!==i[0]&&(t=e.target.width,n=e.target.height,t=e.offsetX/t,n=e.offsetY/n,a?o.oEventCallback.mouseEvent(nr,t,n,r,{offsetX:e.offsetX,offsetY:e.offsetY}):o.oEventCallback.mouseEvent(tr,t,n,r,{offsetX:e.offsetX,offsetY:e.offsetY}),o._mousemoveProcess(e,r))}),i.on("mousewheel",function(e){var t=e.target.width,n=e.target.height,t=e.offsetX/t,n=e.offsetY/n;o.oEventCallback.mouseEvent(rr,t,n,r),e.stopPropagation()}),i.on("mouseup",function(e){a=!1,o.oEventCallback.windowEventUp(r);var t=e.target.width,n=e.target.height,t=e.offsetX/t,n=e.offsetY/n;2===e.button?o.oEventCallback.mouseEvent(er,t,n,r):0===e.button&&o.oEventCallback.mouseEvent($n,t,n,r)}),i.on("dblclick",function(e){var t=o.iCurrentWndIndex,n=e.target.width,r=e.target.height,n=e.offsetX/n,r=e.offsetX/r;if(o.oEventCallback.mouseEvent(Kn,n,r,t),o.aWndList[t].bPlay){n=document.fullscreen||document.webkitIsFullScreen||document.mozFullScreen||!1;if(o.options.fullFillContainerMode)o.wndOnFullFillContainerState?(o.wndOnFullFillContainerState=!1,o._updateWnd(t),o.oEventCallback.fullFillContainerEvent(t,!1)):(o._specifiesWindowAsSingleWindow(t),o.wndOnFullFillContainerState=!0,o.oEventCallback.fullFillContainerEvent(t,!0)),o._dealWndSelect(t,!0);else if(o.options.bSupporDoubleClickFull){r=i.get(0);if(n){if(o.oJSPlugin.find(".parent-wnd").eq(0).width()===window.innerWidth)return;document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen&&document.mozCancelFullScreen(),o.oVideoWindow=null,o.bPluginFull=!1}else o.oVideoWindowSize={width:i.width(),height:i.height(),scrollTop:o.oJSPlugin.find(".parent-wnd").eq(0).element.scrollTop},r.requestFullScreen?r.requestFullScreen():r.webkitRequestFullScreen?r.webkitRequestFullScreen():r.mozRequestFullScreen&&r.mozRequestFullScreen(),o.oVideoWindow=i;e.stopPropagation()}}})}),this.fullScreenChange||(this.fullScreenChange=function(){var e=document.fullscreen||document.webkitIsFullScreen||document.mozFullScreen||!1;t.oEventCallback.windowFullCcreenChange(e)}),void 0!==document.fullScreen?document.addEventListener("fullscreenchange",this.fullScreenChange):void 0!==document.webkitIsFullScreen?document.addEventListener("webkitfullscreenchange",this.fullScreenChange):void 0!==document.mozFullScreen&&document.addEventListener("mozfullscreenchange",this.fullScreenChange)}},{key:"_fishEyeSpecialProcess",value:function(e,t){if(this.specialFishSplitMode.includes(t)){var n=this.options.szId,r=0;if(7===t)r=e+"_4";else{if(15!==t)return;r=e+"_2"}var i,t=S("#"+"".concat(n,"sub-player-container-").concat(r)),e=t.eq(0).width(),n=t.eq(0).height(),r=t.offset();r&&(i=r.left,r=r.top,i=event.clientX-i,r=event.clientY-r,0<=i&&i<=e&&0<=r&&r<=n?t.css("z-index",0):t.css("z-index",-1))}}},{key:"_mousemoveProcess",value:function(e,t){var n=this.aWndList[t],r=n.fishEyeMode;n.bPlay&&0<r&&this._fishEyeSpecialProcess(t,r)}},{key:"_createPlayCtrl",value:(m=x(Y().mark(function e(i,o){var a,s,u,t,n,l,r=arguments;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=2<r.length&&void 0!==r[2]?r[2]:"",this._log.I("_createPlayCtrl load start code"),s=this.aWndList[i],u=this._playCtrlLoad.bind(this),(this.supportCustomContainer?((t=this.customContainerDomList[i]).find("video.play-window").hide(),t.find("canvas.play-window").show(),t.find("canvas.play-window")):(this.oJSPlugin.find("video.play-window").eq(i).hide(),this.oJSPlugin.find("canvas.play-window").eq(i).show(),this.oJSPlugin.find("canvas.play-window").eq(i))).css("background-color",this.oPluginColor.subBackgroundColor),t="".concat(this.options.szBasePath,"/playctrl/PlayCtrlWasm/playctrlV3/Decoder.js"),n="".concat(this.options.szBasePath,"/playctrl/PlayCtrlWasm/playctrlV1/Decoder.js"),window.wasmPlayerLoaded="function"==typeof window.JSPlayCtrl,window.wasmPlayerLoaded){e.next=11;break}return e.next=11,this._probeLibraryLoaded();case 11:return l=this,s.stateCallBack=function(e){var t=e.bSupHardDecHEVC,n=e.cmd,r=e.status;switch(n){case"loaded":s.bLoad||u(i,o,a),s.bSupHardDecHEVC=t,s.bLoad=!0;break;case"onebyone":r&&s.isPause&&(l.oStreamClient.resume(s.szStreamUUID),s.isStreamPause=!1,s.isPause=!1),r||s.isPause||(l._clearNoDataReceiveTimer(i),l.oStreamClient.pause(s.szStreamUUID),s.isStreamPause=!0,s.isPause=!0)}},e.next=15,this._supportSIMD();case 15:e.sent||(t="".concat(this.options.szBasePath,"/playctrl/PlayCtrlWasm/playctrlV3_NoSIMD/Decoder.js")),s.oPlayCtrl=new window.JSPlayCtrl(t,n,s.stateCallBack,this.userFlag,this.options.renderEngine,0,1);case 18:case"end":return e.stop()}},e,this)})),function(e,t){return m.apply(this,arguments)})},{key:"_supportSIMD",value:function(){return new Promise(function(e){window._getFSupportSIMD().then(function(){e(!0)},function(){e(!1)})})}},{key:"_openStream",value:function(e,s,u,i,o){var l=this,d=this.aWndList[u];return new Promise(function(n,a){var r=void 0!==i;d.szPlayType=r?"playback":"realplay",d.bNormalClose=!1,l.oStreamClient.openStream(e,s,function(){var t=x(Y().mark(function e(t){var n,r,i,o;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(d.bForceStop||t.szId&&t.szId!==d.szStreamUUID||d.lastStreamUUID){if(d.bForceStop=!1,d.lastStreamUUID)return e.next=5,l.oStreamClient.stop(d.lastStreamUUID);e.next=8}else e.next=16;break;case 5:d.lastStreamUUID="",e.next=15;break;case 8:if(t.szId&&t.szId!==d.szStreamUUID)return e.next=11,l.oStreamClient.stop(t.szId);e.next=13;break;case 11:e.next=15;break;case 13:return e.next=15,l._closeStreamAndDestroy(u);case 15:return e.abrupt("return",a({oError:{code:1014,msg:"forceStoped"},type:"customError"}));case 16:!t.bHead||d.bPlay?e.next=24:(d.bPlay=!0,d.aHead=new Uint8Array(t.buf),0===d.aHead[11]&&5===d.aHead[10]?d.streamType=Gn:1===d.aHead[11]&&0===d.aHead[10]&&(d.streamType=Jn),l.bHttps&&l.options.bSupportDecoder3&&("safari"!==l.browserType||"safari"===l.browserType&&g.isSafariSupportHardecode())?d.oPlayCtrl?1!==(n=l._playCtrlLoad(u,s.decodeEngine,s.playCmd))&&(l._log.I("".concat(n,": jsdecoder play faild.")),l.oEventCallback.pluginErrorHandler(u,n),a(n)):l._createPlayCtrl(u,s.decodeEngine,s.playCmd):"safari"!==l.browserType&&(!l.options.bSupportMSE||!l.bSupportHEVC&&d.streamType===Gn||0===d.aHead[11]&&192===d.aHead[10])||"none"!==l.waterMarkMode?(d.iMode=A,d.oPlayCtrl?1!==(n=l._playCtrlLoad(u,s.decodeEngine,s.playCmd))&&(l._log.I("".concat(n,": jsdecoder play faild.")),l.oEventCallback.pluginErrorHandler(u,n),a(n)):l._createPlayCtrl(u,s.decodeEngine,s.playCmd)):(d.iMode=O,l._createFlvPlayer(u),l._createRtpTransform(u,d.aHead)),l.oEventCallback.playInfoCallBack(u,Bn,d.iMode),e.next=41);break;case 24:if(d.bPlay)if(t.type&&"streamTransError"===t.type||t.statusString){if(25367169===t.errorCode)return e.abrupt("return");e.next=28}else e.next=33;else e.next=41;break;case 28:return e.next=30,l._closeStreamAndDestroy(u);case 30:6701===t.errorCode?l.oEventCallback.pluginErrorHandler(u,1002,t):l.oEventCallback.pluginErrorHandler(u,1001,t),e.next=37;break;case 33:if(!t.type||"exception"!==t.type&&"end"!==t.type){e.next=37;break}return e.next=36,l._closeStreamAndDestroy(u);case 36:l.oEventCallback.pluginErrorHandler(u,1002,t);case 37:if(O===d.iMode){if(d.bFrameForward&&l._streamControlForMSE(u),d.szTransformUUID){if(0<d.stashArray.length)for(;0<d.stashArray.length;)r=d.stashArray.shift(),l.oTransformManager.inputData(d.szTransformUUID,r.buf);l.oTransformManager.inputData(d.szTransformUUID,t.buf)}else d.stashArray.push(t);if(-1!==l.iCurrentSoundWnd&&l.iCurrentSoundWnd===u)if(l.bAudioLoad&&l.bAudioInitFinished){if(0<l.audioStashArray.length){for(;0<l.audioStashArray.length;)i=l.audioStashArray.shift(),l.oPlayCtrlAudio.JSPlayM4_InputData(i,i.length),0;l.audioStashArray=[]}o=new Uint8Array(t.buf),l.oPlayCtrlAudio.JSPlayM4_InputData(o,o.length),0}else l.audioStashArray.push(new Uint8Array(t.buf))}else l._feedData(u,t);d.szStorageUUID&&l.oStorageManager.inputData(d.szStorageUUID,t.buf),d.szVideoAudioMixinUUID&&l.oStorageManager.inputData(d.szVideoAudioMixinUUID,t.buf),l._refreshNoDataReceiveTimer(u);case 41:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}(),function(){var t=x(Y().mark(function e(t){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l._closeStreamAndDestroy(u);case 2:if(d.bForceStop)return d.bForceStop=!1,e.abrupt("return",a({oError:{code:1014,msg:"forceStoped"},type:"customError"}));e.next=5;break;case 5:1006===t||1005===t&&!d.bNormalClose?l.oEventCallback.pluginErrorHandler(u,1007):l.oEventCallback.pluginErrorHandler(u,1003),a();case 7:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}()).then(function(){var t=x(Y().mark(function e(t){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(d.bPlay=!1,d.szStreamUUID=t,d.bForceStop)return d.bForceStop=!1,e.next=6,l._closeStreamAndDestroy(u);e.next=7;break;case 6:return e.abrupt("return",a({oError:{code:1014,msg:"forceStoped"},type:"customError"}));case 7:l.oStreamClient.startPlay(t,i,o,s.playCmd).then(x(Y().mark(function e(){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r?(d.szPlayType="playback",d.iRate=1):d.szPlayType="realplay",d.bForceStop)return d.bForceStop=!1,e.next=5,l._closeStreamAndDestroy(u);e.next=6;break;case 5:return e.abrupt("return",a({oError:{code:1014,msg:"forceStoped"},type:"customError"}));case 6:n();case 7:case"end":return e.stop()}},e)})),function(){var t=x(Y().mark(function e(t){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l._closeStreamAndDestroy(u);case 2:l.oEventCallback.pluginErrorHandler(u,1003,t),a(t);case 4:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}());case 8:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}(),function(){var t=x(Y().mark(function e(t){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(d.bForceStop)return d.bForceStop=!1,e.next=4,l._closeStreamAndDestroy(u);e.next=5;break;case 4:return e.abrupt("return",a({oError:{code:1014,msg:"forceStoped"},type:"customError"}));case 5:l.oEventCallback.pluginErrorHandler(u,1003,t),a(t);case 7:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}())})}},{key:"_closeFileDownloadStream",value:function(e){var t=this;this.fileDownloadList[e].szStreamUUID&&this.oStreamClient.stop(this.fileDownloadList[e].szStreamUUID).then(function(){delete t.fileDownloadList[e]},function(){})}},{key:"JS_StopDownloadFile",value:function(n,r){var i=this;return this.fileDownloadList[n]&&this.fileDownloadList[n].szStorageUUID?new Promise(function(e,t){i.oStorageManager.stopRecord(i.fileDownloadList[n].szStorageUUID,r).then(function(){i._closeFileDownloadStream(n),i.fileDownloadList[n].szStorageUUID="",e()},function(e){t(e)})}):Promise.reject()}},{key:"_saveFile",value:function(i,o,a,s){var u=this,e=(4<arguments.length&&void 0!==arguments[4]?arguments[4]:{}).suffix,l=void 0===e||e;return new Promise(function(t,e){l&&o.indexOf(".mp4")<0&&o.indexOf(".MP4")<0&&(o+=".mp4"),o=o.replace(/[\/:*?"|]/g,"");var n,r=u.fileDownloadList[i].aHead;u.oStorageManager.startRecord(o,r,a,1,{cbEventHandler:(n=x(Y().mark(function e(t){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.JS_StopDownloadFile(i);case 2:setTimeout(function(){u.oEventCallback.pluginErrorHandler(i,t)},30);case 3:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),cbSecretKeyError:function(){u.JS_StopDownloadFile(i,function(){console.log("secretKeyError")}),u.oEventCallback.pluginErrorHandler(i,1017)},iPackage:0,nKeyType:1,pKeyData:s||"",nKeyLen:128}).then(function(e){u.fileDownloadList[i].szStorageUUID=e,t()},function(){e()})})}},{key:"_openStreamAndSaveFile",value:function(e,r,i,o,a,s,u,l){var d=this,c=this.fileDownloadList[i];return new Promise(function(t,n){d.oStreamClient.openStream(e,r,function(e){var t;e.bHead&&!c.bDownload?(c.bDownload=!0,c.aHead=new Uint8Array(e.buf),t=void 0===r.suffix||r.suffix,d._saveFile(i,s,u,l,{suffix:t}).catch(function(){d._closeFileDownloadStream(i),n()})):c.bDownload&&c.szStorageUUID&&(e.type&&"streamTransError"===e.type||e.statusString?(6701!==e.errorCode&&d.oEventCallback.pluginErrorHandler(i,1001,e),d.JS_StopDownloadFile(i),d.oEventCallback.pluginErrorHandler(i,1016)):!e.type||"exception"!==e.type&&"end"!==e.type?d.oStorageManager.inputData(c.szStorageUUID,e.buf):(d.JS_StopDownloadFile(i),d.oEventCallback.pluginErrorHandler(i,1016)),d.forceStopedState)&&(d._closeFileDownloadStream(i),n())},function(){c.bDownload?(d.JS_StopDownloadFile(i),d.oEventCallback.pluginErrorHandler(i,1016)):(d.JS_StopDownloadFile(i,function(){console.log("network abnormal interruption")}),d.oEventCallback.pluginErrorHandler(i,1007)),n()}).then(function(e){c.szStreamUUID=e,d.oStreamClient.startPlay(e,o,a).then(function(){var e=16;r.ezuikit&&(e=4),d.oStreamClient.setPlayRate(c.szStreamUUID,e,r.ezuikit).catch(function(){}),t()},function(e){d.JS_StopDownloadFile(i,function(){console.log("network abnormal interruption")}),d.oEventCallback.pluginErrorHandler(i,1007,e),n(e)})},function(e){d.oEventCallback.pluginErrorHandler(i,1007,e),n(e)})})}},{key:"attachMediaElement",value:function(e){var t=this.aWndList[e],e=(this.supportCustomContainer?this.customContainerDomList[e].find("video.play-window").eq(0):this.oJSPlugin.find("video.play-window").eq(e)).get(0);t.oMSE.attachMediaElement(e)}},{key:"JS_GetPluginVersion",value:function(){var t=this;return new Promise(function(e){e(t.szPluginVersion)})}},{key:"JS_SetWindowControlCallback",value:function(t){var n=this;return new Promise(function(e){n.oEventCallback||(n.oEventCallback={}),Object.keys(t).forEach(function(e){n.oEventCallback[e]=t[e]}),e()})}},{key:"JS_SetSecretKey",value:function(t,n){var r=this;return t<0||""===n||void 0===n?Promise.reject():new Promise(function(e){r.aWndList[t].szSecretKey=n,e()})}},{key:"JS_ArrangeWindow",value:function(i){var o=this,a=1<arguments.length&&void 0!==arguments[1]&&arguments[1],s=2<arguments.length?arguments[2]:void 0;return new Promise(function(e){if(o.irregularSpecialSplitMode.includes(o.options.iCurrentSplit))for(var t=o.oJSPlugin.find(".parent-wnd").eq(0).children(),n=0;n<o.iMaxWndNum;n++)t.eq(n).css("left",0),t.eq(n).css("top",0);var r;!o.generalScreenSplitMode.includes(i)||i<o.options.iMaxSplit?o.options.iCurrentSplit=i:o.options.iCurrentSplit=o.options.iMaxSplit,o.wndOnFullFillContainerState&&(o.wndOnFullFillContainerState=!1),o.options.aCustom=s||[],o._updateWnd(),a||(o.oJSPlugin.find(".parent-wnd").eq(0).children().css("border","1px solid "+o.oPluginColor.borderColor),r=o.oEventCallback&&o.oEventCallback.windowEventSelect(0),(!o.options.onlyPlayedAllowSelected||o.options.onlyPlayedAllowSelected&&r)&&o.options.showSelectedBorder&&o.oJSPlugin.find(".parent-wnd").eq(0).children().eq(0).css("border","1px solid "+o.oPluginColor.selectBorderColor),o._dealWndSelect(0)),e()})}},{key:"createSubContainer",value:function(e,t,n){var r,i=t,o=n,a=0,s=0,t=("customRatio"===this.options.displayMode&&(0===(r=this._calcWindowWidthHeight(t,n)).fixMode?a=(t-r.width)/2:s=(n-r.height)/2,i=r.width,o=r.height),this.options.szId);return'<div id="'.concat(t,"video-container-").concat(e,'" class="video-container"><canvas id="').concat(t,"_playCanvas").concat(e,'" class="play-window" style="object-fit: fill; position:absolute; top:').concat(s,"px; left:").concat(a,'px;" wid="').concat(e,'" width="').concat(i,'" height="').concat(o,'"></canvas>')+'<video autoplay muted id="'.concat(t,"_playWindow").concat(e,'" class="play-window" style="object-fit: fill; position:absolute; top:').concat(s,"px; left:").concat(a,'px;" wid="').concat(e,'" width="').concat(i,'" height="').concat(o,'"></video>')+'<img class="play-window" style="display:none;position:absolute; top:'.concat(s,"px; left:").concat(a,'px;" id="').concat(t,"_playImg").concat(e,'" src="">')+'<canvas id="'.concat(t,"_zoomCanvas").concat(e,'" class="zoom-window" style="position:absolute; top:').concat(s,"px; left:").concat(a,'px;" wid="').concat(e,'" width="').concat(i,'" height="').concat(o,'"></canvas>')+'<canvas id="'.concat(t,"_canvas_draw").concat(e,'" class="draw-window" style="position:absolute; top:').concat(s,"px; left:").concat(a,'px;" wid="').concat(e,'" width="').concat(i,'" height="').concat(o,'"></canvas></div>')}},{key:"_JSPlayFECGetPTZPort",value:function(e,n,r){return new Promise(function(t){e.oPlayCtrl.JSPlayM4_FEC_GetPTZPort(n,r,function(e){t(e)})})}},{key:"_bindFishEyeSubWindowEvent",value:function(m){var _=this.aWndList[m],p=this,y=!1,v=!1;_.fishEyeSubCanvasList.forEach(function(e){function t(){p.oEventCallback.subWindowEventUp(m,n),y=!1,_.bPlay&&(_.canvasCruiseMap[d]&&setTimeout(function(){_.canvasCruiseMap[d].bMouseDown=!1},300),p.aWndList[m].bEnableFECDrag)&&(p.aWndList[m].subPortOperationMap[_.currentfishPort].totalX+=p.aWndList[m].subPortOperationMap[_.currentfishPort].diffX,p.aWndList[m].subPortOperationMap[_.currentfishPort].totalY+=p.aWndList[m].subPortOperationMap[_.currentfishPort].diffY)}var d,c,h,n,f,r,i;_.subCanvasEventMap[e]||(_.subCanvasEventMap[e]={}),d=e,e=document.getElementById(d).parentNode,c=E[_.fishEyeMode].defaultPtzParam,h=_.fishEyeSubCanvasList,n=h.findIndex(function(e){return e===d}),f={fPTZPositionX:.5,fPTZPositionY:.5},c&&c[n]&&(f.fPTZPositionX=c[n].x,f.fPTZPositionY=c[n].y),r=function(){var t=x(Y().mark(function e(t){var n,r,i,o,a,s,u,l;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(y=!0,_.bPlay){e.next=3;break}return e.abrupt("return");case 3:if(_.canvasCruiseMap[d]&&(_.canvasCruiseMap[d].bMouseDown=y),n=t.clientX,r=t.clientY,s=document.getElementById(d),a=s.width,l=s.height,i=p.aWndList[m].canvasCorrectMap[d],o=p.aWndList[m].canvasSubPortMap[d],_.currentfishPort=o,_.currentfishCanvas=d,s=s.getBoundingClientRect(),a=(n-s.left)/a,s=(r-s.top)/l,Object.keys(p.aWndList[m].canvasCorrectMap).forEach(function(e){256===p.aWndList[m].canvasCorrectMap[e]&&(v=!0)}),!v||768!==i&&0!==i&&1024!==i){e.next=24;break}return e.next=20,p._JSPlayFECGetPTZPort(p.aWndList[m],a,s);case 20:(o=e.sent)!==_.currentfishPort&&-1<o?(u=Object.keys(_.canvasSubPortMap).find(function(e){return _.canvasSubPortMap[e]===o})||"",l=h.findIndex(function(e){return e===u}),c[l]&&(f.fPTZPositionX=c[l].x,f.fPTZPositionY=c[l].y),_.currentfishPort=o,_.bEnableFECDrag=!0,_.subPortOperationMap[_.currentfishPort].startX=n,_.subPortOperationMap[_.currentfishPort].startY=r):p.aWndList[m].bEnableFECDrag=!1,e.next=27;break;case 24:_.bEnableFECDrag=!0,_.subPortOperationMap[_.currentfishPort].startX=n,_.subPortOperationMap[_.currentfishPort].startY=r;case 27:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}(),i=g.throttle(function(e){_.bPlay&&p.aWndList[m].bEnableFECDrag&&y&&p._showCoords(e,m,d,v,f)},100),e.addEventListener("mousedown",r,!1),e.addEventListener("mousemove",i,!1),e.addEventListener("mouseup",t,!1),_.subCanvasEventMap[d].mousedownEvent=r,_.subCanvasEventMap[d].mouseMoveEvent=i,_.subCanvasEventMap[d].mouseUpEvent=t})}},{key:"_unBindFishEyeSubWindowEvent",value:function(e){var o=this.aWndList[e];o.fishEyeSubCanvasList.forEach(function(e){var t=o.subCanvasEventMap[e].mousedownEvent,n=o.subCanvasEventMap[e].mouseMoveEvent,r=o.subCanvasEventMap[e].mouseUpEvent,i=document.getElementById(e).parentNode;i.removeEventListener("mousedown",t),i.removeEventListener("mousemove",n),i.removeEventListener("mouseup",r),o.subCanvasEventMap[e].mousedownEvent&&delete o.subCanvasEventMap[e].mousedownEvent,o.subCanvasEventMap[e].mouseMoveEvent&&delete o.subCanvasEventMap[e].mouseMoveEvent,o.subCanvasEventMap[e].mouseUpEvent&&delete o.subCanvasEventMap[e].mouseUpEvent})}},{key:"_updateFishEyePlayCanvas",value:function(s){var u,l,d,c,h,f,m=this,_=this.aWndList[s],p=_.fishEyeMode,e=this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(s),y=e.width(),v=e.height();E[p]?(e=An[E[p].splitType],u=e.rowSplit,l=e.colSplit,d=e.windowsConfig,c=y%l,h=v%u,f=this.options.szId,Object.keys(d).forEach(function(e){var t,n,r,i,o,a;d[e]&&(n=(i=d[e]).row,t=i.col,r=i.right,i=i.bottom,r=t=(y-c)/l*t+(r?c:0),i=n=(v-h)/u*n+(i?h:0),e=s+"_"+e,o=S("#"+"".concat(f,"sub-player-container-").concat(e)),a=S("#"+(e="".concat(f,"_sub_playCanvas").concat(e))),o.css("width",t+"px"),o.css("height",n+"px"),a.attr("width",r),a.attr("height",i),a.css("width",r+"px"),a.css("height",i+"px"),a.css("left","0px"),a.css("top","0px"),A===_.iMode&&_.oPlayCtrl&&_.oPlayCtrl.JSPlayM4_SetCanvasSize(r,i,_.canvasSubPortMap[e]),m.specialFishSplitMode.includes(p))&&m._adjustFishSubWindow(s,p)})):console.warn("目前子窗口的拆分模式不支持")}},{key:"JS_ArrangeSubWindow",value:function(_,r){var p=this;return new Promise(function(e){var t,o,a,s,u,l,d,c=p.aWndList[_],n=(c.fishEyeMode=r,p.oJSPlugin.find(".parent-wnd").eq(0).children().eq(_)),h=n.width(),f=n.height(),m=(I===c.windowMode&&p._unBindFishEyeSubWindowEvent(_),p.options.szId);n.find(".video-container").element&&(p.rePlayerEventListener(n),n.find(".video-container").remove()),0===r?(t=p.createSubContainer(_,h,f),n.append(t),c.windowMode=Un,c.fishEyeSubCanvasList=[],e()):(c.fishEyeSubCanvasList=[],E[r]?(t=An[E[r].splitType],o=t.rowSplit,a=t.colSplit,s=t.windowsConfig,u=h%a,l=f%o,d="",Object.keys(s).forEach(function(e){var t,n,r,i;s[e]&&(t=(r=s[e]).row,i=r.col,n=r.right,r=r.bottom,n=i=(h-u)/a*i+(n?u:0),r=t=(f-l)/o*t+(r?l:0),e=_+"_"+e,d+='<div id="'.concat(m,"video-container-").concat(e,'" class="video-container"><div id="').concat(m,"sub-player-container-").concat(e,'" style="border:1px solid ').concat(p.oPluginColor.borderColor,";\n box-sizing: border-box; position: relative; float: left; overflow: hidden;\n background-color: ").concat(p.oPluginColor.backgroundColor,"; width:").concat(i,"px; height:").concat(t,'px">\n <canvas id="').concat(m,"_sub_playCanvas").concat(e,'" class="play-window" wid="').concat(e,'" style="position:absolute; left:').concat(0,"px; top: ").concat(0,'px;" width="').concat(n,'" height="').concat(r,'"></canvas>\n </div></div>'),i="".concat(m,"_sub_playCanvas").concat(e),c.fishEyeSubCanvasList.push(i))}),c.windowMode=I,n.append(d),p._bindFishEyeSubWindowEvent(_),p.specialFishSplitMode.includes(r)&&p._adjustFishSubWindow(_,r),e()):console.warn("目前子窗口的拆分模式不支持"))})}},{key:"_adjustFishSubWindow",value:function(e,t){var n=this.options.szId,r=0;if(7===t)r=e+"_4";else{if(15!==t)return;r=e+"_2"}var t="".concat(n,"sub-player-container-").concat(r),n="".concat(n,"_sub_playCanvas").concat(r),r=S("#"+t),t=S("#"+n),n=this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(e),e=n.width(),n=n.height(),i=parseInt((e<=n?e:n)/2,10);r.css("left",(e-i)/2+"px"),r.css("top",-(n+i)/2+"px"),r.css("width",i+2+"px"),r.css("height",i+2+"px"),r.css("border-radius","50%"),r.css("z-index",-1),t.attr("width",i),t.attr("height",i),t.css("width",i+"px"),t.css("height",i+"px"),t.css("left","0px"),t.css("top","0px")}},{key:"JS_SetPTZDisplayMode",value:function(t,n){var r=this;return new Promise(function(e){r.aWndList[t].oPlayCtrl.JSPlayM4_FEC_SetPTZDisplayMode(n),e()})}},{key:"JS_SetFishEyePlaceType",value:function(t,n){var r=this;return new Promise(function(e){r.aWndList[t].fishPlaceType=n,e()})}},{key:"_resetSubWindow",value:function(e){var t,n,r;I===this.aWndList[e].windowMode&&(r=(t=this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(e)).width(),n=t.height(),t.find(".video-container")&&(this.rePlayerEventListener(t),t.find(".video-container").remove()),r=this.createSubContainer(e,r,n),t.append(r),this.aWndList[e].windowMode=Un)}},{key:"_request",value:function(e,t,n,r,i,o){var a=new XMLHttpRequest;a.onreadystatechange=function(){var e;4===parseInt(a.readyState,10)&&200===parseInt(a.status,10)&&(!function(e){if("string"==typeof e)try{var t=JSON.parse(e);return"object"===On(t)&&t?1:void 0}catch(e){return}console.log("It is not a string!")}(a.responseText)?i(a.responseText):(e=JSON.parse(a.responseText),i(e)))},a.open(t,e,!0),a.onerror=function(){o()};var s,u=new FormData;for(s in n)u.append(s,n[s]);a.send(u)}},{key:"_getRealUrlPromise",value:function(_,p,y,e){var v=4<arguments.length&&void 0!==arguments[4]?arguments[4]:"default",g=e,w=p.accessToken,b=void 0!==p.openCloud?p.openCloud:0,M=this,S=p.timeZoneOffset;function k(e,t){var n,r;if(/^[0-9]{8}T[0-9]{6}Z$/.test(e))return e;if(/[0-9]{8,14}/.test(e))return n=6-(14-e.length),r=t.length,(e=e+t.substring(n,r)).slice(0,8)+"T"+e.slice(8)+"Z";throw new Error("回放时间格式有误,请确认")}function L(e,t){var n=e.slice(0,4)+"-"+e.slice(4,6)+"-"+e.slice(6,8)+" "+e.slice(9,11)+":"+e.slice(11,13)+":"+e.slice(13,15);return 1===b&&void 0!==t?Qe()(e).utcOffset(t).valueOf():new Date(n.replace(/-/g,"/")).getTime()}function T(e){var t=[];return e.forEach(function(e){0===t.length||e.downloadPath!==t[t.length-1].downloadPath?t.push({downloadPath:e.downloadPath,ownerId:e.ownerId,iStorageVersion:e.iStorageVersion,videoType:e.videoType,iPlaySpeed:0,startTime:e.startTime,endTime:e.endTime}):t[t.length-1].endTime=e.endTime}),t}function D(e,t){e=new RegExp("(\\?|#|&)"+e+"=(.*?)(#|&|$)"),t=(t||window.location.href).match(e);return decodeURIComponent(t?t[2]:"")}function n(){return(n=x(Y().mark(function e(o,t){var a,s,n,r,i,u,l,d,c,h,f,m;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a="",n=g+"/api/lapp/live/url/ezopen",(r=new FormData).append("ezopen",y),r.append("isFlv","false"),r.append("userAgent",window.navigator.userAgent),r.append("isHttp","false"),r.append("accessToken",w),e.next=10,fetch(n,{method:"POST",body:r}).then(function(e){return e.json()},function(){t(1018)});case 10:if(s=e.sent){e.next=14;break}return t(1018),e.abrupt("return");case 14:(200===parseInt(s.code,10)||0===parseInt(s.retcode,10))&&(r=n="",s.ext&&s.ext.token?(a+=s.data,r=s.ext.token,n=s.data):s.data&&s.data.token&&(a+=s.data.url,r=s.data.token,n=s.data.url),"live"==(-1!==y.indexOf("live")?"live":"playback")?a=a+"&ssn="+r+"&auth=1&biz=4&cln=100":(a=a+"&ssn="+r+"&auth=1&cln=100",p.needReplaceParam&&(i=[],p.deviceSerial&&(i.push({name:"serial",value:p.deviceSerial}),i.push({name:"dev",value:p.deviceSerial})),p.channelNo&&i.push({name:"chn",value:p.channelNo}),0<i.length)&&(a=function(t,e){return e.forEach(function(e){new RegExp("([?#&])".concat(e.name,"=(.*?)(#|&|$)")).test(t)&&(t=t.replace("".concat(RegExp.$1).concat(e.name,"=").concat(RegExp.$2),"".concat(RegExp.$1).concat(e.name,"=").concat(e.value)))}),t}(a,i))),(i=D("checkCode",a))&&("fileDownLoad"===v?M.fileDownloadList[_].szSecretKey=i:M.JS_SetSecretKey(_,i)),-1!==a.indexOf("playback"))?(f=D("begin",n)||D("begin",y),m=D("end",n)||D("end",y),f?(a=a.replace("&begin="+D("begin",n),"&begin="+k(f,"000000")),D("begin",a)||(a+="&begin="+k(f,"000000"))):(f=new Date,a=a+"&begin="+f.Format("yyyyMMdd")+"T000000Z"),m?(a=a.replace("&end="+D("end",n),"&end="+k(m,"235959")),D("end",a)||(a+="&end="+k(m,"235959"))):a=a+"&end="+k(D("begin",a).substr(0,8),"235959"),D("stream",n)||(a=a.replace("stream","&stream")),-1!==y.indexOf(".cloud")?(f=function(e){var n,r,i;200===parseInt(e.code,10)&&(i=[],e.data)&&e.data&&0<e.data.length?(n=e.data,r=(new Date).getTime(),1===b&&(r=Qe()().valueOf()),e=e.data.isAll,(e=1===b?!0:e)||void 0===e?(i=T(n),e=JSON.stringify(i).replace("\\",""),a+="&recSlice="+e.replace("\\","")+"&r="+Math.random(),o({url:a,response:s})):function t(){l.startTime=r,M._request(u,"POST",l,"",function(e){e.data&&e.data&&0<e.data.length&&!1===e.data.isAll&&0<e.data.nextFileTime?(e.data&&(n=n.concat(e.data)),r=0<e.data.nextFileTime?e.data.nextFileTime:(new Date).getTime(),t()):(i=T(n),e=JSON.stringify(i).replace("\\",""),a+="&recSlice="+e.replace("\\","")+"&r="+Math.random(),o({url:a,response:s}))})}()):t(1019)},m=L(D("begin",a),S),h=L(D("end",a),S),d=D("serial",a),c=D("chn",a),u=g+"/api/lapp/video/by/time",l={accessToken:w,recType:1,deviceSerial:d,channelNo:c,startTime:m,endTime:h,version:"2.0"},1===b&&(l.version=""),M._request(u,"POST",l,"",f)):-1!==y.indexOf("alarmId")?(d=function(e){var t;200===parseInt(e.code,10)&&(t=[],e.data)&&(t=T([e.data]),t=JSON.stringify(t).replace("\\",""),a+="&recSlice="+t.replace("\\",""),console.log("realUrl",a,e.data.recType),a=1===e.data.recType?a.replace("/playback","/cloudplayback"):a.replace("/cloudplayback","/playback"),o({url:a,response:s}))},console.log("进入alarmId回放"),c=D("alarmId",a),m=D("serial",a),h=D("chn",a),f=g+"/api/lapp/video/by/id",m={accessToken:w,deviceSerial:m,channelNo:h,alarmId:c},M._request(f,"POST",m,"",d)):o({url:a,response:s})):o({url:a,response:s});case 15:case"end":return e.stop()}},e)}))).apply(this,arguments)}return new Promise(function(e,t){!function(){n.apply(this,arguments)}(e,t)})}},{key:"getPlayParams",value:function(e){var t=e.split("?")[0].replace("/live","").replace("/playback",""),e=(-1===e.indexOf("/live")?-1!==e.indexOf("cloudplayback")?"/cloudplayback?":"/playback?":"/live?")+e.split("?")[1];return{websocketConnectUrl:t,websocketStreamingParam:e=-1!==e.indexOf("/playback")?e.replace("stream=2","stream=1"):e}}},{key:"JS_InitPlayWithBinaryData",value:(f=x(Y().mark(function e(t,n){var r,i;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.aWndList[t],i=!0,73===n[0]&&77===n[1]&&75===n[2]&&72===n[3]?r.aHead=new Uint8Array(n):(i=!1,r.aHead=new Uint8Array([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,0,0,0,0,0,0,0,0,0,0,0,0,0])),r.szPlayType="playback",0===r.aHead[11]&&5===r.aHead[10]?r.streamType=Gn:1===r.aHead[11]&&0===r.aHead[10]&&(r.streamType=Jn),this.bHttps&&this.options.bSupportDecoder3&&"safari"!==this.browserType||"safari"===this.browserType&&g.isSafariSupportHardecode()||"safari"!==this.browserType&&(!this.options.bSupportMSE||!this.bSupportHEVC&&r.streamType===Gn||0===r.aHead[11]&&192===r.aHead[10])||"none"!==this.waterMarkMode?r.iMode=A:r.iMode=O,r.bPlay)return e.next=9,this._closeStreamAndDestroy(t);e.next=9;break;case 9:return r.oPlayCtrl||(O===r.iMode?(this._createFlvPlayer(t),this._createRtpTransform(t,r.aHead)):this._createPlayCtrl(t)),e.next=12,this._probeDecoderLoaded(t);case 12:return e.abrupt("return",Promise.resolve(i));case 13:case"end":return e.stop()}},e,this)})),function(e,t){return f.apply(this,arguments)})},{key:"_probeDecoderLoaded",value:function(e){var r=0,i=this.aWndList[e];return new Promise(function(e,t){var n=setInterval(function(){i.bLoad?(clearInterval(n),e()):150<++r&&(clearInterval(n),t())},200)})}},{key:"JS_PlayWithBinaryData",value:function(e,t,n){var r=this.aWndList[e];if(A===r.iMode&&r.oPlayCtrl){if(!r.bLoad)return r.stashArray.push(t),1;if(0<r.stashArray.length)for(;0<r.stashArray.length;){var i=r.stashArray.shift(),i=new Uint8Array(i);r.oPlayCtrl.JSPlayM4_InputData(i,i.length)}if(1!==r.oPlayCtrl.JSPlayM4_InputData(t,n))return 11===this.aWndList[e].oPlayCtrl.JSPlayM4_GetLastError()?1021:0}else O===r.iMode&&this.oTransformManager.inputData(r.szTransformUUID,t);return r.szStorageUUID&&this.oStorageManager.inputData(r.szStorageUUID,t),1}},{key:"JS_InitPlayWithBinaryDataFlv",value:function(e){this.aWndList[e].iMode=O,this._createFlvPlayer(e)}},{key:"JS_PlayWithBinaryDataFlv",value:function(e,t){e=this.aWndList[e];e.oMSE.onLoaderChunkArrival(t,e.receivedLength),e.receivedLength+=t.byteLength}},{key:"_downloadFile",value:function(e){var t=e,e=(e instanceof Blob||e instanceof File||(t=new Blob([e])),window.URL.createObjectURL(t)),t=window.document.createElement("a"),e=(t.href=e,t.download="test.mp4",document.createEvent("MouseEvents"));e.initEvent("click",!0,!0),t.dispatchEvent(e)}},{key:"appendBuffer",value:function(e,t){var n=new Uint8Array(e.byteLength+t.byteLength);return n.set(new Uint8Array(e),0),n.set(new Uint8Array(t),e.byteLength),n}},{key:"_switchMSEToJSDecoder1",value:function(e){var t,n;"safari"!==this.browserType&&(t=this.aWndList[e],this.oTransformManager.stopTransform(t.szTransformUUID),t.szTransformUUID="",this._clearFirstFrameTimer(e),t.bPlay=!1,(n=this.oJSPlugin.find("video.play-window").eq(e)).hide(),n.get(0).pause&&n.get(0).pause(),t.oMSE&&t.oMSE.destroy(),t.oMSE=null,t.receivedLength=0,t.bLoad=!1,t.iMode=A,this._createPlayCtrl(e),t.bPlay=!0,this._registFirstFrameTimer(e))}},{key:"_createRtpTransform",value:function(t,e){var n=this,r=this.aWndList[t],i=[],o=!1,a=!1;this.oTransformManager.initTransform(e,10,1,function(e){r.oMSE&&n.isBrowserVisible?(r.bFrameForward||(r.frameInfo=e.frameInfo),e.frameInfo&&3===e.frameInfo.nFrameType&&(a=!0),4<=r.iRate?(i=o?[3]:[1,3],o=!o):i=[0,1,2,3],e.frameInfo&&a&&i.includes(e.frameInfo.nFrameType)?(r.oMSE.onLoaderChunkArrival(e.buf,r.receivedLength),r.receivedLength+=e.buf.byteLength):1500===e.dType?(n._clearFirstFrameTimer(t),r.dataReceiveTimer&&(clearTimeout(r.dataReceiveTimer),r.dataReceiveTimer=null),n.oEventCallback.secretKeyError(t)):e.dType):a=!1},{nKeyType:1,pKeyData:r.szSecretKey||"",nKeyLen:128}).then(function(e){r.szTransformUUID=e},function(){})}},{key:"_deepClone",value:function(e){var t=Array.isArray(e)?[]:{};if(e&&"object"===On(e))for(var n in e)e[n]&&"object"===On(e[n])?t[n]=this._deepClone(e[n]):t[n]=e[n];return t}},{key:"_registFirstFrameTimer",value:function(t){var n=this;this._clearFirstFrameTimer(t),this.aWndList[t].firstFrameTimer=setTimeout(x(Y().mark(function e(){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n._closeStreamAndDestroy(t);case 2:n.oEventCallback.pluginErrorHandler(t,1008);case 3:case"end":return e.stop()}},e)})),1e4)}},{key:"_clearFirstFrameTimer",value:function(e){this.aWndList[e].firstFrameTimer&&(clearTimeout(this.aWndList[e].firstFrameTimer),this.aWndList[e].firstFrameTimer=null)}},{key:"_refreshNoDataReceiveTimer",value:function(e){var t=this,n=this.aWndList[e];2e3<=Date.now()-n.preTimer&&(this._clearNoDataReceiveTimer(e),n.isPause||(this.aWndList[e].dataReceiveTimerTimer=setTimeout(function(){t.oEventCallback.pluginErrorHandler(e,1011)},6e3)),n.preTimer=Date.now())}},{key:"_clearNoDataReceiveTimer",value:function(e){this.aWndList[e].dataReceiveTimerTimer&&(clearTimeout(this.aWndList[e].dataReceiveTimerTimer),this.aWndList[e].dataReceiveTimerTimer=null)}},{key:"JS_Play",value:(h=x(Y().mark(function e(n,t,r,i,o){var a,s,u,l,d,c,h=this;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((a=this.aWndList[r]).bForceStop=!1,a.ezuikitMode=!1,a.streamMode=Fn,(s=this._deepClone(t))&&s.ezuikit)return a.ezuikitMode=!0,u=s.env.domain,e.next=10,this._getRealUrlPromise(r,s,n,u).catch(function(){return Promise.reject({oError:{code:1015,msg:"get play url error"},type:"ezuikit"})});e.next=18;break;case 10:if(u=e.sent,l=u.url,d=u.response,l.length<1)return e.abrupt("return",Promise.reject({oError:d,type:"ezuikit"}));e.next=15;break;case 15:d=this.getPlayParams(l),n=s.env&&s.env.wsUrl?s.env.wsUrl:d.websocketConnectUrl,s.playURL=d.websocketStreamingParam;case 18:if(a.szUrl=n,a.oParams=s,a.szStartTime=i||"",a.szStopTime=o||"",a.bForceStop)return a.bForceStop=!1,e.abrupt("return",Promise.reject({oError:{code:1014,msg:"forceStoped"},type:"customError"}));e.next=25;break;case 25:return a.bPlay?a.lastStreamUUID=a.szStreamUUID:a.lastStreamUUID="",c=new Promise(function(e,t){return r<0||r>h.iMaxWndNum-1||a.bFrameForward?t():(-1!==n.search("wss://")&&-1!==n.indexOf("proxy")&&(s.proxy=n.split("/proxy/").pop().split("/").shift()),void h._openStream(n,s,r,i,o).then(function(){h._registFirstFrameTimer(r),e()},function(e){t(e)}))}),e.abrupt("return",c);case 28:case"end":return e.stop()}},e,this)})),function(e,t,n,r,i){return h.apply(this,arguments)})},{key:"JS_VideoSearch",value:function(e){var r=e.domain,u=e.accessToken,l=e.deviceSerial,d=e.channelNo,c=e.startTime,h=e.endTime,f=e.storageType,m=this;function t(e){var t=e.substring(0,4),n=e.substring(4,6),r=e.substring(6,8),i=e.substring(9,11),o=e.substring(11,13),a=e.substring(13,15);return e="".concat(t,"-").concat(n,"-").concat(r,"T").concat(i,":").concat(o,":").concat(a,"Z")}function _(e){var t=[];return e.forEach(function(e){0===t.length||e.downloadPath!==t[t.length-1].downloadPath?t.push({recType:e.recType,startTime:e.startTime,endTime:e.endTime}):t[t.length-1].endTime=e.endTime}),t}function n(){return(n=x(Y().mark(function e(i,t){var o,a,s,n;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=function(e){var n,r;200===parseInt(e.code,10)&&e.data&&e.data&&0<e.data.length?(n=e.data,r=(new Date).getTime(),(e=e.data.isAll)||void 0===e?(s=s.concat(_(n)),i(s)):function t(){a.startTime=r,m._request(o,"POST",a,"",function(e){e.data&&e.data&&0<e.data.length&&!1===e.data.isAll&&0<e.data.nextFileTime?(e.data&&(n=n.concat(e.data)),r=0<e.data.nextFileTime?e.data.nextFileTime:(new Date).getTime(),t()):(s=s.concat(_(n)),i(s))})}()):t(1019)},o=r+"/api/lapp/video/by/time",a={accessToken:u,recType:void 0!==f?f:0,deviceSerial:l,channelNo:d,startTime:new Date(c).getTime(),endTime:new Date(h).getTime(),version:"2.0"},s=[],m._request(o,"POST",a,"",n);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}return c.indexOf("-")<=-1&&(c=t(c)),h.indexOf("-")<=-1&&(h=t(h)),new Promise(function(e,t){!function(){n.apply(this,arguments)}(e,t)})}},{key:"JS_DownloadFile",value:(c=x(Y().mark(function e(n,r){var i,t,o,a,s,u=this;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(new Date).getTime(),this.fileDownloadList[i]={bDownload:!1,szSecretKey:"",szStorageUUID:"",aHead:null,szStartTime:r.startTime,szStopTime:r.endTime},r&&r.ezuikit)return t=r.env.domain,e.next=6,this._getRealUrlPromise(i,r,n,t,"fileDownLoad").catch(function(e){e=e||1015;return Promise.reject({oError:{code:e,msg:"get play url error"},type:"ezuikit"})});e.next=14;break;case 6:if(t=e.sent,o=t.url,a=t.response,o.length<1)return e.abrupt("return",Promise.reject({oError:a,type:"ezuikit"}));e.next=11;break;case 11:a=this.getPlayParams(o),n=r.env&&r.env.wsUrl?r.env.wsUrl:a.websocketConnectUrl,r.playURL=a.websocketStreamingParam;case 14:return this.fileDownloadList[i].szUrl=n,this.fileDownloadList[i].oParams=r,s=new Promise(function(e,t){-1!==n.search("wss://")&&-1!==n.indexOf("proxy")&&(r.proxy=n.split("/proxy/").pop().split("/").shift()),u._openStreamAndSaveFile(n,r,i,r.startTime,r.endTime,r.fileName,r.idstType,r.secretKey).then(function(){e(i)},function(e){t(e)})}),e.abrupt("return",s);case 18:case"end":return e.stop()}},e,this)})),function(e,t){return c.apply(this,arguments)})},{key:"JS_Seek",value:function(r,i,o){var a=this;return!(r<0||r>this.iMaxWndNum-1)&&this.aWndList[r].bPlay?new Promise(function(n,t){a.oStreamClient.seek(a.aWndList[r].szStreamUUID,i,o).then(function(){var e,t;a.aWndList[r].iMode===O&&(e=(t=a.aWndList[r]).szUrl,t=t.oParams,a.JS_Play(e,t,r,i,o)),n()},function(e){t(e)})}):Promise.reject()}},{key:"JS_GetSdkVersion",value:function(){return this.aWndList[0].oPlayCtrl.JSPlayM4_GetSdkVersion()}},{key:"JS_InitDataTransform",value:function(n,r){var i=this,e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,o=3<arguments.length?arguments[3]:void 0,a=(new Date).getTime(),s=(this.fileDownloadList[a]={bDownload:!1,szSecretKey:"",szStorageUUID:"",aHead:e},this.fileDownloadList[a]);return new Promise(function(e,t){s.bDownload?t():(s.bDownload=!0,i._saveFile(a,n,r,o).then(function(){e(a)}).catch(function(){i._closeFileDownloadStream(a),t()}))})}},{key:"JS_InputTransformData",value:function(e,t){var n=this,r=this.fileDownloadList[e];return new Promise(function(e){n.oStorageManager.inputData(r.szStorageUUID,t),e()})}},{key:"JS_StopTransformData",value:function(n,r){var i=this;return new Promise(function(e,t){if(!i.fileDownloadList[n]||!i.fileDownloadList[n].szStorageUUID)return t();i.oStorageManager.stopRecord(i.fileDownloadList[n].szStorageUUID,r).then(function(){i.fileDownloadList[n].szStorageUUID="",e()},function(e){t(e)})})}},{key:"rePlayerEventListener",value:function(e){e.find(".draw-window")&&e.find(".draw-window").off(),e.find("video.play-window")&&e.find("video.play-window").off(),e.find("canvas.play-window")&&e.find("canvas.play-window").off(),e.find("img.play-window")&&e.find("img.play-window").off(),e.find(".zoom-window")&&e.find(".zoom-window").off()}},{key:"JS_DestroyWorker",value:function(){var n=this;return new Promise(function(){var t=x(Y().mark(function e(t){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.forceStopedState=!0,e.next=3,n.JS_StopRealPlayAll();case 3:n.aWndList&&n.aWndList.forEach(function(e){e.oPlayCtrl=null}),Object.keys(n.oEventCallback).forEach(function(e){n.oEventCallback[e]=null}),n.supportCustomContainer?n.customContainerDomList.forEach(function(e){e=S(e);e.off(),n.rePlayerEventListener(e)}):n.oJSPlugin&&n.oJSPlugin.find(".parent-wnd").eq(0).children().each(function(e){e=S(e);e.off(),n.rePlayerEventListener(e)}),n.oPlayCtrlAudio&&(n.oPlayCtrlAudio.JSPlayM4_Stop(n.options.clearCanvasFlag),n.oPlayCtrlAudio.JSPlayM4_CloseStream(),n.oPlayCtrlAudio=null),n.oTalkPlayCtrl&&(n.oTalkPlayCtrl=null,n.oTalkSamplingParam=null),n.oBroadCast=[],n.f3DDrawCallback=null,n.fEDrawCallback=null,n.visibilitychange&&document.removeEventListener("visibilitychange",n.visibilitychange),n.fullScreenChange&&(void 0!==document.fullScreen?document.removeEventListener("fullscreenchange",n.fullScreenChange):void 0!==document.webkitIsFullScreen?document.removeEventListener("webkitfullscreenchange",n.fullScreenChange):void 0!==document.mozFullScreen&&document.removeEventListener("mozfullscreenchange",n.fullScreenChange)),t();case 14:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}())}},{key:"JS_DestroyPlugin",value:function(){return this.JS_DestroyWorker()}},{key:"JS_Stop",value:function(t){var n=this;return t||0===t||(t=this.iCurrentWndIndex),this.aWndList[t].bForceStop=!(1<arguments.length&&void 0!==arguments[1]&&arguments[1]),this.aWndList[t].szSecretKey="",new Promise(function(e){n.aWndList[t].bNormalClose=!0,n.aWndList[t].szStorageUUID&&n.JS_StopSave(t),n.aWndList[t].bEZoom&&n.JS_DisableZoom(t),t===n.iCurrentSoundWnd&&n.JS_CloseSound(),n._clearNoDataReceiveTimer(t),n._clearFirstFrameTimer(t),n._closeStreamAndDestroy(t).then(function(){n._resetSubWindow(t),setTimeout(function(){e()},300)})})}},{key:"JS_SetSycPlayback",value:function(){return this.bHttps&&this.options.bSupportDecoder3?(this.isSycPlayback=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],Promise.resolve()):Promise.reject()}},{key:"JS_Pause",value:function(r){var i=this,o=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return r||0===r||(r=this.iCurrentWndIndex),new Promise(function(t,n){var e=i._checkPlayback(r);if(0!==e)n(e);else{if(!i.aWndList[r].bFrameForward)return!0===i.aWndList[r].isPause?t():(i._clearNoDataReceiveTimer(r),o||i.aWndList[r].streamMode===zn?(i.aWndList[r].iMode===O?(e=i.oJSPlugin.find("video.play-window").eq(r)).get(0).pause&&e.get(0).pause():i.aWndList[r].iMode===A&&i.aWndList[r].oPlayCtrl.JSPlayM4_Pause&&i.aWndList[r].oPlayCtrl.JSPlayM4_Pause(!0),i.aWndList[r].isPause=!0,i.aWndList[r].streamMode===zn&&(i.aWndList[r].filePlayInfo.pauseInput=!0),t()):void i.oStreamClient.pause(i.aWndList[r].szStreamUUID).then(function(){var e;i.aWndList[r].iMode===O?(e=i.oJSPlugin.find("video.play-window").eq(r)).get(0).pause&&e.get(0).pause():i.aWndList[r].iMode===A&&i.aWndList[r].oPlayCtrl.JSPlayM4_Pause&&i.aWndList[r].oPlayCtrl.JSPlayM4_Pause(!0),i.aWndList[r].isPause=!0,i.aWndList[r].isStreamPause=!0,t()},function(e){n(e)}));i._log.I("".concat(Xe,": status singleFrame not support this handle.")),n(Xe)}})}},{key:"JS_Resume",value:function(r){function i(){var e;O===t.aWndList[r].iMode?((e=t.oJSPlugin.find("video.play-window").eq(r).get(0)).play&&e.play(),t.aWndList[r].oMSE.openLatencyMonitor(),t.aWndList[r].bFrameForward&&(t.aWndList[r].bFrameForward=!1)):A===t.aWndList[r].iMode&&(1!==t.iCurrentPlayRate&&(t.aWndList[r].iRate=t.iCurrentPlayRate,t.oStreamClient.setPlayRate(t.aWndList[r].szStreamUUID,t.aWndList[r].iRate,t.aWndList[r].ezuikitMode),8<=t.iCurrentPlayRate?t.aWndList[r].oPlayCtrl.JSPlayM4_SetDecodeFrameType&&t.aWndList[r].oPlayCtrl.JSPlayM4_SetDecodeFrameType(1):t.aWndList[r].oPlayCtrl.JSPlayM4_SetDecodeFrameType&&t.aWndList[r].oPlayCtrl.JSPlayM4_SetDecodeFrameType(0)),t.aWndList[r].bFrameForward?(t.aWndList[r].oPlayCtrl&&t.aWndList[r].oPlayCtrl.JSPlayM4_OneByOneResume(),t.aWndList[r].bFrameForward=!1):t.aWndList[r].oPlayCtrl&&t.aWndList[r].oPlayCtrl.JSPlayM4_Pause(!1)),t.aWndList[r].isPause=!1,t.aWndList[r].isStreamPause=!1}var o=this,a=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t=(r||0===r||(r=this.iCurrentWndIndex),this);return new Promise(function(e,t){var n;return a||o.aWndList[r].streamMode===zn?(i(),o.aWndList[r].streamMode===zn&&(o.aWndList[r].filePlayInfo.pauseInput=!1),e()):0!==(n=o._checkPlay(r))?t(n):void(o.aWndList[r].isStreamPause?o.oStreamClient.resume(o.aWndList[r].szStreamUUID).then(function(){i(),e()},function(e){t(e)}):(i(),e()))})}},{key:"JS_Slow",value:function(r){var i=this;return r||0===r||(r=this.iCurrentWndIndex),new Promise(function(t,n){var e=i._checkPlayback(r);return 0!==e?n(e):i.aWndList[r].bFrameForward?(i._log.I("".concat(Xe,": status singleFrame not support this handle.")),n(Xe)):-16===i.aWndList[r].iRate?n():(i.aWndList[r].iRate<0&&-16<i.aWndList[r].iRate&&(i.aWndList[r].iRate*=2),1===i.aWndList[r].iRate&&(i.aWndList[r].iRate*=-2),1<i.aWndList[r].iRate&&(i.aWndList[r].iRate/=2),1!==i.aWndList[r].iRate&&i.JS_CloseSound(),i.aWndList[r].streamMode===zn?(i.aWndList[r].filePlayInfo.needResetInputSizeps=!0,(A===i.aWndList[r].iMode?(i.aWndList[r].oPlayCtrl.JSPlayM4_Slow(),t):n)()):void i.oStreamClient.setPlayRate(i.aWndList[r].szStreamUUID,i.aWndList[r].iRate,i.aWndList[r].ezuikitMode).then(function(){var e;O===i.aWndList[r].iMode?(e=i.oJSPlugin.find("video.play-window").eq(r).get(0),i.aWndList[r].iRate<0?e.playbackRate=1/Math.abs(i.aWndList[r].iRate):e.playbackRate=i.aWndList[r].iRate):A===i.aWndList[r].iMode&&(i.aWndList[r].iRate<8?i.aWndList[r].oPlayCtrl.JSPlayM4_SetDecodeFrameType&&i.aWndList[r].oPlayCtrl.JSPlayM4_SetDecodeFrameType(0):(i.aWndList[r].oPlayCtrl.JSPlayM4_SetDecodeFrameType(1),i.aWndList[r].oPlayCtrl.JSPlayM4_SetIFrameDecInterval&&i.aWndList[r].oPlayCtrl.JSPlayM4_SetIFrameDecInterval(0)),i.aWndList[r].oPlayCtrl.JSPlayM4_Slow)&&i.aWndList[r].oPlayCtrl.JSPlayM4_Slow(),t(i.aWndList[r].iRate)},function(e){n(e)}))})}},{key:"JS_Fast",value:function(r){var i=this;return r||0===r||(r=this.iCurrentWndIndex),new Promise(function(t,n){var e=i._checkPlayback(r);return 0!==e?n(e):i.aWndList[r].bFrameForward?(i._log.I("".concat(Xe,": status singleFrame not support this handle.")),n(Xe)):16===i.aWndList[r].iRate?(i._log.I("".concat(Ke,": current rate is the max.")),n(Ke)):(-2===i.aWndList[r].iRate?i.aWndList[r].iRate=1:i.aWndList[r].iRate<-2?i.aWndList[r].iRate/=2:0<i.aWndList[r].iRate&&i.aWndList[r].iRate<16&&(i.aWndList[r].iRate*=2),i.aWndList[r].streamMode===zn?(i.aWndList[r].filePlayInfo.needResetInputSizeps=!0,(A===i.aWndList[r].iMode?(i.aWndList[r].oPlayCtrl.JSPlayM4_Fast(),t):n)()):(1!==i.aWndList[r].iRate&&i.JS_CloseSound(),void i.oStreamClient.setPlayRate(i.aWndList[r].szStreamUUID,i.aWndList[r].iRate,i.aWndList[r].ezuikitMode).then(function(){var e;O===i.aWndList[r].iMode?(i.aWndList[r].oMSE.closeLatencyMonitor(),e=i.oJSPlugin.find("video.play-window").eq(r).get(0),i.aWndList[r].iRate<0?e.playbackRate=1/Math.abs(i.aWndList[r].iRate):e.playbackRate=i.aWndList[r].iRate):A===i.aWndList[r].iMode&&(i.aWndList[r].iRate<8?i.aWndList[r].oPlayCtrl.JSPlayM4_SetDecodeFrameType&&i.aWndList[r].oPlayCtrl.JSPlayM4_SetDecodeFrameType(0):i.aWndList[r].oPlayCtrl.JSPlayM4_SetDecodeFrameType&&i.aWndList[r].oPlayCtrl.JSPlayM4_SetDecodeFrameType(1),i.aWndList[r].oPlayCtrl.JSPlayM4_Fast)&&i.aWndList[r].oPlayCtrl.JSPlayM4_Fast(),t(i.aWndList[r].iRate)},function(e){n(e)})))})}},{key:"JS_Transmission",value:function(e,r){var i=this;return!(e<0||e>this.iMaxWndNum-1)&&this.aWndList[e].szStreamUUID?new Promise(function(t,n){i.oStreamClient.transmission(i.aWndList[e].szStreamUUID,r).then(function(e){t(e)},function(e){n(e)})}):Promise.reject()}},{key:"_streamControlForMSE",value:function(e){var t=this.oJSPlugin.find("video.play-window").eq(e).get(0),t=t.buffered.end(0)-t.currentTime,n=this.aWndList[e];!n.isStreamPause&&3<=t?(this._clearNoDataReceiveTimer(e),this.oStreamClient.pause(n.szStreamUUID),n.isStreamPause=!0,n.isPause=!0):n.isStreamPause&&t<=1&&(this.oStreamClient.resume(n.szStreamUUID),n.isStreamPause=!1,n.isPause=!1)}},{key:"JS_FrameForward",value:function(i){var o=this,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;return new Promise(function(e,t){var n,r=o._checkPlayback(i);if(0!==r)return t(r);O===o.aWndList[i].iMode?(o._streamControlForMSE(i),n=o.oJSPlugin.find("video.play-window").eq(i).get(0),o.aWndList[i].bFrameForward?(clearTimeout(o.aWndList[i].mseFrameForwardTimer),o.aWndList[i].mseFrameForwardTimer=null,n.play(),o.aWndList[i].mseFrameForwardTimer=setTimeout(function(){n.pause(),e()},40)):(r=o.aWndList[i].frameInfo,o._getOSDTime(i,r.nYear,r.nMonth,r.nDay,r.nHour,r.nMinute,r.nSecond,r.nMilliSecond),o.aWndList[i].frameStartOSDTimeForMSE=o.aWndList[i].iCurrentOSDTime,o.aWndList[i].bFrameForward=!0,o.aWndList[i].frameStartVideoTimeForMSE=n.currentTime,n.pause(),o.aWndList[i].oMSE.closeLatencyMonitor(),e())):(A===o.aWndList[i].iMode&&(1!==o.aWndList[i].iRate?(o.aWndList[i].iRate=1,o.iCurrentPlayRate=o.aWndList[i].iRate,o.oStreamClient.setPlayRate(o.aWndList[i].szStreamUUID,o.aWndList[i].iRate,o.aWndList[i].ezuikitMode).then(function(){o.aWndList[i].oPlayCtrl.JSPlayM4_SetDecodeFrameType&&o.aWndList[i].oPlayCtrl.JSPlayM4_SetDecodeFrameType(0),o.aWndList[i].oPlayCtrl.JSPlayM4_OneByOne&&o.aWndList[i].oPlayCtrl.JSPlayM4_OneByOne(a),o.aWndList[i].bFrameForward=!0},function(e){t(e)})):(o.aWndList[i].oPlayCtrl.JSPlayM4_OneByOne&&o.aWndList[i].oPlayCtrl.JSPlayM4_OneByOne(a),o.aWndList[i].bFrameForward=!0)),e())})}},{key:"JS_GetOSDTime",value:function(a){var s=this,u=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return a||0===a||(a=this.iCurrentWndIndex),new Promise(function(e,t){var n,r,i,o;!(a<0||a>s.iMaxWndNum-1)&&(n=s.aWndList[a]).bPlay?O===n.iMode?(o=n.frameInfo,n.bFrameForward?s._getOSDTimeForMseFrameForward(a):s._getOSDTime(a,o.nYear,o.nMonth,o.nDay,o.nHour,o.nMinute,o.nSecond,o.nMilliSecond),r=o.nWidth,i=o.nHeight,n.iYUVWidth=r,n.iYUVHeight=i,e("standard"===u?{year:o.nYear,month:o.nMonth,day:o.nDay,hour:o.nHour,minute:o.nMinute,second:o.nSecond,milliSecond:o.nMilliSecond}:u?n.iCurrentOSDTime:Math.floor(n.iCurrentOSDTime/1e3))):A===n.iMode&&(i=(r=n.oPlayCtrl.JSPlayM4_GetFrameInfo()).width,o=r.height,n&&n.oPlayCtrl&&(n.iYUVWidth=i,n.iYUVHeight=o,s._getOSDTime(a,r.year,r.month,r.day,r.hour,r.minute,r.second,r.milliseconds)),e("standard"===u?{year:r.year,month:r.month,day:r.day,hour:r.hour,minute:r.minute,second:r.second,milliSecond:r.milliseconds}:u?n.iCurrentOSDTime:Math.floor(n.iCurrentOSDTime/1e3))):t(-1)})}},{key:"JS_GetFrameInfo",value:function(o){var a=this;return o||0===o||(o=this.iCurrentWndIndex),new Promise(function(e,t){var n,r,i;!(o<0||o>a.iMaxWndNum-1)&&(n=a.aWndList[o]).bPlay?(r="unknown",1===n.aHead[11]&&0===n.aHead[10]||0===n.aHead[11]&&1===n.aHead[10]?r="h264":0===n.aHead[11]&&5===n.aHead[10]?r="h265":0===n.aHead[11]&&4===n.aHead[10]&&(r="mjpeg"),O===n.iMode?e({frameRate:(i=n.frameInfo).nFrameRate,width:i.nWidth,height:i.nHeight,streamFormat:r}):A===n.iMode&&e({frameRate:(i=n.oPlayCtrl.JSPlayM4_GetFrameInfo()).frameRate,width:i.width,height:i.height,streamFormat:r})):t(-1)})}},{key:"JS_OpenSound",value:function(i){var o=this;return i||0===i||(i=this.iCurrentWndIndex),new Promise(function(){var n=x(Y().mark(function e(t,n){var r;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==(r=o._checkPlay(i)))return n(r),e.abrupt("return");e.next=4;break;case 4:if(o.iCurrentSoundWnd===i)return e.abrupt("return",n(1023));e.next=6;break;case 6:if(-1!==o.iCurrentSoundWnd)return e.next=9,o.JS_CloseSound();e.next=9;break;case 9:if(A!==o.aWndList[i].iMode)e.next=18;else{if(o.aWndList[i].oPlayCtrl&&o.aWndList[i].oPlayCtrl.JSPlayM4_PlaySound&&1!==o.aWndList[i].oPlayCtrl.JSPlayM4_PlaySound())return console.log(o.aWndList[i].oPlayCtrl.JSPlayM4_GetLastError()),n($e),e.abrupt("return");e.next=14}break;case 14:o.iCurrentSoundWnd=i,t(),e.next=35;break;case 18:if(O!==o.aWndList[i].iMode)e.next=34;else{if(o._initAudioPlayCtrl(o.aWndList[i].aHead,o.aWndList[i].szSecretKey),1===o.oPlayCtrlAudio.JSPlayM4_PlaySound(null))return o.iCurrentSoundWnd=i,o.bAudioInitFinished=!0,t(),e.abrupt("return");e.next=26}break;case 26:o.bAudioInitFinished=!1,o.iCurrentSoundWnd=-1,o.oPlayCtrlAudio.JSPlayM4_StopSound(),o.oPlayCtrlAudio.JSPlayM4_Stop(),o.oPlayCtrlAudio.JSPlayM4_CloseStream(),n(),e.next=35;break;case 34:o._log.I("模式错误,正常情况不会进入该逻辑");case 35:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}())}},{key:"JS_GetVolume",value:function(e){var n=this;return e||0===e||(e=this.iCurrentWndIndex),new Promise(function(t){A===n.aWndList[e].iMode?n.aWndList[e].oPlayCtrl.JSPlayM4_GetVolume&&n.aWndList[e].oPlayCtrl.JSPlayM4_GetVolume(function(e){e=Math.ceil(e/655);t(e)}):O===n.aWndList[e].iMode&&n.oPlayCtrlAudio.JSPlayM4_GetVolume&&n.oPlayCtrlAudio.JSPlayM4_GetVolume(function(e){e=Math.ceil(e/655);t(e)})})}},{key:"JS_SetVolume",value:function(r,i){var o=this;return new Promise(function(e,t){var n;o.iCurrentSoundWnd<0&&t(1024),A===o.aWndList[r].iMode?(n=Math.ceil(655*i),1!==o.aWndList[r].oPlayCtrl.JSPlayM4_SetVolume(n)?t($e):e()):O===o.aWndList[r].iMode&&(n=Math.ceil(655*i),1!==o.oPlayCtrlAudio.JSPlayM4_SetVolume(n)?t($e):e())})}},{key:"JS_CloseSound",value:function(i){var o=this;return new Promise(function(e,t){if(void 0!==i&&i!==o.iCurrentSoundWnd)return t(1023);var n,r=o.iCurrentSoundWnd;r<0||r>o.iMaxWndNum-1?e():0!==(n=o._checkPlay(r))?t(n):A===o.aWndList[r].iMode?o.aWndList[r].oPlayCtrl.JSPlayM4_StopSound&&1!==o.aWndList[r].oPlayCtrl.JSPlayM4_StopSound()?(o.iCurrentSoundWnd=-1,t(Ve)):(o.iCurrentSoundWnd=-1,e()):O===o.aWndList[r].iMode?(o.bAudioInitFinished=!1,o.iCurrentSoundWnd=-1,o.oPlayCtrlAudio.JSPlayM4_StopSound(),o.oPlayCtrlAudio.JSPlayM4_Stop(),o.oPlayCtrlAudio.JSPlayM4_CloseStream(),e()):o._log.I("模式错误,正常情况不会进入该逻辑")})}},{key:"JS_EnableZoom",value:function(h,f,m){var _=this;return h||0===h||(h=this.iCurrentWndIndex),this.fEDrawCallback=m,new Promise(function(){var n=x(Y().mark(function e(t,n){var u,l,d,r,i,o,a,s,c;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==(r=_._checkPlay(h)))return e.abrupt("return",n(r));e.next=3;break;case 3:return u=_.aWndList[h],_.oJSPlugin.find(".draw-window").off(),_.oDrawCanvas&&_.oDrawCanvas.destroySelf(),_.oDrawCanvas=new Pn("".concat(_.options.szId,"_canvas_draw").concat(h)),_.oDrawCanvas.setShapeType("Rect"),_.oDrawCanvas.setDrawStyle(_.oZoomDrawStyle.drawColor,_.oZoomDrawStyle.fillColor,_.oZoomDrawStyle.translucent),e.next=11,_.JS_GetOSDTime(h);case 11:l=null,l=(O===u.iMode?"".concat(_.options.szId,"_playWindow"):"".concat(_.options.szId,"_playCanvas")).concat(h),d=document.getElementById(l).getBoundingClientRect(),r=d.width,i=d.height,f&&(o=f.startX*i,a=f.startY*r,s=f.endX*r,c=f.endY*i,A===u.iMode?u.oPlayCtrl.JSPlayM4_SetDisplayRegion&&u.oPlayCtrl.JSPlayM4_SetDisplayRegion(l,a,s,o,c):O===u.iMode&&(u.stDisplayRect={top:o,left:a,right:s,bottom:c},u.iRatio_x=r/(s-a),u.iRatio_y=i/(c-o),u.iZoomNum++,_._simulateZoom(h,u.stDisplayRect),u.refreshInterval=setInterval(function(){_._simulateZoom(h,u.stDisplayRect)},300))),_.oDrawCanvas.setDrawStatus(!0,function(e){var t,n,r,i,o=document.getElementById("".concat(_.options.szId,"_zoomCanvas").concat(h)),a=(d=o.getBoundingClientRect()).width,s=d.height;e.startPos&&e.endPos&&(e.startPos[0]>e.endPos[0]?(A===u.iMode?u.oPlayCtrl.JSPlayM4_SetDisplayRegion&&u.oPlayCtrl.JSPlayM4_SetDisplayRegion(l,0,u.iYUVWidth,0,u.iYUVHeight,!0):O===u.iMode&&u.refreshInterval&&(clearInterval(u.refreshInterval),o.getContext("2d").clearRect(0,0,a,s)),u.stDisplayRect={top:0,left:0,right:a,bottom:s},u.iRatio_x=1,u.iRatio_y=1,u.iZoomNum=0,m&&m({startX:0,startY:0,endX:a,endY:s,width:a,height:s})):(o=e.startPos[0],t=e.endPos[0],n=e.startPos[1],e=e.endPos[1],t-o<16||e-n<16||a<t-o||s<e-n||(A===u.iMode&&1!==(u.oPlayCtrl.JSPlayM4_SetDisplayRegion&&u.oPlayCtrl.JSPlayM4_SetDisplayRegion(l,o,t,n,e))&&(r=u.oPlayCtrl.JSPlayM4_GetLastError(),console.log("errorCode:"+r)),0!==u.iZoomNum&&(o=Math.round(o/u.iRatio_x)+u.stDisplayRect.left,n=Math.round(n/u.iRatio_y)+u.stDisplayRect.top,t=Math.round(t/u.iRatio_x)+u.stDisplayRect.left,e=Math.round(e/u.iRatio_y)+u.stDisplayRect.top),r=t-o,i=s/(e-n),20<u.iRatio_x)||20<u.iRatio_y||(u.iRatio_x=a/r,u.iRatio_y=i,u.stDisplayRect={top:n,left:o,right:t,bottom:e},u.iZoomNum++,O===u.iMode&&(u.refreshInterval&&clearInterval(u.refreshInterval),_._simulateZoom(h,u.stDisplayRect),u.refreshInterval=setInterval(function(){_._simulateZoom(h,u.stDisplayRect)},300)),m&&m({startX:o/a,startY:n/s,endX:t/a,endY:e/s,width:a,height:s}))))}),u.bEZoom=!0,t();case 20:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}())}},{key:"_simulateZoom",value:function(e,t){var n,r,i=document.getElementById("".concat(this.options.szId,"_zoomCanvas").concat(e)),o=i.getBoundingClientRect(),a=o.width,o=o.height,e=this.oJSPlugin.find("video.play-window").eq(e).get(0),s=a/(t.right-t.left),u=o/(t.bottom-t.top);20<s||20<u||((i=i.getContext("2d")).clearRect(0,0,a,o),(r=document.createElement("canvas")).width=a*s,r.height=o*u,(n=r.getContext("2d")).drawImage(e,0,0,r.width,r.height),e=t.left*s,r=t.top*u,s=n.getImageData(e,r,a,o),i.putImageData(s,0,0))}},{key:"JS_SetZoomDrawStyle",value:function(e){e.drawColor&&(this.oZoomDrawStyle.drawColor=e.drawColor),e.fillColor&&(this.oZoomDrawStyle.fillColor=e.fillColor),e.translucent&&(this.oZoomDrawStyle.translucent=e.translucent)}},{key:"JS_DisableZoom",value:function(o){var a=this;return o||0===o||(o=this.iCurrentWndIndex),new Promise(function(e,t){var n=a._checkPlay(o);if(0!==n)return t(n);var r,n=a.aWndList[o],i=(n.b3DZoom||a.oDrawCanvas.setDrawStatus(!1),a.oDrawCanvas.clearAllShape(),"".concat(a.options.szId,"_playCanvas").concat(o));if(A===n.iMode){if(n.oPlayCtrl.JSPlayM4_SetDisplayRegion&&1!==n.oPlayCtrl.JSPlayM4_SetDisplayRegion(i,0,n.iYUVWidth,0,n.iYUVHeight,!0))return void t($e)}else O===n.iMode&&(n.iZoomNum=0,n.refreshInterval&&clearInterval(n.refreshInterval),r=(t=(i=document.getElementById("".concat(a.options.szId,"_zoomCanvas").concat(o))).getBoundingClientRect()).width,t=t.height,i.getContext("2d").clearRect(0,0,r,t));n.bEZoom=!1,e()})}},{key:"JS_Enable3DZoom",value:function(r,i){var o=this;return r<0||r>this.iMaxWndNum-1?Promise.reject():new Promise(function(e){o.oJSPlugin.find(".draw-window").off(),o.f3DDrawCallback=i;var t="".concat(o.options.szId,"_canvas_draw").concat(r),n=(o.oDrawCanvas&&o.oDrawCanvas.destroySelf(),o.oDrawCanvas=new Pn(t),o.oDrawCanvas.setShapeType("Rect"),document.getElementById(t));o.oDrawCanvas.setDrawStyle(o.oZoomDrawStyle.drawColor,o.oZoomDrawStyle.fillColor,o.oZoomDrawStyle.translucent),o.oDrawCanvas.setDrawStatus(!0,function(e){i(e,{width:n.width,height:n.height})}),o.aWndList[r].b3DZoom=!0,e()})}},{key:"JS_Disable3DZoom",value:function(t){var n=this;return t<0||t>this.iMaxWndNum-1?Promise.reject():new Promise(function(e){n.aWndList[t].bEZoom||n.oDrawCanvas.setDrawStatus(!1),n.aWndList[t].b3DZoom=!1,e()})}},{key:"JS_CapturePicture",value:function(f,m,_,p){var y=this;return new Promise(function(){var n=x(Y().mark(function e(u,l){var t,d,n,r,i,o,a,s,c,h;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==(r=y._checkPlay(f)))return l(r),e.abrupt("return");e.next=4;break;case 4:_=_||"JPEG",(t=y.aWndList[f]).iMode!==A?e.next=10:("none"!==y.waterMarkMode?(d="BMP"===_?".BMP":".jpeg",t.oPlayCtrl.JSPlayM4_GetCanvasCapture(function(e,t,n){if(null!==e){var r=new ImageData(t,n),e=(r.data.set(e),document.createElement("canvas")),i=e.getContext("2d"),t=(e.width=t,e.height=n,i.putImageData(r,0,0),e.toDataURL("image/".concat(_)));if(t.length<8)return l();if(p){for(var o=atob(t.split(",")[1]),a=new Uint8Array(o.length),s=0;s<o.length;s++)a[s]=o.charCodeAt(s);p(a)}else{n=g.dataURLtoBlob(t);g.downloadFile(n,m+d)}u()}})):"BMP"===_?t.bEZoom?t.oPlayCtrl.JSPlayM4_GetCropBMP(function(e,t){var n=new Uint8Array(t);n.set(e.subarray(0,t)),p?p(n):g.downloadFile(n,m+".BMP"),u()},!1):t.oPlayCtrl.JSPlayM4_GetBMP(function(e,t){var n=new Uint8Array(t);n.set(e.subarray(0,t)),p?p(n):g.downloadFile(n,m+".BMP"),u()},!1):"JPEG"===_&&(t.bEZoom?t.oPlayCtrl.JSPlayM4_GetCropJPEG(function(e,t){var n=new Uint8Array(t);n.set(e.subarray(0,t)),p?p(n):g.downloadFile(n,m+".jpeg"),u()},!1):t.oPlayCtrl.JSPlayM4_GetJPEG(function(e,t){var n=new Uint8Array(t);n.set(e.subarray(0,t)),p?p(n):g.downloadFile(n,m+".jpeg"),u()},!1)),e.next=34);break;case 10:t.iMode!==O?e.next=34:(n="BMP"===_?".BMP":".jpeg",r=y.oJSPlugin.find("video.play-window").eq(f).get(0),(i=document.createElement("canvas")).width=r.videoWidth,i.height=r.videoHeight,i.getContext("2d").drawImage(r,0,0,i.width,i.height),a=o=null,"BMP"!==_?e.next=25:(o=g.generateBMPData(i),a=o,e.next=32));break;case 25:if((s=i.toDataURL("image/".concat(_))).length<8)return e.abrupt("return",l());e.next=28;break;case 28:for(o=g.dataURLtoBlob(s),c=atob(s.split(",")[1]),a=new Uint8Array(c.length),h=0;h<c.length;h++)a[h]=c.charCodeAt(h);case 32:p?p(a):g.downloadFile(o,m+n,i.width,i.height),u();case 34:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}())}},{key:"JS_StopRealPlayAll",value:function(){var r=this;return new Promise(function(e){r.oStreamClient.stopAll(),r.aWndList&&r.aWndList.forEach(function(){var n=x(Y().mark(function e(t,n){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.bPlay)return t.szStorageUUID&&r.JS_StopSave(n),t.bEZoom&&r.JS_DisableZoom(n),n===r.iCurrentSoundWnd&&r.JS_CloseSound(),e.next=6,r._closeStreamAndDestroy(n).then(function(){r._resetSubWindow(n)});e.next=8;break;case 6:r._clearNoDataReceiveTimer(n),r._clearFirstFrameTimer(n);case 8:t.bPlay=!1;case 9:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}()),r.iCurrentSoundWnd=-1,e()})}},{key:"JS_StartSave",value:function(a,s,u){var l=this;return new Promise(function(t,e){var n,r=0,i=!0,o=(u&&(r=u.iPackage,void 0!==u.suffix)&&(i=u.suffix),l._checkPlay(a));0!==o?e(o):(i&&s.indexOf(".mp4")<0&&s.indexOf(".MP4")<0&&(s+=".mp4"),s=s.replace(/[\/:*?"|]/g,""),o=l.aWndList[a].aHead,i=0,"playback"===l.aWndList[a].szPlayType&&(i=1),l.oStorageManager.startRecord(s,o,5,i,{cbEventHandler:(n=x(Y().mark(function e(t){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.JS_StopSave(a);case 2:setTimeout(function(){l.oEventCallback.pluginErrorHandler(a,t)},300);case 3:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),iPackage:r}).then(function(e){l.aWndList[a].szStorageUUID=e,t()},function(){e()}))})}},{key:"JS_StartSaveEx",value:function(s,u,l,d){var c=this;return new Promise(function(t,e){var n,r=0,i="",o=!0,a=(d&&(r=d.iPackage||0,i=d.secretKey||"",void 0!==d.suffix)&&(o=d.suffix),c._checkPlay(s));0!==a?e(a):(o&&u.indexOf(".mp4")<0&&u.indexOf(".MP4")<0&&(u+=".mp4"),u=u.replace(/[\/:*?"|]/g,""),a=c.aWndList[s].aHead,o=0,"playback"===c.aWndList[s].szPlayType&&(o=1),c.oStorageManager.startRecord(u,a,l,o,{cbEventHandler:(n=x(Y().mark(function e(t){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.JS_StopSave(s);case 2:setTimeout(function(){c.oEventCallback.pluginErrorHandler(s,t)},300);case 3:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),iPackage:r,nKeyType:1,pKeyData:i,nKeyLen:128}).then(function(e){c.aWndList[s].szStorageUUID=e,t()},function(){e()}))})}},{key:"JS_StopSave",value:function(n){var r=this;return this.aWndList[n].szStorageUUID?new Promise(function(e,t){r.oStorageManager.stopRecord(r.aWndList[n].szStorageUUID).then(function(){r.aWndList[n].szStorageUUID="",e()},function(e){t(e)})}):Promise.reject()}},{key:"JS_StartVideoAudioMixin",value:function(d,c,h,f){var m=this;return this.oTalkSamplingParam?new Promise(function(){var n=x(Y().mark(function e(o,a){var s,t,n,u,r,l,i;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=0,f&&(s=f.iPackage),t=m.oTalkSamplingParam.iAudioSamplingRate||16e3,n=m.oTalkSamplingParam.iAudioBitWidth||16,e.next=8,m.oAudioMixerManager.initAudioMixer(2,t,n,320,function(e){if(e&&m.aWndList)for(var t,n=0,r=m.aWndList.length;n<r;n++)m.oTalkSamplingParam&&(m.aWndList[n].szVideoAudioMixinUUID?(t={iTimeStamp:(new Date).getTime(),iAudioType:m.oTalkSamplingParam.iAudioType,iAudioBitRate:m.oTalkSamplingParam.iAudioBitRate,iAudioSamplingRate:m.oTalkSamplingParam.iAudioSamplingRate,iAudioBitWidth:m.oTalkSamplingParam.iAudioBitWidth,iChannel:m.oTalkSamplingParam.iChannel},m.oStorageManager.inputData(m.aWndList[n].szVideoAudioMixinUUID,new Uint8Array(e.buf),{samplingParam:t})):m.aWndList[n].szAudioMixinStoryUUID&&m.oGenericStorageManager.inputData(m.aWndList[n].szAudioMixinStoryUUID,new Uint8Array(e.buf)))}).then(function(e){m.szAudioMixinUUID=e},function(){a()});case 8:u=[],r=Y().mark(function e(){var t,n,r,i;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=d[l],n=m.aWndList[t].aHead,r=0,"playback"===m.aWndList[t].szPlayType&&(r=1),i=c[l],m.aWndList[t].bPlay)return i.indexOf(".mp4")<0&&i.indexOf(".MP4")<0&&(i+=".mp4"),i=i.replace(/[\/:*?"|]/g,""),e.next=10,m.oStorageManager.startRecord(i,n,h,r,{cbEventHandler:function(e){m.oEventCallback.pluginErrorHandler(t,e)},iPackage:s,samplingParam:g.deepMerge(m.oTalkSamplingParam,{iAudioType:28673})}).then(function(e){m.aWndList[t].szVideoAudioMixinUUID=e,u.push(t)},function(){});e.next=12;break;case 10:e.next=16;break;case 12:(i=i.replace(".mp4","")).indexOf(".wav")<0&&(i+=".wav"),i=i.replace(/[\/:*?"|]/g,""),m.oGenericStorageManager.startRecord(i,{cbEventHandler:function(e){m.oEventCallback.pluginErrorHandler(t,e)}}).then(function(e){m.aWndList[t].szAudioMixinStoryUUID=e,o()},function(){a()});case 16:case"end":return e.stop()}},e)}),l=0,i=d.length;case 11:if(l<i)return e.delegateYield(r(),"t0",13);e.next=16;break;case 13:l++,e.next=11;break;case 16:0<u.length?o(u):a();case 17:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}()):Promise.reject()}},{key:"JS_StopVideoAudioMixin",value:function(s){var u=this,l=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],d=2<arguments.length?arguments[2]:void 0;return new Promise(function(e){u.szAudioMixinUUID&&u.oAudioMixerManager.stopAudioMixe(u.szAudioMixinUUID);for(var o={},a={},t=0,n=s.length;t<n;t++)!function(){var i=s[t];u.aWndList[i].szVideoAudioMixinUUID?u.oStorageManager.stopRecord(u.aWndList[i].szVideoAudioMixinUUID,function(e,t){e?(o[i]=e,a[i]="video",l&&g.downloadFile(e,t)):(o[i]=null,a[i]="unknown"),d&&Object.keys(o).length===s.length&&d(o,a)}).then(function(){u.aWndList[i].szVideoAudioMixinUUID=""},function(){o[i]=null,a[i]="unknown",d&&Object.keys(o).length===s.length&&d(o,a)}):u.aWndList[i].szAudioMixinStoryUUID?u.oGenericStorageManager.stopRecord(u.aWndList[i].szAudioMixinStoryUUID,function(e,t){var n,r;e?(n=u.createWavHeader(e.byteLength,u.oTalkSamplingParam.iAudioSamplingRate||8e3),n=new Blob([n,e],{type:"audio/wav"}),l&&g.downloadFile(n,t),d&&((r=new FileReader).readAsArrayBuffer(n),r.onload=function(){o[i]=r.result,a[i]="audio",d&&Object.keys(o).length===s.length&&d(o,a)})):(o[i]=null,a[i]="unknown",d&&Object.keys(o).length===s.length&&d(o,a))}).then(function(){u.aWndList[i].szAudioMixinStoryUUID=""},function(){o[i]=null,a[i]="unknown",d&&Object.keys(o).length===s.length&&d(o,a)}):(o[i]=null,a[i]="unknown",d&&Object.keys(o).length===s.length&&d(o,a))}();e()})}},{key:"JS_StartTalkRecord",value:function(o){var a=this;return this.oTalkSamplingParam&&this.bStartTalkSuc?new Promise(function(){var n=x(Y().mark(function e(t,n){var r,i;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o.indexOf(".wav")<0&&(o+=".wav"),o=o.replace(/[\/:*?"|]/g,""),r=a.oTalkSamplingParam.iAudioSamplingRate||16e3,i=a.oTalkSamplingParam.iAudioBitWidth||16,e.next=8,a.oAudioMixerManager.initAudioMixer(2,r,i,320,function(e){e&&a.szAudioMixinStoryUUID&&a.oTalkSamplingParam&&a.oGenericStorageManager.inputData(a.szAudioMixinStoryUUID,new Uint8Array(e.buf))}).then(function(e){a.szAudioMixinUUID=e},function(){n()});case 8:a.oGenericStorageManager.startRecord(o,{cbEventHandler:function(e){a.oEventCallback.pluginErrorHandler(-1,e)}}).then(function(e){a.szAudioMixinStoryUUID=e,t()},function(){n()});case 9:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}()):Promise.reject()}},{key:"createWavHeader",value:function(e,t){var n=new ArrayBuffer(44),r=new DataView(n);return r.setUint32(0,1380533830,!1),r.setUint32(4,e+36,!0),r.setUint32(8,1463899717,!1),r.setUint32(12,1718449184,!1),r.setUint32(16,16,!0),r.setUint16(20,1,!0),r.setUint16(22,1,!0),r.setUint32(24,t,!0),r.setUint32(28,2*t,!0),r.setUint16(32,2,!0),r.setUint16(34,16,!0),r.setUint32(36,1684108385,!1),r.setUint32(40,e,!0),n}},{key:"JS_StopTalkRecord",value:function(){var o=this,a=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],s=1<arguments.length?arguments[1]:void 0;return this.szAudioMixinStoryUUID?new Promise(function(){var n=x(Y().mark(function e(t,i){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o.szAudioMixinUUID)return e.next=3,o.oAudioMixerManager.stopAudioMixe(o.szAudioMixinUUID).catch(function(){s&&s(null)});e.next=3;break;case 3:o.oGenericStorageManager.stopRecord(o.szAudioMixinStoryUUID,function(e,t){var n,r;e?(n=o.createWavHeader(e.byteLength,o.oTalkSamplingParam.iAudioSamplingRate||8e3),n=new Blob([n,e],{type:"audio/wav"}),s&&((r=new FileReader).readAsArrayBuffer(n),r.onload=function(){s(r.result)}),a&&g.downloadFile(n,t)):(s&&s(null),i())}).then(function(){o.szAudioMixinStoryUUID="",t()},function(e){s&&s(null),i(e)});case 4:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}()):Promise.reject()}},{key:"JS_StartBroadCastRecord",value:function(r){var i=this;return new Promise(function(){var n=x(Y().mark(function e(t,n){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.indexOf(".wav")<0&&(r+=".wav"),r=r.replace(/[\/:*?"|]/g,""),i.oGenericStorageManager.startRecord(r,{cbEventHandler:function(e){i.oEventCallback.pluginErrorHandler(-1,e)}}).then(function(e){i.szBroadCastStorageUUID=e,t()},function(){n()});case 3:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}())}},{key:"JS_StopBroadCastRecord",value:function(){var o=this,a=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],s=1<arguments.length?arguments[1]:void 0;return this.szBroadCastStorageUUID?new Promise(function(){var n=x(Y().mark(function e(t,i){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o.oGenericStorageManager.stopRecord(o.szBroadCastStorageUUID,function(e,t){var n,r;e?(n=o.createWavHeader(e.byteLength,8e3),n=new Blob([n,e],{type:"audio/wav"}),s&&((r=new FileReader).readAsArrayBuffer(n),r.onload=function(){s(r.result)}),a&&g.downloadFile(n,t)):i()}).then(function(){o.szBroadCastStorageUUID="",t()},function(e){i(e)});case 1:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}()):Promise.reject()}},{key:"JS_SetDoubleClickFullFlag",value:function(e){this.options.bSupporDoubleClickFull=e}},{key:"JS_SetFullScreenCapability",value:function(t){var n=this;return new Promise(function(e){n.options.bSupporDoubleClickFull=!!t,e()})}},{key:"JS_FullScreenDisplay",value:function(n){var r=this;return new Promise(function(e){var t;n&&((t=r.oJSPlugin.get(0)).requestFullScreen?t.requestFullScreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.mozRequestFullScreen&&t.mozRequestFullScreen()),r.bPluginFull=n,e()})}},{key:"JS_FullScreenSingle",value:function(i){var o=this;return-1===i&&(i=this.iCurrentWndIndex),this.aWndList[i].bPlay?new Promise(function(e,t){var n=document.fullscreen||document.webkitIsFullScreen||document.mozFullScreen||!1,r=null,r=(o.supportCustomContainer?o.customContainerDomList[i]:o.oJSPlugin.find(".parent-wnd").eq(0).children().eq(i)).get(0);if(n){if(o.oJSPlugin.find(".parent-wnd").eq(0).width()===window.innerWidth)return void t();document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen&&document.mozCancelFullScreen(),o.oVideoWindow=null,o.bPluginFull=!1}else o.oVideoWindowSize={width:r.offsetWidth,height:r.offsetHeight,scrollTop:o.oJSPlugin.find(".parent-wnd").eq(0).element.scrollTop},r.requestFullScreen?r.requestFullScreen():r.webkitRequestFullScreen?r.webkitRequestFullScreen():r.mozRequestFullScreen&&r.mozRequestFullScreen(),o.supportCustomContainer?o.oVideoWindow=o.customContainerDomList[i].children().eq(0):o.oVideoWindow=o.oJSPlugin.find(".parent-wnd").eq(0).children().eq(i);e()}):Promise.reject()}},{key:"JS_Resize",value:function(o,a){var s=this;return new Promise(function(i){setTimeout(function(){var e,t,n=document.fullscreen||document.webkitIsFullScreen||document.mozFullScreen||!1;if(s.bPluginFull&&n?(o=window.innerWidth,a=window.innerHeight,s.oJSPlugin.find(".parent-wnd").eq(0).css({width:o+"px",height:a+"px"})):s.oJSPlugin.find(".parent-wnd").eq(0).css({width:"100%",height:"100%"}),s.options.iWidth=o,s.options.iHeight=a,"firefox"===s.browserType)for(var r=0;r<s.options.iMaxSplit*s.options.iMaxSplit;r++)s.aWndList[r].oPlayCtrl&&s.aWndList[r].oPlayCtrl.JSPlayM4_ClearCanvas&&s.aWndList[r].oPlayCtrl.JSPlayM4_ClearCanvas();s._updateWnd(),s.oVideoWindow&&n&&(o=window.innerWidth,a=window.innerHeight,"safari"===s.browserType&&g.getSafariVersion()<=14&&s.oVideoWindow.css({width:o+"px",height:a+"px"}),(t=s.oVideoWindow.find("video.play-window")).attr("width",o),t.attr("height",a),t.css("left",0),t.css("top",0),(t=s.oVideoWindow.find("canvas.play-window")).attr("width",o),t.attr("height",a),t.css("width",o+"px"),t.css("height",a+"px"),t.css("left",0),t.css("top",0),(e=s.oVideoWindow.find(".draw-window")).attr("width",o-2),e.attr("height",a-2),e.css("left",0),e.css("top",0),(e=s.oVideoWindow.find(".zoom-window")).attr("width",o-2),e.attr("height",a-2),e.css("left",0),e.css("top",0),(e=s.oVideoWindow.find("img")).css("width",o+"px"),e.css("height",a+"px"),e.css("left",0),e.css("top",0),(e=s.aWndList[s.iCurrentWndIndex]).bPlay?t.css("background-color",s.oPluginColor.subBackgroundColor):t.css("background-color","transparent"),I===e.windowMode?s._updateFishEyePlayCanvas(s.iCurrentWndIndex):A===e.iMode&&e.oPlayCtrl&&e.oPlayCtrl.JSPlayM4_SetCanvasSize&&e.oPlayCtrl.JSPlayM4_SetCanvasSize(o,a),O===e.iMode)&&e.bEZoom&&(e.stDisplayRect={top:0,left:0,right:o,bottom:a},e.iRatio_x=1,e.iRatio_y=1,e.iZoomNum=0),n||(s.oVideoWindowSize&&s.customContainerDomList[s.iCurrentWndIndex]&&(t=s.customContainerDomList[s.iCurrentWndIndex],e=s.oVideoWindowSize.width,n=s.oVideoWindowSize.height,"fixed"===s.customContainerStyle&&(t.eq(0).width(e),t.eq(0).height(n),t.children().eq(0).width(e),t.children().eq(0).height(n)),t.eq(0).find(".draw-window").attr("width",e),t.eq(0).find(".draw-window").attr("height",n),t.eq(0).find("video.play-window").attr("width",e),t.eq(0).find("video.play-window").attr("height",n),t.eq(0).find("canvas.play-window").attr("width",e),t.eq(0).find("canvas.play-window").attr("height",n),t.eq(0).find("canvas.play-window").css("width",e+"px"),t.eq(0).find("canvas.play-window").css("height",n+"px"),t.eq(0).find("canvas.play-window").css("backgroundcolor",s.oPluginColor.subBackgroundColor),t.eq(0).find(".zoom-window").attr("width",e),t.eq(0).find(".zoom-window").attr("height",n),t=s.aWndList[s.iCurrentWndIndex],I===t.windowMode?s._updateFishEyePlayCanvas(s.iCurrentWndIndex):A===t.iMode&&t.oPlayCtrl&&t.oPlayCtrl.JSPlayM4_SetCanvasSize&&t.oPlayCtrl.JSPlayM4_SetCanvasSize(e,n)),"safari"===s.browserType&&s.oVideoWindowSize&&void 0!==s.oVideoWindowSize.scrollTop?setTimeout(function(){s.oJSPlugin.find(".parent-wnd").eq(0).element.scrollTop=s.oVideoWindowSize.scrollTop,s.oVideoWindowSize=null},0):s.oVideoWindowSize=null,s.oVideoWindow=null,s.bPluginFull=!1),s.oDrawCanvas.resizeCanvas(),s.oDrawCanvas.canvasRedraw(),s.wndOnFullFillContainerState&&s.options.fullFillContainerMode&&(s._specifiesWindowAsSingleWindow(s.iCurrentWndIndex),s._dealWndSelect(s.iCurrentWndIndex,!0)),i()},80)})}},{key:"JS_UpdateCustomContainer",value:function(){var e,t,n,i=this;document.fullscreen||document.webkitIsFullScreen||document.mozFullScreen||!1||(this.oVideoWindowSize&&(n=this.customContainerDomList[this.iCurrentWndIndex],e=this.oVideoWindowSize.width,t=this.oVideoWindowSize.height,"fixed"===this.customContainerStyle&&(n.eq(0).width(e),n.eq(0).height(t),n.children().eq(0).width(e),n.children().eq(0).height(t)),n.eq(0).find(".draw-window").attr("width",e),n.eq(0).find(".draw-window").attr("height",t),n.eq(0).find("video.play-window").attr("width",e),n.eq(0).find("video.play-window").attr("height",t),n.eq(0).find("canvas.play-window").attr("width",e),n.eq(0).find("canvas.play-window").attr("height",t),n.eq(0).find("canvas.play-window").css("width",e+"px"),n.eq(0).find("canvas.play-window").css("height",t+"px"),n.eq(0).find("canvas.play-window").css("backgroundcolor",this.oPluginColor.subBackgroundColor),n.eq(0).find(".zoom-window").attr("width",e),n.eq(0).find(".zoom-window").attr("height",t),n=this.aWndList[this.iCurrentWndIndex],I===n.windowMode?this._updateFishEyePlayCanvas(this.iCurrentWndIndex):A===n.iMode&&n.oPlayCtrl&&n.oPlayCtrl.JSPlayM4_SetCanvasSize&&n.oPlayCtrl.JSPlayM4_SetCanvasSize(e,t),this.oVideoWindowSize=null),this.oVideoWindow=null,this.bPluginFull=!1),this.customContainerDomList.forEach(function(e,t){var n=e.width(),r=e.height(),e=(e.eq(0).find(".draw-window").attr("width",n),e.eq(0).find(".draw-window").attr("height",r),e.eq(0).find("video.play-window").attr("width",n),e.eq(0).find("video.play-window").attr("height",r),e.eq(0).find("canvas.play-window").attr("width",n),e.eq(0).find("canvas.play-window").attr("height",r),e.eq(0).find("canvas.play-window").css("width",n+"px"),e.eq(0).find("canvas.play-window").css("height",r+"px"),e.eq(0).find("canvas.play-window").css("backgroundcolor",i.oPluginColor.subBackgroundColor),e.eq(0).find(".zoom-window").attr("width",n),e.eq(0).find(".zoom-window").attr("height",r),i.aWndList[t]);I===e.windowMode?i._updateFishEyePlayCanvas(t):A===e.iMode&&e.oPlayCtrl&&e.oPlayCtrl.JSPlayM4_SetCanvasSize&&e.oPlayCtrl.JSPlayM4_SetCanvasSize(n,r)})}},{key:"JS_GetWndContainer",value:function(e){return e<0||null==e?-1:(this.supportCustomContainer?this.customContainerDomList[e].children():this.oJSPlugin.find(".parent-wnd").eq(0).children().eq(e)).element}},{key:"JS_SelectWnd",value:function(t){var n=this;return new Promise(function(e){(n.supportCustomContainer?n.customContainerDomList[t].children().eq(0):n.oJSPlugin.find(".parent-wnd").eq(0).children().eq(t)).mousedown(),e()})}},{key:"JS_SetWindowSelected",value:function(e){return this.oEventCallback.windowEventSelect(e),this.JS_SelectWnd(e)}},{key:"JS_SetWindowUnSelectedMode",value:function(){this.oJSPlugin.find(".parent-wnd").eq(0).children().css("border","1px solid "+this.oPluginColor.borderColor)}},{key:"JS_SetWndSelectedBorderShowMode",value:function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];e||this.JS_SetWindowUnSelectedMode(),this.options.showSelectedBorder=e}},{key:"JS_PlayWithImg",value:function(i){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,t=S("#"+"".concat(this.options.szId,"_playCanvas").concat(e)),n=t.width(),t=t.height(),o=S("#"+"".concat(this.options.szId,"_playImg").concat(e));return o.show(),this.aWndList[e].bPlay=!0,o.css({width:n+"px",height:t+"px",border:"1px solid "+this.oPluginColor.borderColor}),new Promise(function(e,t){function n(){o.off("load",n),o.off("error",r),e()}function r(){o.off("error",r),o.off("load",n),t()}o.on("load",n),o.on("error",r),o.attr("src",i)})}},{key:"JS_SetOptions",value:function(t){var n=this;return new Promise(function(e){!1===t.bSupportSound&&(n.options.bSupportSound=t.bSupportSound),!1===t.bSupporDoubleClickFull&&(n.options.bSupporDoubleClickFull=t.bSupporDoubleClickFull),!1===t.bSupportDecoder3&&(n.options.bSupportDecoder3=t.bSupportDecoder3),!1===t.bSupportMSE&&(n.options.bSupportMSE=t.bSupportMSE),e()})}},{key:"JS_SetLogFlag",value:function(n){var r=this;return new Promise(function(e){for(var t=0;t<r.iMaxWndNum;t++)r.aWndList[t].oPlayCtrl&&r.aWndList[t].oPlayCtrl.JSPlayM4_SetPrintLogFlag(n);e()})}},{key:"JS_SetDecodeThreadNum",value:function(n){var r=this;return new Promise(function(e){for(var t=0;t<r.iMaxWndNum;t++)r.aWndList[t].oPlayCtrl&&r.aWndList[t].oPlayCtrl.JSPlayM4_SetDecodeThreadNum(n);e()})}},{key:"JS_RenderPrivateData",value:function(e,t,n){var r=this.iCurrentWndIndex,n=this.aWndList[r=void 0!==n?n:r],i=this._checkPlay(r);return 0!==i?Promise.reject():this.aWndList[r].iMode===O?(this._log.E("".concat(i=Ge,": MSE unsupport this function.")),Promise.reject()):("number"==typeof e&&(e=e.toString()),"number"==typeof t&&(t=t.toString()),1!==n.oPlayCtrl.JSPlayM4_RenderPrivateData(e,t)&&(i=$e,this._log.I("".concat(Ve,": 播放库智能信息接口报错:"),i)),Promise.resolve())}},{key:"JS_RenderPrivateDataEx",value:function(e,t,n,r){var i=this.iCurrentWndIndex,r=this.aWndList[i=void 0!==r?r:i],o=this._checkPlay(i);return 0!==o?Promise.reject():this.aWndList[i].iMode===O?(this._log.E("".concat(o=Ge,": MSE unsupport this function.")),Promise.reject()):("number"==typeof e&&(e=e.toString()),"number"==typeof n&&(n=n.toString()),1!==r.oPlayCtrl.JSPlayM4_RenderPrivateDataEx(e,t,n)?(o=$e,this._log.I("".concat(Ve,": 播放库智能信息接口报错:"),o),Promise.reject()):Promise.resolve())}},{key:"JS_RenderALLPrivateData",value:function(n,e){var t=this.iCurrentWndIndex,r=this.aWndList[t=void 0!==e?e:t],i=this._checkPlay(t);return 0!==i?Promise.reject():r.iMode!==A?(i="0x000010017",Promise.reject()):([{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===r.oPlayCtrl.JSPlayM4_RenderPrivateData(t.typeCode,n)?n&&t.children&&0<t.children.length&&t.children.forEach(function(e){1!==r.oPlayCtrl.JSPlayM4_RenderPrivateDataEx(t.typeCode,e.typeCode,n)&&(console.warn("trigger intelligence sub ".concat(e.typeCode," ").concat(n?"open":"close"," failed")),i=1)}):(console.warn("trigger intelligence main ".concat(t.typeCode," ").concat(n?"open":"close"," failed")),i=1)}),Promise.resolve(i))}},{key:"_checkPlay",value:function(e){return e<0||e>this.iMaxWndNum-1?(this._log.I("".concat(Be,": unexpected window index.")),Be):this.aWndList[e].bPlay?0:(this._log.I("".concat(Ne,": this window is not playing.")),Ne)}},{key:"_checkPlayback",value:function(e){var t=this._checkPlay(e);return 0===t&&"playback"!==this.aWndList[e].szPlayType&&(this._log.I("".concat(Je,": this function was only supported by playback.")),t=Je),t}},{key:"_initAudioPlayCtrl",value:function(e,t){var e=new Uint8Array(e),n=4===e[8]?0:1;this.oPlayCtrlAudio.JSPlayM4_OpenStream(e,40,jn),this.oPlayCtrlAudio.JSPlayM4_SetStreamOpenMode(n),this.oPlayCtrlAudio.JSPlayM4_SetInputBufSize(jn),t&&""!==t&&this.oPlayCtrlAudio.JSPlayM4_SetSecretKey(1,t,128),this.oPlayCtrlAudio.JSPlayM4_Play(null)}},{key:"_createAudioPlayCtrl",value:function(){var e,t=this;this.oPlayCtrlAudio||(e="".concat(this.options.szBasePath,"/playctrl/PlayCtrlWasm/playctrlV1/Decoder.js"),this.oPlayCtrlAudio=new window.JSPlayCtrl(null,e,function(e){"loaded"===e.cmd&&(t.bAudioLoad=!0)},this.userFlag,this.options.renderEngine,0,1))}},{key:"_createFlvPlayer",value:function(r){var e,t,n,i=this,o=this.aWndList[r],a=(o.oMSE&&(o.bPlay=!1,o.oMSE.destroy()),a=this.supportCustomContainer?(e=(a=this.customContainerDomList[r]).find("video.play-window").eq(0),a.find("canvas.play-window").eq(0)):(e=this.oJSPlugin.find("video.play-window").eq(r),this.oJSPlugin.find("canvas.play-window").eq(r)),e.show(),a.hide(),this.oPlayCtrlAudio||this._createAudioPlayCtrl(),o.oMSE=Yn.a.createPlayer({hasAudio:!1,hasVideo:!0,isLive:!0,type:"flv"},{enableWorker:!1,lazyLoadMaxDuration:180,seekType:"range",isLive:!0,enableDurationMonitor:!0,lowLatencyThreshold:1,decreaseDurationStep:.4})),s=e.get(0),u=!1,l=(s.addEventListener("error",function(){var t=x(Y().mark(function e(t){var n;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("[iWndNum-".concat(r,"] mediaElement error: "),t.target.error),u){e.next=8;break}return u=!0,e.next=5,i.JS_Pause(r);case 5:i._switchMSEToJSDecoder1(r),(n=function(){i.aWndList[r].bLoad?i.JS_Resume(r):setTimeout(n,200)})();case 8:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}()),this.aWndList[r].dataReceiveTimer=setTimeout(function(){i._switchMSEToJSDecoder1(r)},2e3),this),d=function(){clearTimeout(l.aWndList[r].dataReceiveTimer),s.removeEventListener("loadeddata",d),l.oEventCallback.firstFrameCallBack&&(l._clearFirstFrameTimer(r),l.oEventCallback.firstFrameCallBack(r))};s.addEventListener("loadeddata",d),this.options.openDebug&&(t=function(){s.removeEventListener("canplay",t)},s.addEventListener("canplay",t),n=function(){s.removeEventListener("playing",n)},s.addEventListener("playing",n)),o.receivedLength=0,a.attachMediaElement(s),a.load(),o.bPlay=!0,o.bLoad=!0,a.onParsedData=this._onParsedData.bind(this),Yn.a.LoggingControl.enableAll=!1,Yn.a.LoggingControl.addLogListener(function(e,t){i._log.I("errorType: ".concat(e,": errorInfo: ").concat(t))})}},{key:"_supportHEVC",value:function(){var t=!1;try{var e=window.document.createElement("video").canPlayType('video/mp4; codecs="hevc"');if(!(t="probably"===e||"maybe"===e||MediaSource.isTypeSupported('video/mp4; codecs="hevc"')))for(var n=['video/mp4; codecs="hvc1.2.4.H123.B0"','video/mp4;codecs="hev1.1.6.L120.90"'],r=0,i=n.length;r<i;r++)if("MediaSource"in window&&MediaSource.isTypeSupported(n[r])){t=!0;break}}catch(e){console.log("_supportHEVC error:",e),t=!1}return t}},{key:"_JSPlayFECGetPort",value:function(e,n,r){return new Promise(function(t){e.oPlayCtrl.JSPlayM4_FEC_GetPort(n,r,function(e){t(e)})})}},{key:"_fishEyeExpansion",value:function(e){var o=this,a=this.aWndList[e],t=a.fishEyeSubCanvasList,s=this.aWndList[e].fishPlaceType,u=E[a.fishEyeMode].correctList,l=E[a.fishEyeMode].defaultPtzParam,n=E[a.fishEyeMode].pTZDisplayMode,d={upDateType:4,fValue:0,fPTZParam:{fPTZPositionX:0,fPTZPositionY:0},fPTZZoom:0},c=t[E[a.fishEyeMode].mainWindow],r=(a.canvasSubPortMap[c]=0,t.findIndex(function(e){return e===c}));a.canvasCorrectMap[c]=u[r],a.oPlayCtrl.JSPlayM4_FEC_ResetCorrectType(0,s,u[r]),t.forEach(function(){var n=x(Y().mark(function e(t,n){var r,i;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t!==c?e.next=5:(a.currentfishCanvas=t,a.subPortOperationMap[0]={startX:0,startY:0,diffX:0,diffY:0,totalX:0,totalY:0},e.next=15);break;case 5:return e.next=7,o._JSPlayFECGetPort(a,s,u[n]);case 7:if(-1===(r=e.sent))return console.log("THML JSPlayM4_FEC_GetPort error"),e.abrupt("return");e.next=11;break;case 11:a.oPlayCtrl.JSPlayM4_FEC_Enable(r),1===a.oPlayCtrl.JSPlayM4_FEC_SetWnd(r,t)&&(a.canvasSubPortMap[t]=r,a.canvasCorrectMap[t]=u[n],18===a.fishEyeMode)&&a.oPlayCtrl.JSPlayM4_FEC_SetBackCilling(r,1),l[n]&&(d.upDateType=8,d.fPTZParam.fPTZPositionX=l[n].x,d.fPTZParam.fPTZPositionY=l[n].y,a.oPlayCtrl.JSPlayM4_FEC_SetParam(r,d),a.subPortOperationMap[r]={startX:0,startY:0,diffX:0,diffY:0,totalX:0,totalY:0},i={upDateType:16,stPTZColor:{nR:l[n].r,nG:l[n].g,nB:l[n].b,nAlpha:255},fPTZZoom:0},a.oPlayCtrl.JSPlayM4_FEC_SetParam(r,i));case 15:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}()),"sector"===n?this.JS_SetPTZDisplayMode(e,2):"rect"===n?this.JS_SetPTZDisplayMode(e,1):this.JS_SetPTZDisplayMode(e,0)}},{key:"_playCtrlLoad",value:(d=x(Y().mark(function e(n){var t,r,i,o,a,s,u=this,l=arguments;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=1<l.length&&void 0!==l[1]?l[1]:1,t=2<l.length&&void 0!==l[2]?l[2]:"",r=this.aWndList[n],a=0,A!==r.iMode)e.next=42;else if(1!==r.oPlayCtrl.JSPlayM4_GetPort()&&this._log.I("failed to get the port"),"playback"===r.szPlayType&&(a=1),r.oPlayCtrl.JSPlayM4_SetStreamOpenMode(a),this.options.saveRawData&&r.oPlayCtrl.JSPlayM4_DownloadData(!0),r.oPlayCtrl.JSPlayM4_OpenStream(r.aHead,40,jn),r.oPlayCtrl.iBufferValue=jn,0<this.displayBufSize&&(r.oPlayCtrl.JSPlayM4_SetDisplayBuf(this.displayBufSize),r.oPlayCtrl.JSPlayM4_SetDisplayBuf(-1)),void 0!==s&&r.oPlayCtrl.JSPlayM4_SetDecodeEngine(s),this.isSycPlayback&&"playback"===r.szPlayType&&r.oPlayCtrl.JSPlayM4_SetSycGroup(1),r.oPlayCtrl.JSPlayM4_SetFirstFrameCallBack(1,function(){var t=x(Y().mark(function e(t){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(u.aWndList[n]&&u.aWndList[n].oPlayCtrl&&0<=n)if(I===r.windowMode&&t){if((0===t.decodeEngine||2===t.decodeEngine)&&4<r.fishEyeSubCanvasList.length)return e.next=5,u._closeStreamAndDestroy(n);e.next=6}else e.next=7;else e.next=10;break;case 5:u.oEventCallback.pluginErrorHandler(n,1013);case 6:u._fishEyeExpansion(n);case 7:0<u.displayBufSize&&r.oPlayCtrl.JSPlayM4_SetDisplayBuf(u.displayBufSize),u.oEventCallback.firstFrameCallBack&&(u._clearFirstFrameTimer(n),u.oEventCallback.firstFrameCallBack(n)),setTimeout(function(){"font"===u.waterMarkMode?u._setWaterMark(n,u.waterMarkData):"image"===u.waterMarkMode&&u._setWaterMarkImage(n,u.waterMarkData)},300);case 10:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}()),r.oPlayCtrl.JSPlayM4_SetRunTimeInfoCallBackEx(1,function(e){5===e.nErrorCode?(u._log.I("SecretKey error"),u.oEventCallback.secretKeyError(n),u._clearFirstFrameTimer(n)):7===e.nErrorCode?(u._clearFirstFrameTimer(n),u.oEventCallback.pluginErrorHandler(n,1006)):6===e.nErrorCode?u.oEventCallback.performanceLack():9===e.nErrorCode&&u.oEventCallback.pluginErrorHandler(n,1002)}),r.szSecretKey&&""!==r.szSecretKey&&(r.oPlayCtrl.JSPlayM4_SetSecretKey(r.szSecretKey),r.szSecretKey=""),i=1,I!==r.windowMode)e.next=33;else{if(o=r.fishEyeSubCanvasList,!r.bSupHardDecHEVC&&r.streamType===Gn&&4<o.length)return e.next=25,this._closeStreamAndDestroy(n);e.next=27}break;case 25:return this.oEventCallback.pluginErrorHandler(n,1013),e.abrupt("return");case 27:a=o[E[r.fishEyeMode].mainWindow],s=o.join(","),r.oPlayCtrl.JSPlayM4_FEC_SetCanvasID(s),i=r.oPlayCtrl.JSPlayM4_Play(a),e.next=34;break;case 33:i=r.oPlayCtrl.JSPlayM4_Play("".concat(this.options.szId,"_playCanvas").concat(n));case 34:if(1!==i)return e.abrupt("return",$e);e.next=36;break;case 36:"reverse"===t&&r.oPlayCtrl.JSPlayM4_ReversePlay(),r.oPlayCtrl.JSPlayM4_SetFrameInfoCallBack(1),r.bPlay=!0,r.bLoad=!0,e.next=43;break;case 42:O===r.iMode&&this._log.I("模式错误,正常情况不会进入该逻辑");case 43:return e.abrupt("return",1);case 44:case"end":return e.stop()}},e,this)})),function(e){return d.apply(this,arguments)})},{key:"_feedData",value:function(e,t){var n,r,i=this.aWndList[e];if(this.isBrowserVisible)if(i.bLoad){if(0<i.stashArray.length)for(;0<i.stashArray.length;){var o=i.stashArray.shift(),o=new Uint8Array(o.buf);i.oPlayCtrl.JSPlayM4_InputData(o,o.length)}A===i.iMode&&(n=new Uint8Array(t.buf),i.oPlayCtrl)&&(1===(n=i.oPlayCtrl.JSPlayM4_InputData(n,n.length))?0!==i.iDecodeType&&i.oPlayCtrl.JSPlayM4_GetSourceBufferRemain()<i.oPlayCtrl.iBufferValue/2&&(i.oPlayCtrl.JSPlayM4_SetDecodeFrameType(0),i.iDecodeType=0):(r=i.oPlayCtrl.JSPlayM4_GetLastError(),11===n||11===r?1===i.iDecodeType||i.bFrameForward?i.bFrameForward&&(this._clearNoDataReceiveTimer(e),this.oStreamClient.pause(i.szStreamUUID),i.isStreamPause=!0):(i.oPlayCtrl.JSPlayM4_SetDecodeFrameType(1),i.iDecodeType=1):this.oEventCallback.pluginErrorHandler(e,$e+r,"JSPlayM4_InputData oError")))}else i.stashArray.push(t)}},{key:"_closeStreamAndDestroy",value:function(r){function t(){var e,n,t;i.bPlay=!1,i.bFrameForward=!1,i.iRate=1,i.isPause=!1,i.isStreamPause=!1,i.stashArray=[],O===i.iMode?(e=o.oJSPlugin.find("video.play-window").eq(r),o.oJSPlugin.find("canvas.play-window").eq(r).show(),e.hide(),e.get(0).pause&&e.get(0).pause(),o.oTransformManager.stopTransform(i.szTransformUUID),i.szTransformUUID="",i.oMSE&&i.oMSE.destroy(),i.oMSE=null,i.receivedLength=0):A===i.iMode&&i.oPlayCtrl&&(i.oPlayCtrl.JSPlayM4_SetFirstFrameCallBack(0,null),i.oPlayCtrl.JSPlayM4_SetRunTimeInfoCallBackEx(1,null),i.stateCallBack=null,i.oPlayCtrl.JSPlayM4_SetFrameInfoCallBack&&i.oPlayCtrl.JSPlayM4_SetFrameInfoCallBack(0),I===i.windowMode&&(n=i.canvasSubPortMap,Object.keys(n).forEach(function(e){var t=n[e];i.oPlayCtrl.JSPlayM4_FEC_Disable(t,!0,!0),i.oPlayCtrl.JSPlayM4_FEC_DelPort(t),delete n[e]}),t=i.canvasCruiseMap,Object.keys(t).forEach(function(e){e=t[e];e.loopTimer&&(clearInterval(e.loopTimer),e.loopTimer=null),e.timer&&(clearTimeout(e.timer),e.timer=null)})),i.oPlayCtrl.JSPlayM4_Stop&&i.oPlayCtrl.JSPlayM4_Stop(o.options.clearCanvasFlag),i.oPlayCtrl.JSPlayM4_CloseStream&&i.oPlayCtrl.JSPlayM4_CloseStream(),i.oPlayCtrl.JSPlayM4_FreePort&&i.oPlayCtrl.JSPlayM4_FreePort(),i.oPlayCtrl=null),o.oJSPlugin.find("canvas.play-window").eq(r).css("background-color","transparent"),i.bLoad=!1,i.iMode=A}var n=this,i=this.aWndList[r],o=this;this._clearFirstFrameTimer(r);return new Promise(function(e){i.szStreamUUID?(n.oStreamClient.stop(i.szStreamUUID).then(function(){t(),e()},function(){t(),e()}),i.szStreamUUID="",i.lastStreamUUID=""):(t(),e()),n._resetCanvas(r)})}},{key:"_resetCanvas",value:function(e){if(this.supportCustomContainer){var e="".concat(this.options.szId,"_playCanvas").concat(e),t=document.getElementById(e);if(t){var n=t.parentNode.childNodes;t.parentNode.parentNode&&(t.parentNode.parentNode.parentNode&&t.parentNode.parentNode.parentNode.removeChild(t.parentNode.parentNode),t.parentNode.parentNode.removeChild(t.parentNode));for(var r=n.length-1;0<=r;r--)t.parentNode&&t.parentNode.removeChild&&t.parentNode.removeChild(n[r])}}}},{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 r=Date.parse(e.replace(/-/g," "));this.aWndList[n].iCurrentOSDTime=new Date(r).getTime()}}},{key:"JS_PlayM4_GetSourceBufferRemain",value:function(e){var e=this.aWndList[e],t=0;return t=A===e.iMode?e.oPlayCtrl.JSPlayM4_GetSourceBufferRemain():t}},{key:"JS_SetAntialias",value:function(e,t){var n,r,t=this.aWndList[t],i=null;A===t.iMode&&t.oPlayCtrl.JSPlayM4_SetAntialias?(i=t.oPlayCtrl.JSPlayM4_SetAntialias,this.generalScreenSplitMode.includes(this.options.iCurrentSplit)&&(n=this.options.iWidth%this.options.iCurrentSplit,r=this.options.iHeight%this.options.iCurrentSplit,(this.options.iWidth-n)/this.options.iCurrentSplit*((this.options.iHeight-r)/this.options.iCurrentSplit)<=151200&&!1===t.isAntialias&&e&&(1===i(1)?(t.isAntialias=!0,this._log.I("JSPlayM4_SetAntialias open sucess")):this._log.I("JSPlayM4_SetAntialias open failed")),e||!0!==t.isAntialias||(t.isAntialias=!1,1===i(0)?this._log.I("JSPlayM4_SetAntialias close sucess"):this._log.I("JSPlayM4_SetAntialias close failed")))):this._log.I("does not support JS_SetAntialias")}},{key:"_loadTalk",value:function(o,d){var c,h,w,b,f,M=this,m="",_="",p="",y=window.navigator,v=new(window.AudioContext||window.webkitAudioContext);return this.bTalkLoaded=!1,new Promise(function(){var n=x(Y().mark(function e(n,a){var t,r,s,u,l,i;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return m=-1!==o.search("wss://")&&-1!==o.indexOf("proxy")?(t=o.indexOf("/proxy/")+7,r=o.indexOf("/",t),_=o.substring(t,r),o.replace("wss:","ws:").replace(_,"").replace("/proxy/","")):o,s=Object.assign({},{playURL:m,proxy:_,talkMode:0,mode:"media"},d),u=null,l=!1,i="OTAP",d.szAuth&&(l=!0,u=d.oStopTalkCB,delete s.playURL,delete s.proxy,d.szProtocolType&&(i=d.szProtocolType),-1<d.szAuth.indexOf(":::3:")?s.sessionID=d.szAuth.split(":::3:")[1]:-1<d.szAuth.indexOf(":::4:")?s.token=d.szAuth.split(":::4:")[1]:s.sessionID=d.szAuth.split("::")[1]),e.next=8,M.oStreamClient.openStream(o,s,function(e){var i,o;e.bHead?(c=e.oParams.iAudioType,h=e.oParams.iAudioBitRate,w=e.oParams.iAudioSamplingRate,b=e.oParams.iAudioBitWidth,f=e.oParams.iChannel,M.oTalkSamplingParam={iAudioType:c,iAudioBitRate:h,iAudioSamplingRate:w,iAudioBitWidth:b,iChannel:f},M.bTalkLoaded||(M.oTalkPlayCtrl.Talk_CreateAudEncode(c),M.oTalkPlayCtrl.Talk_SetAudEncodeParam(w,f,h,b),1!==parseInt(s.talkMode,10)&&M.oTalkPlayCtrl.Talk_RegisterAudEncodeCB(function(e){M.bStartTalkSuc&&M.oStreamClient.transmission(p,e)}),M.oTalkPlayCtrl.Talk_CreateAuDecode(),M.oTalkPlayCtrl.Talk_SetAudDecodeParam(w,f,h,b,c),M.oTalkPlayCtrl.Talk_OpenStreamDecodeData(),M.oTalkPlayCtrl.Talk_SetANRParam(1,4),i=null,o=new Uint8Array(0),M.oTalkPlayCtrl.Talk_RegisterAudDecodeCB(function(e){if(M.bStartTalkSuc&&M.szAudioMixinUUID)if(320===e.length)i?320===i.length&&((t=new Uint8Array(640)).set(i,0),t.set(e,320),M.oAudioMixerManager.inputData(M.szAudioMixinUUID,1,t),i=null):i=new Uint8Array(e);else if(640===e.length)M.oAudioMixerManager.inputData(M.szAudioMixinUUID,1,e);else if(1280===e.length){var t=e.subarray(0,640),n=e.subarray(640,1280);M.oAudioMixerManager.inputData(M.szAudioMixinUUID,1,t),M.oAudioMixerManager.inputData(M.szAudioMixinUUID,1,n)}else{t=new Uint8Array(o.length+e.length);for(t.set(o,0),t.set(e,o.length),o=t;640<=o.length;){var r=o.subarray(0,640);M.oAudioMixerManager.inputData(M.szAudioMixinUUID,1,r),o=o.subarray(640)}}}),M.bTalkLoaded=!0)):(e.type&&"streamTransError"===e.type&&(M.bStartTalkSuc?l?u(e):M.oEventCallback.pluginErrorHandler&&M.oEventCallback.pluginErrorHandler(0,1009,e):l?(a(e),M.JS_StopTalk()):a(e)),2!==parseInt(s.talkMode,10)&&e.buf&&M.oTalkPlayCtrl.Talk_InputAudDecodeData(e.buf,e.buf.byteLength))},function(){a(),l&&u()}).then(function(){var t=x(Y().mark(function e(t){var n,r;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return M.szTalkStreamId=t,p=t,n="startTalk",r=null,l&&(n="voicetalk",r={protocolType:i}),e.next=7,M.oStreamClient.startPlay(t,"","",n,r).then(function(){M.bStartTalkSuc=!0},function(e){M.bStartTalkSuc=!1,a(e)});case 7:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}(),function(e){a(e)});case 8:if(void 0===y.mediaDevices&&(y.mediaDevices={}),void 0===y.mediaDevices.getUserMedia&&(y.mediaDevices.getUserMedia=function(){y.getUserMedia||y.webkitGetUserMedia||y.mozGetUserMedia||y.msGetUserMedia||a(new Error("getUserMedia is not implemented in this browser"))}),1===parseInt(s.talkMode,10))return n(),e.abrupt("return");e.next=13;break;case 13:y.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,channelCount:1,sampleSize:16,sampleRate:48e3},video:!1}).then(function(e){var t,g;(M.bStartTalkSuc?(M.talkMediaStream=e,t=(e=v.createMediaStreamSource(e)).context,M.talkRecoderNode=t.createScriptProcessor(512,1,1),g=[],M.talkRecoderNode.onaudioprocess=function(e){for(var t=e.inputBuffer.getChannelData(0),n=48e3/w,r=t.length/n,i=new window.Float32Array(r),o=0,a=0;o<r;)i[o]=t[a],a+=n,o++;var e=i.length,s=null;if(16===b)for(var u=new window.ArrayBuffer(2*e),s=new window.DataView(u),l=0,d=0;d<i.length;d++,l+=2){var c=Math.max(-1,Math.min(1,i[d]));s.setInt16(l,c<0?32768*c:32767*c,!0)}else if(8===b)for(var u=new window.ArrayBuffer(e),h=(s=new window.DataView(u),0),f=0;f<i.length;f++,h++){var m=Math.max(-1,Math.min(1,i[f])),m=m<0?32768*m:32767*m,m=parseInt(255/(65535/(32768+m)),10);s.setInt8(h,m,!0)}if(M.bTalkLoaded&&null!==s.buffer)for(var _=new Uint8Array(s.buffer),p=g.length,y=0,v=_.byteLength;y<v;y++)g[p++]=_[y],640===g.length&&(M.bTalkLoaded&&(M.oTalkPlayCtrl.Talk_InputAudEncodeData(new Uint8Array(g),640),M.szAudioMixinUUID)&&M.oAudioMixerManager.inputData(M.szAudioMixinUUID,0,new Uint8Array(g)),p=g.length=0)},e.connect(M.talkRecoderNode),M.talkRecoderNode.connect(t.destination),n):a)()},function(e){a(1022),M.JS_StopTalk(),M._log.I("".concat(1022,": 采集音频接口失败"),e)});case 14:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}())}},{key:"JS_StartTalk",value:function(o,a){var s=this;return this.bStartTalkSuc?Promise.reject():new Promise(function(){var n=x(Y().mark(function e(r,i){var t;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t="".concat(s.options.szBasePath,"/talkW/AudioInterCom.js"),null===s.oTalkPlayCtrl?s.oTalkPlayCtrl=new _t(t,function(e){var t=e.cmd,n=e.status,e=e.errorCode;console.log("status: ".concat(n)),console.log("errorCode: ".concat(e)),"loaded"===t?s._loadTalk(o,a).then(function(){r()},function(e){s.bStartTalkSuc=!1,i(e)}):(s.bStartTalkSuc=!1,i())}):s._loadTalk(o,a).then(function(){r()},function(e){s.bStartTalkSuc=!1,i(e)});case 3:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}())}},{key:"JS_StopTalk",value:function(){var n=this;return new Promise(function(e,t){(n.oTalkPlayCtrl?(n.oStreamClient.stop(n.szTalkStreamId).then(function(){n.szTalkStreamId=""}),n.bTalkLoaded=!1,n.bStartTalkSuc=!1,n.oTalkPlayCtrl.Talk_DestroyAudEncode(),n.oTalkPlayCtrl.Talk_DestroyAudDecode(),n.oTalkPlayCtrl=null,n.talkMediaStream&&n.talkMediaStream.getTracks().forEach(function(e){e.stop()}),n.talkRecoderNode&&n.talkRecoderNode.disconnect(),n.talkRecoderNode=null,n.talkMediaStream=null,e):t)()})}},{key:"JS_TalkSetVolume",value:function(n){var r=this;return new Promise(function(e,t){r.oTalkPlayCtrl&&0===r.oTalkPlayCtrl.Talk_SetVolume(n/100)?t(r.oTalkPlayCtrl.Talk_GetLastError()+void 0):e()})}},{key:"JS_TalkGetVolume",value:function(){var e=this;return new Promise(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 Promise(function(e){n.oTalkPlayCtrl&&n.oTalkPlayCtrl.Talk_SetTalkLogFlag(t),e()})}},{key:"_loadBroadCast",value:function(o,a,s,u){var l=this,d="",c="";return this.bBroadCastLoaded=!1,new Promise(function(n,r){d=-1!==a.search("wss://")&&-1!==a.indexOf("proxy")?(t=a.indexOf("/proxy/")+7,e=a.indexOf("/",t),c=a.substring(t,e),a.replace("wss:","ws:").replace(c,"").replace("/proxy/","")):a;var e,t=Object.assign({},{playURL:d,proxy:c,mode:"media"},s),i=o;l.oStreamClient.openStream(a,t,function(e){e.bHead?(l.oBroadCastSamplingParam||(l.oBroadCastSamplingParam={},"G711_u"===u?(l.oBroadCastSamplingParam.iAudioType=2,l.oBroadCastSamplingParam.iAudioBitRate=64e3,l.oBroadCastSamplingParam.iAudioSamplingRate=8e3):"MP3"===u?(l.oBroadCastSamplingParam.iAudioType=10,l.oBroadCastSamplingParam.iAudioBitRate=192e3,l.oBroadCastSamplingParam.iAudioSamplingRate=48e3):(l.oBroadCastSamplingParam.iAudioType=1,l.oBroadCastSamplingParam.iAudioBitRate=64e3,l.oBroadCastSamplingParam.iAudioSamplingRate=8e3),l.oBroadCastSamplingParam.iAudioBitWidth=16,l.oBroadCastSamplingParam.iChannel=e.oParams.iChannel),l.bBroadCastLoaded||(l.oBroadCastPlayCtrl.Talk_CreateAudEncode(l.oBroadCastSamplingParam.iAudioType),l.oBroadCastPlayCtrl.Talk_SetAudEncodeParam(l.oBroadCastSamplingParam.iAudioSamplingRate,l.oBroadCastSamplingParam.iChannel,l.oBroadCastSamplingParam.iAudioBitRate,l.oBroadCastSamplingParam.iAudioBitWidth),l.oBroadCastPlayCtrl.Talk_RegisterAudEncodeCB(function(t){l.oBroadCast.forEach(function(e){e.castSuc&&l.oStreamClient.transmission(e.streamId,t)})}),l.oBroadCastPlayCtrl.Talk_CreateAuDecode(),l.oBroadCastPlayCtrl.Talk_SetAudDecodeParam(l.oBroadCastSamplingParam.iAudioSamplingRate,l.oBroadCastSamplingParam.iChannel,l.oBroadCastSamplingParam.iAudioBitRate,l.oBroadCastSamplingParam.iAudioBitWidth,l.oBroadCastSamplingParam.iAudioType),l.oBroadCastPlayCtrl.Talk_OpenStreamDecodeData(),l.oBroadCastPlayCtrl.Talk_SetANRParam(1,4),l.oBroadCastPlayCtrl.Talk_RegisterAudDecodeCB(function(e){l.szBroadCastStorageUUID&&l.oGenericStorageManager.inputData(l.szBroadCastStorageUUID,new Uint8Array(e))}),l.bBroadCastLoaded=!0)):e.type&&"streamTransError"===e.type&&l.oBroadCast[i].castSuc&&l.oEventCallback.pluginErrorHandler&&l.oEventCallback.pluginErrorHandler(i,1010,e)},function(){r()}).then(function(){var t=x(Y().mark(function e(t){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:l.oBroadCast[i].streamId=t,l.oStreamClient.startPlay(t,"","","broadcast").then(function(){l.oBroadCast[i].castSuc=!0,n()},function(e){l.oBroadCast[i].castSuc=!1,r(e)});case 2:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}(),function(e){r(e)})})}},{key:"_getNavigatorVoice",value:function(){var b=this;return new Promise(function(n,t){var e=window.AudioContext||window.webkitAudioContext,r=window.navigator,i=new e;void 0===r.mediaDevices&&(r.mediaDevices={}),void 0===r.mediaDevices.getUserMedia&&(r.mediaDevices.getUserMedia=function(){if(!(r.getUserMedia||r.webkitGetUserMedia||r.mozGetUserMedia||r.msGetUserMedia))return t(new Error("getUserMedia is not implemented in this browser"))}),r.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,channelCount:1,sampleSize:16,sampleRate:48e3},video:!1}).then(function(e){b.voiceMediaStream=e;var e=i.createMediaStreamSource(e),t=e.context,w=(b.voiceRecorderNode=t.createScriptProcessor(512,1,1),[]);b.voiceRecorderNode.onaudioprocess=function(e){var t=e.inputBuffer.getChannelData(0);if(b.oBroadCastSamplingParam){for(var e=b.oBroadCastSamplingParam.iAudioSamplingRate,n=b.oBroadCastSamplingParam.iAudioBitWidth,r=48e3/e,i=t.length/r,o=new window.Float32Array(i),a=0,s=0;a<i;)o[a]=t[s],s+=r,a++;var e=o.length,u=null;if(16===n)for(var l=new window.ArrayBuffer(2*e),u=new window.DataView(l),d=0,c=0;c<o.length;c++,d+=2){var h=Math.max(-1,Math.min(1,o[c]));u.setInt16(d,h<0?32768*h:32767*h,!0)}else if(8===n)for(var l=new window.ArrayBuffer(e),f=(u=new window.DataView(l),0),m=0;m<o.length;m++,f++){var _=Math.max(-1,Math.min(1,o[m])),_=_<0?32768*_:32767*_,_=parseInt(255/(65535/(32768+_)),10);u.setInt8(f,_,!0)}if(b.bBroadCastLoaded&&null!==u.buffer)for(var p=new Uint8Array(u.buffer),y=w.length,v=0,g=p.byteLength;v<g;v++)w[y++]=p[v],640===w.length&&(b.oBroadCastPlayCtrl.Talk_InputAudEncodeData(new Uint8Array(w),640),y=w.length=0)}},e.connect(b.voiceRecorderNode),b.voiceRecorderNode.connect(t.destination),n()},function(e){b._log.I("".concat(1022,": 采集音频接口失败"),e),b.JS_StopBroadCast(),t(1022)})})}},{key:"JS_StartBroadCast",value:function(c,h){var f=this;return new Promise(function(){var n=x(Y().mark(function e(a,s){var t,u,l,d;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t="".concat(f.options.szBasePath,"/talkW/AudioInterCom.js"),u=[],l=0,d=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;t?(l++,u[e]={index:e,state:"success",info:null}):(f.oBroadCast[e]&&(f.oBroadCast[e].castSuc=!1),u[e]={index:e,state:"failed",info:n})},f.oBroadCastPlayCtrl=new _t(t,function(){var t=x(Y().mark(function e(t){var n,r,i,o;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t.cmd,e.t0=n,e.next="loaded"===e.t0?4:15;break;case 4:r=Y().mark(function e(t){var n,r;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return f.oBroadCast[t]={streamId:"",castSuc:!1},n=c[t].szTalkUrl,r=c[t].oParams,e.next=5,f._loadBroadCast(t,n,r,h).then(function(){d(t,!0)},function(e){d(t,!1,e)});case 5:case"end":return e.stop()}},e)}),i=0,o=c.length;case 6:if(i<o)return e.delegateYield(r(i),"t1",8);e.next=11;break;case 8:i++,e.next=6;break;case 11:if(l<=0)return e.abrupt("return",s({state:"failed",errorInfo:1003,total:c.length,successNum:l,states:u}));e.next=13;break;case 13:return f._getNavigatorVoice().then(function(){a({state:"success",errorInfo:0,total:c.length,successNum:l,states:u})},function(e){for(var t=0;t<length;t++)f.oBroadCast[t].castSuc=!1;s({errorInfo:e,state:"failed",total:c.length,successNum:l,states:u})}),e.abrupt("break",17);case 15:return s({errorInfo:"Unknown command",state:"failed",total:c.length,successNum:0,states:[]}),e.abrupt("break",17);case 17:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}());case 6:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}())}},{key:"JS_StopBroadCast",value:function(){var r=this;return new Promise(function(e){for(var t=0,n=r.oBroadCast.length;t<n;t++)r.oBroadCast[t]&&(r.oStreamClient.stop(r.oBroadCast[t].streamId),r.oBroadCast[t]=[]);r.oBroadCastPlayCtrl&&(r.oBroadCastPlayCtrl.Talk_DestroyAudEncode(),r.oBroadCastPlayCtrl.Talk_DestroyAudDecode()),r.oBroadCastPlayCtrl=null,r.oBroadCastSamplingParam=null,r.bBroadCastLoaded=!1,r.oBroadCast=[],r.voiceMediaStream&&r.voiceMediaStream.getTracks().forEach(function(e){e.stop()}),r.voiceRecorderNode&&r.voiceRecorderNode.disconnect(),r.voiceRecorderNode=null,r.voiceMediaStream=null,e()})}},{key:"JS_BroadCastSetVolume",value:function(t){var n=this;return new Promise(function(e){n.oBroadCastPlayCtrl&&n.oBroadCastPlayCtrl.Talk_SetVolume(t/100),e()})}},{key:"JS_BroadCastGetVolume",value:function(){var e=this;return new Promise(function(t){e.oBroadCastPlayCtrl&&e.oBroadCastPlayCtrl.Talk_GetVolume(function(e){e=Math.round(100*e);t(e)})})}},{key:"JS_StartEZUITalk",value:function(r,i,o){var e,t,a=this;return null===document.getElementById("audioleft")&&((t=document.createElement("div")).id="audioleft",(e=document.createElement("audio")).id="myaudio",e.muted=!0,e.setAttribute("autoplay",!0),e.setAttribute("controls",!0),t.appendChild(e),t.style="display:none;",document.body.appendChild(t)),null===document.getElementById("audioright")&&((e=document.createElement("div")).id="audioright",e.style="display:none;",(t=document.createElement("audio")).id="peeraudio",t.setAttribute("autoplay",!0),t.setAttribute("controls",!0),e.appendChild(t),document.body.appendChild(e)),new Promise(function(t,n){var e="".concat(a.options.szBasePath,"/talkEzui/ezuikit-talk.js");a.oEZUITalkCtrl?a.oEZUITalkCtrl.Talk_StartTalk({accessToken:r.accessToken,deviceSerial:r.deviceSerial,channelNo:r.channelNo,env:r.env,filePath:"".concat(a.options.szBasePath,"/talkEzui/talk")},function(e){i&&i(e),t()},function(e){n(e)}):a.oEZUITalkCtrl=new wt(e,function(e){"loaded"===e.cmd?a.oEZUITalkCtrl.Talk_StartTalk({accessToken:r.accessToken,deviceSerial:r.deviceSerial,channelNo:r.channelNo,env:r.env,filePath:"".concat(a.options.szBasePath,"/talkEzui/talk")},function(e){i&&i(e),t()},function(e){o&&o(e),n(e)}):n()})})}},{key:"JS_StopEZUITalk",value:function(){var n=this;return new Promise(function(e,t){(n.oEZUITalkCtrl?(n.oEZUITalkCtrl.Talk_StopTalk(),e):t)()})}},{key:"JS_SetEZUITalkVolume",value:function(n){var r=document.getElementById("peeraudio");return new Promise(function(e,t){(r?(r.volume=n/100,e):t)()})}},{key:"JS_GetEZUITalkVolume",value:function(){var n=document.getElementById("peeraudio");return new Promise(function(e,t){n?e(100*n.volume):t()})}},{key:"JS_SetD3DPostProcess",value:function(i,o,a){var s=this;return new Promise(function(){var n=x(Y().mark(function e(t,n){var r;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=-1,A===s.aWndList[i].iMode?r=s.aWndList[i].oPlayCtrl.JSPlayM4_SetD3DPostProcess(o,a):s._log.I("does not support JS_SetD3DPostProcess"),(1===r?t:n)();case 3:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}())}},{key:"JS_SetRotateAngle",value:function(i,o){var a=this;return new Promise(function(){var n=x(Y().mark(function e(t,n){var r;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=-1,A===a.aWndList[i].iMode?r=a.aWndList[i].oPlayCtrl.JSPlayM4_SetRotateAngle(o):a._log.I("does not support JS_SetRotateAngle"),(1===r?t:n)();case 3:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}())}},{key:"_support",value:function(){var e=!!window.MediaSource,t=(t=document.createElement("canvas"),!(!window.WebGLRenderingContext||!t.getContext("webgl"))),n=(n=document.createElement("canvas"),!(!window.WebGL2RenderingContext||!n.getContext("webgl2"))),r=!!window.SharedArrayBuffer,i=!!window.OffscreenCanvas;return{MSE:e,webGL1:t,webGL2:n,ShareArrayBuffer:r,OffscreenCanvas:i,"decoder1.0":t,"decoder2.0":n&&r&&i}}},{key:"JS_GetCanvasIDByWnd",value:function(n){var r=this;return new Promise(function(e,t){if(n<0||n>r.iMaxWndNum-1)return r._log.I("".concat(Be,": unexpected window index.")),t();e("".concat(r.options.szId,"_canvas_draw").concat(n))})}},{key:"JS_GetDrawCanvasObj",value:function(){return this.oDrawCanvas}},{key:"JS_GetPlayModeByWnd",value:function(n){var r=this;return new Promise(function(e,t){0!==r._checkPlay(n)&&t(-1),e(r.aWndList[n].iMode)})}},{key:"JS_OnlyPlayedAllowSelected",value:function(t){var n=this;return new Promise(function(e){n.options.onlyPlayedAllowSelected=t,e()})}},{key:"JS_SetDisplayBufSize",value:function(){return this.displayBufSize=0<arguments.length&&void 0!==arguments[0]?arguments[0]:15,Promise.resolve()}},{key:"_fisheyeValueToSetp",value:function(e,t){var n=0;if(!(t<1||7<t))switch(e){case 0:n=.002+.001*t;break;case 1:n=.025;break;case 2:n=(.002+.001*t)/3.17;break;case 3:n=.05+.2*t}return n}},{key:"_getFisheyeParam",value:function(e,t){var n,r,i,o=this.aWndList[e];return o.oPlayCtrl?(n=t||o.currentfishCanvas,r=o.canvasSubPortMap[n],i=o.fishEyeSubCanvasList.findIndex(function(e){return e===n}),new Promise(function(t,e){o.oPlayCtrl.JSPlayM4_FEC_GetParam(r,function(e){t({param2d:e,no:i})}).catch(function(){e()})})):Promise.reject()}},{key:"_setFisheyeParam",value:function(e,n,t){var r=this.aWndList[e],e=t||r.currentfishCanvas,i=r.canvasSubPortMap[e];return new Promise(function(e,t){(1===r.oPlayCtrl.JSPlayM4_FEC_SetParam(i,n)?e:t)()})}},{key:"JS_FishEyePTZ",value:(l=x(Y().mark(function e(i,o){var a,s,u,l,d,c,h,t,f=this;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a={directError:1,getParamError:2,speedError:3,windowNotSupportPTZ:4,notSupportDirect:5,unknownError:6},i<(s={Up:0,Down:1,Left:2,Right:3,ZoomIn:4,Zoomout:5,LeftUp:6,RightUp:7,LeftDown:8,RightDown:9}).Up||i>s.RightDown)return e.abrupt("return",Promise.reject(a.directError));e.next=4;break;case 4:return e.next=6,this._getFisheyeParam(this.iCurrentWndIndex).catch(function(){return Promise.reject(a.getParamError)});case 6:if(t=e.sent,u=t.param2d,7<o)return e.abrupt("return",Promise.reject(a.speedError));e.next=10;break;case 10:return l=this.aWndList[this.iCurrentWndIndex],d=l.currentfishCanvas,c=l.canvasCorrectMap[d],h={upDateType:2,fValue:u.fAngle,fPTZParam:{fPTZPositionX:u.fPTZX,fPTZPositionY:u.fPTZY},fPTZZoom:u.fZoom},t=new Promise(function(e,t){var n;if(i===s.ZoomIn||i===s.Zoomout)h.upDateType=2,r=u.fZoom,n=f._fisheyeValueToSetp(1,o),i===s.Zoomout&&(n*=-1),h.fPTZZoom=r+=n;else if(512===c||768===c){if(![1,3].includes(l.fishEyeMode))return t(a.windowNotSupportPTZ);if(i!==s.Right&&i!==s.Left)return t(a.notSupportDirect);h.upDateType=4;var r=n=f._fisheyeValueToSetp(3,o);i===s.Right&&(r*=-1),h.fValue=h.fValue+r}else{if(256!==c)return Promise.reject(a.unknownError);switch(n=f._fisheyeValueToSetp(2,o),h.upDateType=8,i){case s.Up:h.fPTZParam.fPTZPositionY-=n;break;case s.Down:h.fPTZParam.fPTZPositionY+=n;break;case s.Left:h.fPTZParam.fPTZPositionX-=n;break;case s.Right:h.fPTZParam.fPTZPositionX+=n;break;case s.LeftUp:h.fPTZParam.fPTZPositionY-=n,h.fPTZParam.fPTZPositionX-=n;break;case s.RightUp:h.fPTZParam.fPTZPositionY-=n,h.fPTZParam.fPTZPositionX+=n;break;case s.LeftDown:h.fPTZParam.fPTZPositionY+=n,h.fPTZParam.fPTZPositionX-=n;break;case s.RightDown:h.fPTZParam.fPTZPositionY+=n,h.fPTZParam.fPTZPositionX+=n}}return f._setFisheyeParam(f.iCurrentWndIndex,h,d)}),e.abrupt("return",t);case 16:case"end":return e.stop()}},e,this)})),function(e,t){return l.apply(this,arguments)})},{key:"JS_FishEyeGetPreset",value:(u=x(Y().mark(function e(){var t,n,r;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.iCurrentWndIndex,e.next=3,this._getFisheyeParam(t).catch(function(e){return Promise.reject(e)});case 3:return t=e.sent,n=t.param2d,r=t.no,r={No:r,PosX:n.fPTZX,PosY:n.fPTZY,Zoom:n.fZoom},e.abrupt("return",Promise.resolve(r));case 8:case"end":return e.stop()}},e,this)})),function(){return u.apply(this,arguments)})},{key:"JS_FishEyeGetAllPreset",value:(s=x(Y().mark(function e(t){var n,r,i,o,a,s,u,l;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=void 0!==t?t:this.iCurrentWndIndex,o=this.aWndList[n],r=[],i=E[o.fishEyeMode].mainWindow,o=o.fishEyeSubCanvasList,a=0,s=o.length;case 6:a<s?a!==i?e.next=11:(r.push({No:a,PosX:0,PosY:0,Zoom:0}),e.next=17):e.next=20;break;case 11:return e.next=13,this._getFisheyeParam(n,o[a]).catch(function(e){return Promise.reject(e)});case 13:l=e.sent,u=l.param2d,l=l.no,r.push({No:l,PosX:u.fPTZX,PosY:u.fPTZY,Zoom:u.fZoom});case 17:a++,e.next=6;break;case 20:return e.abrupt("return",Promise.resolve(r));case 21:case"end":return e.stop()}},e,this)})),function(e){return s.apply(this,arguments)})},{key:"JS_FishEyeSetPreset",value:function(e){var t=this,n={fPTZParam:{fPTZPositionX:e.PosX,fPTZPositionY:e.PosY},fPTZZoom:e.Zoom},r=[2,8].map(function(e){return n.upDateType=e,t._setFisheyeParam(t.iCurrentWndIndex,n)});return new Promise(function(e,t){Promise.all(r).then(function(){e()}).catch(function(){t()})})}},{key:"JS_FishEyeSetAllPreset",value:function(r,e){for(var i=this,o=void 0!==e?e:this.iCurrentWndIndex,e=this.aWndList[o],a=E[e.fishEyeMode].mainWindow,s=e.fishEyeSubCanvasList,u=[],t=0,n=s.length;t<n;t++)!function(t){var e=r[t],n={fPTZParam:{fPTZPositionX:e.PosX,fPTZPositionY:e.PosY},fPTZZoom:e.Zoom};t!==a&&[2,8].forEach(function(e){n.upDateType=e,u.push(i._setFisheyeParam(o,n,s[t]))})}(t);return new Promise(function(e,t){Promise.all(u).then(function(){e()}).catch(function(){t()})})}},{key:"JS_StartFECCruise",value:function(h,f){var m=this;return new Promise(function(e,t){var n,r,i,o,a,s,u,l,d=void 0!==f?f:m.iCurrentWndIndex,c=m.aWndList[d];return I!==c.windowMode||!c.bPlay||(n=c.currentfishCanvas,c.canvasCruiseMap[n]||(c.canvasCruiseMap[n]={}),c.canvasCruiseMap[n].timer&&clearTimeout(c.canvasCruiseMap[n].timer),c.canvasCruiseMap[n].loopTimer&&clearInterval(c.canvasCruiseMap[n].loopTimer),(r=h.length)<1)?t():(a=h[i=0].Time,s=null,u=c.canvasSubPortMap[n],(l=function(){c.canvasCruiseMap[n].timer=setTimeout(function(){o=h[i],s={fPTZParam:{fPTZPositionX:o.PosX,fPTZPositionY:o.PosY},fPTZZoom:o.Zoom};[2,8].map(function(e){return s.upDateType=e,c.oPlayCtrl.JSPlayM4_FEC_SetParam(u,s)}),clearTimeout(c.canvasCruiseMap[n].timer),c.canvasCruiseMap[n].timer=null,i++,i%=r,l()},1e3*a)})(),void e({mainWindow:d,subWindow:c.fishEyeSubCanvasList.findIndex(function(e){return e===n})}))})}},{key:"JS_StopFECCruise",value:function(e){var r=void 0!==e?e:this.iCurrentWndIndex,i=this.aWndList[r],o=i.currentfishCanvas;return new Promise(function(e,t){if(I!==i.windowMode)return t();var n;o&&i.canvasCruiseMap[o]&&i.canvasCruiseMap[o].timer?(clearTimeout(i.canvasCruiseMap[o].timer),n=i.fishEyeSubCanvasList.findIndex(function(e){return e===o}),e({mainWindow:r,subWindow:n})):t()})}},{key:"_CruisePTZPos",value:function(e){var t=e.fPTZX,e=e.fPTZY,n=Math.sqrt(Math.pow(t-.5,2)+Math.pow(e-.5,2)),e=Math.atan2(e-.5,t-.5),t=.5+n*Math.cos(e+.1),n=.5+n*Math.sin(e+.1),e={};return e.fPTZX=t,e.fPTZY=n,e}},{key:"JS_StartFECLoopCruise",value:(a=x(Y().mark(function e(){var u,l,t,d=this;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u=this.iCurrentWndIndex,l=this.aWndList[u],t=new Promise(function(e,i){if(I!==l.windowMode||!l.bPlay)return i();var o=l.currentfishCanvas,a=l.canvasCorrectMap[o],s=(l.canvasCruiseMap[o]||(l.canvasCruiseMap[o]={}),l.canvasCruiseMap[o].timer&&clearTimeout(l.canvasCruiseMap[o].timer),l.canvasCruiseMap[o].loopTimer&&clearInterval(l.canvasCruiseMap[o].loopTimer),l.canvasSubPortMap[o]);l.canvasCruiseMap[o].loopTimer=setInterval(x(Y().mark(function e(){var t,n,r;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(l.canvasCruiseMap[o].bMouseDown)return e.abrupt("return");e.next=2;break;case 2:return e.next=4,d._getFisheyeParam(u,o).catch(function(e){return i(e)});case 4:t=e.sent,t=t.param2d,n=null,n=512===a||768===a?{upDateType:4,fValue:t.fAngle-.1,fPTZZoom:t.fZoom}:{fPTZParam:{fPTZPositionX:(r=d._CruisePTZPos(t)).fPTZX,fPTZPositionY:r.fPTZY},upDateType:8,fPTZZoom:t.fZoom},l.oPlayCtrl.JSPlayM4_FEC_SetParam(s,n);case 9:case"end":return e.stop()}},e)})),120);var t=l.fishEyeSubCanvasList.findIndex(function(e){return e===o});e({mainWindow:u,subWindow:t})}),e.abrupt("return",t);case 4:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"JS_StopFECLoopCruise",value:function(){var r=this.iCurrentWndIndex,i=this.aWndList[r];return new Promise(function(e,t){if(I!==i.windowMode)return t();var n=i.currentfishCanvas,t=i.fishEyeSubCanvasList.findIndex(function(e){return e===n});n&&i.canvasCruiseMap[n]&&i.canvasCruiseMap[n].loopTimer&&clearInterval(i.canvasCruiseMap[n].loopTimer),e({mainWindow:r,subWindow:t})})}},{key:"_setWaterMark",value:function(n,r){var i=this,o=this.aWndList[n];return new Promise(function(e,t){if(o.iMode===O)return r&&i.oEventCallback.pluginErrorHandler(n,1020),e();(1===o.oPlayCtrl.JSPlayM4_SetWaterMarkFont(r)?e:t)()})}},{key:"JS_SetWaterMarkFont",value:function(n){var r=this;return this.waterMarkMode=n?"font":"none",this.waterMarkData=n,new Promise(function(e){r.aWndList.forEach(function(e,t){e.bPlay&&r._setWaterMark(t,n)}),e()})}},{key:"_setWaterMarkImage",value:function(e,n){var r=this.aWndList[e];return new Promise(function(e,t){if(r.iMode===O)return t();(1===r.oPlayCtrl.JSPlayM4_SetWaterMarkImage(n)?e:t)()})}},{key:"JS_SetWaterMarkImage",value:function(n){var r=this;return this.waterMarkMode=n?"image":"none",this.waterMarkData=n,new Promise(function(e){r.aWndList.forEach(function(e,t){e.bPlay&&r._setWaterMarkImage(t,n)}),e()})}},{key:"JS_ResetFullFillContainerMode",value:function(){var t=this;return new Promise(function(e){t.options.fullFillContainerMode&&t.wndOnFullFillContainerState&&(t.wndOnFullFillContainerState=!1,t._updateWnd()),e()})}},{key:"JS_GetPlayedTime",value:function(e){var n=this.aWndList[e];return new Promise(function(t,e){if(n.iMode===O)return e();n.oPlayCtrl.JSPlayM4_GetPlayedTimeEx(function(e){t(e)})})}},{key:"_getVideoType",value:function(e){var t=Zn;return 73===e[0]&&77===e[1]&&75===e[2]&&72===e[3]&&(0===e[9]&&2===e[8]?t=Vn:0===e[9]&&4===e[8]?t=qn:0===e[9]&&5===e[8]&&(t=Zn)),t}},{key:"JS_StartFilePlay",value:(o=x(Y().mark(function e(n,r){var t,i,o,a,s,u,l,d,c,h,f,m,_,p,y,v=arguments;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(y=function(){var e;i.filePlayInfo.playPosFlag&&(i.oPlayCtrl.JSPlayM4_ResetBuffer(8),f=0,i.filePlayInfo.playPosFlag=!1,m=i.filePlayInfo.playPos,l=m,i.filePlayInfo.bInputFlag=!0,i.filePlayInfo.pauseInput=!1,i.filePlayInfo.lastFragments=!1),i.filePlayInfo.stopInput?(clearInterval(i.filePlayInfo.timer),i.filePlayInfo.timer=null,i.filePlayInfo.bInputFlag=!0,h=null):i.filePlayInfo.pauseInput&&!i.bFrameForward||s&&(i.filePlayInfo.bInputFlag&&(i.filePlayInfo.needResetInputSizeps&&(clearInterval(i.filePlayInfo.timer),i.filePlayInfo.timer=null,(c/=i.iRate)<1&&(c=1),i.filePlayInfo.timer=setInterval(y,c),i.filePlayInfo.needResetInputSizeps=!1),l=i.filePlayInfo.playPos+(f+1)*d,o<l&&(l=o),h=i.filePlayInfo.videoDataCache.slice(m,l)),0<l-m?(u&&(s=!1),1!==i.oPlayCtrl.JSPlayM4_InputData(h,l-m,function(){var t=x(Y().mark(function e(t){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=!0,0<=t?(i.filePlayInfo.playPos=t,f=0,m=i.filePlayInfo.playPos,l=m):u=!1;case 2:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}(),u)?i.filePlayInfo.bInputFlag=!1:(i.filePlayInfo.bInputFlag=!0,f++,m=l,h=null)):(e=new Uint8Array(1),i.oPlayCtrl.JSPlayM4_InputData(e,-1),i.filePlayInfo.pauseInput=!0,i.filePlayInfo.lastFragments=!0))},p=function(){var e;i.filePlayInfo.playPosFlag&&(i.oPlayCtrl.JSPlayM4_ResetBuffer(8),i.filePlayInfo.playPosFlag=!1,i.filePlayInfo.bInputFlag=!0,i.filePlayInfo.pauseInput=!1,i.filePlayInfo.lastFragments=!1),i.filePlayInfo.stopInput?(clearInterval(i.filePlayInfo.timer),i.filePlayInfo.timer=null,i.filePlayInfo.bInputFlag=!0,h=null):i.filePlayInfo.pauseInput&&!i.bFrameForward||s&&(i.filePlayInfo.bInputFlag&&(i.filePlayInfo.needResetInputSizeps&&(clearInterval(i.filePlayInfo.timer),i.filePlayInfo.timer=null,(c/=i.iRate)<1&&(c=1),i.filePlayInfo.timer=setInterval(p,c),i.filePlayInfo.needResetInputSizeps=!1),(l=d)>i.filePlayInfo.videoDataCache.length&&(l=i.filePlayInfo.videoDataCache.length),h=i.filePlayInfo.videoDataCache.slice(0,l),i.filePlayInfo.videoDataCache=i.filePlayInfo.videoDataCache.slice(l),i.filePlayInfo.videoDataCache.length<524288)&&!i.filePlayInfo.lastFragments&&!i.filePlayInfo.getVideoDataIsRun&&_._getVideoData(n,r),0<l?(u&&(s=!1),1!==i.oPlayCtrl.JSPlayM4_InputData(h,l,function(){var t=x(Y().mark(function e(t){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0<=t)return e.next=3,_._getVideoData(n,r,!0,t);e.next=5;break;case 3:e.next=6;break;case 5:u=!1;case 6:s=!0;case 7:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}(),u)?i.filePlayInfo.bInputFlag=!1:(i.filePlayInfo.bInputFlag=!0,h=null)):i.filePlayInfo.endPos>=i.filePlayInfo.totalLengthps&&(e=new Uint8Array(1),i.oPlayCtrl.JSPlayM4_InputData(e,-1),i.filePlayInfo.pauseInput=!0,i.filePlayInfo.lastFragments=!0))},t=2<v.length&&void 0!==v[2]?v[2]:{totalSize:0,fragmentAcquisition:!1},(i=this.aWndList[n]).streamMode=zn,i.filePlayInfo={timer:null,pauseInput:!1,stopInput:!1,playPosFlag:!1,playUrl:r,videoDataCache:[],videoType:Zn,playPos:0,startPos:0,endPos:0,bInputFlag:!0,needResetInputSizeps:!1,totalLengthps:0,getVideoDataIsRun:!1},o=0,t.totalSize){e.next=13;break}return e.next=10,this._getVideoFileSize(r);case 10:o=e.sent,e.next=14;break;case 13:o=t.totalSize;case 14:if(i.filePlayInfo.totalLengthps=o,a=[],t.fragmentAcquisition)return e.next=19,this._getVideoData(n,r);e.next=21;break;case 19:e.next=23;break;case 21:return e.next=23,this._getVideoData(n,r,!0,0,o);case 23:return i.filePlayInfo.playUrl=r,a=i.filePlayInfo.videoDataCache.slice(0,40),i.filePlayInfo.videoType=this._getVideoType(a),e.next=28,this.JS_InitPlayWithBinaryData(n,a);case 28:return u=s=!0,d=16e5,c=80,h=null,m=f=l=0,_=this,t.fragmentAcquisition?i.filePlayInfo.timer=setInterval(p,c):i.filePlayInfo.timer=setInterval(y,c),e.abrupt("return",new Promise(function(e,t){if(i.iMode===O)return t();e()}));case 39:case"end":return e.stop()}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"JS_StopFilePlay",value:function(e){var t=this.aWndList[e];return t.filePlayInfo.timer&&clearInterval(t.filePlayInfo.timer),t.filePlayInfo={timer:null,pauseInput:!0,stopInput:!0,playPosFlag:!1,playPos:0,endPos:0,bInputFlag:!0,needResetInputSizeps:!1,getVideoDataIsRun:!1,lastFragments:!1},this._closeStreamAndDestroy(e)}},{key:"_getVideoFileSize",value:function(e){return new Promise(function(t){var n=new XMLHttpRequest;n.open("HEAD",e),n.onreadystatechange=function(){var e;n.readyState===XMLHttpRequest.DONE&&(200===n.status?(e=n.getResponseHeader("content-length"),t(parseInt(e,10))):t(null))},n.send()})}},{key:"_getVideoData",value:function(e,n){var i=this,t=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=this.aWndList[e];if(t&&(a.filePlayInfo.videoDataCache=[]),a.filePlayInfo.startPos=void 0!==r?r:a.filePlayInfo.endPos,a.filePlayInfo.endPos=void 0!==o?o:a.filePlayInfo.startPos+1048576,a.filePlayInfo.startPos>a.filePlayInfo.totalLengthps)return Promise.reject();a.filePlayInfo.endPos>a.filePlayInfo.totalLengthps&&(a.filePlayInfo.endPos=a.filePlayInfo.totalLengthps),a.filePlayInfo.getVideoDataIsRun=!0;var s={playUrl:n,startPos:r,endPos:a.filePlayInfo.endPos};return a.filePlayInfo.latestRequest={playUrl:s.playUrl,startPos:s.startPos,endPos:s.endPos},new Promise(function(r,t){i._getChunkData(n,a.filePlayInfo.startPos,a.filePlayInfo.endPos).then(function(e){var t,n;a.filePlayInfo.latestRequest&&a.filePlayInfo.latestRequest.startPos===s.startPos&&a.filePlayInfo.latestRequest.endPos===s.endPos&&(e&&0<e.length&&(a.filePlayInfo.videoDataCache=(t=a.filePlayInfo.videoDataCache,e=e,(n=new Uint8Array(t.length+e.length)).set(t,0),n.set(e,t.length),n)),a.filePlayInfo.getVideoDataIsRun=!1),r()}).catch(function(e){t(e)})})}},{key:"_getChunkData",value:function(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:40;return new Promise(function(t){var n=new XMLHttpRequest;n.open("GET",e),n.setRequestHeader("Range","bytes="+r+"-"+i),n.setRequestHeader("Content-type","application/x-www-form-urlencoded"),n.responseType="arraybuffer",n.onreadystatechange=function(){{var e;n.readyState===XMLHttpRequest.DONE&&([200,206].includes(n.status)?(e=new Uint8Array(this.response),t(e)):t(null))}},n.send()})}},{key:"JS_GetFileTime",value:function(e){var n=this.aWndList[e];return new Promise(function(t,e){if(n.iMode===O)return e();n.oPlayCtrl.JSPlayM4_GetFileTime(function(e){t(e)})})}},{key:"JS_ResetFilePlayPos",value:(r=x(Y().mark(function e(r,t){var i,o;return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(i=this.aWndList[r]).filePlayInfo.videoDataCache=[],o=this,e.abrupt("return",new Promise(function(n){i.oPlayCtrl.JSPlayM4_GetMpOffset(function(){var t=x(Y().mark(function e(t){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0<=t)return i.filePlayInfo.pauseInput=!0,e.next=4,o._getVideoData(r,i.filePlayInfo.playUrl,!0,t);e.next=8;break;case 4:i.filePlayInfo.playPosFlag=!0,i.filePlayInfo.playPos=t,i.filePlayInfo.pauseInput=!1,i.filePlayInfo.bInputFlag=!0;case 8:n(t);case 9:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}(),t)}));case 4:case"end":return e.stop()}},e,this)})),function(e,t){return r.apply(this,arguments)})}])&&Rn(e.prototype,t),n&&Rn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r,o,a,s,u,l,d,c,h,f,m}()},function(R,e,t){"use strict";t.r(e);var n=t(75),i=t(62),r={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,highLatencyThreshold:3,decreaseDurationStep:.4,enableVideoFrozenMonitor:!1,frozenTimesThreshold:5,enableConstVideoViewSize:!1,constVideoViewWidth:1920,constVideoViewHeight:1080,latencyDetectInterval:2e4,latencyDetectThreshold:2,latencyDetectAdjustStep:.1,enableAudioGain:!0,audioGainLevel:2};function o(){return Object.assign({},r)}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==a(e)?e:e+""}(r.key),r)}}var u=function(){function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function")}return e=t,r=[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportMSEH265Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="hvc1.1.6.L93.B0"')}},{key:"supportNetworkStreamIO",value:function(){var e=new i.a({},o()),t=e.loaderType;return e.destroy(),"fetch-stream-loader"==t||"xhr-moz-chunked-loader"==t}},{key:"getNetworkLoaderTypeName",value:function(){var e=new i.a({},o()),t=e.loaderType;return e.destroy(),t}},{key:"supportNativeMediaPlayback",value:function(e){e=(t.videoElement=null==t.videoElement?window.document.createElement("video"):t.videoElement).canPlayType(e);return"probably"===e||"maybe"==e}},{key:"getFeatureList",value:function(){var e={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeMP4H265Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return e.mseFlvPlayback=t.supportMSEH264Playback(),e.networkStreamIO=t.supportNetworkStreamIO(),e.networkLoaderName=t.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=t.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeMP4H265Playback=t.supportNativeMediaPlayback('video/mp4; codecs="hvc1.1.6.L93.B0"'),e.nativeWebmVP8Playback=t.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=t.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}],(n=null)&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}(),l=t(4),d=t(17),c=t.n(d),h=t(1),f=t(6),m={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"},d=t(279),_=t.n(d),p=t(33),y=t(61),v=t(3),g=(t(278),t(39));function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=w(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==w(e)?e:e+""}(r.key),r)}}var M=function(){function e(t,n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");if(this.TAG="Transmuxer",this._emitter=new c.a,n.enableWorker&&"undefined"!=typeof Worker)try{this._worker=_()(278),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)},p.a.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:p.a.getConfig()})}catch(e){h.a.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new y.a(t,n)}else this._controller=new y.a(t,n);this._controller&&((t=this._controller).on(v.a.IO_ERROR,this._onIOError.bind(this)),t.on(v.a.DEMUX_ERROR,this._onDemuxError.bind(this)),t.on(v.a.INIT_SEGMENT,this._onInitSegment.bind(this)),t.on(v.a.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),t.on(v.a.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),t.on(v.a.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),t.on(v.a.MEDIA_INFO,this._onMediaInfo.bind(this)),t.on(v.a.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),t.on(v.a.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),t.on(v.a.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),t.on(v.a.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this)),t.on(v.a.VIDEO_RESOLUTION_CHANGED,this._onVideoResolutionChanged.bind(this)),t.on(v.a.PARSEDDATA_ARRIVED,this._parsedDataArrived.bind(this)))}return t=e,(n=[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),p.a.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;Promise.resolve().then(function(){null!=n._emitter&&n._emitter.emit(v.a.INIT_SEGMENT,e,t)})}},{key:"_onMediaSegment",value:function(e,t){var n=this;Promise.resolve().then(function(){null!=n._emitter&&n._emitter.emit(v.a.MEDIA_SEGMENT,e,t)})}},{key:"_onLoadingComplete",value:function(){var e=this;Promise.resolve().then(function(){e._emitter.emit(v.a.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var e=this;Promise.resolve().then(function(){e._emitter.emit(v.a.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(e){var t=this;Promise.resolve().then(function(){null!=t._emitter&&t._emitter.emit(v.a.MEDIA_INFO,e)})}},{key:"_onMetaDataArrived",value:function(e){var t=this;Promise.resolve().then(function(){null!=t._emitter&&t._emitter.emit(v.a.METADATA_ARRIVED,e)})}},{key:"_onScriptDataArrived",value:function(e){var t=this;Promise.resolve().then(function(){null!=t._emitter&&t._emitter.emit(v.a.SCRIPTDATA_ARRIVED,e)})}},{key:"_onStatisticsInfo",value:function(e){var t=this;Promise.resolve().then(function(){t._emitter.emit(v.a.STATISTICS_INFO,e)})}},{key:"_onIOError",value:function(e,t){var n=this;Promise.resolve().then(function(){null!=n._emitter&&n._emitter.emit(v.a.IO_ERROR,e,t)})}},{key:"_onDemuxError",value:function(e,t){var n=this;Promise.resolve().then(function(){null!=n._emitter&&n._emitter.emit(v.a.DEMUX_ERROR,e,t)})}},{key:"_onRecommendSeekpoint",value:function(e){var t=this;Promise.resolve().then(function(){t._emitter.emit(v.a.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;Promise.resolve().then(function(){null!=t._emitter&&t._emitter.emit(v.a.VIDEO_RESOLUTION_CHANGED,e)})}},{key:"_onWorkerMessage",value:function(e){var t=e.data,n=t.data;if("destroyed"===t.msg||this._workerDestroying)this._workerDestroying=!1,this._worker.terminate(),this._worker=null;else switch(t.msg){case v.a.INIT_SEGMENT:case v.a.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case v.a.LOADING_COMPLETE:case v.a.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case v.a.MEDIA_INFO:Object.setPrototypeOf(n,g.a.prototype),this._emitter.emit(t.msg,n);break;case v.a.METADATA_ARRIVED:case v.a.SCRIPTDATA_ARRIVED:case v.a.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case v.a.IO_ERROR:case v.a.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case v.a.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":h.a.emitter.emit("log",n.type,n.logcat)}}},{key:"_parsedDataArrived",value:function(e,t,n,r){var i=this;Promise.resolve().then(function(){i._emitter.emit(v.a.PARSEDDATA_ARRIVED,e,t,n,r)})}}])&&b(t.prototype,n),r&&b(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}(),S={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full",SOURCE_END:"source_end",SOURCE_CLOSE:"source_close"},j=t(24),k=t(5);function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=L(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==L(e)?e:e+""}(r.key),r)}}var H=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.TAG="MSEController",this._config=e,this._emitter=new c.a,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._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 j.a}return e=t,(n=[{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 k.a("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=(n.splice(0,n.length),this._pendingSegments[e]=null,this._pendingRemoveRanges[e]=null,this._lastInitSegments[e]=null,this._sourceBuffers[e]);if(n){if("closed"!==t.readyState){try{t.removeSourceBuffer(n)}catch(e){h.a.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){h.a.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)}},{key:"appendInitSegment",value:function(e,t){if(this._mediaSource&&"open"===this._mediaSource.readyState){var n=e,r="".concat(n.container),i=(n.codec&&0<n.codec.length&&(r+=";codecs=".concat(n.codec)),!1);if(h.a.v(this.TAG,"Received Initialization Segment, mimeType: "+r),this._lastInitSegments[n.type]=n,r!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])h.a.v(this.TAG,"Notice: ".concat(n.type," mimeType changed, origin: ").concat(this._mimeTypes[n.type],", target: ").concat(r));else{i=!0;try{var o=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(r);o.addEventListener("error",this.e.onSourceBufferError),o.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(e){return h.a.e(this.TAG,e.message),void this._emitter.emit(S.ERROR,{code:e.code,msg:e.message})}}this._mimeTypes[n.type]=r}t||this._pendingSegments[n.type].push(n),i||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),f.a.safari&&"audio/mpeg"===n.container&&0<n.mediaDuration&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=n.mediaDuration/1e3,this._updateMediaSourceDuration())}else this._pendingSourceBufferInit.push(e),this._pendingSegments[e.type].push(e)}},{key:"appendMediaSegment",value:function(e){this._pendingSegments[e.type].push(e),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer(),e=this._sourceBuffers[e.type];!e||e.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()}},{key:"seek",value:function(e){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){h.a.e(this.TAG,e.message)}this._idrList.clear();var r=this._pendingSegments[t];if(r.splice(0,r.length),"closed"!==this._mediaSource.readyState){for(var i=0;i<n.buffered.length;i++){var o=n.buffered.start(i),a=n.buffered.end(i);this._pendingRemoveRanges[t].push({start:o,end:a})}n.updating||this._doRemoveRanges(),f.a.safari&&(r=this._lastInitSegments[t])&&(this._pendingSegments[t].push(r),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){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,t=this._mediaElement.currentTime;for(e in this._sourceBuffers){var n=this._sourceBuffers[e];if(n){for(var r=n.buffered,i=!1,o=0;o<r.length;o++){var a,s=r.start(o),u=r.end(o);s<=t&&t<u+3?t-s>=this._config.autoCleanupMaxBackwardDuration&&(i=!0,a=t-this._config.autoCleanupMinBackwardDuration,this._pendingRemoveRanges[e].push({start:s,end:a})):u<t&&(i=!0,this._pendingRemoveRanges[e].push({start:s,end:u}))}i&&!n.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var e,t=this._sourceBuffers;0===this._mediaElement.readyState||"open"!==this._mediaSource.readyState||t.video&&t.video.updating||t.audio&&t.audio.updating||(t=this._mediaSource.duration,0<(e=this._pendingMediaDuration)&&(isNaN(t)||t<e)&&(h.a.v(this.TAG,"Update MediaSource duration from ".concat(t," to ").concat(e)),this._mediaSource.duration=e),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0)}},{key:"_doRemoveRanges",value:function(){for(var e in this._pendingRemoveRanges)if(this._sourceBuffers[e]&&!this._sourceBuffers[e].updating)for(var t=this._sourceBuffers[e],n=this._pendingRemoveRanges[e];n.length&&!t.updating;){var r=n.shift();t.remove(r.start,r.end)}}},{key:"_doAppendSegments",value:function(){var t,e=this._pendingSegments;for(t in e)if(this._sourceBuffers[t]&&!this._sourceBuffers[t].updating&&0<e[t].length){var n,r,i=e[t].shift();if(i.timestampOffset&&(n=this._sourceBuffers[t].timestampOffset,r=i.timestampOffset/1e3,.1<Math.abs(n-r)&&(h.a.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(n," to ").concat(r)),this._sourceBuffers[t].timestampOffset=r),delete i.timestampOffset),i.data&&0!==i.data.byteLength)try{this._sourceBuffers[t].appendBuffer(i.data),this._isBufferFull=!1,"video"===t&&i.hasOwnProperty("info")&&this._idrList.appendArray(i.info.syncPoints)}catch(e){this._pendingSegments[t].unshift(i),22===e.code?(this._isBufferFull||this._emitter.emit(S.BUFFER_FULL),this._isBufferFull=!0):(h.a.e(this.TAG,e.message),this._emitter.emit(S.ERROR,{code:e.code,msg:e.message}))}}}},{key:"_onSourceOpen",value:function(){if(h.a.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.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){h.a.v(this.TAG,"MediaSource onSourceEnded"),this._emitter.emit(S.SOURCE_END)}},{key:"_onSourceClose",value:function(){h.a.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.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():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(S.UPDATE_END)}},{key:"_onSourceBufferError",value:function(e){h.a.e(this.TAG,"SourceBuffer Error: ".concat(e))}}])&&T(e.prototype,n),r&&T(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}(),d=t(14),D={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},P={NETWORK_EXCEPTION:l.b.EXCEPTION,NETWORK_STATUS_CODE_INVALID:l.b.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:l.b.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:l.b.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:d.a.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:d.a.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:d.a.CODEC_UNSUPPORTED};function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=C(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==C(e)?e:e+""}(r.key),r)}}var Y=function(){function n(e,t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new c.a,this._config=o(),"object"===C(t)&&Object.assign(this._config,t),"flv"!==e.type.toLowerCase())throw new k.b("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;t=f.a.chrome&&(f.a.version.major<50||50===f.a.version.major&&f.a.version.build<2661);this._alwaysSeekKeyframe=!!(t||f.a.msedge||f.a.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}return e=n,(t=[{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===m.MEDIA_INFO?null!=this._mediaInfo&&Promise.resolve().then(function(){n._emitter.emit(m.MEDIA_INFO,n.mediaInfo)}):e===m.STATISTICS_INFO&&null!=this._statisticsInfo&&Promise.resolve().then(function(){n._emitter.emit(m.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 H(this._config),this._msectl.on(S.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(S.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(S.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(S.SOURCE_END,function(){t._emitter.emit(m.MEDIA_SOURCE_ENDED)}),this._msectl.on(S.SOURCE_CLOSE,function(){t._mseSourceOpened=!1,t._emitter.emit(m.MEDIA_SOURCE_CLOSE)}),this._msectl.on(S.ERROR,function(e){t._emitter.emit(m.ERROR,D.MEDIA_ERROR,P.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._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var r=this;if(!this._mediaElement)throw new k.a("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new k.a("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 M(this._mediaDataSource,this._config),this._transmuxer.on(v.a.INIT_SEGMENT,function(e,t){r._msectl.appendInitSegment(t)}),this._transmuxer.on(v.a.MEDIA_SEGMENT,function(e,t){var n;r._msectl.appendMediaSegment(t),r._config.lazyLoad&&!r._config.isLive&&(n=r._mediaElement.currentTime,t.info.endDts>=1e3*(n+r._config.lazyLoadMaxDuration))&&null==r._progressChecker&&(h.a.v(r.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),r._suspendTransmuxer())}),this._transmuxer.on(v.a.LOADING_COMPLETE,function(){r._msectl.endOfStream(),r._emitter.emit(m.LOADING_COMPLETE)}),this._transmuxer.on(v.a.RECOVERED_EARLY_EOF,function(){r._emitter.emit(m.RECOVERED_EARLY_EOF)}),this._transmuxer.on(v.a.IO_ERROR,function(e,t){r._emitter.emit(m.ERROR,D.NETWORK_ERROR,e,t)}),this._transmuxer.on(v.a.DEMUX_ERROR,function(e,t){r._emitter.emit(m.ERROR,D.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(v.a.MEDIA_INFO,function(e){r._mediaInfo=e,r._emitter.emit(m.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(v.a.METADATA_ARRIVED,function(e){r._emitter.emit(m.METADATA_ARRIVED,e)}),this._transmuxer.on(v.a.SCRIPTDATA_ARRIVED,function(e){r._emitter.emit(m.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(v.a.STATISTICS_INFO,function(e){r._statisticsInfo=r._fillStatisticsInfo(e),r._emitter.emit(m.STATISTICS_INFO,Object.assign({},r._statisticsInfo))}),this._transmuxer.on(v.a.RECOMMEND_SEEKPOINT,function(e){r._mediaElement&&!r._config.accurateSeek&&(r._requestSetTime=!0,r._mediaElement.currentTime=e/1e3)}),this._transmuxer.on(v.a.VIDEO_RESOLUTION_CHANGED,function(e){r._emitter.emit(m.VIDEO_RESOLUTION_CHANGED,e)}),this._transmuxer.on(v.a.PARSEDDATA_ARRIVED,function(e,t){r._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,h.a.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:"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 Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return null==this._statisticsInfo&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}},{key:"onParsedData",set:function(e){this._onParsedData=e}},{key:"_onLoaderChunkArrival",value:function(e,t,n){this._transmuxer._controller._ioctl?this._transmuxer._controller._ioctl._onLoaderChunkArrival(e,t,n):console.log("_ioctl is null")}},{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){var t,n,r,i;return e.playerType=this._type,this._mediaElement instanceof HTMLVideoElement&&(t=!0,i=r=0,this._mediaElement.getVideoPlaybackQuality?(r=(n=this._mediaElement.getVideoPlaybackQuality()).totalVideoFrames,i=n.droppedVideoFrames):null!=this._mediaElement.webkitDecodedFrameCount?(r=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):t=!1,t)&&(e.decodedFrames=r,e.droppedFrames=i),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),h.a.i(this.TAG,"latency +"+this._curLatencyThreshold)}},{key:"_decreaseLatency",value:function(e){this._curLatencyThreshold-=e,this._curLatencyThreshold<this._config.lowLatencyThreshold&&(this._curLatencyThreshold=this._config.lowLatencyThreshold),h.a.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),h.a.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){var e=e.end(0),t=e-t;if(!n&&t>this._curLatencyThreshold&&(n=e-this._decreaseDurationStep,h.a.w(this.TAG,"high latency gap {"+t+"}, decrease "+this._decreaseDurationStep+" and set to "+n),this._mediaElement.currentTime=n,this._requestSetTime=!0,this._latencyAdjustCountTotal++,2<this._latencyAdjustCountTotal)&&(++this._latencyAdjustCount,e=t+this._latencyDetectAdjustStep,this._updateCurrentLatencyThreshold(e)),this._enableVideoFrozenMonitor){n=0;if(this._mediaElement.getVideoPlaybackQuality)n=this._mediaElement.getVideoPlaybackQuality().totalVideoFrames;else{if(null==this._mediaElement.webkitDecodedFrameCount)return;n=this._mediaElement.webkitDecodedFrameCount}0!=this._lastDecodedFrames&&(this._lastDecodedFrames==n?this._forzenTimes++:this._forzenTimes=0),this._lastDecodedFrames=n,this._forzenTimes>=this._frozenTimesThreshold&&(h.a.w(this.TAG,"Report video frozen event"),this._emitter.emit(m.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,r=0;r<e.length;r++){var i=e.start(r),o=e.end(r);if(i<=t&&t<o){n=o;break}}n>=t+this._config.lazyLoadMaxDuration&&null==this._progressChecker&&(h.a.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}},{key:"_onmseBufferFull",value:function(){h.a.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),null==this._progressChecker&&this._suspendTransmuxer(),this._emitter.emit(m.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,r=0;r<t.length;r++){var i=t.start(r),o=t.end(r);if(i<=e&&e<o){e>=o-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n)&&(h.a.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 r=t.start(n),i=t.end(n);if(r<=e&&e<i)return!0}return!1}},{key:"_internalSeek",value:function(e){var t,n=this._isTimepointBuffered(e),r=!1,i=0;e<1&&0<this._mediaElement.buffered.length&&((t=this._mediaElement.buffered.start(0))<1&&e<t||f.a.safari)&&(r=!0,i=f.a.safari?.1:t),r?(this._requestSetTime=!0,this._mediaElement.currentTime=i):n?(this._alwaysSeekKeyframe?(t=this._msectl.getNearestKeyframe(Math.floor(1e3*e)),this._requestSetTime=!0,this._mediaElement.currentTime=null!=t?t.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)&&(h.a.w(this.TAG,"Playback seems stuck at ".concat(t.currentTime,", seek to ").concat(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(m.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 n=n.start(0);if(n<1&&t<n||f.a.safari)return this._requestSetTime=!0,void(this._mediaElement.currentTime=f.a.safari?.1:n)}this._isTimepointBuffered(t)?(this._alwaysSeekKeyframe&&null!=(n=this._msectl.getNearestKeyframe(Math.floor(1e3*t)))&&(this._requestSetTime=!0,this._mediaElement.currentTime=n.dts/1e3),null!=this._progressChecker&&this._checkProgressAndResume()):(this._seekpointRecord={seekPoint:t,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50))}}},{key:"_onvCanPlay",value:function(e){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.play()}},{key:"_onvStalled",value:function(e){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(e){this._checkAndResumeStuckPlayback()}},{key:"_onvTimeUpdate",value:function(e){var e=e.target,t=e.currentTime;try{r=e.seekable.end(0)}catch(e){return}var n=e.playbackRate,r=r-t;1.5<r&&1===n&&(e.playbackRate=1.2,h.a.w(this.TAG,"latency gt 1.5, set rate 1.2")),r<.5&&1<n&&(e.playbackRate=1,h.a.w(this.TAG,"latency lt 0.5, set rate 1"))}}])&&E(e.prototype,t),r&&E(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=x(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==x(e)?e:e+""}(r.key),r)}}var O=function(){function n(e,t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new c.a,this._config=o(),"object"===x(t)&&Object.assign(this._config,t),"flv"===e.type.toLowerCase())throw new k.b("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new k.b("NativePlayer(".concat(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}return e=n,(t=[{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===m.MEDIA_INFO?null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then(function(){n._emitter.emit(m.MEDIA_INFO,n.mediaInfo)}):e===m.STATISTICS_INFO&&null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then(function(){n._emitter.emit(m.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 k.a("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:"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,t,n,r,i={playerType:this._type,url:this._mediaDataSource.url};return this._mediaElement instanceof HTMLVideoElement&&(e=!0,r=n=0,this._mediaElement.getVideoPlaybackQuality?(n=(t=this._mediaElement.getVideoPlaybackQuality()).totalVideoFrames,r=t.droppedVideoFrames):null!=this._mediaElement.webkitDecodedFrameCount?(n=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):e=!1,e)&&(i.decodedFrames=n,i.droppedFrames=r),i}},{key:"_onvLoadedMetadata",value:function(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(m.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(m.STATISTICS_INFO,this.statisticsInfo)}}])&&A(e.prototype,t),r&&A(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.a.install();t={createPlayer:function(e,t){if(null==e||"object"!==I(e))throw new k.b("MediaDataSource must be an javascript object!");if(e.hasOwnProperty("type"))return new("flv"!==e.type?O:Y)(e,t);throw new k.b("MediaDataSource must has type field to indicate video file type!")},isSupported:function(){return u.supportMSEH264Playback()},getFeatureList:function(){return u.getFeatureList()}};t.BaseLoader=l.a,t.LoaderStatus=l.c,t.LoaderErrors=l.b,t.Events=m,t.ErrorTypes=D,t.ErrorDetails=P,t.FlvPlayer=Y,t.NativePlayer=O,t.LoggingControl=p.a,Object.defineProperty(t,"version",{enumerable:!0,get:function(){return __VERSION__}}),e.default=t}],r={},o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=280);function o(e){var t;return(r[e]||(t=r[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,o),t.l=!0,t)).exports}var n,r});
|