| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/HostingSpaces/admin/penpalamerica.com/backup/mobile/js/ |
Upload File : |
/*! For license information please see app.js.LICENSE.txt */
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=458)}([function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));var r="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,i="undefined"==typeof window?{document:r,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window},function(e,t,n){e.exports=n(312)},function(e,t,n){"use strict";var r,i=(r=n(17))&&"object"==typeof r&&"default"in r?r.default:r;n(302),n(303),n(304),n(306),n(307),n(308),n(309),n(310),n(311);i.registerVersion("firebase","7.14.2","app");console.warn("\nIt looks like you're using the development build of the Firebase JS SDK.\nWhen deploying Firebase apps to production, it is advisable to only import\nthe individual SDK components you intend to use.\n\nFor the module builds, these are available in the following manner\n(replace <PACKAGE> with the name of a component - i.e. auth, database, etc):\n\nCommonJS Modules:\nconst firebase = require('firebase/app');\nrequire('firebase/<PACKAGE>');\n\nES Modules:\nimport firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n\nTypescript:\nimport * as firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n"),i.registerVersion("firebase","7.14.2"),e.exports=i},function(e,t,n){var r=n(18),i=n(12);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return St(e,t,n,r,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=p(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function v(e){var t=f(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var g=i.momentProperties=[];function y(e,t){var n,r,i;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=p(t)),s(t._locale)||(e._locale=t._locale),g.length>0)for(n=0;n<g.length;n++)s(i=t[r=g[n]])||(e[r]=i);return e}var b=!1;function _(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,i.updateOffset(this),b=!1)}function w(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function k(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function E(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=k(t)),n}function S(e,t,n){var r,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&E(e[r])!==E(t[r]))&&o++;return o+a}function T(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,t){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){for(var r,a=[],o=0;o<arguments.length;o++){if(r="","object"==typeof arguments[o]){for(var s in r+="\n["+o+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[o];a.push(r)}T(e+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var M,x={};function $(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),x[e]||(T(t),x[e]=!0)}function L(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e,t){var n,r=h({},e);for(n in t)d(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)d(e,n)&&!d(t,n)&&o(e[n])&&(r[n]=h({},r[n]));return r}function O(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,M=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var I={};function A(e,t){var n=e.toLowerCase();I[n]=I[n+"s"]=I[t]=e}function D(e){return"string"==typeof e?I[e]||I[e.toLowerCase()]:void 0}function N(e){var t,n,r={};for(n in e)d(e,n)&&(t=D(n))&&(r[t]=e[n]);return r}var R={};function B(e,t){R[e]=t}function Y(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},U={};function z(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(U[e]=i),t&&(U[t[0]]=function(){return Y(i.apply(this,arguments),t[1],t[2])}),n&&(U[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function V(e,t){return e.isValid()?(t=q(t,e.localeData()),H[t]=H[t]||function(e){var t,n,r,i=e.match(j);for(t=0,n=i.length;t<n;t++)U[i[t]]?i[t]=U[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,a="";for(r=0;r<n;r++)a+=L(i[r])?i[r].call(t,e):i[r];return a}}(t),H[t](e)):e.localeData().invalidDate()}function q(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;n>=0&&F.test(e);)e=e.replace(F,r),F.lastIndex=0,n-=1;return e}var W=/\d/,G=/\d\d/,K=/\d{3}/,J=/\d{4}/,X=/[+-]?\d{6}/,Q=/\d\d?/,Z=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,ae=/[+-]?\d+/,oe=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[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,ce={};function ue(e,t,n){ce[e]=L(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(ce,e)?ce[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={};function pe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=E(e)}),n=0;n<e.length;n++)fe[e[n]]=r}function me(e,t){pe(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function ve(e,t,n){null!=t&&d(fe,e)&&fe[e](t,n._a,n,e)}function ge(e){return ye(e)?366:365}function ye(e){return e%4==0&&e%100!=0||e%400==0}z("Y",0,0,(function(){var e=this.year();return e<=9999?""+e:"+"+e})),z(0,["YY",2],0,(function(){return this.year()%100})),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),A("year","y"),B("year",1),ue("Y",ae),ue("YY",Q,G),ue("YYYY",ne,J),ue("YYYYY",re,X),ue("YYYYYY",re,X),pe(["YYYYY","YYYYYY"],0),pe("YYYY",(function(e,t){t[0]=2===e.length?i.parseTwoDigitYear(e):E(e)})),pe("YY",(function(e,t){t[0]=i.parseTwoDigitYear(e)})),pe("Y",(function(e,t){t[0]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return E(e)+(E(e)>68?1900:2e3)};var be,_e=we("FullYear",!0);function we(e,t){return function(n){return null!=n?(Ee(this,e,n),i.updateOffset(this,t),this):ke(this,e)}}function ke(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ee(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ye(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Se(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Se(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?ye(e)?29:28:31-r%7%2}be=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},z("M",["MM",2],"Mo",(function(){return this.month()+1})),z("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),z("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),A("month","M"),B("month",8),ue("M",Q),ue("MM",Q,G),ue("MMM",(function(e,t){return t.monthsShortRegex(e)})),ue("MMMM",(function(e,t){return t.monthsRegex(e)})),pe(["M","MM"],(function(e,t){t[1]=E(e)-1})),pe(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[1]=i:p(n).invalidMonth=e}));var Te=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ce="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Me="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function xe(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=be.call(this._shortMonthsParse,o))?i:null:-1!==(i=be.call(this._longMonthsParse,o))?i:null:"MMM"===t?-1!==(i=be.call(this._shortMonthsParse,o))||-1!==(i=be.call(this._longMonthsParse,o))?i:null:-1!==(i=be.call(this._longMonthsParse,o))||-1!==(i=be.call(this._shortMonthsParse,o))?i:null}function $e(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=E(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Se(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Le(e){return null!=e?($e(this,e),i.updateOffset(this,!0),this):ke(this,"Month")}var Pe=le,Oe=le;function Ie(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],a=[];for(t=0;t<12;t++)n=f([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),a.sort(e),t=0;t<12;t++)r[t]=he(r[t]),i[t]=he(i[t]);for(t=0;t<24;t++)a[t]=he(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ae(e,t,n,r,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function De(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ne(e,t,n){var r=7+t-n;return-(7+De(e,0,r).getUTCDay()-t)%7+r-1}function Re(e,t,n,r,i){var a,o,s=1+7*(t-1)+(7+n-r)%7+Ne(e,r,i);return s<=0?o=ge(a=e-1)+s:s>ge(e)?(a=e+1,o=s-ge(e)):(a=e,o=s),{year:a,dayOfYear:o}}function Be(e,t,n){var r,i,a=Ne(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?r=o+Ye(i=e.year()-1,t,n):o>Ye(e.year(),t,n)?(r=o-Ye(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function Ye(e,t,n){var r=Ne(e,t,n),i=Ne(e+1,t,n);return(ge(e)-r+i)/7}function je(e,t){return e.slice(t,7).concat(e.slice(0,t))}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),A("week","w"),A("isoWeek","W"),B("week",5),B("isoWeek",5),ue("w",Q),ue("ww",Q,G),ue("W",Q),ue("WW",Q,G),me(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=E(e)})),z("d",0,"do","day"),z("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),z("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),z("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),A("day","d"),A("weekday","e"),A("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),ue("d",Q),ue("e",Q),ue("E",Q),ue("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ue("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ue("dddd",(function(e,t){return t.weekdaysRegex(e)})),me(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e})),me(["d","e","E"],(function(e,t,n,r){t[r]=E(e)}));var Fe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ue="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function ze(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=be.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=be.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=be.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=be.call(this._weekdaysParse,o))||-1!==(i=be.call(this._shortWeekdaysParse,o))||-1!==(i=be.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=be.call(this._shortWeekdaysParse,o))||-1!==(i=be.call(this._weekdaysParse,o))||-1!==(i=be.call(this._minWeekdaysParse,o))?i:null:-1!==(i=be.call(this._minWeekdaysParse,o))||-1!==(i=be.call(this._weekdaysParse,o))||-1!==(i=be.call(this._shortWeekdaysParse,o))?i:null}var Ve=le,qe=le,We=le;function Ge(){function e(e,t){return t.length-e.length}var t,n,r,i,a,o=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(r),s.push(i),l.push(a),c.push(r),c.push(i),c.push(a);for(o.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=he(s[t]),l[t]=he(l[t]),c[t]=he(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Je(e,t){z(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Xe(e,t){return t._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Ke),z("k",["kk",2],0,(function(){return this.hours()||24})),z("hmm",0,0,(function(){return""+Ke.apply(this)+Y(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+Ke.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)})),Je("a",!0),Je("A",!1),A("hour","h"),B("hour",13),ue("a",Xe),ue("A",Xe),ue("H",Q),ue("h",Q),ue("k",Q),ue("HH",Q,G),ue("hh",Q,G),ue("kk",Q,G),ue("hmm",Z),ue("hmmss",ee),ue("Hmm",Z),ue("Hmmss",ee),pe(["H","HH"],3),pe(["k","kk"],(function(e,t,n){var r=E(e);t[3]=24===r?0:r})),pe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),pe(["h","hh"],(function(e,t,n){t[3]=E(e),p(n).bigHour=!0})),pe("hmm",(function(e,t,n){var r=e.length-2;t[3]=E(e.substr(0,r)),t[4]=E(e.substr(r)),p(n).bigHour=!0})),pe("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=E(e.substr(0,r)),t[4]=E(e.substr(r,2)),t[5]=E(e.substr(i)),p(n).bigHour=!0})),pe("Hmm",(function(e,t,n){var r=e.length-2;t[3]=E(e.substr(0,r)),t[4]=E(e.substr(r))})),pe("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=E(e.substr(0,r)),t[4]=E(e.substr(r,2)),t[5]=E(e.substr(i))}));var Qe,Ze=we("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,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"},months:Ce,monthsShort:Me,week:{dow:0,doy:6},weekdays:Fe,weekdaysMin:Ue,weekdaysShort:He,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e){return e?e.toLowerCase().replace("_","-"):e}function it(t){var r=null;if(!tt[t]&&void 0!==e&&e&&e.exports)try{r=Qe._abbr,n(314)("./"+t),at(r)}catch(e){}return tt[t]}function at(e,t){var n;return e&&((n=s(t)?st(e):ot(e,t))?Qe=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Qe._abbr}function ot(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])$("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=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])r=tt[t.parentLocale]._config;else{if(null==(n=it(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return tt[e]=new O(P(r,t)),nt[e]&&nt[e].forEach((function(e){ot(e.name,e.config)})),at(e),tt[e]}return delete tt[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Qe;if(!a(e)){if(t=it(e))return t;e=[e]}return function(e){for(var t,n,r,i,a=0;a<e.length;){for(t=(i=rt(e[a]).split("-")).length,n=(n=rt(e[a+1]))?n.split("-"):null;t>0;){if(r=it(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&S(i,n,!0)>=t-1)break;t--}a++}return Qe}(e)}function lt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Se(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}function ct(e,t,n){return null!=e?e:null!=t?t:n}function ut(e){var t,n,r,a,o,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,i,a,o,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,o=4,n=ct(t.GG,e._a[0],Be(Tt(),1,4).year),r=ct(t.W,1),((i=ct(t.E,1))<1||i>7)&&(l=!0);else{a=e._locale._week.dow,o=e._locale._week.doy;var c=Be(Tt(),a,o);n=ct(t.gg,e._a[0],c.year),r=ct(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a}r<1||r>Ye(n,a,o)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=Re(n,r,i,a,o),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=ct(e._a[0],r[0]),(e._dayOfYear>ge(o)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=De(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?De:Ae).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(p(e).weekdayMismatch=!0)}}var dt=/^\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)?)?$/,ht=/^\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)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],mt=[["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/]],vt=/^\/?Date\((\-?\d+)/i;function gt(e){var t,n,r,i,a,o,s=e._i,l=dt.exec(s)||ht.exec(s);if(l){for(p(e).iso=!0,t=0,n=pt.length;t<n;t++)if(pt[t][1].exec(l[1])){i=pt[t][0],r=!1!==pt[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=mt.length;t<n;t++)if(mt[t][1].exec(l[3])){a=(l[2]||" ")+mt[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!ft.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=i+(a||"")+(o||""),kt(e)}else e._isValid=!1}var yt=/^(?:(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}))$/;function bt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var _t={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function wt(e){var t,n,r,i,a,o,s,l=yt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){var c=(t=l[4],n=l[3],r=l[2],i=l[5],a=l[6],o=l[7],s=[bt(t),Me.indexOf(n),parseInt(r,10),parseInt(i,10),parseInt(a,10)],o&&s.push(parseInt(o,10)),s);if(!function(e,t,n){return!e||He.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(p(n).weekdayMismatch=!0,n._isValid=!1,!1)}(l[1],c,e))return;e._a=c,e._tzm=function(e,t,n){if(e)return _t[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(l[8],l[9],l[10]),e._d=De.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function kt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],p(e).empty=!0;var t,n,r,a,o,s=""+e._i,l=s.length,c=0;for(r=q(e._f,e._locale).match(j)||[],t=0;t<r.length;t++)a=r[t],(n=(s.match(de(a,e))||[])[0])&&((o=s.substr(0,s.indexOf(n))).length>0&&p(e).unusedInput.push(o),s=s.slice(s.indexOf(n)+n.length),c+=n.length),U[a]?(n?p(e).empty=!1:p(e).unusedTokens.push(a),ve(a,n,e)):e._strict&&!n&&p(e).unusedTokens.push(a);p(e).charsLeftOver=l-c,s.length>0&&p(e).unusedInput.push(s),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),ut(e),lt(e)}else wt(e);else gt(e)}function Et(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new _(lt(t)):(c(t)?e._d=t:a(n)?function(e){var t,n,r,i,a;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)a=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],kt(t),m(t)&&(a+=p(t).charsLeftOver,a+=10*p(t).unusedTokens.length,p(t).score=a,(null==r||a<r)&&(r=a,n=t));h(e,n||t)}(e):n?kt(e):function(e){var t=e._i;s(t)?e._d=new Date(i.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=vt.exec(e._i);null===t?(gt(e),!1===e._isValid&&(delete e._isValid,wt(e),!1===e._isValid&&(delete e._isValid,i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=u(t.slice(0),(function(e){return parseInt(e,10)})),ut(e)):o(t)?function(e){if(!e._d){var t=N(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),ut(e)}}(e):l(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function St(e,t,n,r,i){var s,l={};return!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||a(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=n,l._i=e,l._f=t,l._strict=r,(s=new _(lt(Et(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Tt(e,t,n,r){return St(e,t,n,r,!1)}i.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Ct=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),Mt=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function xt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var $t=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Lt(e){var t=N(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===be.call($t,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<$t.length;++r)if(e[$t[r]]){if(n)return!1;parseFloat(e[$t[r]])!==E(e[$t[r]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=st(),this._bubble()}function Pt(e){return e instanceof Lt}function Ot(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function It(e,t){z(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+Y(~~(e/60),2)+t+Y(~~e%60,2)}))}It("Z",":"),It("ZZ",""),ue("Z",se),ue("ZZ",se),pe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Dt(se,e)}));var At=/([\+\-]|\d\d)/gi;function Dt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(At)||["-",0,0],i=60*r[1]+E(r[2]);return 0===i?0:"+"===r[0]?i:-i}function Nt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||c(e)?e.valueOf():Tt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Tt(e).local()}function Rt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Bt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Yt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ft(e,t){var n,r,i,a,o,s,c=e,u=null;return Pt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(c={},t?c[t]=e:c.milliseconds=e):(u=Yt.exec(e))?(n="-"===u[1]?-1:1,c={y:0,d:E(u[2])*n,h:E(u[3])*n,m:E(u[4])*n,s:E(u[5])*n,ms:E(Ot(1e3*u[6]))*n}):(u=jt.exec(e))?(n="-"===u[1]?-1:1,c={y:Ht(u[2],n),M:Ht(u[3],n),w:Ht(u[4],n),d:Ht(u[5],n),h:Ht(u[6],n),m:Ht(u[7],n),s:Ht(u[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(a=Tt(c.from),o=Tt(c.to),i=a.isValid()&&o.isValid()?(o=Nt(o,a),a.isBefore(o)?s=Ut(a,o):((s=Ut(o,a)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(c={}).ms=i.milliseconds,c.M=i.months),r=new Lt(c),Pt(e)&&d(e,"_locale")&&(r._locale=e._locale),r}function Ht(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ut(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function zt(e,t){return function(n,r){var i;return null===r||isNaN(+r)||($(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Vt(this,Ft(n="string"==typeof n?+n:n,r),e),this}}function Vt(e,t,n,r){var a=t._milliseconds,o=Ot(t._days),s=Ot(t._months);e.isValid()&&(r=null==r||r,s&&$e(e,ke(e,"Month")+s*n),o&&Ee(e,"Date",ke(e,"Date")+o*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&i.updateOffset(e,o||s))}Ft.fn=Lt.prototype,Ft.invalid=function(){return Ft(NaN)};var qt=zt(1,"add"),Wt=zt(-1,"subtract");function Gt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Kt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=st(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Jt=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function Xt(){return this._locale}function Qt(e,t){return(e%t+t)%t}function Zt(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function en(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function tn(e,t){z(0,[e,e.length],0,t)}function nn(e,t,n,r,i){var a;return null==e?Be(this,r,i).year:(t>(a=Ye(e,r,i))&&(t=a),rn.call(this,e,t,n,r,i))}function rn(e,t,n,r,i){var a=Re(e,t,n,r,i),o=De(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),tn("gggg","weekYear"),tn("ggggg","weekYear"),tn("GGGG","isoWeekYear"),tn("GGGGG","isoWeekYear"),A("weekYear","gg"),A("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),ue("G",ae),ue("g",ae),ue("GG",Q,G),ue("gg",Q,G),ue("GGGG",ne,J),ue("gggg",ne,J),ue("GGGGG",re,X),ue("ggggg",re,X),me(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=E(e)})),me(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),z("Q",0,"Qo","quarter"),A("quarter","Q"),B("quarter",7),ue("Q",W),pe("Q",(function(e,t){t[1]=3*(E(e)-1)})),z("D",["DD",2],"Do","date"),A("date","D"),B("date",9),ue("D",Q),ue("DD",Q,G),ue("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),pe(["D","DD"],2),pe("Do",(function(e,t){t[2]=E(e.match(Q)[0])}));var an=we("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),A("dayOfYear","DDD"),B("dayOfYear",4),ue("DDD",te),ue("DDDD",K),pe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=E(e)})),z("m",["mm",2],0,"minute"),A("minute","m"),B("minute",14),ue("m",Q),ue("mm",Q,G),pe(["m","mm"],4);var on=we("Minutes",!1);z("s",["ss",2],0,"second"),A("second","s"),B("second",15),ue("s",Q),ue("ss",Q,G),pe(["s","ss"],5);var sn,ln=we("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),A("millisecond","ms"),B("millisecond",16),ue("S",te,W),ue("SS",te,G),ue("SSS",te,K),sn="SSSS";sn.length<=9;sn+="S")ue(sn,ie);function cn(e,t){t[6]=E(1e3*("0."+e))}for(sn="S";sn.length<=9;sn+="S")pe(sn,cn);var un=we("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var dn=_.prototype;function hn(e){return e}dn.add=qt,dn.calendar=function(e,t){var n=e||Tt(),r=Nt(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",o=t&&(L(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,Tt(n)))},dn.clone=function(){return new _(this)},dn.diff=function(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=Nt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=D(t)){case"year":a=Gt(this,r)/12;break;case"month":a=Gt(this,r);break;case"quarter":a=Gt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:k(a)},dn.endOf=function(e){var t;if(void 0===(e=D(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?en:Zt;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+=36e5-Qt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Qt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Qt(t,1e3)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},dn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Tt(e).isValid())?Ft({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(Tt(),e)},dn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Tt(e).isValid())?Ft({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(Tt(),e)},dn.get=function(e){return L(this[e=D(e)])?this[e]():this},dn.invalidAt=function(){return p(this).overflow},dn.isAfter=function(e,t){var n=w(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=D(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},dn.isBefore=function(e,t){var n=w(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=D(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},dn.isBetween=function(e,t,n,r){var i=w(e)?e:Tt(e),a=w(t)?t:Tt(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))},dn.isSame=function(e,t){var n,r=w(e)?e:Tt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=D(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},dn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},dn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},dn.isValid=function(){return m(this)},dn.lang=Jt,dn.locale=Kt,dn.localeData=Xt,dn.max=Mt,dn.min=Ct,dn.parsingFlags=function(){return h({},p(this))},dn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:R[n]});return t.sort((function(e,t){return e.priority-t.priority})),t}(e=N(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(L(this[e=D(e)]))return this[e](t);return this},dn.startOf=function(e){var t;if(void 0===(e=D(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?en:Zt;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-=Qt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=Qt(t,6e4);break;case"second":t=this._d.valueOf(),t-=Qt(t,1e3)}return this._d.setTime(t),i.updateOffset(this,!0),this},dn.subtract=Wt,dn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},dn.toObject=function(){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()}},dn.toDate=function(){return new Date(this.valueOf())},dn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=_e,dn.isLeapYear=function(){return ye(this.year())},dn.weekYear=function(e){return nn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return nn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=Le,dn.daysInMonth=function(){return Se(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=Be(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Ye(this.year(),1,4)},dn.date=an,dn.day=dn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},dn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},dn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},dn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},dn.hour=dn.hours=Ze,dn.minute=dn.minutes=on,dn.second=dn.seconds=ln,dn.millisecond=dn.milliseconds=un,dn.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Dt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Rt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Vt(this,Ft(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Rt(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Rt(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Dt(oe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=Bt,dn.isUTC=Bt,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=C("dates accessor is deprecated. Use date instead.",an),dn.months=C("months accessor is deprecated. Use month instead",Le),dn.years=C("years accessor is deprecated. Use year instead",_e),dn.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),dn.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Et(e))._a){var t=e._isUTC?f(e._a):Tt(e._a);this._isDSTShifted=this.isValid()&&S(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var fn=O.prototype;function pn(e,t,n,r){var i=st(),a=f().set(r,t);return i[n](a,e)}function mn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return pn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=pn(e,r,n,"month");return i}function vn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var i,a=st(),o=e?a._week.dow:0;if(null!=n)return pn(t,(n+o)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=pn(t,(i+o)%7,r,"day");return s}fn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return L(r)?r.call(t,n):r},fn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},fn.invalidDate=function(){return this._invalidDate},fn.ordinal=function(e){return this._ordinal.replace("%d",e)},fn.preparse=hn,fn.postformat=hn,fn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return L(i)?i(e,t,n,r):i.replace(/%d/i,e)},fn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return L(n)?n(t):n.replace(/%s/i,t)},fn.set=function(e){var t,n;for(n in e)L(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},fn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Te).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},fn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Te.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},fn.monthsParse=function(e,t,n){var r,i,a;if(this._monthsParseExact)return xe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},fn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ie.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Oe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},fn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ie.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Pe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},fn.week=function(e){return Be(e,this._week.dow,this._week.doy).week},fn.firstDayOfYear=function(){return this._week.doy},fn.firstDayOfWeek=function(){return this._week.dow},fn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?je(n,this._week.dow):e?n[e.day()]:n},fn.weekdaysMin=function(e){return!0===e?je(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},fn.weekdaysShort=function(e){return!0===e?je(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},fn.weekdaysParse=function(e,t,n){var r,i,a;if(this._weekdaysParseExact)return ze.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),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")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},fn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},fn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},fn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=We),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},fn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},fn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},at("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===E(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=C("moment.lang is deprecated. Use moment.locale instead.",at),i.langData=C("moment.langData is deprecated. Use moment.localeData instead.",st);var gn=Math.abs;function yn(e,t,n,r){var i=Ft(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function bn(e){return e<0?Math.floor(e):Math.ceil(e)}function _n(e){return 4800*e/146097}function wn(e){return 146097*e/4800}function kn(e){return function(){return this.as(e)}}var En=kn("ms"),Sn=kn("s"),Tn=kn("m"),Cn=kn("h"),Mn=kn("d"),xn=kn("w"),$n=kn("M"),Ln=kn("Q"),Pn=kn("y");function On(e){return function(){return this.isValid()?this._data[e]:NaN}}var In=On("milliseconds"),An=On("seconds"),Dn=On("minutes"),Nn=On("hours"),Rn=On("days"),Bn=On("months"),Yn=On("years"),jn=Math.round,Fn={ss:44,s:45,m:45,h:22,d:26,M:11};function Hn(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var Un=Math.abs;function zn(e){return(e>0)-(e<0)||+e}function Vn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Un(this._milliseconds)/1e3,r=Un(this._days),i=Un(this._months);e=k(n/60),t=k(e/60),n%=60,e%=60;var a=k(i/12),o=i%=12,s=r,l=t,c=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var h=d<0?"-":"",f=zn(this._months)!==zn(d)?"-":"",p=zn(this._days)!==zn(d)?"-":"",m=zn(this._milliseconds)!==zn(d)?"-":"";return h+"P"+(a?f+a+"Y":"")+(o?f+o+"M":"")+(s?p+s+"D":"")+(l||c||u?"T":"")+(l?m+l+"H":"")+(c?m+c+"M":"")+(u?m+u+"S":"")}var qn=Lt.prototype;return qn.isValid=function(){return this._isValid},qn.abs=function(){var e=this._data;return this._milliseconds=gn(this._milliseconds),this._days=gn(this._days),this._months=gn(this._months),e.milliseconds=gn(e.milliseconds),e.seconds=gn(e.seconds),e.minutes=gn(e.minutes),e.hours=gn(e.hours),e.months=gn(e.months),e.years=gn(e.years),this},qn.add=function(e,t){return yn(this,e,t,1)},qn.subtract=function(e,t){return yn(this,e,t,-1)},qn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=D(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+_n(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(wn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},qn.asMilliseconds=En,qn.asSeconds=Sn,qn.asMinutes=Tn,qn.asHours=Cn,qn.asDays=Mn,qn.asWeeks=xn,qn.asMonths=$n,qn.asQuarters=Ln,qn.asYears=Pn,qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*E(this._months/12):NaN},qn._bubble=function(){var e,t,n,r,i,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*bn(wn(s)+o),o=0,s=0),l.milliseconds=a%1e3,e=k(a/1e3),l.seconds=e%60,t=k(e/60),l.minutes=t%60,n=k(t/60),l.hours=n%24,o+=k(n/24),i=k(_n(o)),s+=i,o-=bn(wn(i)),r=k(s/12),s%=12,l.days=o,l.months=s,l.years=r,this},qn.clone=function(){return Ft(this)},qn.get=function(e){return e=D(e),this.isValid()?this[e+"s"]():NaN},qn.milliseconds=In,qn.seconds=An,qn.minutes=Dn,qn.hours=Nn,qn.days=Rn,qn.weeks=function(){return k(this.days()/7)},qn.months=Bn,qn.years=Yn,qn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Ft(e).abs(),i=jn(r.as("s")),a=jn(r.as("m")),o=jn(r.as("h")),s=jn(r.as("d")),l=jn(r.as("M")),c=jn(r.as("y")),u=i<=Fn.ss&&["s",i]||i<Fn.s&&["ss",i]||a<=1&&["m"]||a<Fn.m&&["mm",a]||o<=1&&["h"]||o<Fn.h&&["hh",o]||s<=1&&["d"]||s<Fn.d&&["dd",s]||l<=1&&["M"]||l<Fn.M&&["MM",l]||c<=1&&["y"]||["yy",c];return u[2]=t,u[3]=+e>0,u[4]=n,Hn.apply(null,u)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},qn.toISOString=Vn,qn.toString=Vn,qn.toJSON=Vn,qn.locale=Kt,qn.localeData=Xt,qn.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vn),qn.lang=Jt,z("X",0,0,"unix"),z("x",0,0,"valueOf"),ue("x",ae),ue("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),pe("x",(function(e,t,n){n._d=new Date(E(e))})),i.version="2.24.0",t=Tt,i.fn=dn,i.min=function(){var e=[].slice.call(arguments,0);return xt("isBefore",e)},i.max=function(){var e=[].slice.call(arguments,0);return xt("isAfter",e)},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(e){return Tt(1e3*e)},i.months=function(e,t){return mn(e,t,"months")},i.isDate=c,i.locale=at,i.invalid=v,i.duration=Ft,i.isMoment=w,i.weekdays=function(e,t,n){return vn(e,t,n,"weekdays")},i.parseZone=function(){return Tt.apply(null,arguments).parseZone()},i.localeData=st,i.isDuration=Pt,i.monthsShort=function(e,t){return mn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return vn(e,t,n,"weekdaysMin")},i.defineLocale=ot,i.updateLocale=function(e,t){if(null!=t){var n,r,i=et;null!=(r=it(e))&&(i=r._config),t=P(i,t),(n=new O(t)).parentLocale=tt[e],tt[e]=n,at(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?tt[e]=tt[e].parentLocale:null!=tt[e]&&delete tt[e]);return tt[e]},i.locales=function(){return M(tt)},i.weekdaysShort=function(e,t,n){return vn(e,t,n,"weekdaysShort")},i.normalizeUnits=D,i.relativeTimeRounding=function(e){return void 0===e?jn:"function"==typeof e&&(jn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Fn[e]&&(void 0===t?Fn[e]:(Fn[e]=t,"s"===e&&(Fn.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=dn,i.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"},i}()}).call(this,n(52)(e))},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return a})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return l})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return u})),n.d(t,"__generator",(function(){return d})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return p})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return v})),n.d(t,"__await",(function(){return g})),n.d(t,"__asyncGenerator",(function(){return y})),n.d(t,"__asyncDelegator",(function(){return b})),n.d(t,"__asyncValues",(function(){return _})),n.d(t,"__makeTemplateObject",(function(){return w})),n.d(t,"__importStar",(function(){return k})),n.d(t,"__importDefault",(function(){return E})),n.d(t,"__classPrivateFieldGet",(function(){return S})),n.d(t,"__classPrivateFieldSet",(function(){return T}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function h(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function g(e){return this instanceof g?(this.v=e,this):new g(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof g?Promise.resolve(n.value.v).then(l,c):u(a[0][2],n)}catch(e){u(a[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:g(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function T(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t){function n(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,a){var o=e.apply(t,r);function s(e){n(o,i,a,s,l,"next",e)}function l(e){n(o,i,a,s,l,"throw",e)}s(void 0)}))}}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";n.r(t),function(e,n){var r=Object.freeze({});function i(e){return null==e}function a(e){return null!=e}function o(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return null!==e&&"object"==typeof e}var c=Object.prototype.toString;function u(e){return"[object Object]"===c.call(e)}function d(e){return"[object RegExp]"===c.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var g=v("slot,component",!0),y=v("key,ref,slot,slot-scope,is");function b(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function w(e,t){return _.call(e,t)}function k(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var E=/-(\w)/g,S=k((function(e){return e.replace(E,(function(e,t){return t?t.toUpperCase():""}))})),T=k((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),C=/\B([A-Z])/g,M=k((function(e){return e.replace(C,"-$1").toLowerCase()}));var x=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function $(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function L(e,t){for(var n in t)e[n]=t[n];return e}function P(e){for(var t={},n=0;n<e.length;n++)e[n]&&L(t,e[n]);return t}function O(e,t,n){}var I=function(e,t,n){return!1},A=function(e){return e};function D(e,t){if(e===t)return!0;var n=l(e),r=l(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),a=Array.isArray(t);if(i&&a)return e.length===t.length&&e.every((function(e,n){return D(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||a)return!1;var o=Object.keys(e),s=Object.keys(t);return o.length===s.length&&o.every((function(n){return D(e[n],t[n])}))}catch(e){return!1}}function N(e,t){for(var n=0;n<e.length;n++)if(D(e[n],t))return n;return-1}function R(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var B=["component","directive","filter"],Y=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],j={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:I,isReservedAttr:I,isUnknownElement:I,getTagNamespace:O,parsePlatformTagName:A,mustUseProp:I,async:!0,_lifecycleHooks:Y},F=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function H(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function U(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var z=new RegExp("[^"+F.source+".$_\\d]");var V,q="__proto__"in{},W="undefined"!=typeof window,G="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,K=G&&WXEnvironment.platform.toLowerCase(),J=W&&window.navigator.userAgent.toLowerCase(),X=J&&/msie|trident/.test(J),Q=J&&J.indexOf("msie 9.0")>0,Z=J&&J.indexOf("edge/")>0,ee=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===K),te=(J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J),J&&J.match(/firefox\/(\d+)/)),ne={}.watch,re=!1;if(W)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){re=!0}}),window.addEventListener("test-passive",null,ie)}catch(e){}var ae=function(){return void 0===V&&(V=!W&&!G&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),V},oe=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function se(e){return"function"==typeof e&&/native code/.test(e.toString())}var le,ce="undefined"!=typeof Symbol&&se(Symbol)&&"undefined"!=typeof Reflect&&se(Reflect.ownKeys);le="undefined"!=typeof Set&&se(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ue=O,de=0,he=function(){this.id=de++,this.subs=[]};he.prototype.addSub=function(e){this.subs.push(e)},he.prototype.removeSub=function(e){b(this.subs,e)},he.prototype.depend=function(){he.target&&he.target.addDep(this)},he.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},he.target=null;var fe=[];function pe(e){fe.push(e),he.target=e}function me(){fe.pop(),he.target=fe[fe.length-1]}var ve=function(e,t,n,r,i,a,o,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ge={child:{configurable:!0}};ge.child.get=function(){return this.componentInstance},Object.defineProperties(ve.prototype,ge);var ye=function(e){void 0===e&&(e="");var t=new ve;return t.text=e,t.isComment=!0,t};function be(e){return new ve(void 0,void 0,void 0,String(e))}function _e(e){var t=new ve(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var we=Array.prototype,ke=Object.create(we);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=we[e];U(ke,e,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,a=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&o.observeArray(i),o.dep.notify(),a}))}));var Ee=Object.getOwnPropertyNames(ke),Se=!0;function Te(e){Se=e}var Ce=function(e){this.value=e,this.dep=new he,this.vmCount=0,U(e,"__ob__",this),Array.isArray(e)?(q?function(e,t){e.__proto__=t}(e,ke):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var a=n[r];U(e,a,t[a])}}(e,ke,Ee),this.observeArray(e)):this.walk(e)};function Me(e,t){var n;if(l(e)&&!(e instanceof ve))return w(e,"__ob__")&&e.__ob__ instanceof Ce?n=e.__ob__:Se&&!ae()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Ce(e)),t&&n&&n.vmCount++,n}function xe(e,t,n,r,i){var a=new he,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var s=o&&o.get,l=o&&o.set;s&&!l||2!==arguments.length||(n=e[t]);var c=!i&&Me(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return he.target&&(a.depend(),c&&(c.dep.depend(),Array.isArray(t)&&Pe(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!=t&&r!=r||s&&!l||(l?l.call(e,t):n=t,c=!i&&Me(t),a.notify())}})}}function $e(e,t,n){if(Array.isArray(e)&&h(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(xe(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Le(e,t){if(Array.isArray(e)&&h(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||w(e,t)&&(delete e[t],n&&n.dep.notify())}}function Pe(e){for(var t=void 0,n=0,r=e.length;n<r;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Pe(t)}Ce.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)xe(e,t[n])},Ce.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Me(e[t])};var Oe=j.optionMergeStrategies;function Ie(e,t){if(!t)return e;for(var n,r,i,a=ce?Reflect.ownKeys(t):Object.keys(t),o=0;o<a.length;o++)"__ob__"!==(n=a[o])&&(r=e[n],i=t[n],w(e,n)?r!==i&&u(r)&&u(i)&&Ie(r,i):$e(e,n,i));return e}function Ae(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?Ie(r,i):i}:t?e?function(){return Ie("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function De(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Ne(e,t,n,r){var i=Object.create(e||null);return t?L(i,t):i}Oe.data=function(e,t,n){return n?Ae(e,t,n):t&&"function"!=typeof t?e:Ae(e,t)},Y.forEach((function(e){Oe[e]=De})),B.forEach((function(e){Oe[e+"s"]=Ne})),Oe.watch=function(e,t,n,r){if(e===ne&&(e=void 0),t===ne&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var a in L(i,e),t){var o=i[a],s=t[a];o&&!Array.isArray(o)&&(o=[o]),i[a]=o?o.concat(s):Array.isArray(s)?s:[s]}return i},Oe.props=Oe.methods=Oe.inject=Oe.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return L(i,e),t&&L(i,t),i},Oe.provide=Ae;var Re=function(e,t){return void 0===t?e:t};function Be(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,i,a={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(a[S(i)]={type:null});else if(u(n))for(var o in n)i=n[o],a[S(o)]=u(i)?i:{type:i};else 0;e.props=a}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var a in n){var o=n[a];r[a]=u(o)?L({from:a},o):{from:o}}else 0}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=Be(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Be(e,t.mixins[r],n);var a,o={};for(a in e)s(a);for(a in t)w(e,a)||s(a);function s(r){var i=Oe[r]||Re;o[r]=i(e[r],t[r],n,r)}return o}function Ye(e,t,n,r){if("string"==typeof n){var i=e[t];if(w(i,n))return i[n];var a=S(n);if(w(i,a))return i[a];var o=T(a);return w(i,o)?i[o]:i[n]||i[a]||i[o]}}function je(e,t,n,r){var i=t[e],a=!w(n,e),o=n[e],s=Ue(Boolean,i.type);if(s>-1)if(a&&!w(i,"default"))o=!1;else if(""===o||o===M(e)){var l=Ue(String,i.type);(l<0||s<l)&&(o=!0)}if(void 0===o){o=function(e,t,n){if(!w(t,"default"))return;var r=t.default;0;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof r&&"Function"!==Fe(t.type)?r.call(e):r}(r,i,e);var c=Se;Te(!0),Me(o),Te(c)}return o}function Fe(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function He(e,t){return Fe(e)===Fe(t)}function Ue(e,t){if(!Array.isArray(t))return He(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(He(t[n],e))return n;return-1}function ze(e,t,n){pe();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var a=0;a<i.length;a++)try{if(!1===i[a].call(r,e,t,n))return}catch(e){qe(e,r,"errorCaptured hook")}}qe(e,t,n)}finally{me()}}function Ve(e,t,n,r,i){var a;try{(a=n?e.apply(t,n):e.call(t))&&!a._isVue&&f(a)&&!a._handled&&(a.catch((function(e){return ze(e,r,i+" (Promise/async)")})),a._handled=!0)}catch(e){ze(e,r,i)}return a}function qe(e,t,n){if(j.errorHandler)try{return j.errorHandler.call(null,e,t,n)}catch(t){t!==e&&We(t,null,"config.errorHandler")}We(e,t,n)}function We(e,t,n){if(!W&&!G||"undefined"==typeof console)throw e;console.error(e)}var Ge,Ke=!1,Je=[],Xe=!1;function Qe(){Xe=!1;var e=Je.slice(0);Je.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&se(Promise)){var Ze=Promise.resolve();Ge=function(){Ze.then(Qe),ee&&setTimeout(O)},Ke=!0}else if(X||"undefined"==typeof MutationObserver||!se(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ge=void 0!==n&&se(n)?function(){n(Qe)}:function(){setTimeout(Qe,0)};else{var et=1,tt=new MutationObserver(Qe),nt=document.createTextNode(String(et));tt.observe(nt,{characterData:!0}),Ge=function(){et=(et+1)%2,nt.data=String(et)},Ke=!0}function rt(e,t){var n;if(Je.push((function(){if(e)try{e.call(t)}catch(e){ze(e,t,"nextTick")}else n&&n(t)})),Xe||(Xe=!0,Ge()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){n=e}))}var it=new le;function at(e){!function e(t,n){var r,i,a=Array.isArray(t);if(!a&&!l(t)||Object.isFrozen(t)||t instanceof ve)return;if(t.__ob__){var o=t.__ob__.dep.id;if(n.has(o))return;n.add(o)}if(a)for(r=t.length;r--;)e(t[r],n);else for(i=Object.keys(t),r=i.length;r--;)e(t[i[r]],n)}(e,it),it.clear()}var ot=k((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function st(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return Ve(r,null,arguments,t,"v-on handler");for(var i=r.slice(),a=0;a<i.length;a++)Ve(i[a],null,e,t,"v-on handler")}return n.fns=e,n}function lt(e,t,n,r,a,s){var l,c,u,d;for(l in e)c=e[l],u=t[l],d=ot(l),i(c)||(i(u)?(i(c.fns)&&(c=e[l]=st(c,s)),o(d.once)&&(c=e[l]=a(d.name,c,d.capture)),n(d.name,c,d.capture,d.passive,d.params)):c!==u&&(u.fns=c,e[l]=u));for(l in t)i(e[l])&&r((d=ot(l)).name,t[l],d.capture)}function ct(e,t,n){var r;e instanceof ve&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function l(){n.apply(this,arguments),b(r.fns,l)}i(s)?r=st([l]):a(s.fns)&&o(s.merged)?(r=s).fns.push(l):r=st([s,l]),r.merged=!0,e[t]=r}function ut(e,t,n,r,i){if(a(t)){if(w(t,n))return e[n]=t[n],i||delete t[n],!0;if(w(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function dt(e){return s(e)?[be(e)]:Array.isArray(e)?function e(t,n){var r,l,c,u,d=[];for(r=0;r<t.length;r++)i(l=t[r])||"boolean"==typeof l||(c=d.length-1,u=d[c],Array.isArray(l)?l.length>0&&(ht((l=e(l,(n||"")+"_"+r))[0])&&ht(u)&&(d[c]=be(u.text+l[0].text),l.shift()),d.push.apply(d,l)):s(l)?ht(u)?d[c]=be(u.text+l):""!==l&&d.push(be(l)):ht(l)&&ht(u)?d[c]=be(u.text+l.text):(o(t._isVList)&&a(l.tag)&&i(l.key)&&a(n)&&(l.key="__vlist"+n+"_"+r+"__"),d.push(l)));return d}(e):void 0}function ht(e){return a(e)&&a(e.text)&&!1===e.isComment}function ft(e,t){if(e){for(var n=Object.create(null),r=ce?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var a=r[i];if("__ob__"!==a){for(var o=e[a].from,s=t;s;){if(s._provided&&w(s._provided,o)){n[a]=s._provided[o];break}s=s.$parent}if(!s)if("default"in e[a]){var l=e[a].default;n[a]="function"==typeof l?l.call(t):l}else 0}}return n}}function pt(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var a=e[r],o=a.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,a.context!==t&&a.fnContext!==t||!o||null==o.slot)(n.default||(n.default=[])).push(a);else{var s=o.slot,l=n[s]||(n[s]=[]);"template"===a.tag?l.push.apply(l,a.children||[]):l.push(a)}}for(var c in n)n[c].every(mt)&&delete n[c];return n}function mt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function vt(e,t,n){var i,a=Object.keys(t).length>0,o=e?!!e.$stable:!a,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&n&&n!==r&&s===n.$key&&!a&&!n.$hasNormal)return n;for(var l in i={},e)e[l]&&"$"!==l[0]&&(i[l]=gt(t,l,e[l]))}else i={};for(var c in t)c in i||(i[c]=yt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=i),U(i,"$stable",o),U(i,"$key",s),U(i,"$hasNormal",a),i}function gt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:dt(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function yt(e,t){return function(){return e[t]}}function bt(e,t){var n,r,i,o,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(l(e))if(ce&&e[Symbol.iterator]){n=[];for(var c=e[Symbol.iterator](),u=c.next();!u.done;)n.push(t(u.value,n.length)),u=c.next()}else for(o=Object.keys(e),n=new Array(o.length),r=0,i=o.length;r<i;r++)s=o[r],n[r]=t(e[s],s,r);return a(n)||(n=[]),n._isVList=!0,n}function _t(e,t,n,r){var i,a=this.$scopedSlots[e];a?(n=n||{},r&&(n=L(L({},r),n)),i=a(n)||t):i=this.$slots[e]||t;var o=n&&n.slot;return o?this.$createElement("template",{slot:o},i):i}function wt(e){return Ye(this.$options,"filters",e)||A}function kt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Et(e,t,n,r,i){var a=j.keyCodes[t]||n;return i&&r&&!j.keyCodes[t]?kt(i,r):a?kt(a,e):r?M(r)!==t:void 0}function St(e,t,n,r,i){if(n)if(l(n)){var a;Array.isArray(n)&&(n=P(n));var o=function(o){if("class"===o||"style"===o||y(o))a=e;else{var s=e.attrs&&e.attrs.type;a=r||j.mustUseProp(t,s,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=S(o),c=M(o);l in a||c in a||(a[o]=n[o],i&&((e.on||(e.on={}))["update:"+o]=function(e){n[o]=e}))};for(var s in n)o(s)}else;return e}function Tt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||Mt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function Ct(e,t,n){return Mt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Mt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&xt(e[r],t+"_"+r,n);else xt(e,t,n)}function xt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function $t(e,t){if(t)if(u(t)){var n=e.on=e.on?L({},e.on):{};for(var r in t){var i=n[r],a=t[r];n[r]=i?[].concat(i,a):a}}else;return e}function Lt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var a=e[i];Array.isArray(a)?Lt(a,t,n):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return r&&(t.$key=r),t}function Pt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Ot(e,t){return"string"==typeof e?t+e:e}function It(e){e._o=Ct,e._n=m,e._s=p,e._l=bt,e._t=_t,e._q=D,e._i=N,e._m=Tt,e._f=wt,e._k=Et,e._b=St,e._v=be,e._e=ye,e._u=Lt,e._g=$t,e._d=Pt,e._p=Ot}function At(e,t,n,i,a){var s,l=this,c=a.options;w(i,"_uid")?(s=Object.create(i))._original=i:(s=i,i=i._original);var u=o(c._compiled),d=!u;this.data=e,this.props=t,this.children=n,this.parent=i,this.listeners=e.on||r,this.injections=ft(c.inject,i),this.slots=function(){return l.$slots||vt(e.scopedSlots,l.$slots=pt(n,i)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return vt(e.scopedSlots,this.slots())}}),u&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=vt(e.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,t,n,r){var a=Ft(s,e,t,n,r,d);return a&&!Array.isArray(a)&&(a.fnScopeId=c._scopeId,a.fnContext=i),a}:this._c=function(e,t,n,r){return Ft(s,e,t,n,r,d)}}function Dt(e,t,n,r,i){var a=_e(e);return a.fnContext=n,a.fnOptions=r,t.slot&&((a.data||(a.data={})).slot=t.slot),a}function Nt(e,t){for(var n in t)e[S(n)]=t[n]}It(At.prototype);var Rt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Rt.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;a(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Xt)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,i,a){0;var o=i.data.scopedSlots,s=e.$scopedSlots,l=!!(o&&!o.$stable||s!==r&&!s.$stable||o&&e.$scopedSlots.$key!==o.$key),c=!!(a||e.$options._renderChildren||l);e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i);if(e.$options._renderChildren=a,e.$attrs=i.data.attrs||r,e.$listeners=n||r,t&&e.$options.props){Te(!1);for(var u=e._props,d=e.$options._propKeys||[],h=0;h<d.length;h++){var f=d[h],p=e.$options.props;u[f]=je(f,p,t,e)}Te(!0),e.$options.propsData=t}n=n||r;var m=e.$options._parentListeners;e.$options._parentListeners=n,Jt(e,n,m),c&&(e.$slots=pt(a,i.context),e.$forceUpdate());0}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,tn(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,rn.push(t)):en(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,Zt(t)))return;if(!t._inactive){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);tn(t,"deactivated")}}(t,!0):t.$destroy())}},Bt=Object.keys(Rt);function Yt(e,t,n,s,c){if(!i(e)){var u=n.$options._base;if(l(e)&&(e=u.extend(e)),"function"==typeof e){var d;if(i(e.cid)&&void 0===(e=function(e,t){if(o(e.error)&&a(e.errorComp))return e.errorComp;if(a(e.resolved))return e.resolved;var n=Ut;n&&a(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n);if(o(e.loading)&&a(e.loadingComp))return e.loadingComp;if(n&&!a(e.owners)){var r=e.owners=[n],s=!0,c=null,u=null;n.$on("hook:destroyed",(function(){return b(r,n)}));var d=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==c&&(clearTimeout(c),c=null),null!==u&&(clearTimeout(u),u=null))},h=R((function(n){e.resolved=zt(n,t),s?r.length=0:d(!0)})),p=R((function(t){a(e.errorComp)&&(e.error=!0,d(!0))})),m=e(h,p);return l(m)&&(f(m)?i(e.resolved)&&m.then(h,p):f(m.component)&&(m.component.then(h,p),a(m.error)&&(e.errorComp=zt(m.error,t)),a(m.loading)&&(e.loadingComp=zt(m.loading,t),0===m.delay?e.loading=!0:c=setTimeout((function(){c=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,d(!1))}),m.delay||200)),a(m.timeout)&&(u=setTimeout((function(){u=null,i(e.resolved)&&p(null)}),m.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}(d=e,u)))return function(e,t,n,r,i){var a=ye();return a.asyncFactory=e,a.asyncMeta={data:t,context:n,children:r,tag:i},a}(d,t,n,s,c);t=t||{},Sn(e),a(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),o=i[r],s=t.model.callback;a(o)?(Array.isArray(o)?-1===o.indexOf(s):o!==s)&&(i[r]=[s].concat(o)):i[r]=s}(e.options,t);var h=function(e,t,n){var r=t.options.props;if(!i(r)){var o={},s=e.attrs,l=e.props;if(a(s)||a(l))for(var c in r){var u=M(c);ut(o,l,c,u,!0)||ut(o,s,c,u,!1)}return o}}(t,e);if(o(e.options.functional))return function(e,t,n,i,o){var s=e.options,l={},c=s.props;if(a(c))for(var u in c)l[u]=je(u,c,t||r);else a(n.attrs)&&Nt(l,n.attrs),a(n.props)&&Nt(l,n.props);var d=new At(n,l,o,i,e),h=s.render.call(null,d._c,d);if(h instanceof ve)return Dt(h,n,d.parent,s,d);if(Array.isArray(h)){for(var f=dt(h)||[],p=new Array(f.length),m=0;m<f.length;m++)p[m]=Dt(f[m],n,d.parent,s,d);return p}}(e,h,t,n,s);var p=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var m=t.slot;t={},m&&(t.slot=m)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Bt.length;n++){var r=Bt[n],i=t[r],a=Rt[r];i===a||i&&i._merged||(t[r]=i?jt(a,i):a)}}(t);var v=e.options.name||c;return new ve("vue-component-"+e.cid+(v?"-"+v:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:h,listeners:p,tag:c,children:s},d)}}}function jt(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function Ft(e,t,n,r,c,u){return(Array.isArray(n)||s(n))&&(c=r,r=n,n=void 0),o(u)&&(c=2),function(e,t,n,r,s){if(a(n)&&a(n.__ob__))return ye();a(n)&&a(n.is)&&(t=n.is);if(!t)return ye();0;Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);2===s?r=dt(r):1===s&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r));var c,u;if("string"==typeof t){var d;u=e.$vnode&&e.$vnode.ns||j.getTagNamespace(t),c=j.isReservedTag(t)?new ve(j.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!a(d=Ye(e.$options,"components",t))?new ve(t,n,r,void 0,void 0,e):Yt(d,n,e,r,t)}else c=Yt(t,n,e,r);return Array.isArray(c)?c:a(c)?(a(u)&&function e(t,n,r){t.ns=n,"foreignObject"===t.tag&&(n=void 0,r=!0);if(a(t.children))for(var s=0,l=t.children.length;s<l;s++){var c=t.children[s];a(c.tag)&&(i(c.ns)||o(r)&&"svg"!==c.tag)&&e(c,n,r)}}(c,u),a(n)&&function(e){l(e.style)&&at(e.style);l(e.class)&&at(e.class)}(n),c):ye()}(e,t,n,r,c)}var Ht,Ut=null;function zt(e,t){return(e.__esModule||ce&&"Module"===e[Symbol.toStringTag])&&(e=e.default),l(e)?t.extend(e):e}function Vt(e){return e.isComment&&e.asyncFactory}function qt(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(a(n)&&(a(n.componentOptions)||Vt(n)))return n}}function Wt(e,t){Ht.$on(e,t)}function Gt(e,t){Ht.$off(e,t)}function Kt(e,t){var n=Ht;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function Jt(e,t,n){Ht=e,lt(t,n||{},Wt,Gt,Kt,e),Ht=void 0}var Xt=null;function Qt(e){var t=Xt;return Xt=e,function(){Xt=t}}function Zt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function en(e,t){if(t){if(e._directInactive=!1,Zt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)en(e.$children[n]);tn(e,"activated")}}function tn(e,t){pe();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,a=n.length;i<a;i++)Ve(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),me()}var nn=[],rn=[],an={},on=!1,sn=!1,ln=0;var cn=0,un=Date.now;if(W&&!X){var dn=window.performance;dn&&"function"==typeof dn.now&&un()>document.createEvent("Event").timeStamp&&(un=function(){return dn.now()})}function hn(){var e,t;for(cn=un(),sn=!0,nn.sort((function(e,t){return e.id-t.id})),ln=0;ln<nn.length;ln++)(e=nn[ln]).before&&e.before(),t=e.id,an[t]=null,e.run();var n=rn.slice(),r=nn.slice();ln=nn.length=rn.length=0,an={},on=sn=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,en(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&tn(r,"updated")}}(r),oe&&j.devtools&&oe.emit("flush")}var fn=0,pn=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++fn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new le,this.newDepIds=new le,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!z.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=O)),this.value=this.lazy?void 0:this.get()};pn.prototype.get=function(){var e;pe(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;ze(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&at(e),me(),this.cleanupDeps()}return e},pn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},pn.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},pn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==an[t]){if(an[t]=!0,sn){for(var n=nn.length-1;n>ln&&nn[n].id>e.id;)n--;nn.splice(n+1,0,e)}else nn.push(e);on||(on=!0,rt(hn))}}(this)},pn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){ze(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},pn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},pn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},pn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var mn={enumerable:!0,configurable:!0,get:O,set:O};function vn(e,t,n){mn.get=function(){return this[t][n]},mn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,mn)}function gn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&Te(!1);var a=function(a){i.push(a);var o=je(a,t,n,e);xe(r,a,o),a in e||vn(e,"_props",a)};for(var o in t)a(o);Te(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?O:x(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){pe();try{return e.call(t,t)}catch(e){return ze(e,t,"data()"),{}}finally{me()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var a=n[i];0,r&&w(r,a)||H(a)||vn(e,"_data",a)}Me(t,!0)}(e):Me(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ae();for(var i in t){var a=t[i],o="function"==typeof a?a:a.get;0,r||(n[i]=new pn(e,o||O,O,yn)),i in e||bn(e,i,a)}}(e,t.computed),t.watch&&t.watch!==ne&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)kn(e,n,r[i]);else kn(e,n,r)}}(e,t.watch)}var yn={lazy:!0};function bn(e,t,n){var r=!ae();"function"==typeof n?(mn.get=r?_n(t):wn(n),mn.set=O):(mn.get=n.get?r&&!1!==n.cache?_n(t):wn(n.get):O,mn.set=n.set||O),Object.defineProperty(e,t,mn)}function _n(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),he.target&&t.depend(),t.value}}function wn(e){return function(){return e.call(this,this)}}function kn(e,t,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var En=0;function Sn(e){var t=e.options;if(e.super){var n=Sn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&L(e.extendOptions,r),(t=e.options=Be(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Tn(e){this._init(e)}function Cn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var a=e.name||n.options.name;var o=function(e){this._init(e)};return(o.prototype=Object.create(n.prototype)).constructor=o,o.cid=t++,o.options=Be(n.options,e),o.super=n,o.options.props&&function(e){var t=e.options.props;for(var n in t)vn(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)bn(e.prototype,n,t[n])}(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,B.forEach((function(e){o[e]=n[e]})),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=L({},o.options),i[r]=o,o}}function Mn(e){return e&&(e.Ctor.options.name||e.tag)}function xn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function $n(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var o=n[a];if(o){var s=Mn(o.componentOptions);s&&!t(s)&&Ln(n,a,r,i)}}}function Ln(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,b(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=En++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Be(Sn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Jt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=pt(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return Ft(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ft(e,t,n,r,i,!0)};var a=n&&n.data;xe(e,"$attrs",a&&a.attrs||r,null,!0),xe(e,"$listeners",t._parentListeners||r,null,!0)}(t),tn(t,"beforeCreate"),function(e){var t=ft(e.$options.inject,e);t&&(Te(!1),Object.keys(t).forEach((function(n){xe(e,n,t[n])})),Te(!0))}(t),gn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),tn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Tn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=$e,e.prototype.$delete=Le,e.prototype.$watch=function(e,t,n){if(u(t))return kn(this,e,t,n);(n=n||{}).user=!0;var r=new pn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){ze(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(Tn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,a=e.length;i<a;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var a,o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;for(var s=o.length;s--;)if((a=o[s])===t||a.fn===t){o.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?$(n):n;for(var r=$(arguments,1),i='event handler for "'+e+'"',a=0,o=n.length;a<o;a++)Ve(n[a],t,r,t,i)}return t}}(Tn),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,a=Qt(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),a(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){tn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||b(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),tn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(Tn),function(e){It(e.prototype),e.prototype.$nextTick=function(e){return rt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=vt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{Ut=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){ze(n,t,"render"),e=t._vnode}finally{Ut=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof ve||(e=ye()),e.parent=i,e}}(Tn);var Pn=[String,RegExp,Array],On={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Pn,exclude:Pn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Ln(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){$n(e,(function(e){return xn(t,e)}))})),this.$watch("exclude",(function(t){$n(e,(function(e){return!xn(t,e)}))}))},render:function(){var e=this.$slots.default,t=qt(e),n=t&&t.componentOptions;if(n){var r=Mn(n),i=this.include,a=this.exclude;if(i&&(!r||!xn(i,r))||a&&r&&xn(a,r))return t;var o=this.cache,s=this.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;o[l]?(t.componentInstance=o[l].componentInstance,b(s,l),s.push(l)):(o[l]=t,s.push(l),this.max&&s.length>parseInt(this.max)&&Ln(o,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return j}};Object.defineProperty(e,"config",t),e.util={warn:ue,extend:L,mergeOptions:Be,defineReactive:xe},e.set=$e,e.delete=Le,e.nextTick=rt,e.observable=function(e){return Me(e),e},e.options=Object.create(null),B.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,L(e.options.components,On),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=$(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Be(this.options,e),this}}(e),Cn(e),function(e){B.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Tn),Object.defineProperty(Tn.prototype,"$isServer",{get:ae}),Object.defineProperty(Tn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Tn,"FunctionalRenderContext",{value:At}),Tn.version="2.6.11";var In=v("style,class"),An=v("input,textarea,option,select,progress"),Dn=function(e,t,n){return"value"===n&&An(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Nn=v("contenteditable,draggable,spellcheck"),Rn=v("events,caret,typing,plaintext-only"),Bn=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Yn="http://www.w3.org/1999/xlink",jn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Fn=function(e){return jn(e)?e.slice(6,e.length):""},Hn=function(e){return null==e||!1===e};function Un(e){for(var t=e.data,n=e,r=e;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=zn(r.data,t));for(;a(n=n.parent);)n&&n.data&&(t=zn(t,n.data));return function(e,t){if(a(e)||a(t))return Vn(e,qn(t));return""}(t.staticClass,t.class)}function zn(e,t){return{staticClass:Vn(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Vn(e,t){return e?t?e+" "+t:e:t||""}function qn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)a(t=qn(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):l(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var Wn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Gn=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Kn=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Jn=function(e){return Gn(e)||Kn(e)};function Xn(e){return Kn(e)?"svg":"math"===e?"math":void 0}var Qn=Object.create(null);var Zn=v("text,number,password,search,email,tel,url");function er(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var tr=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(Wn[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),nr={create:function(e,t){rr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(rr(e,!0),rr(t))},destroy:function(e){rr(e,!0)}};function rr(e,t){var n=e.data.ref;if(a(n)){var r=e.context,i=e.componentInstance||e.elm,o=r.$refs;t?Array.isArray(o[n])?b(o[n],i):o[n]===i&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(i)<0&&o[n].push(i):o[n]=[i]:o[n]=i}}var ir=new ve("",{},[]),ar=["create","activate","update","remove","destroy"];function or(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&a(e.data)===a(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=a(n=e.data)&&a(n=n.attrs)&&n.type,i=a(n=t.data)&&a(n=n.attrs)&&n.type;return r===i||Zn(r)&&Zn(i)}(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&i(t.asyncFactory.error))}function sr(e,t,n){var r,i,o={};for(r=t;r<=n;++r)a(i=e[r].key)&&(o[i]=r);return o}var lr={create:cr,update:cr,destroy:function(e){cr(e,ir)}};function cr(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,a=e===ir,o=t===ir,s=dr(e.data.directives,e.context),l=dr(t.data.directives,t.context),c=[],u=[];for(n in l)r=s[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,fr(i,"update",t,e),i.def&&i.def.componentUpdated&&u.push(i)):(fr(i,"bind",t,e),i.def&&i.def.inserted&&c.push(i));if(c.length){var d=function(){for(var n=0;n<c.length;n++)fr(c[n],"inserted",t,e)};a?ct(t,"insert",d):d()}u.length&&ct(t,"postpatch",(function(){for(var n=0;n<u.length;n++)fr(u[n],"componentUpdated",t,e)}));if(!a)for(n in s)l[n]||fr(s[n],"unbind",e,e,o)}(e,t)}var ur=Object.create(null);function dr(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=ur),i[hr(r)]=r,r.def=Ye(t.$options,"directives",r.name);return i}function hr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function fr(e,t,n,r,i){var a=e.def&&e.def[t];if(a)try{a(n.elm,e,n,r,i)}catch(r){ze(r,n.context,"directive "+e.name+" "+t+" hook")}}var pr=[nr,lr];function mr(e,t){var n=t.componentOptions;if(!(a(n)&&!1===n.Ctor.options.inheritAttrs||i(e.data.attrs)&&i(t.data.attrs))){var r,o,s=t.elm,l=e.data.attrs||{},c=t.data.attrs||{};for(r in a(c.__ob__)&&(c=t.data.attrs=L({},c)),c)o=c[r],l[r]!==o&&vr(s,r,o);for(r in(X||Z)&&c.value!==l.value&&vr(s,"value",c.value),l)i(c[r])&&(jn(r)?s.removeAttributeNS(Yn,Fn(r)):Nn(r)||s.removeAttribute(r))}}function vr(e,t,n){e.tagName.indexOf("-")>-1?gr(e,t,n):Bn(t)?Hn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Nn(t)?e.setAttribute(t,function(e,t){return Hn(t)||"false"===t?"false":"contenteditable"===e&&Rn(t)?t:"true"}(t,n)):jn(t)?Hn(n)?e.removeAttributeNS(Yn,Fn(t)):e.setAttributeNS(Yn,t,n):gr(e,t,n)}function gr(e,t,n){if(Hn(n))e.removeAttribute(t);else{if(X&&!Q&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var yr={create:mr,update:mr};function br(e,t){var n=t.elm,r=t.data,o=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var s=Un(t),l=n._transitionClasses;a(l)&&(s=Vn(s,qn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var _r,wr,kr,Er,Sr,Tr,Cr={create:br,update:br},Mr=/[\w).+\-_$\]]/;function xr(e){var t,n,r,i,a,o=!1,s=!1,l=!1,c=!1,u=0,d=0,h=0,f=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),o)39===t&&92!==n&&(o=!1);else if(s)34===t&&92!==n&&(s=!1);else if(l)96===t&&92!==n&&(l=!1);else if(c)47===t&&92!==n&&(c=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||u||d||h){switch(t){case 34:s=!0;break;case 39:o=!0;break;case 96:l=!0;break;case 40:h++;break;case 41:h--;break;case 91:d++;break;case 93:d--;break;case 123:u++;break;case 125:u--}if(47===t){for(var p=r-1,m=void 0;p>=0&&" "===(m=e.charAt(p));p--);m&&Mr.test(m)||(c=!0)}}else void 0===i?(f=r+1,i=e.slice(0,r).trim()):v();function v(){(a||(a=[])).push(e.slice(f,r).trim()),f=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==f&&v(),a)for(r=0;r<a.length;r++)i=$r(i,a[r]);return i}function $r(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==i?","+i:i)}function Lr(e,t){console.error("[Vue compiler]: "+e)}function Pr(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function Or(e,t,n,r,i){(e.props||(e.props=[])).push(Fr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Ir(e,t,n,r,i){(i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Fr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Ar(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Fr({name:t,value:n},r))}function Dr(e,t,n,r,i,a,o,s){(e.directives||(e.directives=[])).push(Fr({name:t,rawName:n,value:r,arg:i,isDynamicArg:a,modifiers:o},s)),e.plain=!1}function Nr(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function Rr(e,t,n,i,a,o,s,l){var c;(i=i||r).right?l?t="("+t+")==='click'?'contextmenu':("+t+")":"click"===t&&(t="contextmenu",delete i.right):i.middle&&(l?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup")),i.capture&&(delete i.capture,t=Nr("!",t,l)),i.once&&(delete i.once,t=Nr("~",t,l)),i.passive&&(delete i.passive,t=Nr("&",t,l)),i.native?(delete i.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});var u=Fr({value:n.trim(),dynamic:l},s);i!==r&&(u.modifiers=i);var d=c[t];Array.isArray(d)?a?d.unshift(u):d.push(u):c[t]=d?a?[u,d]:[d,u]:u,e.plain=!1}function Br(e,t,n){var r=Yr(e,":"+t)||Yr(e,"v-bind:"+t);if(null!=r)return xr(r);if(!1!==n){var i=Yr(e,t);if(null!=i)return JSON.stringify(i)}}function Yr(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,a=0,o=i.length;a<o;a++)if(i[a].name===t){i.splice(a,1);break}return n&&delete e.attrsMap[t],r}function jr(e,t){for(var n=e.attrsList,r=0,i=n.length;r<i;r++){var a=n[r];if(t.test(a.name))return n.splice(r,1),a}}function Fr(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Hr(e,t,n){var r=n||{},i=r.number,a="$$v";r.trim&&(a="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(a="_n("+a+")");var o=Ur(t,a);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+o+"}"}}function Ur(e,t){var n=function(e){if(e=e.trim(),_r=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<_r-1)return(Er=e.lastIndexOf("."))>-1?{exp:e.slice(0,Er),key:'"'+e.slice(Er+1)+'"'}:{exp:e,key:null};wr=e,Er=Sr=Tr=0;for(;!Vr();)qr(kr=zr())?Gr(kr):91===kr&&Wr(kr);return{exp:e.slice(0,Sr),key:e.slice(Sr+1,Tr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function zr(){return wr.charCodeAt(++Er)}function Vr(){return Er>=_r}function qr(e){return 34===e||39===e}function Wr(e){var t=1;for(Sr=Er;!Vr();)if(qr(e=zr()))Gr(e);else if(91===e&&t++,93===e&&t--,0===t){Tr=Er;break}}function Gr(e){for(var t=e;!Vr()&&(e=zr())!==t;);}var Kr;function Jr(e,t,n){var r=Kr;return function i(){var a=t.apply(null,arguments);null!==a&&Zr(e,i,n,r)}}var Xr=Ke&&!(te&&Number(te[1])<=53);function Qr(e,t,n,r){if(Xr){var i=cn,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}Kr.addEventListener(e,t,re?{capture:n,passive:r}:n)}function Zr(e,t,n,r){(r||Kr).removeEventListener(e,t._wrapper||t,n)}function ei(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Kr=t.elm,function(e){if(a(e.__r)){var t=X?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}a(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),lt(n,r,Qr,Zr,Jr,t.context),Kr=void 0}}var ti,ni={create:ei,update:ei};function ri(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,o=t.elm,s=e.data.domProps||{},l=t.data.domProps||{};for(n in a(l.__ob__)&&(l=t.data.domProps=L({},l)),s)n in l||(o[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;var c=i(r)?"":String(r);ii(o,c)&&(o.value=c)}else if("innerHTML"===n&&Kn(o.tagName)&&i(o.innerHTML)){(ti=ti||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var u=ti.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;u.firstChild;)o.appendChild(u.firstChild)}else if(r!==s[n])try{o[n]=r}catch(e){}}}}function ii(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(a(r)){if(r.number)return m(n)!==m(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var ai={create:ri,update:ri},oi=k((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function si(e){var t=li(e.style);return e.staticStyle?L(e.staticStyle,t):t}function li(e){return Array.isArray(e)?P(e):"string"==typeof e?oi(e):e}var ci,ui=/^--/,di=/\s*!important$/,hi=function(e,t,n){if(ui.test(t))e.style.setProperty(t,n);else if(di.test(n))e.style.setProperty(M(t),n.replace(di,""),"important");else{var r=pi(t);if(Array.isArray(n))for(var i=0,a=n.length;i<a;i++)e.style[r]=n[i];else e.style[r]=n}},fi=["Webkit","Moz","ms"],pi=k((function(e){if(ci=ci||document.createElement("div").style,"filter"!==(e=S(e))&&e in ci)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<fi.length;n++){var r=fi[n]+t;if(r in ci)return r}}));function mi(e,t){var n=t.data,r=e.data;if(!(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))){var o,s,l=t.elm,c=r.staticStyle,u=r.normalizedStyle||r.style||{},d=c||u,h=li(t.data.style)||{};t.data.normalizedStyle=a(h.__ob__)?L({},h):h;var f=function(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=si(i.data))&&L(r,n);(n=si(e.data))&&L(r,n);for(var a=e;a=a.parent;)a.data&&(n=si(a.data))&&L(r,n);return r}(t,!0);for(s in d)i(f[s])&&hi(l,s,"");for(s in f)(o=f[s])!==d[s]&&hi(l,s,null==o?"":o)}}var vi={create:mi,update:mi},gi=/\s+/;function yi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(gi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function bi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(gi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function _i(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&L(t,wi(e.name||"v")),L(t,e),t}return"string"==typeof e?wi(e):void 0}}var wi=k((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),ki=W&&!Q,Ei="transition",Si="transitionend",Ti="animation",Ci="animationend";ki&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ei="WebkitTransition",Si="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ti="WebkitAnimation",Ci="webkitAnimationEnd"));var Mi=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function xi(e){Mi((function(){Mi(e)}))}function $i(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),yi(e,t))}function Li(e,t){e._transitionClasses&&b(e._transitionClasses,t),bi(e,t)}function Pi(e,t,n){var r=Ii(e,t),i=r.type,a=r.timeout,o=r.propCount;if(!i)return n();var s="transition"===i?Si:Ci,l=0,c=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++l>=o&&c()};setTimeout((function(){l<o&&c()}),a+1),e.addEventListener(s,u)}var Oi=/\b(transform|all)(,|$)/;function Ii(e,t){var n,r=window.getComputedStyle(e),i=(r[Ei+"Delay"]||"").split(", "),a=(r[Ei+"Duration"]||"").split(", "),o=Ai(i,a),s=(r[Ti+"Delay"]||"").split(", "),l=(r[Ti+"Duration"]||"").split(", "),c=Ai(s,l),u=0,d=0;return"transition"===t?o>0&&(n="transition",u=o,d=a.length):"animation"===t?c>0&&(n="animation",u=c,d=l.length):d=(n=(u=Math.max(o,c))>0?o>c?"transition":"animation":null)?"transition"===n?a.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:"transition"===n&&Oi.test(r[Ei+"Property"])}}function Ai(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Di(t)+Di(e[n])})))}function Di(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Ni(e,t){var n=e.elm;a(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=_i(e.data.transition);if(!i(r)&&!a(n._enterCb)&&1===n.nodeType){for(var o=r.css,s=r.type,c=r.enterClass,u=r.enterToClass,d=r.enterActiveClass,h=r.appearClass,f=r.appearToClass,p=r.appearActiveClass,v=r.beforeEnter,g=r.enter,y=r.afterEnter,b=r.enterCancelled,_=r.beforeAppear,w=r.appear,k=r.afterAppear,E=r.appearCancelled,S=r.duration,T=Xt,C=Xt.$vnode;C&&C.parent;)T=C.context,C=C.parent;var M=!T._isMounted||!e.isRootInsert;if(!M||w||""===w){var x=M&&h?h:c,$=M&&p?p:d,L=M&&f?f:u,P=M&&_||v,O=M&&"function"==typeof w?w:g,I=M&&k||y,A=M&&E||b,D=m(l(S)?S.enter:S);0;var N=!1!==o&&!Q,B=Yi(O),Y=n._enterCb=R((function(){N&&(Li(n,L),Li(n,$)),Y.cancelled?(N&&Li(n,x),A&&A(n)):I&&I(n),n._enterCb=null}));e.data.show||ct(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),O&&O(n,Y)})),P&&P(n),N&&($i(n,x),$i(n,$),xi((function(){Li(n,x),Y.cancelled||($i(n,L),B||(Bi(D)?setTimeout(Y,D):Pi(n,s,Y)))}))),e.data.show&&(t&&t(),O&&O(n,Y)),N||B||Y()}}}function Ri(e,t){var n=e.elm;a(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=_i(e.data.transition);if(i(r)||1!==n.nodeType)return t();if(!a(n._leaveCb)){var o=r.css,s=r.type,c=r.leaveClass,u=r.leaveToClass,d=r.leaveActiveClass,h=r.beforeLeave,f=r.leave,p=r.afterLeave,v=r.leaveCancelled,g=r.delayLeave,y=r.duration,b=!1!==o&&!Q,_=Yi(f),w=m(l(y)?y.leave:y);0;var k=n._leaveCb=R((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),b&&(Li(n,u),Li(n,d)),k.cancelled?(b&&Li(n,c),v&&v(n)):(t(),p&&p(n)),n._leaveCb=null}));g?g(E):E()}function E(){k.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),b&&($i(n,c),$i(n,d),xi((function(){Li(n,c),k.cancelled||($i(n,u),_||(Bi(w)?setTimeout(k,w):Pi(n,s,k)))}))),f&&f(n,k),b||_||k())}}function Bi(e){return"number"==typeof e&&!isNaN(e)}function Yi(e){if(i(e))return!1;var t=e.fns;return a(t)?Yi(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function ji(e,t){!0!==t.data.show&&Ni(t)}var Fi=function(e){var t,n,r={},l=e.modules,c=e.nodeOps;for(t=0;t<ar.length;++t)for(r[ar[t]]=[],n=0;n<l.length;++n)a(l[n][ar[t]])&&r[ar[t]].push(l[n][ar[t]]);function u(e){var t=c.parentNode(e);a(t)&&c.removeChild(t,e)}function d(e,t,n,i,s,l,u){if(a(e.elm)&&a(l)&&(e=l[u]=_e(e)),e.isRootInsert=!s,!function(e,t,n,i){var s=e.data;if(a(s)){var l=a(e.componentInstance)&&s.keepAlive;if(a(s=s.hook)&&a(s=s.init)&&s(e,!1),a(e.componentInstance))return h(e,t),f(n,e.elm,i),o(l)&&function(e,t,n,i){var o,s=e;for(;s.componentInstance;)if(s=s.componentInstance._vnode,a(o=s.data)&&a(o=o.transition)){for(o=0;o<r.activate.length;++o)r.activate[o](ir,s);t.push(s);break}f(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var d=e.data,m=e.children,v=e.tag;a(v)?(e.elm=e.ns?c.createElementNS(e.ns,v):c.createElement(v,e),y(e),p(e,m,t),a(d)&&g(e,t),f(n,e.elm,i)):o(e.isComment)?(e.elm=c.createComment(e.text),f(n,e.elm,i)):(e.elm=c.createTextNode(e.text),f(n,e.elm,i))}}function h(e,t){a(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,m(e)?(g(e,t),y(e)):(rr(e),t.push(e))}function f(e,t,n){a(e)&&(a(n)?c.parentNode(n)===e&&c.insertBefore(e,t,n):c.appendChild(e,t))}function p(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)d(t[r],n,e.elm,null,!0,t,r)}else s(e.text)&&c.appendChild(e.elm,c.createTextNode(String(e.text)))}function m(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return a(e.tag)}function g(e,n){for(var i=0;i<r.create.length;++i)r.create[i](ir,e);a(t=e.data.hook)&&(a(t.create)&&t.create(ir,e),a(t.insert)&&n.push(e))}function y(e){var t;if(a(t=e.fnScopeId))c.setStyleScope(e.elm,t);else for(var n=e;n;)a(t=n.context)&&a(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t),n=n.parent;a(t=Xt)&&t!==e.context&&t!==e.fnContext&&a(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t)}function b(e,t,n,r,i,a){for(;r<=i;++r)d(n[r],a,e,t,!1,n,r)}function _(e){var t,n,i=e.data;if(a(i))for(a(t=i.hook)&&a(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(a(t=e.children))for(n=0;n<e.children.length;++n)_(e.children[n])}function w(e,t,n){for(;t<=n;++t){var r=e[t];a(r)&&(a(r.tag)?(k(r),_(r)):u(r.elm))}}function k(e,t){if(a(t)||a(e.data)){var n,i=r.remove.length+1;for(a(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&u(e)}return n.listeners=t,n}(e.elm,i),a(n=e.componentInstance)&&a(n=n._vnode)&&a(n.data)&&k(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);a(n=e.data.hook)&&a(n=n.remove)?n(e,t):t()}else u(e.elm)}function E(e,t,n,r){for(var i=n;i<r;i++){var o=t[i];if(a(o)&&or(e,o))return i}}function S(e,t,n,s,l,u){if(e!==t){a(t.elm)&&a(s)&&(t=s[l]=_e(t));var h=t.elm=e.elm;if(o(e.isAsyncPlaceholder))a(t.asyncFactory.resolved)?M(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var f,p=t.data;a(p)&&a(f=p.hook)&&a(f=f.prepatch)&&f(e,t);var v=e.children,g=t.children;if(a(p)&&m(t)){for(f=0;f<r.update.length;++f)r.update[f](e,t);a(f=p.hook)&&a(f=f.update)&&f(e,t)}i(t.text)?a(v)&&a(g)?v!==g&&function(e,t,n,r,o){var s,l,u,h=0,f=0,p=t.length-1,m=t[0],v=t[p],g=n.length-1,y=n[0],_=n[g],k=!o;for(0;h<=p&&f<=g;)i(m)?m=t[++h]:i(v)?v=t[--p]:or(m,y)?(S(m,y,r,n,f),m=t[++h],y=n[++f]):or(v,_)?(S(v,_,r,n,g),v=t[--p],_=n[--g]):or(m,_)?(S(m,_,r,n,g),k&&c.insertBefore(e,m.elm,c.nextSibling(v.elm)),m=t[++h],_=n[--g]):or(v,y)?(S(v,y,r,n,f),k&&c.insertBefore(e,v.elm,m.elm),v=t[--p],y=n[++f]):(i(s)&&(s=sr(t,h,p)),i(l=a(y.key)?s[y.key]:E(y,t,h,p))?d(y,r,e,m.elm,!1,n,f):or(u=t[l],y)?(S(u,y,r,n,f),t[l]=void 0,k&&c.insertBefore(e,u.elm,m.elm)):d(y,r,e,m.elm,!1,n,f),y=n[++f]);h>p?b(e,i(n[g+1])?null:n[g+1].elm,n,f,g,r):f>g&&w(t,h,p)}(h,v,g,n,u):a(g)?(a(e.text)&&c.setTextContent(h,""),b(h,null,g,0,g.length-1,n)):a(v)?w(v,0,v.length-1):a(e.text)&&c.setTextContent(h,""):e.text!==t.text&&c.setTextContent(h,t.text),a(p)&&a(f=p.hook)&&a(f=f.postpatch)&&f(e,t)}}}function T(e,t,n){if(o(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var C=v("attrs,class,staticClass,staticStyle,key");function M(e,t,n,r){var i,s=t.tag,l=t.data,c=t.children;if(r=r||l&&l.pre,t.elm=e,o(t.isComment)&&a(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(a(l)&&(a(i=l.hook)&&a(i=i.init)&&i(t,!0),a(i=t.componentInstance)))return h(t,n),!0;if(a(s)){if(a(c))if(e.hasChildNodes())if(a(i=l)&&a(i=i.domProps)&&a(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var u=!0,d=e.firstChild,f=0;f<c.length;f++){if(!d||!M(d,c[f],n,r)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else p(t,c,n);if(a(l)){var m=!1;for(var v in l)if(!C(v)){m=!0,g(t,n);break}!m&&l.class&&at(l.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!i(t)){var l,u=!1,h=[];if(i(e))u=!0,d(t,h);else{var f=a(e.nodeType);if(!f&&or(e,t))S(e,t,h,null,null,s);else{if(f){if(1===e.nodeType&&e.hasAttribute("data-server-rendered")&&(e.removeAttribute("data-server-rendered"),n=!0),o(n)&&M(e,t,h))return T(t,h,!0),e;l=e,e=new ve(c.tagName(l).toLowerCase(),{},[],void 0,l)}var p=e.elm,v=c.parentNode(p);if(d(t,h,p._leaveCb?null:v,c.nextSibling(p)),a(t.parent))for(var g=t.parent,y=m(t);g;){for(var b=0;b<r.destroy.length;++b)r.destroy[b](g);if(g.elm=t.elm,y){for(var k=0;k<r.create.length;++k)r.create[k](ir,g);var E=g.data.hook.insert;if(E.merged)for(var C=1;C<E.fns.length;C++)E.fns[C]()}else rr(g);g=g.parent}a(v)?w([e],0,0):a(e.tag)&&_(e)}}return T(t,h,u),t.elm}a(e)&&_(e)}}({nodeOps:tr,modules:[yr,Cr,ni,ai,vi,W?{create:ji,activate:ji,remove:function(e,t){!0!==e.data.show?Ri(e,t):t()}}:{}].concat(pr)});Q&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Ki(e,"input")}));var Hi={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?ct(n,"postpatch",(function(){Hi.componentUpdated(e,t,n)})):Ui(e,t,n.context),e._vOptions=[].map.call(e.options,qi)):("textarea"===n.tag||Zn(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Wi),e.addEventListener("compositionend",Gi),e.addEventListener("change",Gi),Q&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Ui(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,qi);if(i.some((function(e,t){return!D(e,r[t])})))(e.multiple?t.value.some((function(e){return Vi(e,i)})):t.value!==t.oldValue&&Vi(t.value,i))&&Ki(e,"change")}}};function Ui(e,t,n){zi(e,t,n),(X||Z)&&setTimeout((function(){zi(e,t,n)}),0)}function zi(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var a,o,s=0,l=e.options.length;s<l;s++)if(o=e.options[s],i)a=N(r,qi(o))>-1,o.selected!==a&&(o.selected=a);else if(D(qi(o),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Vi(e,t){return t.every((function(t){return!D(t,e)}))}function qi(e){return"_value"in e?e._value:e.value}function Wi(e){e.target.composing=!0}function Gi(e){e.target.composing&&(e.target.composing=!1,Ki(e.target,"input"))}function Ki(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Ji(e){return!e.componentInstance||e.data&&e.data.transition?e:Ji(e.componentInstance._vnode)}var Xi={model:Hi,show:{bind:function(e,t,n){var r=t.value,i=(n=Ji(n)).data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Ni(n,(function(){e.style.display=a}))):e.style.display=r?a:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Ji(n)).data&&n.data.transition?(n.data.show=!0,r?Ni(n,(function(){e.style.display=e.__vOriginalDisplay})):Ri(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Qi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Zi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Zi(qt(t.children)):e}function ea(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var a in i)t[S(a)]=i[a];return t}function ta(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var na=function(e){return e.tag||Vt(e)},ra=function(e){return"show"===e.name},ia={name:"transition",props:Qi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(na)).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var a=Zi(i);if(!a)return i;if(this._leaving)return ta(e,i);var o="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?o+"comment":o+a.tag:s(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var l=(a.data||(a.data={})).transition=ea(this),c=this._vnode,u=Zi(c);if(a.data.directives&&a.data.directives.some(ra)&&(a.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,u)&&!Vt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=L({},l);if("out-in"===r)return this._leaving=!0,ct(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ta(e,i);if("in-out"===r){if(Vt(a))return c;var h,f=function(){h()};ct(l,"afterEnter",f),ct(l,"enterCancelled",f),ct(d,"delayLeave",(function(e){h=e}))}}return i}}},aa=L({tag:String,moveClass:String},Qi);function oa(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function sa(e){e.data.newPos=e.elm.getBoundingClientRect()}function la(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+r+"px,"+i+"px)",a.transitionDuration="0s"}}delete aa.mode;var ca={Transition:ia,TransitionGroup:{props:aa,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Qt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],o=ea(this),s=0;s<i.length;s++){var l=i[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))a.push(l),n[l.key]=l,(l.data||(l.data={})).transition=o;else;}if(r){for(var c=[],u=[],d=0;d<r.length;d++){var h=r[d];h.data.transition=o,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?c.push(h):u.push(h)}this.kept=e(t,null,c),this.removed=u}return e(t,null,a)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(oa),e.forEach(sa),e.forEach(la),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;$i(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Si,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Si,e),n._moveCb=null,Li(n,t))})}})))},methods:{hasMove:function(e,t){if(!ki)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){bi(n,e)})),yi(n,t),n.style.display="none",this.$el.appendChild(n);var r=Ii(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};Tn.config.mustUseProp=Dn,Tn.config.isReservedTag=Jn,Tn.config.isReservedAttr=In,Tn.config.getTagNamespace=Xn,Tn.config.isUnknownElement=function(e){if(!W)return!0;if(Jn(e))return!1;if(e=e.toLowerCase(),null!=Qn[e])return Qn[e];var t=document.createElement(e);return e.indexOf("-")>-1?Qn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Qn[e]=/HTMLUnknownElement/.test(t.toString())},L(Tn.options.directives,Xi),L(Tn.options.components,ca),Tn.prototype.__patch__=W?Fi:O,Tn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ye),tn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new pn(e,r,O,{before:function(){e._isMounted&&!e._isDestroyed&&tn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,tn(e,"mounted")),e}(this,e=e&&W?er(e):void 0,t)},W&&setTimeout((function(){j.devtools&&oe&&oe.emit("init",Tn)}),0);var ua=/\{\{((?:.|\r?\n)+?)\}\}/g,da=/[-.*+?^${}()|[\]\/\\]/g,ha=k((function(e){var t=e[0].replace(da,"\\$&"),n=e[1].replace(da,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var fa={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Yr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Br(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var pa,ma={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Yr(e,"style");n&&(e.staticStyle=JSON.stringify(oi(n)));var r=Br(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},va=function(e){return(pa=pa||document.createElement("div")).innerHTML=e,pa.textContent},ga=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),ya=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ba=v("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),_a=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,wa=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ka="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+F.source+"]*",Ea="((?:"+ka+"\\:)?"+ka+")",Sa=new RegExp("^<"+Ea),Ta=/^\s*(\/?)>/,Ca=new RegExp("^<\\/"+Ea+"[^>]*>"),Ma=/^<!DOCTYPE [^>]+>/i,xa=/^<!\--/,$a=/^<!\[/,La=v("script,style,textarea",!0),Pa={},Oa={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},Ia=/&(?:lt|gt|quot|amp|#39);/g,Aa=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Da=v("pre,textarea",!0),Na=function(e,t){return e&&Da(e)&&"\n"===t[0]};function Ra(e,t){var n=t?Aa:Ia;return e.replace(n,(function(e){return Oa[e]}))}var Ba,Ya,ja,Fa,Ha,Ua,za,Va,qa=/^@|^v-on:/,Wa=/^v-|^@|^:|^#/,Ga=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ka=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ja=/^\(|\)$/g,Xa=/^\[.*\]$/,Qa=/:(.*)$/,Za=/^:|^\.|^v-bind:/,eo=/\.[^.\]]+(?=[^\]]*$)/g,to=/^v-slot(:|$)|^#/,no=/[\r\n]/,ro=/\s+/g,io=k(va);function ao(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:fo(t),rawAttrsMap:{},parent:n,children:[]}}function oo(e,t){Ba=t.warn||Lr,Ua=t.isPreTag||I,za=t.mustUseProp||I,Va=t.getTagNamespace||I;var n=t.isReservedTag||I;(function(e){return!!e.component||!n(e.tag)}),ja=Pr(t.modules,"transformNode"),Fa=Pr(t.modules,"preTransformNode"),Ha=Pr(t.modules,"postTransformNode"),Ya=t.delimiters;var r,i,a=[],o=!1!==t.preserveWhitespace,s=t.whitespace,l=!1,c=!1;function u(e){if(d(e),l||e.processed||(e=so(e,t)),a.length||e===r||r.if&&(e.elseif||e.else)&&co(r,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)o=e,(s=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(i.children))&&s.if&&co(s,{exp:o.elseif,block:o});else{if(e.slotScope){var n=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=e}i.children.push(e),e.parent=i}var o,s;e.children=e.children.filter((function(e){return!e.slotScope})),d(e),e.pre&&(l=!1),Ua(e.tag)&&(c=!1);for(var u=0;u<Ha.length;u++)Ha[u](e,t)}function d(e){if(!c)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(e,t){for(var n,r,i=[],a=t.expectHTML,o=t.isUnaryTag||I,s=t.canBeLeftOpenTag||I,l=0;e;){if(n=e,r&&La(r)){var c=0,u=r.toLowerCase(),d=Pa[u]||(Pa[u]=new RegExp("([\\s\\S]*?)(</"+u+"[^>]*>)","i")),h=e.replace(d,(function(e,n,r){return c=r.length,La(u)||"noscript"===u||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Na(u,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));l+=e.length-h.length,e=h,C(u,l-c,l)}else{var f=e.indexOf("<");if(0===f){if(xa.test(e)){var p=e.indexOf("--\x3e");if(p>=0){t.shouldKeepComment&&t.comment(e.substring(4,p),l,l+p+3),E(p+3);continue}}if($a.test(e)){var m=e.indexOf("]>");if(m>=0){E(m+2);continue}}var v=e.match(Ma);if(v){E(v[0].length);continue}var g=e.match(Ca);if(g){var y=l;E(g[0].length),C(g[1],y,l);continue}var b=S();if(b){T(b),Na(b.tagName,e)&&E(1);continue}}var _=void 0,w=void 0,k=void 0;if(f>=0){for(w=e.slice(f);!(Ca.test(w)||Sa.test(w)||xa.test(w)||$a.test(w)||(k=w.indexOf("<",1))<0);)f+=k,w=e.slice(f);_=e.substring(0,f)}f<0&&(_=e),_&&E(_.length),t.chars&&_&&t.chars(_,l-_.length,l)}if(e===n){t.chars&&t.chars(e);break}}function E(t){l+=t,e=e.substring(t)}function S(){var t=e.match(Sa);if(t){var n,r,i={tagName:t[1],attrs:[],start:l};for(E(t[0].length);!(n=e.match(Ta))&&(r=e.match(wa)||e.match(_a));)r.start=l,E(r[0].length),r.end=l,i.attrs.push(r);if(n)return i.unarySlash=n[1],E(n[0].length),i.end=l,i}}function T(e){var n=e.tagName,l=e.unarySlash;a&&("p"===r&&ba(n)&&C(r),s(n)&&r===n&&C(n));for(var c=o(n)||!!l,u=e.attrs.length,d=new Array(u),h=0;h<u;h++){var f=e.attrs[h],p=f[3]||f[4]||f[5]||"",m="a"===n&&"href"===f[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;d[h]={name:f[1],value:Ra(p,m)}}c||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:e.start,end:e.end}),r=n),t.start&&t.start(n,d,c,e.start,e.end)}function C(e,n,a){var o,s;if(null==n&&(n=l),null==a&&(a=l),e)for(s=e.toLowerCase(),o=i.length-1;o>=0&&i[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var c=i.length-1;c>=o;c--)t.end&&t.end(i[c].tag,n,a);i.length=o,r=o&&i[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,a):"p"===s&&(t.start&&t.start(e,[],!1,n,a),t.end&&t.end(e,n,a))}C()}(e,{warn:Ba,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,o,s,d){var h=i&&i.ns||Va(e);X&&"svg"===h&&(n=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];po.test(r.name)||(r.name=r.name.replace(mo,""),t.push(r))}return t}(n));var f,p=ao(e,n,i);h&&(p.ns=h),"style"!==(f=p).tag&&("script"!==f.tag||f.attrsMap.type&&"text/javascript"!==f.attrsMap.type)||ae()||(p.forbidden=!0);for(var m=0;m<Fa.length;m++)p=Fa[m](p,t)||p;l||(!function(e){null!=Yr(e,"v-pre")&&(e.pre=!0)}(p),p.pre&&(l=!0)),Ua(p.tag)&&(c=!0),l?function(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),i=0;i<n;i++)r[i]={name:t[i].name,value:JSON.stringify(t[i].value)},null!=t[i].start&&(r[i].start=t[i].start,r[i].end=t[i].end);else e.pre||(e.plain=!0)}(p):p.processed||(lo(p),function(e){var t=Yr(e,"v-if");if(t)e.if=t,co(e,{exp:t,block:e});else{null!=Yr(e,"v-else")&&(e.else=!0);var n=Yr(e,"v-else-if");n&&(e.elseif=n)}}(p),function(e){null!=Yr(e,"v-once")&&(e.once=!0)}(p)),r||(r=p),o?u(p):(i=p,a.push(p))},end:function(e,t,n){var r=a[a.length-1];a.length-=1,i=a[a.length-1],u(r)},chars:function(e,t,n){if(i&&(!X||"textarea"!==i.tag||i.attrsMap.placeholder!==e)){var r,a,u,d=i.children;if(e=c||e.trim()?"script"===(r=i).tag||"style"===r.tag?e:io(e):d.length?s?"condense"===s&&no.test(e)?"":" ":o?" ":"":"")c||"condense"!==s||(e=e.replace(ro," ")),!l&&" "!==e&&(a=function(e,t){var n=t?ha(t):ua;if(n.test(e)){for(var r,i,a,o=[],s=[],l=n.lastIndex=0;r=n.exec(e);){(i=r.index)>l&&(s.push(a=e.slice(l,i)),o.push(JSON.stringify(a)));var c=xr(r[1].trim());o.push("_s("+c+")"),s.push({"@binding":c}),l=i+r[0].length}return l<e.length&&(s.push(a=e.slice(l)),o.push(JSON.stringify(a))),{expression:o.join("+"),tokens:s}}}(e,Ya))?u={type:2,expression:a.expression,tokens:a.tokens,text:e}:" "===e&&d.length&&" "===d[d.length-1].text||(u={type:3,text:e}),u&&d.push(u)}},comment:function(e,t,n){if(i){var r={type:3,text:e,isComment:!0};0,i.children.push(r)}}}),r}function so(e,t){var n;!function(e){var t=Br(e,"key");if(t){e.key=t}}(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=Br(e,"ref");t&&(e.ref=t,e.refInFor=function(e){var t=e;for(;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=Yr(e,"scope"),e.slotScope=t||Yr(e,"slot-scope")):(t=Yr(e,"slot-scope"))&&(e.slotScope=t);var n=Br(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Ir(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot")));if("template"===e.tag){var r=jr(e,to);if(r){0;var i=uo(r),a=i.name,o=i.dynamic;e.slotTarget=a,e.slotTargetDynamic=o,e.slotScope=r.value||"_empty_"}}else{var s=jr(e,to);if(s){0;var l=e.scopedSlots||(e.scopedSlots={}),c=uo(s),u=c.name,d=c.dynamic,h=l[u]=ao("template",[],e);h.slotTarget=u,h.slotTargetDynamic=d,h.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=h,!0})),h.slotScope=s.value||"_empty_",e.children=[],e.plain=!1}}}(e),"slot"===(n=e).tag&&(n.slotName=Br(n,"name")),function(e){var t;(t=Br(e,"is"))&&(e.component=t);null!=Yr(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var r=0;r<ja.length;r++)e=ja[r](e,t)||e;return function(e){var t,n,r,i,a,o,s,l,c=e.attrsList;for(t=0,n=c.length;t<n;t++){if(r=i=c[t].name,a=c[t].value,Wa.test(r))if(e.hasBindings=!0,(o=ho(r.replace(Wa,"")))&&(r=r.replace(eo,"")),Za.test(r))r=r.replace(Za,""),a=xr(a),(l=Xa.test(r))&&(r=r.slice(1,-1)),o&&(o.prop&&!l&&"innerHtml"===(r=S(r))&&(r="innerHTML"),o.camel&&!l&&(r=S(r)),o.sync&&(s=Ur(a,"$event"),l?Rr(e,'"update:"+('+r+")",s,null,!1,0,c[t],!0):(Rr(e,"update:"+S(r),s,null,!1,0,c[t]),M(r)!==S(r)&&Rr(e,"update:"+M(r),s,null,!1,0,c[t])))),o&&o.prop||!e.component&&za(e.tag,e.attrsMap.type,r)?Or(e,r,a,c[t],l):Ir(e,r,a,c[t],l);else if(qa.test(r))r=r.replace(qa,""),(l=Xa.test(r))&&(r=r.slice(1,-1)),Rr(e,r,a,o,!1,0,c[t],l);else{var u=(r=r.replace(Wa,"")).match(Qa),d=u&&u[1];l=!1,d&&(r=r.slice(0,-(d.length+1)),Xa.test(d)&&(d=d.slice(1,-1),l=!0)),Dr(e,r,i,a,d,l,o,c[t])}else Ir(e,r,JSON.stringify(a),c[t]),!e.component&&"muted"===r&&za(e.tag,e.attrsMap.type,r)&&Or(e,r,"true",c[t])}}(e),e}function lo(e){var t;if(t=Yr(e,"v-for")){var n=function(e){var t=e.match(Ga);if(!t)return;var n={};n.for=t[2].trim();var r=t[1].trim().replace(Ja,""),i=r.match(Ka);i?(n.alias=r.replace(Ka,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r;return n}(t);n&&L(e,n)}}function co(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function uo(e){var t=e.name.replace(to,"");return t||"#"!==e.name[0]&&(t="default"),Xa.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function ho(e){var t=e.match(eo);if(t){var n={};return t.forEach((function(e){n[e.slice(1)]=!0})),n}}function fo(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}var po=/^xmlns:NS\d+/,mo=/^NS\d+:/;function vo(e){return ao(e.tag,e.attrsList.slice(),e.parent)}var go=[fa,ma,{preTransformNode:function(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Br(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=Yr(e,"v-if",!0),a=i?"&&("+i+")":"",o=null!=Yr(e,"v-else",!0),s=Yr(e,"v-else-if",!0),l=vo(e);lo(l),Ar(l,"type","checkbox"),so(l,t),l.processed=!0,l.if="("+n+")==='checkbox'"+a,co(l,{exp:l.if,block:l});var c=vo(e);Yr(c,"v-for",!0),Ar(c,"type","radio"),so(c,t),co(l,{exp:"("+n+")==='radio'"+a,block:c});var u=vo(e);return Yr(u,"v-for",!0),Ar(u,":type",n),so(u,t),co(l,{exp:i,block:u}),o?l.else=!0:s&&(l.elseif=s),l}}}}];var yo,bo,_o={expectHTML:!0,modules:go,directives:{model:function(e,t,n){n;var r=t.value,i=t.modifiers,a=e.tag,o=e.attrsMap.type;if(e.component)return Hr(e,r,i),!1;if("select"===a)!function(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";r=r+" "+Ur(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Rr(e,"change",r,null,!0)}(e,r,i);else if("input"===a&&"checkbox"===o)!function(e,t,n){var r=n&&n.number,i=Br(e,"value")||"null",a=Br(e,"true-value")||"true",o=Br(e,"false-value")||"false";Or(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===a?":("+t+")":":_q("+t+","+a+")")),Rr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+o+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Ur(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Ur(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Ur(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===a&&"radio"===o)!function(e,t,n){var r=n&&n.number,i=Br(e,"value")||"null";Or(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Rr(e,"change",Ur(t,i),null,!0)}(e,r,i);else if("input"===a||"textarea"===a)!function(e,t,n){var r=e.attrsMap.type;0;var i=n||{},a=i.lazy,o=i.number,s=i.trim,l=!a&&"range"!==r,c=a?"change":"range"===r?"__r":"input",u="$event.target.value";s&&(u="$event.target.value.trim()");o&&(u="_n("+u+")");var d=Ur(t,u);l&&(d="if($event.target.composing)return;"+d);Or(e,"value","("+t+")"),Rr(e,c,d,null,!0),(s||o)&&Rr(e,"blur","$forceUpdate()")}(e,r,i);else{if(!j.isReservedTag(a))return Hr(e,r,i),!1}return!0},text:function(e,t){t.value&&Or(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Or(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:ga,mustUseProp:Dn,canBeLeftOpenTag:ya,isReservedTag:Jn,getTagNamespace:Xn,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(go)},wo=k((function(e){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function ko(e,t){e&&(yo=wo(t.staticKeys||""),bo=t.isReservedTag||I,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||g(e.tag)||!bo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(yo)))}(t),1===t.type){if(!bo(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n<r;n++){var i=t.children[n];e(i),i.static||(t.static=!1)}if(t.ifConditions)for(var a=1,o=t.ifConditions.length;a<o;a++){var s=t.ifConditions[a].block;e(s),s.static||(t.static=!1)}}}(e),function e(t,n){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=n),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var r=0,i=t.children.length;r<i;r++)e(t.children[r],n||!!t.for);if(t.ifConditions)for(var a=1,o=t.ifConditions.length;a<o;a++)e(t.ifConditions[a].block,n)}}(e,!1))}var Eo=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,So=/\([^)]*?\);*$/,To=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Co={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Mo={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},xo=function(e){return"if("+e+")return null;"},$o={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:xo("$event.target !== $event.currentTarget"),ctrl:xo("!$event.ctrlKey"),shift:xo("!$event.shiftKey"),alt:xo("!$event.altKey"),meta:xo("!$event.metaKey"),left:xo("'button' in $event && $event.button !== 0"),middle:xo("'button' in $event && $event.button !== 1"),right:xo("'button' in $event && $event.button !== 2")};function Lo(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var a in e){var o=Po(e[a]);e[a]&&e[a].dynamic?i+=a+","+o+",":r+='"'+a+'":'+o+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Po(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Po(e)})).join(",")+"]";var t=To.test(e.value),n=Eo.test(e.value),r=To.test(e.value.replace(So,""));if(e.modifiers){var i="",a="",o=[];for(var s in e.modifiers)if($o[s])a+=$o[s],Co[s]&&o.push(s);else if("exact"===s){var l=e.modifiers;a+=xo(["ctrl","shift","alt","meta"].filter((function(e){return!l[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else o.push(s);return o.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Oo).join("&&")+")return null;"}(o)),a&&(i+=a),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Oo(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Co[e],r=Mo[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Io={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:O},Ao=function(e){this.options=e,this.warn=e.warn||Lr,this.transforms=Pr(e.modules,"transformCode"),this.dataGenFns=Pr(e.modules,"genData"),this.directives=L(L({},Io),e.directives);var t=e.isReservedTag||I;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Do(e,t){var n=new Ao(t);return{render:"with(this){return "+(e?No(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function No(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ro(e,t);if(e.once&&!e.onceProcessed)return Bo(e,t);if(e.for&&!e.forProcessed)return jo(e,t);if(e.if&&!e.ifProcessed)return Yo(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=zo(e,t),i="_t("+n+(r?","+r:""),a=e.attrs||e.dynamicAttrs?Wo((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:S(e.name),value:e.value,dynamic:e.dynamic}}))):null,o=e.attrsMap["v-bind"];!a&&!o||r||(i+=",null");a&&(i+=","+a);o&&(i+=(a?"":",null")+","+o);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:zo(t,n,!0);return"_c("+e+","+Fo(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Fo(e,t));var i=e.inlineTemplate?null:zo(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var a=0;a<t.transforms.length;a++)n=t.transforms[a](e,n);return n}return zo(e,t)||"void 0"}function Ro(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+No(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function Bo(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Yo(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+No(e,t)+","+t.onceId+++","+n+")":No(e,t)}return Ro(e,t)}function Yo(e,t,n,r){return e.ifProcessed=!0,function e(t,n,r,i){if(!t.length)return i||"_e()";var a=t.shift();return a.exp?"("+a.exp+")?"+o(a.block)+":"+e(t,n,r,i):""+o(a.block);function o(e){return r?r(e,n):e.once?Bo(e,n):No(e,n)}}(e.ifConditions.slice(),t,n,r)}function jo(e,t,n,r){var i=e.for,a=e.alias,o=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+a+o+s+"){return "+(n||No)(e,t)+"})"}function Fo(e,t){var n="{",r=function(e,t){var n=e.directives;if(!n)return;var r,i,a,o,s="directives:[",l=!1;for(r=0,i=n.length;r<i;r++){a=n[r],o=!0;var c=t.directives[a.name];c&&(o=!!c(e,a,t.warn)),o&&(l=!0,s+='{name:"'+a.name+'",rawName:"'+a.rawName+'"'+(a.value?",value:("+a.value+"),expression:"+JSON.stringify(a.value):"")+(a.arg?",arg:"+(a.isDynamicArg?a.arg:'"'+a.arg+'"'):"")+(a.modifiers?",modifiers:"+JSON.stringify(a.modifiers):"")+"},")}if(l)return s.slice(0,-1)+"]"}(e,t);r&&(n+=r+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var i=0;i<t.dataGenFns.length;i++)n+=t.dataGenFns[i](e);if(e.attrs&&(n+="attrs:"+Wo(e.attrs)+","),e.props&&(n+="domProps:"+Wo(e.props)+","),e.events&&(n+=Lo(e.events,!1)+","),e.nativeEvents&&(n+=Lo(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=function(e,t,n){var r=e.for||Object.keys(t).some((function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||Ho(n)})),i=!!e.if;if(!r)for(var a=e.parent;a;){if(a.slotScope&&"_empty_"!==a.slotScope||a.for){r=!0;break}a.if&&(i=!0),a=a.parent}var o=Object.keys(t).map((function(e){return Uo(t[e],n)})).join(",");return"scopedSlots:_u(["+o+"]"+(r?",null,true":"")+(!r&&i?",null,false,"+function(e){var t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(o):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var a=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=Do(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);a&&(n+=a+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Wo(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ho(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ho))}function Uo(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Yo(e,t,Uo,"null");if(e.for&&!e.forProcessed)return jo(e,t,Uo);var r="_empty_"===e.slotScope?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(zo(e,t)||"undefined")+":undefined":zo(e,t)||"undefined":No(e,t))+"}",a=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+a+"}"}function zo(e,t,n,r,i){var a=e.children;if(a.length){var o=a[0];if(1===a.length&&o.for&&"template"!==o.tag&&"slot"!==o.tag){var s=n?t.maybeComponent(o)?",1":",0":"";return""+(r||No)(o,t)+s}var l=n?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(Vo(i)||i.ifConditions&&i.ifConditions.some((function(e){return Vo(e.block)}))){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some((function(e){return t(e.block)})))&&(n=1)}}return n}(a,t.maybeComponent):0,c=i||qo;return"["+a.map((function(e){return c(e,t)})).join(",")+"]"+(l?","+l:"")}}function Vo(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function qo(e,t){return 1===e.type?No(e,t):3===e.type&&e.isComment?function(e){return"_e("+JSON.stringify(e.text)+")"}(e):function(e){return"_v("+(2===e.type?e.expression:Go(JSON.stringify(e.text)))+")"}(e)}function Wo(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],a=Go(i.value);i.dynamic?n+=i.name+","+a+",":t+='"'+i.name+'":'+a+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function Go(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function Ko(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),O}}function Jo(e){var t=Object.create(null);return function(n,r,i){(r=L({},r)).warn;delete r.warn;var a=r.delimiters?String(r.delimiters)+n:n;if(t[a])return t[a];var o=e(n,r);var s={},l=[];return s.render=Ko(o.render,l),s.staticRenderFns=o.staticRenderFns.map((function(e){return Ko(e,l)})),t[a]=s}}var Xo,Qo,Zo=(Xo=function(e,t){var n=oo(e.trim(),t);!1!==t.optimize&&ko(n,t);var r=Do(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){var r=Object.create(e),i=[],a=[];if(n)for(var o in n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=L(Object.create(e.directives||null),n.directives)),n)"modules"!==o&&"directives"!==o&&(r[o]=n[o]);r.warn=function(e,t,n){(n?a:i).push(e)};var s=Xo(t.trim(),r);return s.errors=i,s.tips=a,s}return{compile:t,compileToFunctions:Jo(t)}})(_o),es=(Zo.compile,Zo.compileToFunctions);function ts(e){return(Qo=Qo||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Qo.innerHTML.indexOf(" ")>0}var ns=!!W&&ts(!1),rs=!!W&&ts(!0),is=k((function(e){var t=er(e);return t&&t.innerHTML})),as=Tn.prototype.$mount;Tn.prototype.$mount=function(e,t){if((e=e&&er(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=is(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var i=es(r,{outputSourceRange:!1,shouldDecodeNewlines:ns,shouldDecodeNewlinesForHref:rs,delimiters:n.delimiters,comments:n.comments},this),a=i.render,o=i.staticRenderFns;n.render=a,n.staticRenderFns=o}}return as.call(this,e,t)},Tn.compile=es,t.default=Tn}.call(this,n(22),n(32).setImmediate)},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";(function(e){var r=n(0),i=n(15),a=function(){var t=r.b.navigator.platform,n=r.b.navigator.userAgent,a={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!r.b.cordova&&!r.b.phonegap),phonegap:!(!r.b.cordova&&!r.b.phonegap),electron:!1,nwjs:!1},o=r.b.screen.width,s=r.b.screen.height,l=n.match(/(Android);?[\s\/]+([\d.]+)?/),c=n.match(/(iPad).*OS\s([\d_]+)/),u=n.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=n.indexOf("MSIE ")>=0||n.indexOf("Trident/")>=0,f=n.indexOf("Edge/")>=0,p=n.indexOf("Gecko/")>=0&&n.indexOf("Firefox/")>=0,m="Win32"===t,v=n.toLowerCase().indexOf("electron")>=0,g="undefined"!=typeof nw&&void 0!==e&&void 0!==e.versions&&void 0!==e.versions.nw,y="MacIntel"===t;!c&&y&&i.a.touch&&(1024===o&&1366===s||834===o&&1194===s||834===o&&1112===s||768===o&&1024===s)&&(c=n.match(/(Version)\/([\d.]+)/),y=!1),a.ie=h,a.edge=f,a.firefox=p,l&&!m&&(a.os="android",a.osVersion=l[2],a.android=!0,a.androidChrome=n.toLowerCase().indexOf("chrome")>=0),(c||d||u)&&(a.os="ios",a.ios=!0),d&&!u&&(a.osVersion=d[2].replace(/_/g,"."),a.iphone=!0),c&&(a.osVersion=c[2].replace(/_/g,"."),a.ipad=!0),u&&(a.osVersion=u[3]?u[3].replace(/_/g,"."):null,a.ipod=!0),a.ios&&a.osVersion&&n.indexOf("Version/")>=0&&"10"===a.osVersion.split(".")[0]&&(a.osVersion=n.toLowerCase().split("version/")[1].split(" ")[0]),a.webView=!(!(d||c||u)||!n.match(/.*AppleWebKit(?!.*Safari)/i)&&!r.b.navigator.standalone)||r.b.matchMedia&&r.b.matchMedia("(display-mode: standalone)").matches,a.webview=a.webView,a.standalone=a.webView,a.desktop=!(a.ios||a.android)||v||g,a.desktop&&(a.electron=v,a.nwjs=g,a.macos=y,a.windows=m,a.macos&&(a.os="macos"),a.windows&&(a.os="windows")),a.pixelRatio=r.b.devicePixelRatio||1;return a.prefersColorScheme=function(){var e;return r.b.matchMedia&&r.b.matchMedia("(prefers-color-scheme: light)").matches&&(e="light"),r.b.matchMedia&&r.b.matchMedia("(prefers-color-scheme: dark)").matches&&(e="dark"),e},a}();t.a=a}).call(this,n(25))},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){var r=n(107);e.exports=function(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}}),t&&r(e,t)}},function(e,t){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,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){"use strict";var r=n(0),i={touch:!!(r.b.navigator.maxTouchPoints>0||"ontouchstart"in r.b||r.b.DocumentTouch&&r.a instanceof r.b.DocumentTouch),pointerEvents:!!r.b.PointerEvent,observer:"MutationObserver"in r.b||"WebkitMutationObserver"in r.b,passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});r.b.addEventListener("testPassiveListener",null,t)}catch(e){}return e}(),gestures:"ongesturestart"in r.b,intersectionObserver:"IntersectionObserver"in r.b};t.a=i},function(e,t,n){var r=n(291),i=n(292),a=n(109),o=n(293);e.exports=function(e){return r(e)||i(e)||a(e)||o()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,a=n(5),o=n(28),s=n(26),l=n(37),c=((r={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",r["bad-app-name"]="Illegal App name: '{$appName}",r["duplicate-app"]="Firebase App named '{$appName}' already exists",r["app-deleted"]="Firebase App named '{$appName}' already deleted",r["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",r["invalid-log-argument"]="First argument to `onLog` must be null or a function.",r),u=new o.ErrorFactory("app","Firebase",c),d=((i={})["@firebase/app"]="fire-core",i["@firebase/analytics"]="fire-analytics",i["@firebase/auth"]="fire-auth",i["@firebase/database"]="fire-rtdb",i["@firebase/functions"]="fire-fn",i["@firebase/installations"]="fire-iid",i["@firebase/messaging"]="fire-fcm",i["@firebase/performance"]="fire-perf",i["@firebase/remote-config"]="fire-rc",i["@firebase/storage"]="fire-gcs",i["@firebase/firestore"]="fire-fst",i["fire-js"]="fire-js",i["firebase-wrapper"]="fire-js-all",i),h=new l.Logger("@firebase/app"),f=function(){function e(e,t,n){var r,i,l=this;this.firebase_=n,this.isDeleted_=!1,this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=o.deepCopy(e),this.container=new s.ComponentContainer(t.name),this._addComponent(new s.Component("app",(function(){return l}),"PUBLIC"));try{for(var c=a.__values(this.firebase_.INTERNAL.components.values()),u=c.next();!u.done;u=c.next()){var d=u.value;this._addComponent(d)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!0,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise((function(t){e.checkDestroyed_(),t()})).then((function(){return e.firebase_.INTERNAL.removeApp(e.name_),Promise.all(e.container.getProviders().map((function(e){return e.delete()})))})).then((function(){e.isDeleted_=!0}))},e.prototype._getService=function(e,t){return void 0===t&&(t="[DEFAULT]"),this.checkDestroyed_(),this.container.getProvider(e).getImmediate({identifier:t})},e.prototype._removeServiceInstance=function(e,t){void 0===t&&(t="[DEFAULT]"),this.container.getProvider(e).clearInstance(t)},e.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(t){h.debug("Component "+e.name+" failed to register with FirebaseApp "+this.name,t)}},e.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},e.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw u.create("app-deleted",{appName:this.name_})},e}();f.prototype.name&&f.prototype.options||f.prototype.delete||console.log("dc");var p=function e(){var t=function(e){var t={},n=new Map,r={__esModule:!0,initializeApp:function(n,i){void 0===i&&(i={});if("object"!=typeof i||null===i){i={name:i}}var a=i;void 0===a.name&&(a.name="[DEFAULT]");var s=a.name;if("string"!=typeof s||!s)throw u.create("bad-app-name",{appName:String(s)});if(o.contains(t,s))throw u.create("duplicate-app",{appName:s});var l=new e(n,a,r);return t[s]=l,l},app:i,registerVersion:function(e,t,n){var r,i=null!==(r=d[e])&&void 0!==r?r:e;n&&(i+="-"+n);var a=i.match(/\s|\//),o=t.match(/\s|\//);if(a||o){var l=['Unable to register library "'+i+'" with version "'+t+'":'];return a&&l.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),a&&o&&l.push("and"),o&&l.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),void h.warn(l.join(" "))}c(new s.Component(i+"-version",(function(){return{library:i,version:t}}),"VERSION"))},setLogLevel:l.setLogLevel,onLog:function(e,t){if(null!==e&&"function"!=typeof e)throw u.create("invalid-log-argument",{appName:name});l.setUserLogHandler(e,t)},apps:null,SDK_VERSION:"7.14.1",INTERNAL:{registerComponent:c,removeApp:function(e){delete t[e]},components:n,useAsService:function(e,t){if("serverAuth"===t)return null;return t}}};function i(e){if(e=e||"[DEFAULT]",!o.contains(t,e))throw u.create("no-app",{appName:e});return t[e]}function c(s){var l,c,d=s.name;if(n.has(d))return h.debug("There were multiple attempts to register component "+d+"."),"PUBLIC"===s.type?r[d]:null;if(n.set(d,s),"PUBLIC"===s.type){var f=function(e){if(void 0===e&&(e=i()),"function"!=typeof e[d])throw u.create("invalid-app-argument",{appName:d});return e[d]()};void 0!==s.serviceProps&&o.deepExtend(f,s.serviceProps),r[d]=f,e.prototype[d]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this._getService.bind(this,d);return n.apply(this,s.multipleInstances?e:[])}}try{for(var p=a.__values(Object.keys(t)),m=p.next();!m.done;m=p.next()){var v=m.value;t[v]._addComponent(s)}}catch(e){l={error:e}}finally{try{m&&!m.done&&(c=p.return)&&c.call(p)}finally{if(l)throw l.error}}return"PUBLIC"===s.type?r[d]:null}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(t).map((function(e){return t[e]}))}}),i.App=e,r}(f);return t.INTERNAL=a.__assign(a.__assign({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){o.deepExtend(t,e)},createSubscribe:o.createSubscribe,ErrorFactory:o.ErrorFactory,deepExtend:o.deepExtend}),t}(),m=function(){function e(e){this.container=e}return e.prototype.getPlatformInfoString=function(){return this.container.getProviders().map((function(e){if(function(e){var t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){var t=e.getImmediate();return t.library+"/"+t.version}return null})).filter((function(e){return e})).join(" ")},e}();if(o.isBrowser()&&void 0!==self.firebase){h.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");var v=self.firebase.SDK_VERSION;v&&v.indexOf("LITE")>=0&&h.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var g=p.initializeApp;p.initializeApp=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.isNode()&&h.warn('\n Warning: This is a browser-targeted Firebase bundle but it appears it is being\n run in a Node environment. If running in a Node environment, make sure you\n are using the bundle specified by the "main" field in package.json.\n \n If you are using Webpack, you can specify "main" as the first item in\n "resolve.mainFields":\n https://webpack.js.org/configuration/resolve/#resolvemainfields\n \n If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n as the first item in "mainFields", e.g. [\'main\', \'module\'].\n https://github.com/rollup/rollup-plugin-node-resolve\n '),g.apply(void 0,e)};var y=p;!function(e,t){e.INTERNAL.registerComponent(new s.Component("platform-logger",(function(e){return new m(e)}),"PRIVATE")),e.registerVersion("@firebase/app","0.6.2",t),e.registerVersion("fire-js","")}(y),t.default=y,t.firebase=y},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){var r=n(24),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t){e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{o=n(365).Buffer}catch(e){}function s(e,t,n){for(var r=0,i=Math.min(e.length,n),a=t;a<i;a++){var o=e.charCodeAt(a)-48;r<<=4,r|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function l(e,t,n,r){for(var i=0,a=Math.min(e.length,n),o=t;o<a;o++){var s=e.charCodeAt(o)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if("be"===n)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,a=0;for(n=e.length-6,r=0;n>=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<<a&67108863,this.words[r+1]|=i>>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<<a&67108863,this.words[r+1]|=i>>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,c=0,u=n;u<s;u+=r)c=l(e,u,u+r,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var d=1;for(c=l(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,l=o/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var u=l>>>26,d=67108863&l,h=Math.min(c,t.length-1),f=Math.max(0,c-e.length+1);f<=h;f++){var p=c-f|0;u+=(o=(i=0|e.words[p])*(a=0|t.words[f])+d)/67108864|0,d=67108863&o}n.words[c]=0|d,l=0|u}return 0!==l?n.words[c]=0|l:n.length--,n.strip()}a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],l=(16777215&(s<<i|a)).toString(16);n=0!==(a=s>>>24-i&16777215)||o!==this.length-1?c[6-l.length]+l+n:l+n,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(n=a.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var h=u[e],f=d[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(e);n=(p=p.idivn(f)).isZero()?m+n:c[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var o,s,l="le"===t,c=new e(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s<a;s++)c[s]=0}else{for(s=0;s<a-i;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},a.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},a.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},a.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},a.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)t=(0|n.words[a])+(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<n.length;a++)t=(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(t=(0|n.words[o])-(0|r.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<n.length;o++)a=(t=(0|n.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var f=function(e,t,n){var r,i,a,o=e.words,s=t.words,l=n.words,c=0,u=0|o[0],d=8191&u,h=u>>>13,f=0|o[1],p=8191&f,m=f>>>13,v=0|o[2],g=8191&v,y=v>>>13,b=0|o[3],_=8191&b,w=b>>>13,k=0|o[4],E=8191&k,S=k>>>13,T=0|o[5],C=8191&T,M=T>>>13,x=0|o[6],$=8191&x,L=x>>>13,P=0|o[7],O=8191&P,I=P>>>13,A=0|o[8],D=8191&A,N=A>>>13,R=0|o[9],B=8191&R,Y=R>>>13,j=0|s[0],F=8191&j,H=j>>>13,U=0|s[1],z=8191&U,V=U>>>13,q=0|s[2],W=8191&q,G=q>>>13,K=0|s[3],J=8191&K,X=K>>>13,Q=0|s[4],Z=8191&Q,ee=Q>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,he=ue>>>13,fe=0|s[9],pe=8191&fe,me=fe>>>13;n.negative=e.negative^t.negative,n.length=19;var ve=(c+(r=Math.imul(d,F))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(h,F)|0))<<13)|0;c=((a=Math.imul(h,H))+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(p,F),i=(i=Math.imul(p,H))+Math.imul(m,F)|0,a=Math.imul(m,H);var ge=(c+(r=r+Math.imul(d,z)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(h,z)|0))<<13)|0;c=((a=a+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,F),i=(i=Math.imul(g,H))+Math.imul(y,F)|0,a=Math.imul(y,H),r=r+Math.imul(p,z)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,z)|0,a=a+Math.imul(m,V)|0;var ye=(c+(r=r+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(h,W)|0))<<13)|0;c=((a=a+Math.imul(h,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(_,F),i=(i=Math.imul(_,H))+Math.imul(w,F)|0,a=Math.imul(w,H),r=r+Math.imul(g,z)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,z)|0,a=a+Math.imul(y,V)|0,r=r+Math.imul(p,W)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,W)|0,a=a+Math.imul(m,G)|0;var be=(c+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,J)|0))<<13)|0;c=((a=a+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,F),i=(i=Math.imul(E,H))+Math.imul(S,F)|0,a=Math.imul(S,H),r=r+Math.imul(_,z)|0,i=(i=i+Math.imul(_,V)|0)+Math.imul(w,z)|0,a=a+Math.imul(w,V)|0,r=r+Math.imul(g,W)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(y,W)|0,a=a+Math.imul(y,G)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,J)|0,a=a+Math.imul(m,X)|0;var _e=(c+(r=r+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,Z)|0))<<13)|0;c=((a=a+Math.imul(h,ee)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(C,F),i=(i=Math.imul(C,H))+Math.imul(M,F)|0,a=Math.imul(M,H),r=r+Math.imul(E,z)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(S,z)|0,a=a+Math.imul(S,V)|0,r=r+Math.imul(_,W)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(w,W)|0,a=a+Math.imul(w,G)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,J)|0,a=a+Math.imul(y,X)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Z)|0,a=a+Math.imul(m,ee)|0;var we=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((a=a+Math.imul(h,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul($,F),i=(i=Math.imul($,H))+Math.imul(L,F)|0,a=Math.imul(L,H),r=r+Math.imul(C,z)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(M,z)|0,a=a+Math.imul(M,V)|0,r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,G)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,X)|0)+Math.imul(w,J)|0,a=a+Math.imul(w,X)|0,r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,Z)|0,a=a+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,a=a+Math.imul(m,re)|0;var ke=(c+(r=r+Math.imul(d,ae)|0)|0)+((8191&(i=(i=i+Math.imul(d,oe)|0)+Math.imul(h,ae)|0))<<13)|0;c=((a=a+Math.imul(h,oe)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(O,F),i=(i=Math.imul(O,H))+Math.imul(I,F)|0,a=Math.imul(I,H),r=r+Math.imul($,z)|0,i=(i=i+Math.imul($,V)|0)+Math.imul(L,z)|0,a=a+Math.imul(L,V)|0,r=r+Math.imul(C,W)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(M,W)|0,a=a+Math.imul(M,G)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(S,J)|0,a=a+Math.imul(S,X)|0,r=r+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,Z)|0,a=a+Math.imul(w,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(y,ne)|0,a=a+Math.imul(y,re)|0,r=r+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,oe)|0;var Ee=(c+(r=r+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(h,le)|0))<<13)|0;c=((a=a+Math.imul(h,ce)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(D,F),i=(i=Math.imul(D,H))+Math.imul(N,F)|0,a=Math.imul(N,H),r=r+Math.imul(O,z)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(I,z)|0,a=a+Math.imul(I,V)|0,r=r+Math.imul($,W)|0,i=(i=i+Math.imul($,G)|0)+Math.imul(L,W)|0,a=a+Math.imul(L,G)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(M,J)|0,a=a+Math.imul(M,X)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(S,Z)|0,a=a+Math.imul(S,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(w,ne)|0,a=a+Math.imul(w,re)|0,r=r+Math.imul(g,ae)|0,i=(i=i+Math.imul(g,oe)|0)+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,r=r+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,le)|0,a=a+Math.imul(m,ce)|0;var Se=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((a=a+Math.imul(h,he)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,H))+Math.imul(Y,F)|0,a=Math.imul(Y,H),r=r+Math.imul(D,z)|0,i=(i=i+Math.imul(D,V)|0)+Math.imul(N,z)|0,a=a+Math.imul(N,V)|0,r=r+Math.imul(O,W)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(I,W)|0,a=a+Math.imul(I,G)|0,r=r+Math.imul($,J)|0,i=(i=i+Math.imul($,X)|0)+Math.imul(L,J)|0,a=a+Math.imul(L,X)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(M,Z)|0,a=a+Math.imul(M,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(S,ne)|0,a=a+Math.imul(S,re)|0,r=r+Math.imul(_,ae)|0,i=(i=i+Math.imul(_,oe)|0)+Math.imul(w,ae)|0,a=a+Math.imul(w,oe)|0,r=r+Math.imul(g,le)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(y,le)|0,a=a+Math.imul(y,ce)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,de)|0,a=a+Math.imul(m,he)|0;var Te=(c+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(h,pe)|0))<<13)|0;c=((a=a+Math.imul(h,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,z),i=(i=Math.imul(B,V))+Math.imul(Y,z)|0,a=Math.imul(Y,V),r=r+Math.imul(D,W)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(N,W)|0,a=a+Math.imul(N,G)|0,r=r+Math.imul(O,J)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(I,J)|0,a=a+Math.imul(I,X)|0,r=r+Math.imul($,Z)|0,i=(i=i+Math.imul($,ee)|0)+Math.imul(L,Z)|0,a=a+Math.imul(L,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(M,ne)|0,a=a+Math.imul(M,re)|0,r=r+Math.imul(E,ae)|0,i=(i=i+Math.imul(E,oe)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,oe)|0,r=r+Math.imul(_,le)|0,i=(i=i+Math.imul(_,ce)|0)+Math.imul(w,le)|0,a=a+Math.imul(w,ce)|0,r=r+Math.imul(g,de)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(y,de)|0,a=a+Math.imul(y,he)|0;var Ce=(c+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((a=a+Math.imul(m,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(B,W),i=(i=Math.imul(B,G))+Math.imul(Y,W)|0,a=Math.imul(Y,G),r=r+Math.imul(D,J)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(N,J)|0,a=a+Math.imul(N,X)|0,r=r+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(I,Z)|0,a=a+Math.imul(I,ee)|0,r=r+Math.imul($,ne)|0,i=(i=i+Math.imul($,re)|0)+Math.imul(L,ne)|0,a=a+Math.imul(L,re)|0,r=r+Math.imul(C,ae)|0,i=(i=i+Math.imul(C,oe)|0)+Math.imul(M,ae)|0,a=a+Math.imul(M,oe)|0,r=r+Math.imul(E,le)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(S,le)|0,a=a+Math.imul(S,ce)|0,r=r+Math.imul(_,de)|0,i=(i=i+Math.imul(_,he)|0)+Math.imul(w,de)|0,a=a+Math.imul(w,he)|0;var Me=(c+(r=r+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(y,pe)|0))<<13)|0;c=((a=a+Math.imul(y,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(Y,J)|0,a=Math.imul(Y,X),r=r+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul(N,Z)|0,a=a+Math.imul(N,ee)|0,r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(I,ne)|0,a=a+Math.imul(I,re)|0,r=r+Math.imul($,ae)|0,i=(i=i+Math.imul($,oe)|0)+Math.imul(L,ae)|0,a=a+Math.imul(L,oe)|0,r=r+Math.imul(C,le)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(M,le)|0,a=a+Math.imul(M,ce)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(S,de)|0,a=a+Math.imul(S,he)|0;var xe=(c+(r=r+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(w,pe)|0))<<13)|0;c=((a=a+Math.imul(w,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(B,Z),i=(i=Math.imul(B,ee))+Math.imul(Y,Z)|0,a=Math.imul(Y,ee),r=r+Math.imul(D,ne)|0,i=(i=i+Math.imul(D,re)|0)+Math.imul(N,ne)|0,a=a+Math.imul(N,re)|0,r=r+Math.imul(O,ae)|0,i=(i=i+Math.imul(O,oe)|0)+Math.imul(I,ae)|0,a=a+Math.imul(I,oe)|0,r=r+Math.imul($,le)|0,i=(i=i+Math.imul($,ce)|0)+Math.imul(L,le)|0,a=a+Math.imul(L,ce)|0,r=r+Math.imul(C,de)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(M,de)|0,a=a+Math.imul(M,he)|0;var $e=(c+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(S,pe)|0))<<13)|0;c=((a=a+Math.imul(S,me)|0)+(i>>>13)|0)+($e>>>26)|0,$e&=67108863,r=Math.imul(B,ne),i=(i=Math.imul(B,re))+Math.imul(Y,ne)|0,a=Math.imul(Y,re),r=r+Math.imul(D,ae)|0,i=(i=i+Math.imul(D,oe)|0)+Math.imul(N,ae)|0,a=a+Math.imul(N,oe)|0,r=r+Math.imul(O,le)|0,i=(i=i+Math.imul(O,ce)|0)+Math.imul(I,le)|0,a=a+Math.imul(I,ce)|0,r=r+Math.imul($,de)|0,i=(i=i+Math.imul($,he)|0)+Math.imul(L,de)|0,a=a+Math.imul(L,he)|0;var Le=(c+(r=r+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(M,pe)|0))<<13)|0;c=((a=a+Math.imul(M,me)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(B,ae),i=(i=Math.imul(B,oe))+Math.imul(Y,ae)|0,a=Math.imul(Y,oe),r=r+Math.imul(D,le)|0,i=(i=i+Math.imul(D,ce)|0)+Math.imul(N,le)|0,a=a+Math.imul(N,ce)|0,r=r+Math.imul(O,de)|0,i=(i=i+Math.imul(O,he)|0)+Math.imul(I,de)|0,a=a+Math.imul(I,he)|0;var Pe=(c+(r=r+Math.imul($,pe)|0)|0)+((8191&(i=(i=i+Math.imul($,me)|0)+Math.imul(L,pe)|0))<<13)|0;c=((a=a+Math.imul(L,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(B,le),i=(i=Math.imul(B,ce))+Math.imul(Y,le)|0,a=Math.imul(Y,ce),r=r+Math.imul(D,de)|0,i=(i=i+Math.imul(D,he)|0)+Math.imul(N,de)|0,a=a+Math.imul(N,he)|0;var Oe=(c+(r=r+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(I,pe)|0))<<13)|0;c=((a=a+Math.imul(I,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(B,de),i=(i=Math.imul(B,he))+Math.imul(Y,de)|0,a=Math.imul(Y,he);var Ie=(c+(r=r+Math.imul(D,pe)|0)|0)+((8191&(i=(i=i+Math.imul(D,me)|0)+Math.imul(N,pe)|0))<<13)|0;c=((a=a+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Ae=(c+(r=Math.imul(B,pe))|0)+((8191&(i=(i=Math.imul(B,me))+Math.imul(Y,pe)|0))<<13)|0;return c=((a=Math.imul(Y,me))+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l[0]=ve,l[1]=ge,l[2]=ye,l[3]=be,l[4]=_e,l[5]=we,l[6]=ke,l[7]=Ee,l[8]=Se,l[9]=Te,l[10]=Ce,l[11]=Me,l[12]=xe,l[13]=$e,l[14]=Le,l[15]=Pe,l[16]=Oe,l[17]=Ie,l[18]=Ae,0!==c&&(l[19]=c,n.length++),n};function p(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(f=h),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?f(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var o=i;i=0;for(var s=67108863&r,l=Math.min(a,t.length-1),c=Math.max(0,a-e.length+1);c<=l;c++){var u=a-c,d=(0|e.words[u])*(0|t.words[c]),h=67108863&d;s=67108863&(h=h+s|0),i+=(o=(o=o+(d/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n.strip()}(this,e,t):p(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},m.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},m.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o<a;o++)r[o]=t[e[o]],i[o]=n[e[o]]},m.prototype.transform=function(e,t,n,r,i,a){this.permute(a,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var d=l,h=c,f=0;f<o;f++){var p=n[u+f],m=r[u+f],v=n[u+f+o],g=r[u+f+o],y=d*v-h*g;g=d*g+h*v,v=y,n[u+f]=p+v,r[u+f]=m+g,n[u+f+o]=p-v,r[u+f+o]=m-g,f!==s&&(y=l*d-c*h,h=l*h+c*d,d=y)}},m.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},m.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,n,i){for(var a=0,o=0;o<t;o++)a+=0|e[o],n[2*o]=8191&a,a>>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<i;++o)n[o]=0;r(0===a),r(0==(-8192&a))},m.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},m.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),a=this.stub(r),o=new Array(r),s=new Array(r),l=new Array(r),c=new Array(r),u=new Array(r),d=new Array(r),h=n.words;h.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,c,r),this.transform(o,a,s,l,r,i),this.transform(c,a,u,d,r,i);for(var f=0;f<r;f++){var p=s[f]*u[f]-l[f]*d[f];l[f]=s[f]*d[f]+l[f]*u[f],s[f]=p}return this.conjugate(s,l,r),this.transform(s,l,h,a,r,i),this.conjugate(h,a,r),this.normalize13b(h,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),p(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,a=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},a.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,l=(0|this.words[t])-s<<n;this.words[t]=l|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,l=n;if(i-=o,i=Math.max(0,i),l){for(var c=0;c<o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var d=0|this.words[c];this.words[c]=u<<26-a|d>>>a,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},a.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,n){var i,a,o=e.length+n;this._expand(o);var s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+n])+s;var l=(0|e.words[i])*t;s=((a-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&a}for(;i<this.length-n;i++)s=(a=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&a;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,o=0|i.words[i.length-1];0!==(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var s,l=r.length-i.length;if("mod"!==t){(s=new a(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=r.clone()._ishlnsubmul(i,1,l);0===u.negative&&(r=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(h=Math.min(h/o|0,67108863),r._ishlnsubmul(i,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},a.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;0==(t.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(d)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),o.isub(l)):(n.isub(t),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:n.iushln(c)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new a(1),s=new a(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var d=0,h=1;0==(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(i=0===t.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var a=i,o=n;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new k(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},i(y,g),y.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(b,g),i(_,g),i(w,g),w.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new b;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return v[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,i),h=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=o;0!==f.cmp(s);){for(var m=f,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v<p);var g=this.pow(d,new a(1).iushln(p-v-1));h=h.redMul(g),d=g.redSqr(),f=f.redMul(d),p=v}return h},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new a(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],o=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],u=l-1;u>=0;u--){var d=c>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[o]),s=0,o=0)):s=0}l=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new E(e)},i(E,k),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(52)(e))},function(e,t,n){"use strict";(function(e){var r=n(331),i=n(332),a=n(238);function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):h(e,t);if("Buffer"===t.type&&a(t.data))return h(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(r)return j(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return $(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return x(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var d=!0,h=0;h<l;h++)if(c(e,a+h)!==c(t,h)){d=!1;break}if(d)return a}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function _(e,t,n,r){return H(j(t,e.length-n),e,n,r)}function w(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return w(e,t,n,r)}function E(e,t,n,r){return H(F(t),e,n,r)}function S(e,t,n,r){return H(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(r,i),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){a=c[d],o=u[d];break}return a<o?-1:o<a?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function $(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=Y(e[a]);return i}function L(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,r,i,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function A(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function D(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,a){return a||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,a){return a||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):A(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):A(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=l.isBuffer(e)?e:j(new l(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function F(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(22))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!u){var e=s(h);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),i=n(28),a=function(){function e(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return e.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},e.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},e.prototype.setServiceProps=function(e){return this.serviceProps=e,this},e}(),o=function(){function e(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return e.prototype.get=function(e){void 0===e&&(e="[DEFAULT]");var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new i.Deferred;this.instancesDeferred.set(t,n);try{var r=this.getOrInitializeService(t);r&&n.resolve(r)}catch(e){}}return this.instancesDeferred.get(t).promise},e.prototype.getImmediate=function(e){var t=r.__assign({identifier:"[DEFAULT]",optional:!1},e),n=t.identifier,i=t.optional,a=this.normalizeInstanceIdentifier(n);try{var o=this.getOrInitializeService(a);if(!o){if(i)return null;throw Error("Service "+this.name+" is not available")}return o}catch(e){if(i)return null;throw e}},e.prototype.getComponent=function(){return this.component},e.prototype.setComponent=function(e){var t,n;if(e.name!==this.name)throw Error("Mismatching Component "+e.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=e,function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService("[DEFAULT]")}catch(e){}try{for(var i=r.__values(this.instancesDeferred.entries()),a=i.next();!a.done;a=i.next()){var o=r.__read(a.value,2),s=o[0],l=o[1],c=this.normalizeInstanceIdentifier(s);try{var u=this.getOrInitializeService(c);l.resolve(u)}catch(e){}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.clearInstance=function(e){void 0===e&&(e="[DEFAULT]"),this.instancesDeferred.delete(e),this.instances.delete(e)},e.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){var e;return r.__generator(this,(function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all(e.filter((function(e){return"INTERNAL"in e})).map((function(e){return e.INTERNAL.delete()})))];case 1:return t.sent(),[2]}}))}))},e.prototype.isComponentSet=function(){return null!=this.component},e.prototype.getOrInitializeService=function(e){var t=this.instances.get(e);return!t&&this.component&&(t=this.component.instanceFactory(this.container,function(e){return"[DEFAULT]"===e?void 0:e}(e)),this.instances.set(e,t)),t||null},e.prototype.normalizeInstanceIdentifier=function(e){return this.component?this.component.multipleInstances?e:"[DEFAULT]":e},e}();var s=function(){function e(e){this.name=e,this.providers=new Map}return e.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component "+e.name+" has already been registered with "+this.name);t.setComponent(e)},e.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},e.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new o(e,this);return this.providers.set(e,t),t},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}();t.Component=a,t.ComponentContainer=s,t.Provider=o},function(e,t,n){"use strict";var r=n(277),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:l,isUndefined:o,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function e(){var t={};function n(n,r){l(t[r])&&l(n)?t[r]=e(t[r],n):l(n)?t[r]=e({},n):a(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},a=function(e,t){if(!e)throw o(t)},o=function(e){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)},s=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},l={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<e.length;i+=3){var a=e[i],o=i+1<e.length,s=o?e[i+1]:0,l=i+2<e.length,c=l?e[i+2]:0,u=a>>2,d=(3&a)<<4|s>>4,h=(15&s)<<2|c>>6,f=63&c;l||(f=64,o||(h=64)),r.push(n[u],n[d],n[h],n[f])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(s(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n<e.length;){var i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){var a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){var o=((7&i)<<18|(63&(a=e[n++]))<<12|(63&(s=e[n++]))<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{a=e[n++];var s=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&a)<<6|63&s)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<e.length;){var a=n[e.charAt(i++)],o=i<e.length?n[e.charAt(i)]:0,s=++i<e.length?n[e.charAt(i)]:64,l=++i<e.length?n[e.charAt(i)]:64;if(++i,null==a||null==o||null==s||null==l)throw Error();var c=a<<2|o>>4;if(r.push(c),64!==s){var u=o<<4&240|s>>2;if(r.push(u),64!==l){var d=s<<6&192|l;r.push(d)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},c=function(e){try{return l.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function u(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&(e[n]=u(e[n],t[n]));return e}var d=function(){function e(){var e=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))}return e.prototype.wrapCallback=function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"==typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,r))}},e}();function h(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}var f=function(e){function t(n,r){var i=e.call(this,r)||this;return i.code=n,i.name="FirebaseError",Object.setPrototypeOf(i,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,p.prototype.create),i}return r.__extends(t,e),t}(Error),p=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n}return e.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=t[0]||{},i=this.service+"/"+e,a=this.errors[e],o=a?m(a,r):"Error",s=this.serviceName+": "+o+" ("+i+").",l=new f(i,s),c=0,u=Object.keys(r);c<u.length;c++){var d=u[c];"_"!==d.slice(-1)&&(d in l&&console.warn('Overwriting FirebaseError base field "'+d+'" can cause unexpected behavior.'),l[d]=r[d])}return l},e}();function m(e,t){return e.replace(v,(function(e,n){var r=t[n];return null!=r?r.toString():"<"+n+"?>"}))}var v=/\{\$([^}]+)}/g;function g(e){return JSON.parse(e)}var y=function(e){var t={},n={},r={},i="";try{var a=e.split(".");t=g(c(a[0])||""),n=g(c(a[1])||""),i=a[2],r=n.d||{},delete n.d}catch(e){}return{header:t,claims:n,data:r,signature:i}};var b=function(){function e(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}return e.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},e.prototype.compress_=function(e,t){t||(t=0);var n=this.W_;if("string"==typeof e)for(var r=0;r<16;r++)n[r]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(r=0;r<16;r++)n[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(r=16;r<80;r++){var i=n[r-3]^n[r-8]^n[r-14]^n[r-16];n[r]=4294967295&(i<<1|i>>>31)}var a,o,s=this.chain_[0],l=this.chain_[1],c=this.chain_[2],u=this.chain_[3],d=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(a=u^l&(c^u),o=1518500249):(a=l^c^u,o=1859775393):r<60?(a=l&c|u&(l|c),o=2400959708):(a=l^c^u,o=3395469782);i=(s<<5|s>>>27)+a+d+o+n[r]&4294967295;d=u,u=c,c=4294967295&(l<<30|l>>>2),l=s,s=i}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+l&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+u&4294967295,this.chain_[4]=this.chain_[4]+d&4294967295},e.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=0,i=this.buf_,a=this.inbuf_;r<t;){if(0===a)for(;r<=n;)this.compress_(e,r),r+=this.blockSize;if("string"==typeof e){for(;r<t;)if(i[a]=e.charCodeAt(r),++r,++a===this.blockSize){this.compress_(i),a=0;break}}else for(;r<t;)if(i[a]=e[r],++r,++a===this.blockSize){this.compress_(i),a=0;break}}this.inbuf_=a,this.total_+=t}},e.prototype.digest=function(){var e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)e[r]=this.chain_[n]>>i&255,++r;return e},e}();var _=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((function(){e(n)})).catch((function(e){n.error(e)}))}return e.prototype.next=function(e){this.forEachObserver((function(t){t.next(e)}))},e.prototype.error=function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)},e.prototype.complete=function(){this.forEachObserver((function(e){e.complete()})),this.close()},e.prototype.subscribe=function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=0,r=t;n<r.length;n++){var i=r[n];if(i in e&&"function"==typeof e[i])return!0}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n}).next&&(r.next=w),void 0===r.error&&(r.error=w),void 0===r.complete&&(r.complete=w);var a=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(e){}})),this.observers.push(r),a},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}}))},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((function(){t.observers=void 0,t.onNoObservers=void 0})))},e}();function w(){}function k(e,t,n){var r="";switch(t){case 1:r=n?"first":"First";break;case 2:r=n?"second":"Second";break;case 3:r=n?"third":"Third";break;case 4:r=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4. Need to update it?")}var i=e+" failed: ";return i+=r+" argument "}t.CONSTANTS=i,t.Deferred=d,t.ErrorFactory=p,t.FirebaseError=f,t.Sha1=b,t.assert=a,t.assertionError=o,t.async=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Promise.resolve(!0).then((function(){e.apply(void 0,n)})).catch((function(e){t&&t(e)}))}},t.base64=l,t.base64Decode=c,t.base64Encode=function(e){var t=s(e);return l.encodeByteArray(t,!0)},t.contains=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.createSubscribe=function(e,t){var n=new _(e,t);return n.subscribe.bind(n)},t.decode=y,t.deepCopy=function(e){return u(void 0,e)},t.deepExtend=u,t.errorPrefix=k,t.getUA=h,t.isAdmin=function(e){var t=y(e).claims;return"object"==typeof t&&!0===t.admin},t.isBrowser=function(){return"object"==typeof self&&self.self===self},t.isBrowserExtension=function(){var e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id},t.isElectron=function(){return h().indexOf("Electron/")>=0},t.isEmpty=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},t.isIE=function(){var e=h();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0},t.isMobileCordova=function(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(h())},t.isNode=function(){try{return"[object process]"===Object.prototype.toString.call(e.process)}catch(e){return!1}},t.isNodeSdk=function(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN},t.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},t.isUWP=function(){return h().indexOf("MSAppHost/")>=0},t.isValidFormat=function(e){var t=y(e).claims;return!!t&&"object"==typeof t&&t.hasOwnProperty("iat")},t.isValidTimestamp=function(e){var t=y(e).claims,n=Math.floor((new Date).getTime()/1e3),r=0,i=0;return"object"==typeof t&&(t.hasOwnProperty("nbf")?r=t.nbf:t.hasOwnProperty("iat")&&(r=t.iat),i=t.hasOwnProperty("exp")?t.exp:r+86400),!!n&&!!r&&!!i&&n>=r&&n<=i},t.issuedAtTime=function(e){var t=y(e).claims;return"object"==typeof t&&t.hasOwnProperty("iat")?t.iat:null},t.jsonEval=g,t.map=function(e,t,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r},t.querystring=function(e){for(var t=[],n=function(e,n){Array.isArray(n)?n.forEach((function(n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))})):t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))},r=0,i=Object.entries(e);r<i.length;r++){var a=i[r];n(a[0],a[1])}return t.length?"&"+t.join("&"):""},t.querystringDecode=function(e){var t={};return e.replace(/^\?/,"").split("&").forEach((function(e){if(e){var n=e.split("=");t[n[0]]=n[1]}})),t},t.safeGet=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0},t.stringLength=function(e){for(var t=0,n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t++:r<2048?t+=2:r>=55296&&r<=56319?(t+=4,n++):t+=3}return t},t.stringToByteArray=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i>=55296&&i<=56319){var o=i-55296;r++,a(r<e.length,"Surrogate pair missing trail surrogate."),i=65536+(o<<10)+(e.charCodeAt(r)-56320)}i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},t.stringify=function(e){return JSON.stringify(e)},t.validateArgCount=function(e,t,n,r){var i;if(r<t?i="at least "+t:r>n&&(i=0===n?"none":"no more than "+n),i)throw new Error(e+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".")},t.validateCallback=function(e,t,n,r){if((!r||n)&&"function"!=typeof n)throw new Error(k(e,t,r)+"must be a valid function.")},t.validateContextObject=function(e,t,n,r){if((!r||n)&&("object"!=typeof n||null===n))throw new Error(k(e,t,r)+"must be a valid context object.")},t.validateNamespace=function(e,t,n,r){if((!r||n)&&"string"!=typeof n)throw new Error(k(e,t,r)+"must be a valid firebase namespace.")}}).call(this,n(22))},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=t,i=n(23),a=n(29),o=n(262);r.assert=a,r.toArray=o.toArray,r.zero2=o.zero2,r.toHex=o.toHex,r.encode=o.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,a=e.clone(),o=0;o<r.length;o++){var s,l=a.andln(i-1);a.isOdd()?(s=l>(i>>1)-1?(i>>1)-l:l,a.isubn(s)):s=0,r[o]=s,a.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,i=0;e.cmpn(-r)>0||t.cmpn(-i)>0;){var a,o,s,l=e.andln(3)+r&3,c=t.andln(3)+i&3;if(3===l&&(l=-1),3===c&&(c=-1),0==(1&l))a=0;else a=3!==(s=e.andln(7)+r&7)&&5!==s||2!==c?l:-l;if(n[0].push(a),0==(1&c))o=0;else o=3!==(s=t.andln(7)+i&7)&&5!==s||2!==l?c:-c;n[1].push(o),2*r===a+1&&(r=1-r),2*i===o+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(14),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),t7ctx;t7ctx="undefined"!=typeof window?window:void 0!==global?global:void 0;var Template7Context=t7ctx,Template7Utils={quoteSingleRexExp:new RegExp("'","g"),quoteDoubleRexExp:new RegExp('"',"g"),isFunction:function(e){return"function"==typeof e},escape:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},helperToSlices:function(e){var t,n,r,i=Template7Utils.quoteDoubleRexExp,a=Template7Utils.quoteSingleRexExp,o=e.replace(/[{}#}]/g,"").trim().split(" "),s=[];for(n=0;n<o.length;n+=1){var l=o[n],c=void 0,u=void 0;if(0===n)s.push(l);else if(0===l.indexOf('"')||0===l.indexOf("'"))if(c=0===l.indexOf('"')?i:a,u=0===l.indexOf('"')?'"':"'",2===l.match(c).length)s.push(l);else{for(t=0,r=n+1;r<o.length;r+=1)if(l+=" ".concat(o[r]),o[r].indexOf(u)>=0){t=r,s.push(l);break}t&&(n=t)}else if(l.indexOf("=")>0){var d=l.split("="),h=d[0],f=d[1];if(c||(c=0===f.indexOf('"')?i:a,u=0===f.indexOf('"')?'"':"'"),2!==f.match(c).length){for(t=0,r=n+1;r<o.length;r+=1)if(f+=" ".concat(o[r]),o[r].indexOf(u)>=0){t=r;break}t&&(n=t)}var p=[h,f.replace(c,"")];s.push(p)}else s.push(l)}return s},stringToBlocks:function(e){var t,n,r=[];if(!e)return[];var i=e.split(/({{[^{^}]*}})/);for(t=0;t<i.length;t+=1){var a=i[t];if(""!==a)if(a.indexOf("{{")<0)r.push({type:"plain",content:a});else{if(a.indexOf("{/")>=0)continue;if((a=a.replace(/{{([#/])*([ ])*/,"{{$1").replace(/([ ])*}}/,"}}")).indexOf("{#")<0&&a.indexOf(" ")<0&&a.indexOf("else")<0){r.push({type:"variable",contextName:a.replace(/[{}]/g,"")});continue}var o=Template7Utils.helperToSlices(a),s=o[0],l=">"===s,c=[],u={};for(n=1;n<o.length;n+=1){var d=o[n];Array.isArray(d)?u[d[0]]="false"!==d[1]&&d[1]:c.push(d)}if(a.indexOf("{#")>=0){var h="",f="",p=0,m=void 0,v=!1,g=!1,y=0;for(n=t+1;n<i.length;n+=1)if(i[n].indexOf("{{#")>=0&&(y+=1),i[n].indexOf("{{/")>=0&&(y-=1),i[n].indexOf("{{#".concat(s))>=0)h+=i[n],g&&(f+=i[n]),p+=1;else if(i[n].indexOf("{{/".concat(s))>=0){if(!(p>0)){m=n,v=!0;break}p-=1,h+=i[n],g&&(f+=i[n])}else i[n].indexOf("else")>=0&&0===y?g=!0:(g||(h+=i[n]),g&&(f+=i[n]));v&&(m&&(t=m),"raw"===s?r.push({type:"plain",content:h}):r.push({type:"helper",helperName:s,contextName:c,content:h,inverseContent:f,hash:u}))}else a.indexOf(" ")>0&&(l&&(s="_partial",c[0]&&(0===c[0].indexOf("[")?c[0]=c[0].replace(/[[\]]/g,""):c[0]='"'.concat(c[0].replace(/"|'/g,""),'"'))),r.push({type:"helper",helperName:s,contextName:c,hash:u}))}}return r},parseJsVariable:function(e,t,n){return e.split(/([+ \-*/^()&=|<>!%:?])/g).reduce((function(e,r){if(!r)return e;if(r.indexOf(t)<0)return e.push(r),e;if(!n)return e.push(JSON.stringify("")),e;var i=n;return r.indexOf("".concat(t,"."))>=0&&r.split("".concat(t,"."))[1].split(".").forEach((function(e){i=e in i?i[e]:void 0})),("string"==typeof i||Array.isArray(i)||i.constructor&&i.constructor===Object)&&(i=JSON.stringify(i)),void 0===i&&(i="undefined"),e.push(i),e}),[]).join("")},parseJsParents:function(e,t){return e.split(/([+ \-*^()&=|<>!%:?])/g).reduce((function(e,n){if(!n)return e;if(n.indexOf("../")<0)return e.push(n),e;if(!t||0===t.length)return e.push(JSON.stringify("")),e;var r=n.split("../").length-1,i=r>t.length?t[t.length-1]:t[r-1];return n.replace(/..\//g,"").split(".").forEach((function(e){i=void 0!==i[e]?i[e]:"undefined"})),!1===i||!0===i?(e.push(JSON.stringify(i)),e):null===i||"undefined"===i?(e.push(JSON.stringify("")),e):(e.push(JSON.stringify(i)),e)}),[]).join("")},getCompileVar:function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"data_1",a=t,o=0;0===e.indexOf("../")?(o=e.split("../").length-1,r=a.split("_")[1]-o,a="ctx_".concat(r>=1?r:1),n=e.split("../")[o].split(".")):0===e.indexOf("@global")?(a="Template7.global",n=e.split("@global.")[1].split(".")):0===e.indexOf("@root")?(a="root",n=e.split("@root.")[1].split(".")):n=e.split(".");for(var s=0;s<n.length;s+=1){var l=n[s];if(0===l.indexOf("@")){var c=i.split("_")[1];o>0&&(c=r),s>0?a+="[(data_".concat(c," && data_").concat(c,".").concat(l.replace("@",""),")]"):a="(data_".concat(c," && data_").concat(c,".").concat(l.replace("@",""),")")}else(Number.isFinite?Number.isFinite(l):Template7Context.isFinite(l))?a+="[".concat(l,"]"):"this"===l||l.indexOf("this.")>=0||l.indexOf("this[")>=0||l.indexOf("this(")>=0?a=l.replace("this",t):a+=".".concat(l)}return a},getCompiledArguments:function(e,t,n){for(var r=[],i=0;i<e.length;i+=1)/^['"]/.test(e[i])||/^(true|false|\d+)$/.test(e[i])?r.push(e[i]):r.push(Template7Utils.getCompileVar(e[i],t,n));return r.join(", ")}},Template7Helpers={_partial:function(e,t){var n=this,r=Template7Class.partials[e];return!r||r&&!r.template?"":(r.compiled||(r.compiled=new Template7Class(r.template).compile()),Object.keys(t.hash).forEach((function(e){n[e]=t.hash[e]})),r.compiled(n,t.data,t.root))},escape:function(e){if(null==e)return"";if("string"!=typeof e)throw new Error('Template7: Passed context to "escape" helper should be a string');return Template7Utils.escape(e)},if:function(e,t){var n=e;return Template7Utils.isFunction(n)&&(n=n.call(this)),n?t.fn(this,t.data):t.inverse(this,t.data)},unless:function(e,t){var n=e;return Template7Utils.isFunction(n)&&(n=n.call(this)),n?t.inverse(this,t.data):t.fn(this,t.data)},each:function(e,t){var n=e,r="",i=0;if(Template7Utils.isFunction(n)&&(n=n.call(this)),Array.isArray(n)){for(t.hash.reverse&&(n=n.reverse()),i=0;i<n.length;i+=1)r+=t.fn(n[i],{first:0===i,last:i===n.length-1,index:i});t.hash.reverse&&(n=n.reverse())}else for(var a in n)i+=1,r+=t.fn(n[a],{key:a});return i>0?r:t.inverse(this)},with:function(e,t){var n=e;return Template7Utils.isFunction(n)&&(n=e.call(this)),t.fn(n)},join:function(e,t){var n=e;return Template7Utils.isFunction(n)&&(n=n.call(this)),n.join(t.hash.delimiter||t.hash.delimeter)},js:function js(expression,options){var data=options.data,func,execute=expression;return"index first last key".split(" ").forEach((function(e){if(void 0!==data[e]){var t=new RegExp("this.@".concat(e),"g"),n=new RegExp("@".concat(e),"g");execute=execute.replace(t,JSON.stringify(data[e])).replace(n,JSON.stringify(data[e]))}})),options.root&&execute.indexOf("@root")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@root",options.root)),execute.indexOf("@global")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@global",Template7Context.Template7.global)),execute.indexOf("../")>=0&&(execute=Template7Utils.parseJsParents(execute,options.parents)),func=execute.indexOf("return")>=0?"(function(){".concat(execute,"})"):"(function(){return (".concat(execute,")})"),eval(func).call(this)},js_if:function js_if(expression,options){var data=options.data,func,execute=expression;"index first last key".split(" ").forEach((function(e){if(void 0!==data[e]){var t=new RegExp("this.@".concat(e),"g"),n=new RegExp("@".concat(e),"g");execute=execute.replace(t,JSON.stringify(data[e])).replace(n,JSON.stringify(data[e]))}})),options.root&&execute.indexOf("@root")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@root",options.root)),execute.indexOf("@global")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@global",Template7Context.Template7.global)),execute.indexOf("../")>=0&&(execute=Template7Utils.parseJsParents(execute,options.parents)),func=execute.indexOf("return")>=0?"(function(){".concat(execute,"})"):"(function(){return (".concat(execute,")})");var condition=eval(func).call(this);return condition?options.fn(this,options.data):options.inverse(this,options.data)}};Template7Helpers.js_compare=Template7Helpers.js_if;var Template7Options={},Template7Partials={},Template7Class=function(){function Template7Class(e){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,Template7Class);this.template=e}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Template7Class,[{key:"compile",value:function compile(){var template=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.template,depth=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=this;if(t.compiled)return t.compiled;if("string"!=typeof template)throw new Error("Template7: Template must be a string");var stringToBlocks=Template7Utils.stringToBlocks,getCompileVar=Template7Utils.getCompileVar,getCompiledArguments=Template7Utils.getCompiledArguments,blocks=stringToBlocks(template),ctx="ctx_".concat(depth),data="data_".concat(depth);if(0===blocks.length)return function(){return""};function getCompileFn(e,n){return e.content?t.compile(e.content,n):function(){return""}}function getCompileInverse(e,n){return e.inverseContent?t.compile(e.inverseContent,n):function(){return""}}var resultString="",i;for(resultString+=1===depth?"(function (".concat(ctx,", ").concat(data,", root) {\n"):"(function (".concat(ctx,", ").concat(data,") {\n"),1===depth&&(resultString+="function isArray(arr){return Array.isArray(arr);}\n",resultString+="function isFunction(func){return (typeof func === 'function');}\n",resultString+='function c(val, ctx) {if (typeof val !== "undefined" && val !== null) {if (isFunction(val)) {return val.call(ctx);} else return val;} else return "";}\n',resultString+="root = root || ctx_1 || {};\n"),resultString+="var r = '';\n",i=0;i<blocks.length;i+=1){var block=blocks[i];if("plain"!==block.type){var variable=void 0,compiledArguments=void 0;if("variable"===block.type&&(variable=getCompileVar(block.contextName,ctx,data),resultString+="r += c(".concat(variable,", ").concat(ctx,");")),"helper"===block.type){var parents=void 0;if("ctx_1"!==ctx){for(var level=ctx.split("_")[1],parentsString="ctx_".concat(level-1),j=level-2;j>=1;j-=1)parentsString+=", ctx_".concat(j);parents="[".concat(parentsString,"]")}else parents="[".concat(ctx,"]");var dynamicHelper=void 0;if(0===block.helperName.indexOf("[")&&(block.helperName=getCompileVar(block.helperName.replace(/[[\]]/g,""),ctx,data),dynamicHelper=!0),dynamicHelper||block.helperName in Template7Helpers)compiledArguments=getCompiledArguments(block.contextName,ctx,data),resultString+="r += (Template7Helpers".concat(dynamicHelper?"[".concat(block.helperName,"]"):".".concat(block.helperName),").call(").concat(ctx,", ").concat(compiledArguments&&"".concat(compiledArguments,", "),"{hash:").concat(JSON.stringify(block.hash),", data: ").concat(data," || {}, fn: ").concat(getCompileFn(block,depth+1),", inverse: ").concat(getCompileInverse(block,depth+1),", root: root, parents: ").concat(parents,"});");else{if(block.contextName.length>0)throw new Error('Template7: Missing helper: "'.concat(block.helperName,'"'));variable=getCompileVar(block.helperName,ctx,data),resultString+="if (".concat(variable,") {"),resultString+="if (isArray(".concat(variable,")) {"),resultString+="r += (Template7Helpers.each).call(".concat(ctx,", ").concat(variable,", {hash:").concat(JSON.stringify(block.hash),", data: ").concat(data," || {}, fn: ").concat(getCompileFn(block,depth+1),", inverse: ").concat(getCompileInverse(block,depth+1),", root: root, parents: ").concat(parents,"});"),resultString+="}else {",resultString+="r += (Template7Helpers.with).call(".concat(ctx,", ").concat(variable,", {hash:").concat(JSON.stringify(block.hash),", data: ").concat(data," || {}, fn: ").concat(getCompileFn(block,depth+1),", inverse: ").concat(getCompileInverse(block,depth+1),", root: root, parents: ").concat(parents,"});"),resultString+="}}"}}}else resultString+="r +='".concat(block.content.replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/'/g,"\\'"),"';")}return resultString+="\nreturn r;})",1===depth?(t.compiled=eval(resultString),t.compiled):resultString}}],[{key:"options",get:function(){return Template7Options}},{key:"partials",get:function(){return Template7Partials}},{key:"helpers",get:function(){return Template7Helpers}}]),Template7Class}();function Template7(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1];if(2===t.length){var a=new Template7Class(r),o=a.compile()(i);return a=null,o}return new Template7Class(r)}Template7.registerHelper=function(e,t){Template7Class.helpers[e]=t},Template7.unregisterHelper=function(e){Template7Class.helpers[e]=void 0,delete Template7Class.helpers[e]},Template7.registerPartial=function(e,t){Template7Class.partials[e]={template:t}},Template7.unregisterPartial=function(e){Template7Class.partials[e]&&(Template7Class.partials[e]=void 0,delete Template7Class.partials[e])},Template7.compile=function(e,t){return new Template7Class(e,t).compile()},Template7.options=Template7Class.options,Template7.helpers=Template7Class.helpers,Template7.partials=Template7Class.partials,__webpack_exports__.a=Template7}).call(this,__webpack_require__(22))},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(298),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(22))},function(e,t,n){"use strict";var r=n(29),i=n(19);function a(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function l(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var o=e.charCodeAt(i);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):a(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=o(i)),n+=l(i.toString(16))}return n},t.zero2=s,t.zero8=l,t.join32=function(e,t,n,i){var a=n-t;r(a%4==0);for(var o=new Array(a/4),s=0,l=t;s<o.length;s++,l+=4){var c;c="big"===i?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],o[s]=c>>>0}return o},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var a=e[r];"big"===t?(n[i]=a>>>24,n[i+1]=a>>>16&255,n[i+2]=a>>>8&255,n[i+3]=255&a):(n[i+3]=a>>>24,n[i+2]=a>>>16&255,n[i+1]=a>>>8&255,n[i]=255&a)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],a=r+e[t+1]>>>0,o=(a<r?1:0)+n+i;e[t]=o>>>0,e[t+1]=a},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,a,o,s){var l=0,c=t;return l+=(c=c+r>>>0)<t?1:0,l+=(c=c+a>>>0)<a?1:0,e+n+i+o+(l+=(c=c+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,a,o,s){return t+r+a+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,a,o,s,l,c){var u=0,d=t;return u+=(d=d+r>>>0)<t?1:0,u+=(d=d+a>>>0)<a?1:0,u+=(d=d+s>>>0)<s?1:0,e+n+i+o+l+(u+=(d=d+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,a,o,s,l,c){return t+r+a+s+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){var r=n(20).Buffer,i=n(92).Transform,a=n(95).StringDecoder;function o(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(19)(o,i),o.prototype.update=function(e,t,n){"string"==typeof e&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},e.exports=o},function(e,t,n){!function(e){"use strict";function t(e){return Array.prototype.slice.call(e)}function n(e){return new Promise((function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function r(e,t,r){var i,a=new Promise((function(a,o){n(i=e[t].apply(e,r)).then(a,o)}));return a.request=i,a}function i(e,t,n){var i=r(e,t,n);return i.then((function(e){if(e)return new u(e,i.request)}))}function a(e,t,n){n.forEach((function(n){Object.defineProperty(e.prototype,n,{get:function(){return this[t][n]},set:function(e){this[t][n]=e}})}))}function o(e,t,n,i){i.forEach((function(i){i in n.prototype&&(e.prototype[i]=function(){return r(this[t],i,arguments)})}))}function s(e,t,n,r){r.forEach((function(r){r in n.prototype&&(e.prototype[r]=function(){return this[t][r].apply(this[t],arguments)})}))}function l(e,t,n,r){r.forEach((function(r){r in n.prototype&&(e.prototype[r]=function(){return i(this[t],r,arguments)})}))}function c(e){this._index=e}function u(e,t){this._cursor=e,this._request=t}function d(e){this._store=e}function h(e){this._tx=e,this.complete=new Promise((function(t,n){e.oncomplete=function(){t()},e.onerror=function(){n(e.error)},e.onabort=function(){n(e.error)}}))}function f(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new h(n)}function p(e){this._db=e}a(c,"_index",["name","keyPath","multiEntry","unique"]),o(c,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),l(c,"_index",IDBIndex,["openCursor","openKeyCursor"]),a(u,"_cursor",["direction","key","primaryKey","value"]),o(u,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach((function(e){e in IDBCursor.prototype&&(u.prototype[e]=function(){var t=this,r=arguments;return Promise.resolve().then((function(){return t._cursor[e].apply(t._cursor,r),n(t._request).then((function(e){if(e)return new u(e,t._request)}))}))})})),d.prototype.createIndex=function(){return new c(this._store.createIndex.apply(this._store,arguments))},d.prototype.index=function(){return new c(this._store.index.apply(this._store,arguments))},a(d,"_store",["name","keyPath","indexNames","autoIncrement"]),o(d,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),l(d,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),s(d,"_store",IDBObjectStore,["deleteIndex"]),h.prototype.objectStore=function(){return new d(this._tx.objectStore.apply(this._tx,arguments))},a(h,"_tx",["objectStoreNames","mode"]),s(h,"_tx",IDBTransaction,["abort"]),f.prototype.createObjectStore=function(){return new d(this._db.createObjectStore.apply(this._db,arguments))},a(f,"_db",["name","version","objectStoreNames"]),s(f,"_db",IDBDatabase,["deleteObjectStore","close"]),p.prototype.transaction=function(){return new h(this._db.transaction.apply(this._db,arguments))},a(p,"_db",["name","version","objectStoreNames"]),s(p,"_db",IDBDatabase,["close"]),["openCursor","openKeyCursor"].forEach((function(e){[d,c].forEach((function(n){e in n.prototype&&(n.prototype[e.replace("open","iterate")]=function(){var n=t(arguments),r=n[n.length-1],i=this._store||this._index,a=i[e].apply(i,n.slice(0,-1));a.onsuccess=function(){r(a.result)}})}))})),[c,d].forEach((function(e){e.prototype.getAll||(e.prototype.getAll=function(e,t){var n=this,r=[];return new Promise((function(i){n.iterateCursor(e,(function(e){e?(r.push(e.value),void 0===t||r.length!=t?e.continue():i(r)):i(r)}))}))})})),e.openDb=function(e,t,n){var i=r(indexedDB,"open",[e,t]),a=i.request;return a&&(a.onupgradeneeded=function(e){n&&n(new f(a.result,e.oldVersion,a.transaction))}),i.then((function(e){return new p(e)}))},e.deleteDb=function(e){return r(indexedDB,"deleteDatabase",[e])},Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";var r=n(53),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var a=Object.create(n(44));a.inherits=n(19);var o=n(240),s=n(94);a.inherits(d,o);for(var l=i(s.prototype),c=0;c<l.length;c++){var u=l[c];d.prototype[u]||(d.prototype[u]=s.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){"use strict";function r(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}var i;n.r(t),n.d(t,"LogLevel",(function(){return a})),n.d(t,"Logger",(function(){return d})),n.d(t,"setLogLevel",(function(){return h})),n.d(t,"setUserLogHandler",(function(){return f}));var a,o=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(a||(a={}));var s={debug:a.DEBUG,verbose:a.VERBOSE,info:a.INFO,warn:a.WARN,error:a.ERROR,silent:a.SILENT},l=a.INFO,c=((i={})[a.DEBUG]="log",i[a.VERBOSE]="log",i[a.INFO]="info",i[a.WARN]="warn",i[a.ERROR]="error",i),u=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(!(t<e.logLevel)){var a=(new Date).toISOString(),o=c[t];if(!o)throw new Error("Attempted to log a message with an invalid logType (value: "+t+")");console[o].apply(console,r(["["+a+"] "+e.name+":"],n))}},d=function(){function e(e){this.name=e,this._logLevel=l,this._logHandler=u,this._userLogHandler=null,o.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in a))throw new TypeError("Invalid value assigned to `logLevel`");this._logLevel=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e},enumerable:!0,configurable:!0}),e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,a.DEBUG],e)),this._logHandler.apply(this,r([this,a.DEBUG],e))},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,a.VERBOSE],e)),this._logHandler.apply(this,r([this,a.VERBOSE],e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,a.INFO],e)),this._logHandler.apply(this,r([this,a.INFO],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,a.WARN],e)),this._logHandler.apply(this,r([this,a.WARN],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,a.ERROR],e)),this._logHandler.apply(this,r([this,a.ERROR],e))},e}();function h(e){var t="string"==typeof e?s[e]:e;o.forEach((function(e){e.logLevel=t}))}function f(e,t){for(var n=function(n){var r=null;t&&t.level&&(r=s[t.level]),n.userLogHandler=null===e?null:function(t,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var s=i.map((function(e){if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}})).filter((function(e){return e})).join(" ");n>=(null!=r?r:t.logLevel)&&e({level:a[n].toLowerCase(),message:s,args:i,type:t.name})}},r=0,i=o;r<i.length;r++){n(i[r])}}},function(e,t,n){var r=n(295),i=n(296),a=n(109),o=n(297);e.exports=function(e,t){return r(e)||i(e,t)||a(e,t)||o()}},function(e,t,n){"use strict";(function(t,r){var i=n(20).Buffer,a=t.crypto||t.msCrypto;a&&a.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=i.allocUnsafe(e);if(e>0)if(e>65536)for(var o=0;o<e;o+=65536)a.getRandomValues(n.slice(o,o+65536));else a.getRandomValues(n);if("function"==typeof t)return r.nextTick((function(){t(null,n)}));return n}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,n(22),n(25))},function(e,t,n){var r=n(20).Buffer;function i(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,i=this._blockSize,a=e.length,o=this._len,s=0;s<a;){for(var l=o%i,c=Math.min(a-s,i-l),u=0;u<c;u++)n[l+u]=e[s+u];s+=c,(o+=c)%i==0&&this._update(n)}return this._len+=a,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"014b":function(e,t,n){"use strict";var r=n("e53d"),i=n("07e3"),a=n("8e60"),o=n("63b6"),s=n("9138"),l=n("ebfd").KEY,c=n("294c"),u=n("dbdb"),d=n("45f2"),h=n("62a0"),f=n("5168"),p=n("ccb9"),m=n("6718"),v=n("47ee"),g=n("9003"),y=n("e4ae"),b=n("f772"),_=n("36c3"),w=n("1bc3"),k=n("aebd"),E=n("a159"),S=n("0395"),T=n("bf0b"),C=n("d9f6"),M=n("c3a1"),x=T.f,$=C.f,L=S.f,P=r.Symbol,O=r.JSON,I=O&&O.stringify,A=f("_hidden"),D=f("toPrimitive"),N={}.propertyIsEnumerable,R=u("symbol-registry"),B=u("symbols"),Y=u("op-symbols"),j=Object.prototype,F="function"==typeof P,H=r.QObject,U=!H||!H.prototype||!H.prototype.findChild,z=a&&c((function(){return 7!=E($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=x(j,t);r&&delete j[t],$(e,t,n),r&&e!==j&&$(j,t,r)}:$,V=function(e){var t=B[e]=E(P.prototype);return t._k=e,t},q=F&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},W=function(e,t,n){return e===j&&W(Y,t,n),y(e),t=w(t,!0),y(n),i(B,t)?(n.enumerable?(i(e,A)&&e[A][t]&&(e[A][t]=!1),n=E(n,{enumerable:k(0,!1)})):(i(e,A)||$(e,A,k(1,{})),e[A][t]=!0),z(e,t,n)):$(e,t,n)},G=function(e,t){y(e);for(var n,r=v(t=_(t)),i=0,a=r.length;a>i;)W(e,n=r[i++],t[n]);return e},K=function(e){var t=N.call(this,e=w(e,!0));return!(this===j&&i(B,e)&&!i(Y,e))&&(!(t||!i(this,e)||!i(B,e)||i(this,A)&&this[A][e])||t)},J=function(e,t){if(e=_(e),t=w(t,!0),e!==j||!i(B,t)||i(Y,t)){var n=x(e,t);return!n||!i(B,t)||i(e,A)&&e[A][t]||(n.enumerable=!0),n}},X=function(e){for(var t,n=L(_(e)),r=[],a=0;n.length>a;)i(B,t=n[a++])||t==A||t==l||r.push(t);return r},Q=function(e){for(var t,n=e===j,r=L(n?Y:_(e)),a=[],o=0;r.length>o;)!i(B,t=r[o++])||n&&!i(j,t)||a.push(B[t]);return a};F||(s((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===j&&t.call(Y,n),i(this,A)&&i(this[A],e)&&(this[A][e]=!1),z(this,e,k(1,n))};return a&&U&&z(j,e,{configurable:!0,set:t}),V(e)}).prototype,"toString",(function(){return this._k})),T.f=J,C.f=W,n("6abf").f=S.f=X,n("355d").f=K,n("9aa9").f=Q,a&&!n("b8e3")&&s(j,"propertyIsEnumerable",K,!0),p.f=function(e){return V(f(e))}),o(o.G+o.W+o.F*!F,{Symbol:P});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Z.length>ee;)f(Z[ee++]);for(var te=M(f.store),ne=0;te.length>ne;)m(te[ne++]);o(o.S+o.F*!F,"Symbol",{for:function(e){return i(R,e+="")?R[e]:R[e]=P(e)},keyFor:function(e){if(!q(e))throw TypeError(e+" is not a symbol!");for(var t in R)if(R[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),o(o.S+o.F*!F,"Object",{create:function(e,t){return void 0===t?E(e):G(E(e),t)},defineProperty:W,defineProperties:G,getOwnPropertyDescriptor:J,getOwnPropertyNames:X,getOwnPropertySymbols:Q}),O&&o(o.S+o.F*(!F||c((function(){var e=P();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!q(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!q(t))return t}),r[1]=t,I.apply(O,r)}}),P.prototype[D]||n("35e8")(P.prototype,D,P.prototype.valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},"0395":function(e,t,n){var r=n("36c3"),i=n("6abf").f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(r(e))}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0fc9":function(e,t,n){var r=n("3a38"),i=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):a(e,t)}},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1bc3":function(e,t,n){var r=n("f772");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,n){var r=n("f772"),i=n("e53d").document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},"241e":function(e,t,n){var r=n("25eb");e.exports=function(e){return Object(r(e))}},"25eb":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"268f":function(e,t,n){e.exports=n("fde4")},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),a=n("69a8"),o=n("ca5a")("src"),s=n("fa5b"),l=(""+s).split("toString");n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(a(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(a(n,o)||i(n,o,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[o]||s.call(this)}))},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),a=n("7726").Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8");r(r.P+r.F*n("5147")("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32a6":function(e,t,n){var r=n("241e"),i=n("c3a1");n("ce7e")("keys",(function(){return function(e){return i(r(e))}}))},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"32fc":function(e,t,n){var r=n("e53d").document;e.exports=r&&r.documentElement},"335c":function(e,t,n){var r=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var r=n("d9f6"),i=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"36c3":function(e,t,n){var r=n("335c"),i=n("25eb");e.exports=function(e){return r(i(e))}},"3a38":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"454f":function(e,t,n){n("46a7");var r=n("584a").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"45f2":function(e,t,n){var r=n("d9f6").f,i=n("07e3"),a=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"46a7":function(e,t,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"47ee":function(e,t,n){var r=n("c3a1"),i=n("9aa9"),a=n("355d");e.exports=function(e){var t=r(e),n=i.f;if(n)for(var o,s=n(e),l=a.f,c=0;s.length>c;)l.call(e,o=s[c++])&&t.push(o);return t}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},5168:function(e,t,n){var r=n("dbdb")("wks"),i=n("62a0"),a=n("e53d").Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},5537:function(e,t,n){var r=n("8378"),i=n("7726"),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,n){var r=n("dbdb")("keys"),i=n("62a0");e.exports=function(e){return r[e]||(r[e]=i(e))}},"584a":function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"5b4e":function(e,t,n){var r=n("36c3"),i=n("b447"),a=n("0fc9");e.exports=function(e){return function(t,n,o){var s,l=r(t),c=i(l.length),u=a(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),a=n("32e9"),o=n("2aba"),s=n("9b43"),l=function(e,t,n){var c,u,d,h,f=e&l.F,p=e&l.G,m=e&l.S,v=e&l.P,g=e&l.B,y=p?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,b=p?i:i[t]||(i[t]={}),_=b.prototype||(b.prototype={});for(c in p&&(n=t),n)d=((u=!f&&y&&void 0!==y[c])?y:n)[c],h=g&&u?s(d,r):v&&"function"==typeof d?s(Function.call,d):d,y&&o(y,c,d,e&l.U),b[c]!=d&&a(b,c,h),v&&_[c]!=d&&(_[c]=d)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"63b6":function(e,t,n){var r=n("e53d"),i=n("584a"),a=n("d864"),o=n("35e8"),s=n("07e3"),l=function(e,t,n){var c,u,d,h=e&l.F,f=e&l.G,p=e&l.S,m=e&l.P,v=e&l.B,g=e&l.W,y=f?i:i[t]||(i[t]={}),b=y.prototype,_=f?r:p?r[t]:(r[t]||{}).prototype;for(c in f&&(n=t),n)(u=!h&&_&&void 0!==_[c])&&s(y,c)||(d=u?_[c]:n[c],y[c]=f&&"function"!=typeof _[c]?n[c]:v&&u?a(d,r):g&&_[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?a(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[c]=d,e&l.R&&b&&!b[c]&&o(b,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},6718:function(e,t,n){var r=n("e53d"),i=n("584a"),a=n("b8e3"),o=n("ccb9"),s=n("d9f6").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=a?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6abf":function(e,t,n){var r=n("e6f3"),i=n("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):a(e,t)}},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7e90":function(e,t,n){var r=n("d9f6"),i=n("e4ae"),a=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,l=0;s>l;)r.f(e,n=o[l++],t[n]);return e}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"85f2":function(e,t,n){e.exports=n("454f")},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),a=n("6a99"),o=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(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}},"8aae":function(e,t,n){n("32a6"),e.exports=n("584a").Object.keys},"8bbf":function(t,n){t.exports=e},"8e60":function(e,t,n){e.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},9138:function(e,t,n){e.exports=n("35e8")},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;null==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a159:function(e,t,n){var r=n("e4ae"),i=n("7e90"),a=n("1691"),o=n("5559")("IE_PROTO"),s=function(){},l=function(){var e,t=n("1ec9")("iframe"),r=a.length;for(t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[a[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=l(),void 0===t?n:i(n,t)}},a4bb:function(e,t,n){e.exports=n("8aae")},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),a=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},b447:function(e,t,n){var r=n("3a38"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},b8e3:function(e,t){e.exports=!0},be13:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},bf0b:function(e,t,n){var r=n("355d"),i=n("aebd"),a=n("36c3"),o=n("1bc3"),s=n("07e3"),l=n("794b"),c=Object.getOwnPropertyDescriptor;t.f=n("8e60")?c:function(e,t){if(e=a(e),t=o(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},bf90:function(e,t,n){var r=n("36c3"),i=n("bf0b").f;n("ce7e")("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},c366:function(e,t,n){var r=n("6821"),i=n("9def"),a=n("77f1");e.exports=function(e){return function(t,n,o){var s,l=r(t),c=i(l.length),u=a(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c3a1:function(e,t,n){var r=n("e6f3"),i=n("1691");e.exports=Object.keys||function(e){return r(e,i)}},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ccb9:function(e,t,n){t.f=n("5168")},ce7e:function(e,t,n){var r=n("63b6"),i=n("584a"),a=n("294c");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*a((function(){n(1)})),"Object",o)}},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d3f4:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d9f6:function(e,t,n){var r=n("e4ae"),i=n("794b"),a=n("1bc3"),o=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(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}},dbdb:function(e,t,n){var r=n("584a"),i=n("e53d"),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},e265:function(e,t,n){e.exports=n("ed33")},e4ae:function(e,t,n){var r=n("f772");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(e,t,n){var r=n("07e3"),i=n("36c3"),a=n("5b4e")(!1),o=n("5559")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=o&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~a(c,n)||c.push(n));return c}},ebfd:function(e,t,n){var r=n("62a0")("meta"),i=n("f772"),a=n("07e3"),o=n("d9f6").f,s=0,l=Object.isExtensible||function(){return!0},c=!n("294c")((function(){return l(Object.preventExtensions({}))})),u=function(e){o(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!a(e,r)&&u(e),e}}},ed33:function(e,t,n){n("014b"),e.exports=n("584a").Object.getOwnPropertySymbols},f6fd:function(e,t){!function(e){var t=e.getElementsByTagName("script");"currentScript"in e||Object.defineProperty(e,"currentScript",{get:function(){try{throw new Error}catch(r){var e,n=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in t)if(t[e].src==n||"interactive"==t[e].readyState)return t[e];return null}}})}(document)},f772:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fb15:function(e,t,n){"use strict";var r;n.r(t),"undefined"!=typeof window&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var i=n("8bbf"),a=n.n(i),o=n("268f"),s=n.n(o),l=n("e265"),c=n.n(l),u=n("a4bb"),d=n.n(u),h=n("85f2"),f=n.n(h);function p(e,t,n){return t in e?f()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=d()(n);"function"==typeof c.a&&(r=r.concat(c()(n).filter((function(e){return s()(n,e).enumerable})))),r.forEach((function(t){p(e,t,n[t])}))}return e}n("6762"),n("2fdb");var v=function(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}({functional:!0,name:"Media",render:function(e,t){return["video","audio"].includes(t.props.kind.toLowerCase())?(t.props.srcObject&&(t.data.domProps={playsInline:t.props.playsInline||!0,autoplay:t.props.autoplay||!0}),t.data.domProps=m({},t.props,t.data.domProps),t.data.attrs=m({},t.data.attrs,t.props.attrs),e(t.props.kind.toLowerCase(),t.data)):e()},props:{kind:{type:String,required:!0},muted:{type:Boolean,required:!1},poster:{type:String,required:!1},src:{type:String|Array,required:!1},srcObject:{required:!1}}},void 0,void 0,!1,null,null,null).exports;a.a.component("Media",v);var g=v;t.default=g},fde4:function(e,t,n){n("bf90");var r=n("584a").Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}}})},e.exports=r(n(8))},function(e,t,n){"use strict";var r=n(19),i=n(91),a=n(96),o=n(97),s=n(34);function l(e){s.call(this,"digest"),this._hash=e}r(l,s),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new a:new l(o(e))}},function(e,t,n){(t=e.exports=n(240)).Stream=t,t.Readable=t,t.Writable=n(94),t.Duplex=n(36),t.Transform=n(243),t.PassThrough=n(337)},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(24).Buffer)},function(e,t,n){(function(t){e.exports=function(e,n){for(var r=Math.min(e.length,n.length),i=new t(r),a=0;a<r;++a)i[a]=e[a]^n[a];return i}}).call(this,n(24).Buffer)},function(e,t,n){"use strict";var r=n(33),i=n(29);function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=a,a.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,a=8;a<this.padLength;a++)r[i++]=0;return r}},function(e,t,n){var r=t;r.bignum=n(23),r.define=n(390).define,r.base=n(48),r.constants=n(268),r.decoders=n(395),r.encoders=n(397)},function(e,t,n){var r=t;r.Reporter=n(392).Reporter,r.DecoderBuffer=n(267).DecoderBuffer,r.EncoderBuffer=n(267).EncoderBuffer,r.Node=n(393)},function(e,t,n){var r=n(107),i=n(294);function a(t,n,o){return i()?e.exports=a=Reflect.construct:e.exports=a=function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&r(a,n.prototype),a},a.apply(null,arguments)}e.exports=a},function(e,t,n){e.exports=n(429)},function(e,t,n){"use strict";n.r(t),n.d(t,"registerInstallations",(function(){return G}));var r,i=n(17),a=n.n(i),o=n(26),s=n(5),l=n(28),c=n(35),u=((r={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',r["not-registered"]="Firebase Installation is not registered.",r["installation-not-found"]="Firebase Installation not found.",r["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',r["app-offline"]="Could not process request. Application offline.",r["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",r),d=new l.ErrorFactory("installations","Installations",u);function h(e){return e instanceof l.FirebaseError&&e.code.includes("request-failed")}function f(e){return"https://firebaseinstallations.googleapis.com/v1/projects/"+e.projectId+"/installations"}function p(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}function m(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,t.json()];case 1:return n=i.sent(),r=n.error,[2,d.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})]}}))}))}function v(e){var t=e.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function g(e,t){var n=t.refreshToken,r=v(e);return r.append("Authorization",function(e){return"FIS_v2 "+e}(n)),r}function y(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t;return Object(s.__generator)(this,(function(n){switch(n.label){case 0:return[4,e()];case 1:return(t=n.sent()).status>=500&&t.status<600?[2,e()]:[2,t]}}))}))}function b(e,t){var n=t.fid;return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,r,i,a,o,l;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return t=f(e),r=v(e),i={fid:n,authVersion:"FIS_v2",appId:e.appId,sdkVersion:"w:0.4.8"},a={method:"POST",headers:r,body:JSON.stringify(i)},[4,y((function(){return fetch(t,a)}))];case 1:return(o=s.sent()).ok?[4,o.json()]:[3,3];case 2:return l=s.sent(),[2,{fid:l.fid||n,registrationStatus:2,refreshToken:l.refreshToken,authToken:p(l.authToken)}];case 3:return[4,m("Create Installation",o)];case 4:throw s.sent()}}))}))}function _(e){return new Promise((function(t){setTimeout(t,e)}))}var w=/^[cdef][\w-]{21}$/;function k(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;var t=function(e){return(t=e,btoa(String.fromCharCode.apply(String,Object(s.__spread)(t))).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22);var t}(e);return w.test(t)?t:""}catch(e){return""}}function E(e){return e.appName+"!"+e.appId}var S=new Map;function T(e,t){var n=E(e);C(n,t),function(e,t){var n=x();n&&n.postMessage({key:e,fid:t});$()}(n,t)}function C(e,t){var n,r,i=S.get(e);if(i)try{for(var a=Object(s.__values)(i),o=a.next();!o.done;o=a.next()){(0,o.value)(t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}var M=null;function x(){return!M&&"BroadcastChannel"in self&&((M=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(e){C(e.data.key,e.data.fid)}),M}function $(){0===S.size&&M&&(M.close(),M=null)}var L="firebase-installations-store",P=null;function O(){return P||(P=Object(c.openDb)("firebase-installations-database",1,(function(e){switch(e.oldVersion){case 0:e.createObjectStore(L)}}))),P}function I(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a,o;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return n=E(e),[4,O()];case 1:return r=s.sent(),i=r.transaction(L,"readwrite"),[4,(a=i.objectStore(L)).get(n)];case 2:return o=s.sent(),[4,a.put(t,n)];case 3:return s.sent(),[4,i.complete];case 4:return s.sent(),o&&o.fid===t.fid||T(e,t.fid),[2,t]}}))}))}function A(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return t=E(e),[4,O()];case 1:return n=i.sent(),[4,(r=n.transaction(L,"readwrite")).objectStore(L).delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}}))}))}function D(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a,o,l;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return n=E(e),[4,O()];case 1:return r=s.sent(),i=r.transaction(L,"readwrite"),[4,(a=i.objectStore(L)).get(n)];case 2:return o=s.sent(),void 0!==(l=t(o))?[3,4]:[4,a.delete(n)];case 3:return s.sent(),[3,6];case 4:return[4,a.put(l,n)];case 5:s.sent(),s.label=6;case 6:return[4,i.complete];case 7:return s.sent(),!l||o&&o.fid===l.fid||T(e,l.fid),[2,l]}}))}))}function N(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,D(e,(function(n){var r=function(e){return Y(e||{fid:k(),registrationStatus:0})}(n),i=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine){var n=Promise.reject(d.create("app-offline"));return{installationEntry:t,registrationPromise:n}}var r={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},i=function(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,b(e,t)];case 1:return n=i.sent(),[2,I(e,n)];case 2:return h(r=i.sent())&&409===r.serverCode?[4,A(e)]:[3,4];case 3:return i.sent(),[3,6];case 4:return[4,I(e,{fid:t.fid,registrationStatus:0})];case 5:i.sent(),i.label=6;case 6:throw r;case 7:return[2]}}))}))}(e,r);return{installationEntry:r,registrationPromise:i}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:R(e)}:{installationEntry:t}}(e,r);return t=i.registrationPromise,i.installationEntry}))];case 1:return""!==(n=i.sent()).fid?[3,3]:(r={},[4,t]);case 2:return[2,(r.installationEntry=i.sent(),r)];case 3:return[2,{installationEntry:n,registrationPromise:t}]}}))}))}function R(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i;return Object(s.__generator)(this,(function(a){switch(a.label){case 0:return[4,B(e)];case 1:t=a.sent(),a.label=2;case 2:return 1!==t.registrationStatus?[3,5]:[4,_(100)];case 3:return a.sent(),[4,B(e)];case 4:return t=a.sent(),[3,2];case 5:return 0!==t.registrationStatus?[3,7]:[4,N(e)];case 6:return n=a.sent(),r=n.installationEntry,(i=n.registrationPromise)?[2,i]:[2,r];case 7:return[2,t]}}))}))}function B(e){return D(e,(function(e){if(!e)throw d.create("installation-not-found");return Y(e)}))}function Y(e){return 1===(t=e).registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}function j(e,t){var n=e.appConfig,r=e.platformLoggerProvider;return Object(s.__awaiter)(this,void 0,void 0,(function(){var e,i,a,o,l,c,u;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return e=function(e,t){var n=t.fid;return f(e)+"/"+n+"/authTokens:generate"}(n,t),i=g(n,t),(a=r.getImmediate({optional:!0}))&&i.append("x-firebase-client",a.getPlatformInfoString()),o={installation:{sdkVersion:"w:0.4.8"}},l={method:"POST",headers:i,body:JSON.stringify(o)},[4,y((function(){return fetch(e,l)}))];case 1:return(c=s.sent()).ok?[4,c.json()]:[3,3];case 2:return u=s.sent(),[2,p(u)];case 3:return[4,m("Generate Auth Token",c)];case 4:throw s.sent()}}))}))}function F(e,t){return void 0===t&&(t=!1),Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(s.__generator)(this,(function(a){switch(a.label){case 0:return[4,D(e.appConfig,(function(r){if(!U(r))throw d.create("not-registered");var i=r.authToken;if(!t&&function(e){return 2===e.requestStatus&&!function(e){var t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(e)}(i))return r;if(1===i.requestStatus)return n=function(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,H(e.appConfig)];case 1:n=i.sent(),i.label=2;case 2:return 1!==n.authToken.requestStatus?[3,5]:[4,_(100)];case 3:return i.sent(),[4,H(e.appConfig)];case 4:return n=i.sent(),[3,2];case 5:return 0===(r=n.authToken).requestStatus?[2,F(e,t)]:[2,r]}}))}))}(e,t),r;if(!navigator.onLine)throw d.create("app-offline");var a=function(e){var t={requestStatus:1,requestTime:Date.now()};return Object(s.__assign)(Object(s.__assign)({},e),{authToken:t})}(r);return n=function(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(s.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,8]),[4,j(e,t)];case 1:return n=a.sent(),i=Object(s.__assign)(Object(s.__assign)({},t),{authToken:n}),[4,I(e.appConfig,i)];case 2:return a.sent(),[2,n];case 3:return!h(r=a.sent())||401!==r.serverCode&&404!==r.serverCode?[3,5]:[4,A(e.appConfig)];case 4:return a.sent(),[3,7];case 5:return i=Object(s.__assign)(Object(s.__assign)({},t),{authToken:{requestStatus:0}}),[4,I(e.appConfig,i)];case 6:a.sent(),a.label=7;case 7:throw r;case 8:return[2]}}))}))}(e,a),a}))];case 1:return r=a.sent(),n?[4,n]:[3,3];case 2:return i=a.sent(),[3,4];case 3:i=r.authToken,a.label=4;case 4:return[2,i]}}))}))}function H(e){return D(e,(function(e){if(!U(e))throw d.create("not-registered");var t,n=e.authToken;return 1===(t=n).requestStatus&&t.requestTime+1e4<Date.now()?Object(s.__assign)(Object(s.__assign)({},e),{authToken:{requestStatus:0}}):e}))}function U(e){return void 0!==e&&2===e.registrationStatus}function z(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t;return Object(s.__generator)(this,(function(n){switch(n.label){case 0:return[4,N(e)];case 1:return(t=n.sent().registrationPromise)?[4,t]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))}function V(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return n=function(e,t){var n=t.fid;return f(e)+"/"+n}(e,t),r=g(e,t),i={method:"DELETE",headers:r},[4,y((function(){return fetch(n,i)}))];case 1:return(a=o.sent()).ok?[3,3]:[4,m("Delete Installation",a)];case 2:throw o.sent();case 3:return[2]}}))}))}function q(e,t){var n=e.appConfig;return function(e,t){x();var n=E(e),r=S.get(n);r||(r=new Set,S.set(n,r)),r.add(t)}(n,t),function(){!function(e,t){var n=E(e),r=S.get(n);r&&(r.delete(t),0===r.size&&S.delete(n),$())}(n,t)}}function W(e){return d.create("missing-app-config-values",{valueName:e})}function G(e){e.INTERNAL.registerComponent(new o.Component("installations",(function(e){var t=e.getProvider("app").getImmediate(),n={appConfig:function(e){var t,n;if(!e||!e.options)throw W("App Configuration");if(!e.name)throw W("App Name");try{for(var r=Object(s.__values)(["projectId","apiKey","appId"]),i=r.next();!i.done;i=r.next()){var a=i.value;if(!e.options[a])throw W(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),platformLoggerProvider:e.getProvider("platform-logger")};return{app:t,getId:function(){return function(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,N(e.appConfig)];case 1:return t=i.sent(),n=t.installationEntry,(r=t.registrationPromise)?r.catch(console.error):F(e).catch(console.error),[2,n.fid]}}))}))}(n)},getToken:function(e){return function(e,t){return void 0===t&&(t=!1),Object(s.__awaiter)(this,void 0,void 0,(function(){return Object(s.__generator)(this,(function(n){switch(n.label){case 0:return[4,z(e.appConfig)];case 1:return n.sent(),[4,F(e,t)];case 2:return[2,n.sent().token]}}))}))}(n,e)},delete:function(){return function(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return[4,D(t=e.appConfig,(function(e){if(!e||0!==e.registrationStatus)return e}))];case 1:if(!(n=r.sent()))return[3,6];if(1!==n.registrationStatus)return[3,2];throw d.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw d.create("app-offline");case 3:return[4,V(t,n)];case 4:return r.sent(),[4,A(t)];case 5:r.sent(),r.label=6;case 6:return[2]}}))}))}(n)},onIdChange:function(e){return q(n,e)}}}),"PUBLIC")),e.registerVersion("@firebase/installations","0.4.8")}G(a.a)},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){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return t.nextTick((function(){e.apply(null,a)}))}}}:e.exports=t}).call(this,n(25))},function(e,t,n){var r=n(20).Buffer;function i(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),i=0;i<t;i++)n[i]=e.readUInt32BE(4*i);return n}function a(e){for(;0<e.length;e++)e[0]=0}function o(e,t,n,r,i){for(var a,o,s,l,c=n[0],u=n[1],d=n[2],h=n[3],f=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],v=e[3]^t[3],g=4,y=1;y<i;y++)a=c[f>>>24]^u[p>>>16&255]^d[m>>>8&255]^h[255&v]^t[g++],o=c[p>>>24]^u[m>>>16&255]^d[v>>>8&255]^h[255&f]^t[g++],s=c[m>>>24]^u[v>>>16&255]^d[f>>>8&255]^h[255&p]^t[g++],l=c[v>>>24]^u[f>>>16&255]^d[p>>>8&255]^h[255&m]^t[g++],f=a,p=o,m=s,v=l;return a=(r[f>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&v])^t[g++],o=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[v>>>8&255]<<8|r[255&f])^t[g++],s=(r[m>>>24]<<24|r[v>>>16&255]<<16|r[f>>>8&255]<<8|r[255&p])^t[g++],l=(r[v>>>24]<<24|r[f>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^t[g++],[a>>>=0,o>>>=0,s>>>=0,l>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,l=0;l<256;++l){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,n[o]=c,r[c]=o;var u=e[o],d=e[u],h=e[d],f=257*e[c]^16843008*c;i[0][o]=f<<24|f>>>8,i[1][o]=f<<16|f>>>16,i[2][o]=f<<8|f>>>24,i[3][o]=f,f=16843009*h^65537*d^257*u^16843008*o,a[0][c]=f<<24|f>>>8,a[1][c]=f<<16|f>>>16,a[2][c]=f<<8|f>>>24,a[3][c]=f,0===o?o=s=1:(o=u^e[e[e[h^u]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:a}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],a=0;a<t;a++)i[a]=e[a];for(a=t;a<r;a++){var o=i[a-1];a%t==0?(o=o<<8|o>>>24,o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o],o^=s[a/t|0]<<24):t>6&&a%t==4&&(o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o]),i[a]=i[a-t]^o}for(var c=[],u=0;u<r;u++){var d=r-u,h=i[d-(u%4?0:4)];c[u]=u<4||d<=4?h:l.INV_SUB_MIX[0][l.SBOX[h>>>24]]^l.INV_SUB_MIX[1][l.SBOX[h>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[h>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&h]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return o(e=i(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},c.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=o(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),a=r.allocUnsafe(16);return a.writeUInt32BE(n[0],0),a.writeUInt32BE(n[3],4),a.writeUInt32BE(n[2],8),a.writeUInt32BE(n[1],12),a},c.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},e.exports.AES=c},function(e,t,n){var r=n(20).Buffer,i=n(91);e.exports=function(e,t,n,a){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=n/8,s=r.alloc(o),l=r.alloc(a||0),c=r.alloc(0);o>0||a>0;){var u=new i;u.update(c),u.update(e),t&&u.update(t),c=u.digest();var d=0;if(o>0){var h=s.length-o;d=Math.min(o,c.length),c.copy(s,h,0,d),o-=d}if(d<c.length&&a>0){var f=l.length-a,p=Math.min(a,c.length-d);c.copy(l,f,d,d+p),a-=p}}return c.fill(0),{key:s,iv:l}}},function(e,t,n){"use strict";var r=n(23),i=n(30),a=i.getNAF,o=i.getJSF,s=i.assert;function l(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=a(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;for(var o=[],l=0;l<r.length;l+=n.step){var c=0;for(t=l+n.step-1;t>=l;t--)c=(c<<1)+r[t];o.push(c)}for(var u=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=i;h>0;h--){for(l=0;l<o.length;l++){(c=o[l])===h?d=d.mixedAdd(n.points[l]):c===-h&&(d=d.mixedAdd(n.points[l].neg()))}u=u.add(d)}return u.toP()},l.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=a(t,n,this._bitLength),l=this.jpoint(null,null,null),c=o.length-1;c>=0;c--){for(t=0;c>=0&&0===o[c];c--)t++;if(c>=0&&t++,l=l.dblp(t),c<0)break;var u=o[c];s(0!==u),l="affine"===e.type?u>0?l.mixedAdd(i[u-1>>1]):l.mixedAdd(i[-u-1>>1].neg()):u>0?l.add(i[u-1>>1]):l.add(i[-u-1>>1].neg())}return"affine"===e.type?l.toP():l},l.prototype._wnafMulAdd=function(e,t,n,r,i){for(var s=this._wnafT1,l=this._wnafT2,c=this._wnafT3,u=0,d=0;d<r;d++){var h=(T=t[d])._getNAFPoints(e);s[d]=h.wnd,l[d]=h.points}for(d=r-1;d>=1;d-=2){var f=d-1,p=d;if(1===s[f]&&1===s[p]){var m=[t[f],null,null,t[p]];0===t[f].y.cmp(t[p].y)?(m[1]=t[f].add(t[p]),m[2]=t[f].toJ().mixedAdd(t[p].neg())):0===t[f].y.cmp(t[p].y.redNeg())?(m[1]=t[f].toJ().mixedAdd(t[p]),m[2]=t[f].add(t[p].neg())):(m[1]=t[f].toJ().mixedAdd(t[p]),m[2]=t[f].toJ().mixedAdd(t[p].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],g=o(n[f],n[p]);u=Math.max(g[0].length,u),c[f]=new Array(u),c[p]=new Array(u);for(var y=0;y<u;y++){var b=0|g[0][y],_=0|g[1][y];c[f][y]=v[3*(b+1)+(_+1)],c[p][y]=0,l[f]=m}}else c[f]=a(n[f],s[f],this._bitLength),c[p]=a(n[p],s[p],this._bitLength),u=Math.max(c[f].length,u),u=Math.max(c[p].length,u)}var w=this.jpoint(null,null,null),k=this._wnafT4;for(d=u;d>=0;d--){for(var E=0;d>=0;){var S=!0;for(y=0;y<r;y++)k[y]=0|c[y][d],0!==k[y]&&(S=!1);if(!S)break;E++,d--}if(d>=0&&E++,w=w.dblp(E),d<0)break;for(y=0;y<r;y++){var T,C=k[y];0!==C&&(C>0?T=l[y][C-1>>1]:C<0&&(T=l[y][-C-1>>1].neg()),w="affine"===T.type?w.mixedAdd(T):w.add(T))}}for(d=0;d<r;d++)l[d]=null;return i?w:w.toP()},l.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var a=0;a<e;a++)r=r.dbl();n.push(r)}return{step:e,points:n}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},function(e,t,n){var r=n(389),i=n(400),a=n(401),o=n(99),s=n(249),l=n(20).Buffer;function c(e){var t;"object"!=typeof e||l.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=l.from(e));var n,c,u=a(e,t),d=u.tag,h=u.data;switch(d){case"CERTIFICATE":c=r.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(c||(c=r.PublicKey.decode(h,"der")),n=c.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=r.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+d);case"ENCRYPTED PRIVATE KEY":h=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=i[e.algorithm.decrypt.cipher.algo.join(".")],c=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,d=parseInt(a.split("-")[1],10)/8,h=s.pbkdf2Sync(t,n,r,d,"sha1"),f=o.createDecipheriv(a,h,c),p=[];return p.push(f.update(u)),p.push(f.final()),l.concat(p)}(h=r.EncryptedPrivateKey.decode(h,"der"),t);case"PRIVATE KEY":switch(n=(c=r.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:r.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=r.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+d);case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=r.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+d)}}e.exports=c,c.signature=r.signature},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){(function(e,r){var i;(function(){var a="Expected a function",o="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",c="[object Array]",u="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",p="[object GeneratorFunction]",m="[object Map]",v="[object Number]",g="[object Object]",y="[object RegExp]",b="[object Set]",_="[object String]",w="[object Symbol]",k="[object WeakMap]",E="[object ArrayBuffer]",S="[object DataView]",T="[object Float32Array]",C="[object Float64Array]",M="[object Int8Array]",x="[object Int16Array]",$="[object Int32Array]",L="[object Uint8Array]",P="[object Uint16Array]",O="[object Uint32Array]",I=/\b__p \+= '';/g,A=/\b(__p \+=) '' \+/g,D=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,R=/[&<>"']/g,B=RegExp(N.source),Y=RegExp(R.source),j=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,H=/<%=([\s\S]+?)%>/g,U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,W=RegExp(q.source),G=/^\s+|\s+$/g,K=/^\s+/,J=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,ae=/^0b[01]+$/i,oe=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,de=/['\n\r\u2028\u2029\\]/g,he="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pe="[\\ud800-\\udfff]",me="["+fe+"]",ve="["+he+"]",ge="\\d+",ye="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",_e="[^\\ud800-\\udfff"+fe+ge+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",Ee="(?:\\ud83c[\\udde6-\\uddff]){2}",Se="[\\ud800-\\udbff][\\udc00-\\udfff]",Te="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ce="(?:"+be+"|"+_e+")",Me="(?:"+Te+"|"+_e+")",xe="(?:"+ve+"|"+we+")"+"?",$e="[\\ufe0e\\ufe0f]?"+xe+("(?:\\u200d(?:"+[ke,Ee,Se].join("|")+")[\\ufe0e\\ufe0f]?"+xe+")*"),Le="(?:"+[ye,Ee,Se].join("|")+")"+$e,Pe="(?:"+[ke+ve+"?",ve,Ee,Se,pe].join("|")+")",Oe=RegExp("['’]","g"),Ie=RegExp(ve,"g"),Ae=RegExp(we+"(?="+we+")|"+Pe+$e,"g"),De=RegExp([Te+"?"+be+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,Te,"$"].join("|")+")",Me+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,Te+Ce,"$"].join("|")+")",Te+"?"+Ce+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Te+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ge,Le].join("|"),"g"),Ne=RegExp("[\\u200d\\ud800-\\udfff"+he+"\\ufe0e\\ufe0f]"),Re=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Be=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ye=-1,je={};je[T]=je[C]=je[M]=je[x]=je[$]=je[L]=je["[object Uint8ClampedArray]"]=je[P]=je[O]=!0,je[l]=je[c]=je[E]=je[u]=je[S]=je[d]=je[h]=je[f]=je[m]=je[v]=je[g]=je[y]=je[b]=je[_]=je[k]=!1;var Fe={};Fe[l]=Fe[c]=Fe[E]=Fe[S]=Fe[u]=Fe[d]=Fe[T]=Fe[C]=Fe[M]=Fe[x]=Fe[$]=Fe[m]=Fe[v]=Fe[g]=Fe[y]=Fe[b]=Fe[_]=Fe[w]=Fe[L]=Fe["[object Uint8ClampedArray]"]=Fe[P]=Fe[O]=!0,Fe[h]=Fe[f]=Fe[k]=!1;var He={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ue=parseFloat,ze=parseInt,Ve="object"==typeof e&&e&&e.Object===Object&&e,qe="object"==typeof self&&self&&self.Object===Object&&self,We=Ve||qe||Function("return this")(),Ge=t&&!t.nodeType&&t,Ke=Ge&&"object"==typeof r&&r&&!r.nodeType&&r,Je=Ke&&Ke.exports===Ge,Xe=Je&&Ve.process,Qe=function(){try{var e=Ke&&Ke.require&&Ke.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Ze=Qe&&Qe.isArrayBuffer,et=Qe&&Qe.isDate,tt=Qe&&Qe.isMap,nt=Qe&&Qe.isRegExp,rt=Qe&&Qe.isSet,it=Qe&&Qe.isTypedArray;function at(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ot(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ut(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function dt(e,t){return!!(null==e?0:e.length)&&wt(e,t,0)>-1}function ht(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function ft(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function pt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function mt(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function vt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function gt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var yt=Tt("length");function bt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function _t(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function wt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):_t(e,Et,n)}function kt(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Et(e){return e!=e}function St(e,t){var n=null==e?0:e.length;return n?xt(e,t)/n:NaN}function Tt(e){return function(t){return null==t?void 0:t[e]}}function Ct(e){return function(t){return null==e?void 0:e[t]}}function Mt(e,t,n,r,i){return i(e,(function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)})),n}function xt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);void 0!==a&&(n=void 0===n?a:n+a)}return n}function $t(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Lt(e){return function(t){return e(t)}}function Pt(e,t){return ft(t,(function(t){return e[t]}))}function Ot(e,t){return e.has(t)}function It(e,t){for(var n=-1,r=e.length;++n<r&&wt(t,e[n],0)>-1;);return n}function At(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function Dt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Nt=Ct({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Rt=Ct({"&":"&","<":"<",">":">",'"':""","'":"'"});function Bt(e){return"\\"+He[e]}function Yt(e){return Ne.test(e)}function jt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ft(e,t){return function(n){return e(t(n))}}function Ht(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var s=e[n];s!==t&&s!==o||(e[n]=o,a[i++]=n)}return a}function Ut(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Vt(e){return Yt(e)?function(e){var t=Ae.lastIndex=0;for(;Ae.test(e);)++t;return t}(e):yt(e)}function qt(e){return Yt(e)?function(e){return e.match(Ae)||[]}(e):function(e){return e.split("")}(e)}var Wt=Ct({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Gt=function e(t){var n,r=(t=null==t?We:Gt.defaults(We.Object(),t,Gt.pick(We,Be))).Array,i=t.Date,he=t.Error,fe=t.Function,pe=t.Math,me=t.Object,ve=t.RegExp,ge=t.String,ye=t.TypeError,be=r.prototype,_e=fe.prototype,we=me.prototype,ke=t["__core-js_shared__"],Ee=_e.toString,Se=we.hasOwnProperty,Te=0,Ce=(n=/[^.]+$/.exec(ke&&ke.keys&&ke.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Me=we.toString,xe=Ee.call(me),$e=We._,Le=ve("^"+Ee.call(Se).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pe=Je?t.Buffer:void 0,Ae=t.Symbol,Ne=t.Uint8Array,He=Pe?Pe.allocUnsafe:void 0,Ve=Ft(me.getPrototypeOf,me),qe=me.create,Ge=we.propertyIsEnumerable,Ke=be.splice,Xe=Ae?Ae.isConcatSpreadable:void 0,Qe=Ae?Ae.iterator:void 0,yt=Ae?Ae.toStringTag:void 0,Ct=function(){try{var e=Zi(me,"defineProperty");return e({},"",{}),e}catch(e){}}(),Kt=t.clearTimeout!==We.clearTimeout&&t.clearTimeout,Jt=i&&i.now!==We.Date.now&&i.now,Xt=t.setTimeout!==We.setTimeout&&t.setTimeout,Qt=pe.ceil,Zt=pe.floor,en=me.getOwnPropertySymbols,tn=Pe?Pe.isBuffer:void 0,nn=t.isFinite,rn=be.join,an=Ft(me.keys,me),on=pe.max,sn=pe.min,ln=i.now,cn=t.parseInt,un=pe.random,dn=be.reverse,hn=Zi(t,"DataView"),fn=Zi(t,"Map"),pn=Zi(t,"Promise"),mn=Zi(t,"Set"),vn=Zi(t,"WeakMap"),gn=Zi(me,"create"),yn=vn&&new vn,bn={},_n=Ca(hn),wn=Ca(fn),kn=Ca(pn),En=Ca(mn),Sn=Ca(vn),Tn=Ae?Ae.prototype:void 0,Cn=Tn?Tn.valueOf:void 0,Mn=Tn?Tn.toString:void 0;function xn(e){if(zo(e)&&!Io(e)&&!(e instanceof On)){if(e instanceof Pn)return e;if(Se.call(e,"__wrapped__"))return Ma(e)}return new Pn(e)}var $n=function(){function e(){}return function(t){if(!Uo(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ln(){}function Pn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function On(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function In(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function An(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Dn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Dn;++t<n;)this.add(e[t])}function Rn(e){var t=this.__data__=new An(e);this.size=t.size}function Bn(e,t){var n=Io(e),r=!n&&Oo(e),i=!n&&!r&&Ro(e),a=!n&&!r&&!i&&Qo(e),o=n||r||i||a,s=o?$t(e.length,ge):[],l=s.length;for(var c in e)!t&&!Se.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||oa(c,l))||s.push(c);return s}function Yn(e){var t=e.length;return t?e[Nr(0,t-1)]:void 0}function jn(e,t){return Ea(gi(e),Kn(t,0,e.length))}function Fn(e){return Ea(gi(e))}function Hn(e,t,n){(void 0!==n&&!$o(e[t],n)||void 0===n&&!(t in e))&&Wn(e,t,n)}function Un(e,t,n){var r=e[t];Se.call(e,t)&&$o(r,n)&&(void 0!==n||t in e)||Wn(e,t,n)}function zn(e,t){for(var n=e.length;n--;)if($o(e[n][0],t))return n;return-1}function Vn(e,t,n,r){return er(e,(function(e,i,a){t(r,e,n(e),a)})),r}function qn(e,t){return e&&yi(t,_s(t),e)}function Wn(e,t,n){"__proto__"==t&&Ct?Ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Gn(e,t){for(var n=-1,i=t.length,a=r(i),o=null==e;++n<i;)a[n]=o?void 0:ms(e,t[n]);return a}function Kn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Jn(e,t,n,r,i,a){var o,s=1&t,c=2&t,h=4&t;if(n&&(o=i?n(e,r,i,a):n(e)),void 0!==o)return o;if(!Uo(e))return e;var k=Io(e);if(k){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Se.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return gi(e,o)}else{var I=na(e),A=I==f||I==p;if(Ro(e))return di(e,s);if(I==g||I==l||A&&!i){if(o=c||A?{}:ia(e),!s)return c?function(e,t){return yi(e,ta(e),t)}(e,function(e,t){return e&&yi(t,ws(t),e)}(o,e)):function(e,t){return yi(e,ea(e),t)}(e,qn(o,e))}else{if(!Fe[I])return i?e:{};o=function(e,t,n){var r=e.constructor;switch(t){case E:return hi(e);case u:case d:return new r(+e);case S:return function(e,t){var n=t?hi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case T:case C:case M:case x:case $:case L:case"[object Uint8ClampedArray]":case P:case O:return fi(e,n);case m:return new r;case v:case _:return new r(e);case y:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case w:return i=e,Cn?me(Cn.call(i)):{}}var i}(e,I,s)}}a||(a=new Rn);var D=a.get(e);if(D)return D;a.set(e,o),Ko(e)?e.forEach((function(r){o.add(Jn(r,t,n,r,e,a))})):Vo(e)&&e.forEach((function(r,i){o.set(i,Jn(r,t,n,i,e,a))}));var N=k?void 0:(h?c?qi:Vi:c?ws:_s)(e);return st(N||e,(function(r,i){N&&(r=e[i=r]),Un(o,i,Jn(r,t,n,i,e,a))})),o}function Xn(e,t,n){var r=n.length;if(null==e)return!r;for(e=me(e);r--;){var i=n[r],a=t[i],o=e[i];if(void 0===o&&!(i in e)||!a(o))return!1}return!0}function Qn(e,t,n){if("function"!=typeof e)throw new ye(a);return ba((function(){e.apply(void 0,n)}),t)}function Zn(e,t,n,r){var i=-1,a=dt,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=ft(t,Lt(n))),r?(a=ht,o=!1):t.length>=200&&(a=Ot,o=!1,t=new Nn(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,o&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else a(t,d,r)||l.push(u)}return l}xn.templateSettings={escape:j,evaluate:F,interpolate:H,variable:"",imports:{_:xn}},xn.prototype=Ln.prototype,xn.prototype.constructor=xn,Pn.prototype=$n(Ln.prototype),Pn.prototype.constructor=Pn,On.prototype=$n(Ln.prototype),On.prototype.constructor=On,In.prototype.clear=function(){this.__data__=gn?gn(null):{},this.size=0},In.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},In.prototype.get=function(e){var t=this.__data__;if(gn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Se.call(t,e)?t[e]:void 0},In.prototype.has=function(e){var t=this.__data__;return gn?void 0!==t[e]:Se.call(t,e)},In.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=gn&&void 0===t?"__lodash_hash_undefined__":t,this},An.prototype.clear=function(){this.__data__=[],this.size=0},An.prototype.delete=function(e){var t=this.__data__,n=zn(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},An.prototype.get=function(e){var t=this.__data__,n=zn(t,e);return n<0?void 0:t[n][1]},An.prototype.has=function(e){return zn(this.__data__,e)>-1},An.prototype.set=function(e,t){var n=this.__data__,r=zn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Dn.prototype.clear=function(){this.size=0,this.__data__={hash:new In,map:new(fn||An),string:new In}},Dn.prototype.delete=function(e){var t=Xi(this,e).delete(e);return this.size-=t?1:0,t},Dn.prototype.get=function(e){return Xi(this,e).get(e)},Dn.prototype.has=function(e){return Xi(this,e).has(e)},Dn.prototype.set=function(e,t){var n=Xi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Nn.prototype.add=Nn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(e){return this.__data__.has(e)},Rn.prototype.clear=function(){this.__data__=new An,this.size=0},Rn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Rn.prototype.get=function(e){return this.__data__.get(e)},Rn.prototype.has=function(e){return this.__data__.has(e)},Rn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof An){var r=n.__data__;if(!fn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dn(r)}return n.set(e,t),this.size=n.size,this};var er=wi(lr),tr=wi(cr,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function rr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(null!=o&&(void 0===s?o==o&&!Xo(o):n(o,s)))var s=o,l=a}return l}function ir(e,t){var n=[];return er(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function ar(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=aa),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?ar(s,t-1,n,r,i):pt(i,s):r||(i[i.length]=s)}return i}var or=ki(),sr=ki(!0);function lr(e,t){return e&&or(e,t,_s)}function cr(e,t){return e&&sr(e,t,_s)}function ur(e,t){return ut(t,(function(t){return jo(e[t])}))}function dr(e,t){for(var n=0,r=(t=si(t,e)).length;null!=e&&n<r;)e=e[Ta(t[n++])];return n&&n==r?e:void 0}function hr(e,t,n){var r=t(e);return Io(e)?r:pt(r,n(e))}function fr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":yt&&yt in me(e)?function(e){var t=Se.call(e,yt),n=e[yt];try{e[yt]=void 0;var r=!0}catch(e){}var i=Me.call(e);r&&(t?e[yt]=n:delete e[yt]);return i}(e):function(e){return Me.call(e)}(e)}function pr(e,t){return e>t}function mr(e,t){return null!=e&&Se.call(e,t)}function vr(e,t){return null!=e&&t in me(e)}function gr(e,t,n){for(var i=n?ht:dt,a=e[0].length,o=e.length,s=o,l=r(o),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=ft(d,Lt(t))),c=sn(d.length,c),l[s]=!n&&(t||a>=120&&d.length>=120)?new Nn(s&&d):void 0}d=e[0];var h=-1,f=l[0];e:for(;++h<a&&u.length<c;){var p=d[h],m=t?t(p):p;if(p=n||0!==p?p:0,!(f?Ot(f,m):i(u,m,n))){for(s=o;--s;){var v=l[s];if(!(v?Ot(v,m):i(e[s],m,n)))continue e}f&&f.push(m),u.push(p)}}return u}function yr(e,t,n){var r=null==(e=ma(e,t=si(t,e)))?e:e[Ta(Ba(t))];return null==r?void 0:at(r,e,n)}function br(e){return zo(e)&&fr(e)==l}function _r(e,t,n,r,i){return e===t||(null==e||null==t||!zo(e)&&!zo(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var o=Io(e),s=Io(t),f=o?c:na(e),p=s?c:na(t),k=(f=f==l?g:f)==g,T=(p=p==l?g:p)==g,C=f==p;if(C&&Ro(e)){if(!Ro(t))return!1;o=!0,k=!1}if(C&&!k)return a||(a=new Rn),o||Qo(e)?Ui(e,t,n,r,i,a):function(e,t,n,r,i,a,o){switch(n){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!a(new Ne(e),new Ne(t)));case u:case d:case v:return $o(+e,+t);case h:return e.name==t.name&&e.message==t.message;case y:case _:return e==t+"";case m:var s=jt;case b:var l=1&r;if(s||(s=Ut),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=2,o.set(e,t);var f=Ui(s(e),s(t),r,i,a,o);return o.delete(e),f;case w:if(Cn)return Cn.call(e)==Cn.call(t)}return!1}(e,t,f,n,r,i,a);if(!(1&n)){var M=k&&Se.call(e,"__wrapped__"),x=T&&Se.call(t,"__wrapped__");if(M||x){var $=M?e.value():e,L=x?t.value():t;return a||(a=new Rn),i($,L,n,r,a)}}if(!C)return!1;return a||(a=new Rn),function(e,t,n,r,i,a){var o=1&n,s=Vi(e),l=s.length,c=Vi(t).length;if(l!=c&&!o)return!1;var u=l;for(;u--;){var d=s[u];if(!(o?d in t:Se.call(t,d)))return!1}var h=a.get(e);if(h&&a.get(t))return h==t;var f=!0;a.set(e,t),a.set(t,e);var p=o;for(;++u<l;){d=s[u];var m=e[d],v=t[d];if(r)var g=o?r(v,m,d,t,e,a):r(m,v,d,e,t,a);if(!(void 0===g?m===v||i(m,v,n,r,a):g)){f=!1;break}p||(p="constructor"==d)}if(f&&!p){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(f=!1)}return a.delete(e),a.delete(t),f}(e,t,n,r,i,a)}(e,t,n,r,_r,i))}function wr(e,t,n,r){var i=n.length,a=i,o=!r;if(null==e)return!a;for(e=me(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var l=(s=n[i])[0],c=e[l],u=s[1];if(o&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new Rn;if(r)var h=r(c,u,l,e,t,d);if(!(void 0===h?_r(u,c,3,r,d):h))return!1}}return!0}function kr(e){return!(!Uo(e)||(t=e,Ce&&Ce in t))&&(jo(e)?Le:oe).test(Ca(e));var t}function Er(e){return"function"==typeof e?e:null==e?qs:"object"==typeof e?Io(e)?$r(e[0],e[1]):xr(e):tl(e)}function Sr(e){if(!da(e))return an(e);var t=[];for(var n in me(e))Se.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Tr(e){if(!Uo(e))return function(e){var t=[];if(null!=e)for(var n in me(e))t.push(n);return t}(e);var t=da(e),n=[];for(var r in e)("constructor"!=r||!t&&Se.call(e,r))&&n.push(r);return n}function Cr(e,t){return e<t}function Mr(e,t){var n=-1,i=Do(e)?r(e.length):[];return er(e,(function(e,r,a){i[++n]=t(e,r,a)})),i}function xr(e){var t=Qi(e);return 1==t.length&&t[0][2]?fa(t[0][0],t[0][1]):function(n){return n===e||wr(n,e,t)}}function $r(e,t){return la(e)&&ha(t)?fa(Ta(e),t):function(n){var r=ms(n,e);return void 0===r&&r===t?vs(n,e):_r(t,r,3)}}function Lr(e,t,n,r,i){e!==t&&or(t,(function(a,o){if(i||(i=new Rn),Uo(a))!function(e,t,n,r,i,a,o){var s=ga(e,n),l=ga(t,n),c=o.get(l);if(c)return void Hn(e,n,c);var u=a?a(s,l,n+"",e,t,o):void 0,d=void 0===u;if(d){var h=Io(l),f=!h&&Ro(l),p=!h&&!f&&Qo(l);u=l,h||f||p?Io(s)?u=s:No(s)?u=gi(s):f?(d=!1,u=di(l,!0)):p?(d=!1,u=fi(l,!0)):u=[]:Wo(l)||Oo(l)?(u=s,Oo(s)?u=os(s):Uo(s)&&!jo(s)||(u=ia(l))):d=!1}d&&(o.set(l,u),i(u,l,r,a,o),o.delete(l));Hn(e,n,u)}(e,t,o,n,Lr,r,i);else{var s=r?r(ga(e,o),a,o+"",e,t,i):void 0;void 0===s&&(s=a),Hn(e,o,s)}}),ws)}function Pr(e,t){var n=e.length;if(n)return oa(t+=t<0?n:0,n)?e[t]:void 0}function Or(e,t,n){var r=-1;return t=ft(t.length?t:[qs],Lt(Ji())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Mr(e,(function(e,n,i){return{criteria:ft(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;for(;++r<o;){var l=pi(i[r],a[r]);if(l){if(r>=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function Ir(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=dr(e,o);n(s,o)&&Fr(a,si(o,e),s)}return a}function Ar(e,t,n,r){var i=r?kt:wt,a=-1,o=t.length,s=e;for(e===t&&(t=gi(t)),n&&(s=ft(e,Lt(n)));++a<o;)for(var l=0,c=t[a],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function Dr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;oa(i)?Ke.call(e,i,1):Zr(e,i)}}return e}function Nr(e,t){return e+Zt(un()*(t-e+1))}function Rr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Zt(t/2))&&(e+=e)}while(t);return n}function Br(e,t){return _a(pa(e,t,qs),e+"")}function Yr(e){return Yn($s(e))}function jr(e,t){var n=$s(e);return Ea(n,Kn(t,0,n.length))}function Fr(e,t,n,r){if(!Uo(e))return e;for(var i=-1,a=(t=si(t,e)).length,o=a-1,s=e;null!=s&&++i<a;){var l=Ta(t[i]),c=n;if(i!=o){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=Uo(u)?u:oa(t[i+1])?[]:{})}Un(s,l,c),s=s[l]}return e}var Hr=yn?function(e,t){return yn.set(e,t),e}:qs,Ur=Ct?function(e,t){return Ct(e,"toString",{configurable:!0,enumerable:!1,value:Us(t),writable:!0})}:qs;function zr(e){return Ea($s(e))}function Vr(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=r(a);++i<a;)o[i]=e[i+t];return o}function qr(e,t){var n;return er(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Wr(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=e[a];null!==o&&!Xo(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return Gr(e,t,qs,n)}function Gr(e,t,n,r){t=n(t);for(var i=0,a=null==e?0:e.length,o=t!=t,s=null===t,l=Xo(t),c=void 0===t;i<a;){var u=Zt((i+a)/2),d=n(e[u]),h=void 0!==d,f=null===d,p=d==d,m=Xo(d);if(o)var v=r||p;else v=c?p&&(r||h):s?p&&h&&(r||!f):l?p&&h&&!f&&(r||!m):!f&&!m&&(r?d<=t:d<t);v?i=u+1:a=u}return sn(a,4294967294)}function Kr(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!$o(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function Jr(e){return"number"==typeof e?e:Xo(e)?NaN:+e}function Xr(e){if("string"==typeof e)return e;if(Io(e))return ft(e,Xr)+"";if(Xo(e))return Mn?Mn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Qr(e,t,n){var r=-1,i=dt,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=ht;else if(a>=200){var c=t?null:Ri(e);if(c)return Ut(c);o=!1,i=Ot,l=new Nn}else l=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,o&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function Zr(e,t){return null==(e=ma(e,t=si(t,e)))||delete e[Ta(Ba(t))]}function ei(e,t,n,r){return Fr(e,t,n(dr(e,t)),r)}function ti(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?Vr(e,r?0:a,r?a+1:i):Vr(e,r?a+1:0,r?i:a)}function ni(e,t){var n=e;return n instanceof On&&(n=n.value()),mt(t,(function(e,t){return t.func.apply(t.thisArg,pt([e],t.args))}),n)}function ri(e,t,n){var i=e.length;if(i<2)return i?Qr(e[0]):[];for(var a=-1,o=r(i);++a<i;)for(var s=e[a],l=-1;++l<i;)l!=a&&(o[a]=Zn(o[a]||s,e[l],t,n));return Qr(ar(o,1),t,n)}function ii(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}function ai(e){return No(e)?e:[]}function oi(e){return"function"==typeof e?e:qs}function si(e,t){return Io(e)?e:la(e,t)?[e]:Sa(ss(e))}var li=Br;function ci(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Vr(e,t,n)}var ui=Kt||function(e){return We.clearTimeout(e)};function di(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function hi(e){var t=new e.constructor(e.byteLength);return new Ne(t).set(new Ne(e)),t}function fi(e,t){var n=t?hi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function pi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,a=Xo(e),o=void 0!==t,s=null===t,l=t==t,c=Xo(t);if(!s&&!c&&!a&&e>t||a&&o&&l&&!s&&!c||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}function mi(e,t,n,i){for(var a=-1,o=e.length,s=n.length,l=-1,c=t.length,u=on(o-s,0),d=r(c+u),h=!i;++l<c;)d[l]=t[l];for(;++a<s;)(h||a<o)&&(d[n[a]]=e[a]);for(;u--;)d[l++]=e[a++];return d}function vi(e,t,n,i){for(var a=-1,o=e.length,s=-1,l=n.length,c=-1,u=t.length,d=on(o-l,0),h=r(d+u),f=!i;++a<d;)h[a]=e[a];for(var p=a;++c<u;)h[p+c]=t[c];for(;++s<l;)(f||a<o)&&(h[p+n[s]]=e[a++]);return h}function gi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function yi(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?Wn(n,s,l):Un(n,s,l)}return n}function bi(e,t){return function(n,r){var i=Io(n)?ot:Vn,a=t?t():{};return i(n,e,Ji(r,2),a)}}function _i(e){return Br((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,o&&sa(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=me(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t}))}function wi(e,t){return function(n,r){if(null==n)return n;if(!Do(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=me(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function ki(e){return function(t,n,r){for(var i=-1,a=me(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}function Ei(e){return function(t){var n=Yt(t=ss(t))?qt(t):void 0,r=n?n[0]:t.charAt(0),i=n?ci(n,1).join(""):t.slice(1);return r[e]()+i}}function Si(e){return function(t){return mt(js(Os(t).replace(Oe,"")),e,"")}}function Ti(e){return function(){var t=arguments;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]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=$n(e.prototype),r=e.apply(n,t);return Uo(r)?r:n}}function Ci(e){return function(t,n,r){var i=me(t);if(!Do(t)){var a=Ji(n,3);t=_s(t),n=function(e){return a(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}function Mi(e){return zi((function(t){var n=t.length,r=n,i=Pn.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new ye(a);if(i&&!s&&"wrapper"==Gi(o))var s=new Pn([],!0)}for(r=s?r:n;++r<n;){var l=Gi(o=t[r]),c="wrapper"==l?Wi(o):void 0;s=c&&ca(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[Gi(c[0])].apply(s,c[3]):1==o.length&&ca(o)?s[l]():s.thru(o)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Io(r))return s.plant(r).value();for(var i=0,a=n?t[i].apply(this,e):r;++i<n;)a=t[i].call(this,a);return a}}))}function xi(e,t,n,i,a,o,s,l,c,u){var d=128&t,h=1&t,f=2&t,p=24&t,m=512&t,v=f?void 0:Ti(e);return function g(){for(var y=arguments.length,b=r(y),_=y;_--;)b[_]=arguments[_];if(p)var w=Ki(g),k=Dt(b,w);if(i&&(b=mi(b,i,a,p)),o&&(b=vi(b,o,s,p)),y-=k,p&&y<u){var E=Ht(b,w);return Di(e,t,xi,g.placeholder,n,b,E,l,c,u-y)}var S=h?n:this,T=f?S[e]:e;return y=b.length,l?b=va(b,l):m&&y>1&&b.reverse(),d&&c<y&&(b.length=c),this&&this!==We&&this instanceof g&&(T=v||Ti(T)),T.apply(S,b)}}function $i(e,t){return function(n,r){return function(e,t,n,r){return lr(e,(function(e,i,a){t(r,n(e),i,a)})),r}(n,e,t(r),{})}}function Li(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Xr(n),r=Xr(r)):(n=Jr(n),r=Jr(r)),i=e(n,r)}return i}}function Pi(e){return zi((function(t){return t=ft(t,Lt(Ji())),Br((function(n){var r=this;return e(t,(function(e){return at(e,r,n)}))}))}))}function Oi(e,t){var n=(t=void 0===t?" ":Xr(t)).length;if(n<2)return n?Rr(t,e):t;var r=Rr(t,Qt(e/Vt(t)));return Yt(t)?ci(qt(r),0,e).join(""):r.slice(0,e)}function Ii(e){return function(t,n,i){return i&&"number"!=typeof i&&sa(t,n,i)&&(n=i=void 0),t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n,i){for(var a=-1,o=on(Qt((t-e)/(n||1)),0),s=r(o);o--;)s[i?o:++a]=e,e+=n;return s}(t,n,i=void 0===i?t<n?1:-1:ns(i),e)}}function Ai(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=as(t),n=as(n)),e(t,n)}}function Di(e,t,n,r,i,a,o,s,l,c){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=[e,t,i,u?a:void 0,u?o:void 0,u?void 0:a,u?void 0:o,s,l,c],h=n.apply(void 0,d);return ca(e)&&ya(h,d),h.placeholder=r,wa(h,e,t)}function Ni(e){var t=pe[e];return function(e,n){if(e=as(e),(n=null==n?0:sn(rs(n),292))&&nn(e)){var r=(ss(e)+"e").split("e");return+((r=(ss(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ri=mn&&1/Ut(new mn([,-0]))[1]==1/0?function(e){return new mn(e)}:Xs;function Bi(e){return function(t){var n=na(t);return n==m?jt(t):n==b?zt(t):function(e,t){return ft(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Yi(e,t,n,i,s,l,c,u){var d=2&t;if(!d&&"function"!=typeof e)throw new ye(a);var h=i?i.length:0;if(h||(t&=-97,i=s=void 0),c=void 0===c?c:on(rs(c),0),u=void 0===u?u:rs(u),h-=s?s.length:0,64&t){var f=i,p=s;i=s=void 0}var m=d?void 0:Wi(e),v=[e,t,n,i,s,f,p,l,c,u];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?mi(c,l,t[4]):l,e[4]=c?Ht(e[3],o):t[4]}(l=t[5])&&(c=e[5],e[5]=c?vi(c,l,t[6]):l,e[6]=c?Ht(e[5],o):t[6]);(l=t[7])&&(e[7]=l);128&r&&(e[8]=null==e[8]?t[8]:sn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(v,m),e=v[0],t=v[1],n=v[2],i=v[3],s=v[4],!(u=v[9]=void 0===v[9]?d?0:e.length:on(v[9]-h,0))&&24&t&&(t&=-25),t&&1!=t)g=8==t||16==t?function(e,t,n){var i=Ti(e);return function a(){for(var o=arguments.length,s=r(o),l=o,c=Ki(a);l--;)s[l]=arguments[l];var u=o<3&&s[0]!==c&&s[o-1]!==c?[]:Ht(s,c);if((o-=u.length)<n)return Di(e,t,xi,a.placeholder,void 0,s,u,void 0,void 0,n-o);var d=this&&this!==We&&this instanceof a?i:e;return at(d,this,s)}}(e,t,u):32!=t&&33!=t||s.length?xi.apply(void 0,v):function(e,t,n,i){var a=1&t,o=Ti(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=i.length,d=r(u+l),h=this&&this!==We&&this instanceof t?o:e;++c<u;)d[c]=i[c];for(;l--;)d[c++]=arguments[++s];return at(h,a?n:this,d)}}(e,t,n,i);else var g=function(e,t,n){var r=1&t,i=Ti(e);return function t(){var a=this&&this!==We&&this instanceof t?i:e;return a.apply(r?n:this,arguments)}}(e,t,n);return wa((m?Hr:ya)(g,v),e,t)}function ji(e,t,n,r){return void 0===e||$o(e,we[n])&&!Se.call(r,n)?t:e}function Fi(e,t,n,r,i,a){return Uo(e)&&Uo(t)&&(a.set(t,e),Lr(e,t,void 0,Fi,a),a.delete(t)),e}function Hi(e){return Wo(e)?void 0:e}function Ui(e,t,n,r,i,a){var o=1&n,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var u=-1,d=!0,h=2&n?new Nn:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var f=e[u],p=t[u];if(r)var m=o?r(p,f,u,t,e,a):r(f,p,u,e,t,a);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!gt(t,(function(e,t){if(!Ot(h,t)&&(f===e||i(f,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(f!==p&&!i(f,p,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function zi(e){return _a(pa(e,void 0,Ia),e+"")}function Vi(e){return hr(e,_s,ea)}function qi(e){return hr(e,ws,ta)}var Wi=yn?function(e){return yn.get(e)}:Xs;function Gi(e){for(var t=e.name+"",n=bn[t],r=Se.call(bn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function Ki(e){return(Se.call(xn,"placeholder")?xn:e).placeholder}function Ji(){var e=xn.iteratee||Ws;return e=e===Ws?Er:e,arguments.length?e(arguments[0],arguments[1]):e}function Xi(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Qi(e){for(var t=_s(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ha(i)]}return t}function Zi(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return kr(n)?n:void 0}var ea=en?function(e){return null==e?[]:(e=me(e),ut(en(e),(function(t){return Ge.call(e,t)})))}:il,ta=en?function(e){for(var t=[];e;)pt(t,ea(e)),e=Ve(e);return t}:il,na=fr;function ra(e,t,n){for(var r=-1,i=(t=si(t,e)).length,a=!1;++r<i;){var o=Ta(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&Ho(i)&&oa(o,i)&&(Io(e)||Oo(e))}function ia(e){return"function"!=typeof e.constructor||da(e)?{}:$n(Ve(e))}function aa(e){return Io(e)||Oo(e)||!!(Xe&&e&&e[Xe])}function oa(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&le.test(e))&&e>-1&&e%1==0&&e<t}function sa(e,t,n){if(!Uo(n))return!1;var r=typeof t;return!!("number"==r?Do(n)&&oa(t,n.length):"string"==r&&t in n)&&$o(n[t],e)}function la(e,t){if(Io(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Xo(e))||(z.test(e)||!U.test(e)||null!=t&&e in me(t))}function ca(e){var t=Gi(e),n=xn[t];if("function"!=typeof n||!(t in On.prototype))return!1;if(e===n)return!0;var r=Wi(n);return!!r&&e===r[0]}(hn&&na(new hn(new ArrayBuffer(1)))!=S||fn&&na(new fn)!=m||pn&&"[object Promise]"!=na(pn.resolve())||mn&&na(new mn)!=b||vn&&na(new vn)!=k)&&(na=function(e){var t=fr(e),n=t==g?e.constructor:void 0,r=n?Ca(n):"";if(r)switch(r){case _n:return S;case wn:return m;case kn:return"[object Promise]";case En:return b;case Sn:return k}return t});var ua=ke?jo:al;function da(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function ha(e){return e==e&&!Uo(e)}function fa(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in me(n)))}}function pa(e,t,n){return t=on(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,o=on(i.length-t,0),s=r(o);++a<o;)s[a]=i[t+a];a=-1;for(var l=r(t+1);++a<t;)l[a]=i[a];return l[t]=n(s),at(e,this,l)}}function ma(e,t){return t.length<2?e:dr(e,Vr(t,0,-1))}function va(e,t){for(var n=e.length,r=sn(t.length,n),i=gi(e);r--;){var a=t[r];e[r]=oa(a,n)?i[a]:void 0}return e}function ga(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ya=ka(Hr),ba=Xt||function(e,t){return We.setTimeout(e,t)},_a=ka(Ur);function wa(e,t,n){var r=t+"";return _a(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(X,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Q);return t?t[1].split(Z):[]}(r),n)))}function ka(e){var t=0,n=0;return function(){var r=ln(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ea(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var a=Nr(n,i),o=e[a];e[a]=e[n],e[n]=o}return e.length=t,e}var Sa=function(e){var t=Eo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(V,(function(e,n,r,i){t.push(r?i.replace(te,"$1"):n||e)})),t}));function Ta(e){if("string"==typeof e||Xo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ca(e){if(null!=e){try{return Ee.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ma(e){if(e instanceof On)return e.clone();var t=new Pn(e.__wrapped__,e.__chain__);return t.__actions__=gi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var xa=Br((function(e,t){return No(e)?Zn(e,ar(t,1,No,!0)):[]})),$a=Br((function(e,t){var n=Ba(t);return No(n)&&(n=void 0),No(e)?Zn(e,ar(t,1,No,!0),Ji(n,2)):[]})),La=Br((function(e,t){var n=Ba(t);return No(n)&&(n=void 0),No(e)?Zn(e,ar(t,1,No,!0),void 0,n):[]}));function Pa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=on(r+i,0)),_t(e,Ji(t,3),i)}function Oa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=rs(n),i=n<0?on(r+i,0):sn(i,r-1)),_t(e,Ji(t,3),i,!0)}function Ia(e){return(null==e?0:e.length)?ar(e,1):[]}function Aa(e){return e&&e.length?e[0]:void 0}var Da=Br((function(e){var t=ft(e,ai);return t.length&&t[0]===e[0]?gr(t):[]})),Na=Br((function(e){var t=Ba(e),n=ft(e,ai);return t===Ba(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?gr(n,Ji(t,2)):[]})),Ra=Br((function(e){var t=Ba(e),n=ft(e,ai);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?gr(n,void 0,t):[]}));function Ba(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Ya=Br(ja);function ja(e,t){return e&&e.length&&t&&t.length?Ar(e,t):e}var Fa=zi((function(e,t){var n=null==e?0:e.length,r=Gn(e,t);return Dr(e,ft(t,(function(e){return oa(e,n)?+e:e})).sort(pi)),r}));function Ha(e){return null==e?e:dn.call(e)}var Ua=Br((function(e){return Qr(ar(e,1,No,!0))})),za=Br((function(e){var t=Ba(e);return No(t)&&(t=void 0),Qr(ar(e,1,No,!0),Ji(t,2))})),Va=Br((function(e){var t=Ba(e);return t="function"==typeof t?t:void 0,Qr(ar(e,1,No,!0),void 0,t)}));function qa(e){if(!e||!e.length)return[];var t=0;return e=ut(e,(function(e){if(No(e))return t=on(e.length,t),!0})),$t(t,(function(t){return ft(e,Tt(t))}))}function Wa(e,t){if(!e||!e.length)return[];var n=qa(e);return null==t?n:ft(n,(function(e){return at(t,void 0,e)}))}var Ga=Br((function(e,t){return No(e)?Zn(e,t):[]})),Ka=Br((function(e){return ri(ut(e,No))})),Ja=Br((function(e){var t=Ba(e);return No(t)&&(t=void 0),ri(ut(e,No),Ji(t,2))})),Xa=Br((function(e){var t=Ba(e);return t="function"==typeof t?t:void 0,ri(ut(e,No),void 0,t)})),Qa=Br(qa);var Za=Br((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Wa(e,n)}));function eo(e){var t=xn(e);return t.__chain__=!0,t}function to(e,t){return t(e)}var no=zi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Gn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof On&&oa(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:to,args:[i],thisArg:void 0}),new Pn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var ro=bi((function(e,t,n){Se.call(e,n)?++e[n]:Wn(e,n,1)}));var io=Ci(Pa),ao=Ci(Oa);function oo(e,t){return(Io(e)?st:er)(e,Ji(t,3))}function so(e,t){return(Io(e)?lt:tr)(e,Ji(t,3))}var lo=bi((function(e,t,n){Se.call(e,n)?e[n].push(t):Wn(e,n,[t])}));var co=Br((function(e,t,n){var i=-1,a="function"==typeof t,o=Do(e)?r(e.length):[];return er(e,(function(e){o[++i]=a?at(t,e,n):yr(e,t,n)})),o})),uo=bi((function(e,t,n){Wn(e,n,t)}));function ho(e,t){return(Io(e)?ft:Mr)(e,Ji(t,3))}var fo=bi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var po=Br((function(e,t){if(null==e)return[];var n=t.length;return n>1&&sa(e,t[0],t[1])?t=[]:n>2&&sa(t[0],t[1],t[2])&&(t=[t[0]]),Or(e,ar(t,1),[])})),mo=Jt||function(){return We.Date.now()};function vo(e,t,n){return t=n?void 0:t,Yi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function go(e,t){var n;if("function"!=typeof t)throw new ye(a);return e=rs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var yo=Br((function(e,t,n){var r=1;if(n.length){var i=Ht(n,Ki(yo));r|=32}return Yi(e,r,t,n,i)})),bo=Br((function(e,t,n){var r=3;if(n.length){var i=Ht(n,Ki(bo));r|=32}return Yi(t,r,e,n,i)}));function _o(e,t,n){var r,i,o,s,l,c,u=0,d=!1,h=!1,f=!0;if("function"!=typeof e)throw new ye(a);function p(t){var n=r,a=i;return r=i=void 0,u=t,s=e.apply(a,n)}function m(e){return u=e,l=ba(g,t),d?p(e):s}function v(e){var n=e-c;return void 0===c||n>=t||n<0||h&&e-u>=o}function g(){var e=mo();if(v(e))return y(e);l=ba(g,function(e){var n=t-(e-c);return h?sn(n,o-(e-u)):n}(e))}function y(e){return l=void 0,f&&r?p(e):(r=i=void 0,s)}function b(){var e=mo(),n=v(e);if(r=arguments,i=this,c=e,n){if(void 0===l)return m(c);if(h)return ui(l),l=ba(g,t),p(c)}return void 0===l&&(l=ba(g,t)),s}return t=as(t)||0,Uo(n)&&(d=!!n.leading,o=(h="maxWait"in n)?on(as(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),b.cancel=function(){void 0!==l&&ui(l),u=0,r=c=i=l=void 0},b.flush=function(){return void 0===l?s:y(mo())},b}var wo=Br((function(e,t){return Qn(e,1,t)})),ko=Br((function(e,t,n){return Qn(e,as(t)||0,n)}));function Eo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ye(a);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Eo.Cache||Dn),n}function So(e){if("function"!=typeof e)throw new ye(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Eo.Cache=Dn;var To=li((function(e,t){var n=(t=1==t.length&&Io(t[0])?ft(t[0],Lt(Ji())):ft(ar(t,1),Lt(Ji()))).length;return Br((function(r){for(var i=-1,a=sn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return at(e,this,r)}))})),Co=Br((function(e,t){return Yi(e,32,void 0,t,Ht(t,Ki(Co)))})),Mo=Br((function(e,t){return Yi(e,64,void 0,t,Ht(t,Ki(Mo)))})),xo=zi((function(e,t){return Yi(e,256,void 0,void 0,void 0,t)}));function $o(e,t){return e===t||e!=e&&t!=t}var Lo=Ai(pr),Po=Ai((function(e,t){return e>=t})),Oo=br(function(){return arguments}())?br:function(e){return zo(e)&&Se.call(e,"callee")&&!Ge.call(e,"callee")},Io=r.isArray,Ao=Ze?Lt(Ze):function(e){return zo(e)&&fr(e)==E};function Do(e){return null!=e&&Ho(e.length)&&!jo(e)}function No(e){return zo(e)&&Do(e)}var Ro=tn||al,Bo=et?Lt(et):function(e){return zo(e)&&fr(e)==d};function Yo(e){if(!zo(e))return!1;var t=fr(e);return t==h||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Wo(e)}function jo(e){if(!Uo(e))return!1;var t=fr(e);return t==f||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Fo(e){return"number"==typeof e&&e==rs(e)}function Ho(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Uo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function zo(e){return null!=e&&"object"==typeof e}var Vo=tt?Lt(tt):function(e){return zo(e)&&na(e)==m};function qo(e){return"number"==typeof e||zo(e)&&fr(e)==v}function Wo(e){if(!zo(e)||fr(e)!=g)return!1;var t=Ve(e);if(null===t)return!0;var n=Se.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ee.call(n)==xe}var Go=nt?Lt(nt):function(e){return zo(e)&&fr(e)==y};var Ko=rt?Lt(rt):function(e){return zo(e)&&na(e)==b};function Jo(e){return"string"==typeof e||!Io(e)&&zo(e)&&fr(e)==_}function Xo(e){return"symbol"==typeof e||zo(e)&&fr(e)==w}var Qo=it?Lt(it):function(e){return zo(e)&&Ho(e.length)&&!!je[fr(e)]};var Zo=Ai(Cr),es=Ai((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(Do(e))return Jo(e)?qt(e):gi(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=na(e);return(t==m?jt:t==b?Ut:$s)(e)}function ns(e){return e?(e=as(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function rs(e){var t=ns(e),n=t%1;return t==t?n?t-n:t:0}function is(e){return e?Kn(rs(e),0,4294967295):0}function as(e){if("number"==typeof e)return e;if(Xo(e))return NaN;if(Uo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Uo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(G,"");var n=ae.test(e);return n||se.test(e)?ze(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function os(e){return yi(e,ws(e))}function ss(e){return null==e?"":Xr(e)}var ls=_i((function(e,t){if(da(t)||Do(t))yi(t,_s(t),e);else for(var n in t)Se.call(t,n)&&Un(e,n,t[n])})),cs=_i((function(e,t){yi(t,ws(t),e)})),us=_i((function(e,t,n,r){yi(t,ws(t),e,r)})),ds=_i((function(e,t,n,r){yi(t,_s(t),e,r)})),hs=zi(Gn);var fs=Br((function(e,t){e=me(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&sa(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],o=ws(a),s=-1,l=o.length;++s<l;){var c=o[s],u=e[c];(void 0===u||$o(u,we[c])&&!Se.call(e,c))&&(e[c]=a[c])}return e})),ps=Br((function(e){return e.push(void 0,Fi),at(Es,void 0,e)}));function ms(e,t,n){var r=null==e?void 0:dr(e,t);return void 0===r?n:r}function vs(e,t){return null!=e&&ra(e,t,vr)}var gs=$i((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),e[t]=n}),Us(qs)),ys=$i((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),Se.call(e,t)?e[t].push(n):e[t]=[n]}),Ji),bs=Br(yr);function _s(e){return Do(e)?Bn(e):Sr(e)}function ws(e){return Do(e)?Bn(e,!0):Tr(e)}var ks=_i((function(e,t,n){Lr(e,t,n)})),Es=_i((function(e,t,n,r){Lr(e,t,n,r)})),Ss=zi((function(e,t){var n={};if(null==e)return n;var r=!1;t=ft(t,(function(t){return t=si(t,e),r||(r=t.length>1),t})),yi(e,qi(e),n),r&&(n=Jn(n,7,Hi));for(var i=t.length;i--;)Zr(n,t[i]);return n}));var Ts=zi((function(e,t){return null==e?{}:function(e,t){return Ir(e,t,(function(t,n){return vs(e,n)}))}(e,t)}));function Cs(e,t){if(null==e)return{};var n=ft(qi(e),(function(e){return[e]}));return t=Ji(t),Ir(e,n,(function(e,n){return t(e,n[0])}))}var Ms=Bi(_s),xs=Bi(ws);function $s(e){return null==e?[]:Pt(e,_s(e))}var Ls=Si((function(e,t,n){return t=t.toLowerCase(),e+(n?Ps(t):t)}));function Ps(e){return Ys(ss(e).toLowerCase())}function Os(e){return(e=ss(e))&&e.replace(ce,Nt).replace(Ie,"")}var Is=Si((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),As=Si((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ds=Ei("toLowerCase");var Ns=Si((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Rs=Si((function(e,t,n){return e+(n?" ":"")+Ys(t)}));var Bs=Si((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ys=Ei("toUpperCase");function js(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return Re.test(e)}(e)?function(e){return e.match(De)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Fs=Br((function(e,t){try{return at(e,void 0,t)}catch(e){return Yo(e)?e:new he(e)}})),Hs=zi((function(e,t){return st(t,(function(t){t=Ta(t),Wn(e,t,yo(e[t],e))})),e}));function Us(e){return function(){return e}}var zs=Mi(),Vs=Mi(!0);function qs(e){return e}function Ws(e){return Er("function"==typeof e?e:Jn(e,1))}var Gs=Br((function(e,t){return function(n){return yr(n,e,t)}})),Ks=Br((function(e,t){return function(n){return yr(e,n,t)}}));function Js(e,t,n){var r=_s(t),i=ur(t,r);null!=n||Uo(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=ur(t,_s(t)));var a=!(Uo(n)&&"chain"in n&&!n.chain),o=jo(e);return st(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),i=n.__actions__=gi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pt([this.value()],arguments))})})),e}function Xs(){}var Qs=Pi(ft),Zs=Pi(ct),el=Pi(gt);function tl(e){return la(e)?Tt(Ta(e)):function(e){return function(t){return dr(t,e)}}(e)}var nl=Ii(),rl=Ii(!0);function il(){return[]}function al(){return!1}var ol=Li((function(e,t){return e+t}),0),sl=Ni("ceil"),ll=Li((function(e,t){return e/t}),1),cl=Ni("floor");var ul,dl=Li((function(e,t){return e*t}),1),hl=Ni("round"),fl=Li((function(e,t){return e-t}),0);return xn.after=function(e,t){if("function"!=typeof t)throw new ye(a);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},xn.ary=vo,xn.assign=ls,xn.assignIn=cs,xn.assignInWith=us,xn.assignWith=ds,xn.at=hs,xn.before=go,xn.bind=yo,xn.bindAll=Hs,xn.bindKey=bo,xn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Io(e)?e:[e]},xn.chain=eo,xn.chunk=function(e,t,n){t=(n?sa(e,t,n):void 0===t)?1:on(rs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=r(Qt(i/t));a<i;)s[o++]=Vr(e,a,a+=t);return s},xn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},xn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return pt(Io(n)?gi(n):[n],ar(t,1))},xn.cond=function(e){var t=null==e?0:e.length,n=Ji();return e=t?ft(e,(function(e){if("function"!=typeof e[1])throw new ye(a);return[n(e[0]),e[1]]})):[],Br((function(n){for(var r=-1;++r<t;){var i=e[r];if(at(i[0],this,n))return at(i[1],this,n)}}))},xn.conforms=function(e){return function(e){var t=_s(e);return function(n){return Xn(n,e,t)}}(Jn(e,1))},xn.constant=Us,xn.countBy=ro,xn.create=function(e,t){var n=$n(e);return null==t?n:qn(n,t)},xn.curry=function e(t,n,r){var i=Yi(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},xn.curryRight=function e(t,n,r){var i=Yi(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},xn.debounce=_o,xn.defaults=fs,xn.defaultsDeep=ps,xn.defer=wo,xn.delay=ko,xn.difference=xa,xn.differenceBy=$a,xn.differenceWith=La,xn.drop=function(e,t,n){var r=null==e?0:e.length;return r?Vr(e,(t=n||void 0===t?1:rs(t))<0?0:t,r):[]},xn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Vr(e,0,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t):[]},xn.dropRightWhile=function(e,t){return e&&e.length?ti(e,Ji(t,3),!0,!0):[]},xn.dropWhile=function(e,t){return e&&e.length?ti(e,Ji(t,3),!0):[]},xn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&sa(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=rs(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:rs(r))<0&&(r+=i),r=n>r?0:is(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},xn.filter=function(e,t){return(Io(e)?ut:ir)(e,Ji(t,3))},xn.flatMap=function(e,t){return ar(ho(e,t),1)},xn.flatMapDeep=function(e,t){return ar(ho(e,t),1/0)},xn.flatMapDepth=function(e,t,n){return n=void 0===n?1:rs(n),ar(ho(e,t),n)},xn.flatten=Ia,xn.flattenDeep=function(e){return(null==e?0:e.length)?ar(e,1/0):[]},xn.flattenDepth=function(e,t){return(null==e?0:e.length)?ar(e,t=void 0===t?1:rs(t)):[]},xn.flip=function(e){return Yi(e,512)},xn.flow=zs,xn.flowRight=Vs,xn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},xn.functions=function(e){return null==e?[]:ur(e,_s(e))},xn.functionsIn=function(e){return null==e?[]:ur(e,ws(e))},xn.groupBy=lo,xn.initial=function(e){return(null==e?0:e.length)?Vr(e,0,-1):[]},xn.intersection=Da,xn.intersectionBy=Na,xn.intersectionWith=Ra,xn.invert=gs,xn.invertBy=ys,xn.invokeMap=co,xn.iteratee=Ws,xn.keyBy=uo,xn.keys=_s,xn.keysIn=ws,xn.map=ho,xn.mapKeys=function(e,t){var n={};return t=Ji(t,3),lr(e,(function(e,r,i){Wn(n,t(e,r,i),e)})),n},xn.mapValues=function(e,t){var n={};return t=Ji(t,3),lr(e,(function(e,r,i){Wn(n,r,t(e,r,i))})),n},xn.matches=function(e){return xr(Jn(e,1))},xn.matchesProperty=function(e,t){return $r(e,Jn(t,1))},xn.memoize=Eo,xn.merge=ks,xn.mergeWith=Es,xn.method=Gs,xn.methodOf=Ks,xn.mixin=Js,xn.negate=So,xn.nthArg=function(e){return e=rs(e),Br((function(t){return Pr(t,e)}))},xn.omit=Ss,xn.omitBy=function(e,t){return Cs(e,So(Ji(t)))},xn.once=function(e){return go(2,e)},xn.orderBy=function(e,t,n,r){return null==e?[]:(Io(t)||(t=null==t?[]:[t]),Io(n=r?void 0:n)||(n=null==n?[]:[n]),Or(e,t,n))},xn.over=Qs,xn.overArgs=To,xn.overEvery=Zs,xn.overSome=el,xn.partial=Co,xn.partialRight=Mo,xn.partition=fo,xn.pick=Ts,xn.pickBy=Cs,xn.property=tl,xn.propertyOf=function(e){return function(t){return null==e?void 0:dr(e,t)}},xn.pull=Ya,xn.pullAll=ja,xn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Ar(e,t,Ji(n,2)):e},xn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Ar(e,t,void 0,n):e},xn.pullAt=Fa,xn.range=nl,xn.rangeRight=rl,xn.rearg=xo,xn.reject=function(e,t){return(Io(e)?ut:ir)(e,So(Ji(t,3)))},xn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=Ji(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Dr(e,i),n},xn.rest=function(e,t){if("function"!=typeof e)throw new ye(a);return Br(e,t=void 0===t?t:rs(t))},xn.reverse=Ha,xn.sampleSize=function(e,t,n){return t=(n?sa(e,t,n):void 0===t)?1:rs(t),(Io(e)?jn:jr)(e,t)},xn.set=function(e,t,n){return null==e?e:Fr(e,t,n)},xn.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Fr(e,t,n,r)},xn.shuffle=function(e){return(Io(e)?Fn:zr)(e)},xn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&sa(e,t,n)?(t=0,n=r):(t=null==t?0:rs(t),n=void 0===n?r:rs(n)),Vr(e,t,n)):[]},xn.sortBy=po,xn.sortedUniq=function(e){return e&&e.length?Kr(e):[]},xn.sortedUniqBy=function(e,t){return e&&e.length?Kr(e,Ji(t,2)):[]},xn.split=function(e,t,n){return n&&"number"!=typeof n&&sa(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!Go(t))&&!(t=Xr(t))&&Yt(e)?ci(qt(e),0,n):e.split(t,n):[]},xn.spread=function(e,t){if("function"!=typeof e)throw new ye(a);return t=null==t?0:on(rs(t),0),Br((function(n){var r=n[t],i=ci(n,0,t);return r&&pt(i,r),at(e,this,i)}))},xn.tail=function(e){var t=null==e?0:e.length;return t?Vr(e,1,t):[]},xn.take=function(e,t,n){return e&&e.length?Vr(e,0,(t=n||void 0===t?1:rs(t))<0?0:t):[]},xn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Vr(e,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t,r):[]},xn.takeRightWhile=function(e,t){return e&&e.length?ti(e,Ji(t,3),!1,!0):[]},xn.takeWhile=function(e,t){return e&&e.length?ti(e,Ji(t,3)):[]},xn.tap=function(e,t){return t(e),e},xn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ye(a);return Uo(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),_o(e,t,{leading:r,maxWait:t,trailing:i})},xn.thru=to,xn.toArray=ts,xn.toPairs=Ms,xn.toPairsIn=xs,xn.toPath=function(e){return Io(e)?ft(e,Ta):Xo(e)?[e]:gi(Sa(ss(e)))},xn.toPlainObject=os,xn.transform=function(e,t,n){var r=Io(e),i=r||Ro(e)||Qo(e);if(t=Ji(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:Uo(e)&&jo(a)?$n(Ve(e)):{}}return(i?st:lr)(e,(function(e,r,i){return t(n,e,r,i)})),n},xn.unary=function(e){return vo(e,1)},xn.union=Ua,xn.unionBy=za,xn.unionWith=Va,xn.uniq=function(e){return e&&e.length?Qr(e):[]},xn.uniqBy=function(e,t){return e&&e.length?Qr(e,Ji(t,2)):[]},xn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qr(e,void 0,t):[]},xn.unset=function(e,t){return null==e||Zr(e,t)},xn.unzip=qa,xn.unzipWith=Wa,xn.update=function(e,t,n){return null==e?e:ei(e,t,oi(n))},xn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ei(e,t,oi(n),r)},xn.values=$s,xn.valuesIn=function(e){return null==e?[]:Pt(e,ws(e))},xn.without=Ga,xn.words=js,xn.wrap=function(e,t){return Co(oi(t),e)},xn.xor=Ka,xn.xorBy=Ja,xn.xorWith=Xa,xn.zip=Qa,xn.zipObject=function(e,t){return ii(e||[],t||[],Un)},xn.zipObjectDeep=function(e,t){return ii(e||[],t||[],Fr)},xn.zipWith=Za,xn.entries=Ms,xn.entriesIn=xs,xn.extend=cs,xn.extendWith=us,Js(xn,xn),xn.add=ol,xn.attempt=Fs,xn.camelCase=Ls,xn.capitalize=Ps,xn.ceil=sl,xn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==t&&(t=(t=as(t))==t?t:0),Kn(as(e),t,n)},xn.clone=function(e){return Jn(e,4)},xn.cloneDeep=function(e){return Jn(e,5)},xn.cloneDeepWith=function(e,t){return Jn(e,5,t="function"==typeof t?t:void 0)},xn.cloneWith=function(e,t){return Jn(e,4,t="function"==typeof t?t:void 0)},xn.conformsTo=function(e,t){return null==t||Xn(e,t,_s(t))},xn.deburr=Os,xn.defaultTo=function(e,t){return null==e||e!=e?t:e},xn.divide=ll,xn.endsWith=function(e,t,n){e=ss(e),t=Xr(t);var r=e.length,i=n=void 0===n?r:Kn(rs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},xn.eq=$o,xn.escape=function(e){return(e=ss(e))&&Y.test(e)?e.replace(R,Rt):e},xn.escapeRegExp=function(e){return(e=ss(e))&&W.test(e)?e.replace(q,"\\$&"):e},xn.every=function(e,t,n){var r=Io(e)?ct:nr;return n&&sa(e,t,n)&&(t=void 0),r(e,Ji(t,3))},xn.find=io,xn.findIndex=Pa,xn.findKey=function(e,t){return bt(e,Ji(t,3),lr)},xn.findLast=ao,xn.findLastIndex=Oa,xn.findLastKey=function(e,t){return bt(e,Ji(t,3),cr)},xn.floor=cl,xn.forEach=oo,xn.forEachRight=so,xn.forIn=function(e,t){return null==e?e:or(e,Ji(t,3),ws)},xn.forInRight=function(e,t){return null==e?e:sr(e,Ji(t,3),ws)},xn.forOwn=function(e,t){return e&&lr(e,Ji(t,3))},xn.forOwnRight=function(e,t){return e&&cr(e,Ji(t,3))},xn.get=ms,xn.gt=Lo,xn.gte=Po,xn.has=function(e,t){return null!=e&&ra(e,t,mr)},xn.hasIn=vs,xn.head=Aa,xn.identity=qs,xn.includes=function(e,t,n,r){e=Do(e)?e:$s(e),n=n&&!r?rs(n):0;var i=e.length;return n<0&&(n=on(i+n,0)),Jo(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wt(e,t,n)>-1},xn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=on(r+i,0)),wt(e,t,i)},xn.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e<on(t,n)}(e=as(e),t,n)},xn.invoke=bs,xn.isArguments=Oo,xn.isArray=Io,xn.isArrayBuffer=Ao,xn.isArrayLike=Do,xn.isArrayLikeObject=No,xn.isBoolean=function(e){return!0===e||!1===e||zo(e)&&fr(e)==u},xn.isBuffer=Ro,xn.isDate=Bo,xn.isElement=function(e){return zo(e)&&1===e.nodeType&&!Wo(e)},xn.isEmpty=function(e){if(null==e)return!0;if(Do(e)&&(Io(e)||"string"==typeof e||"function"==typeof e.splice||Ro(e)||Qo(e)||Oo(e)))return!e.length;var t=na(e);if(t==m||t==b)return!e.size;if(da(e))return!Sr(e).length;for(var n in e)if(Se.call(e,n))return!1;return!0},xn.isEqual=function(e,t){return _r(e,t)},xn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?_r(e,t,void 0,n):!!r},xn.isError=Yo,xn.isFinite=function(e){return"number"==typeof e&&nn(e)},xn.isFunction=jo,xn.isInteger=Fo,xn.isLength=Ho,xn.isMap=Vo,xn.isMatch=function(e,t){return e===t||wr(e,t,Qi(t))},xn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,wr(e,t,Qi(t),n)},xn.isNaN=function(e){return qo(e)&&e!=+e},xn.isNative=function(e){if(ua(e))throw new he("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return kr(e)},xn.isNil=function(e){return null==e},xn.isNull=function(e){return null===e},xn.isNumber=qo,xn.isObject=Uo,xn.isObjectLike=zo,xn.isPlainObject=Wo,xn.isRegExp=Go,xn.isSafeInteger=function(e){return Fo(e)&&e>=-9007199254740991&&e<=9007199254740991},xn.isSet=Ko,xn.isString=Jo,xn.isSymbol=Xo,xn.isTypedArray=Qo,xn.isUndefined=function(e){return void 0===e},xn.isWeakMap=function(e){return zo(e)&&na(e)==k},xn.isWeakSet=function(e){return zo(e)&&"[object WeakSet]"==fr(e)},xn.join=function(e,t){return null==e?"":rn.call(e,t)},xn.kebabCase=Is,xn.last=Ba,xn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=rs(n))<0?on(r+i,0):sn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):_t(e,Et,i,!0)},xn.lowerCase=As,xn.lowerFirst=Ds,xn.lt=Zo,xn.lte=es,xn.max=function(e){return e&&e.length?rr(e,qs,pr):void 0},xn.maxBy=function(e,t){return e&&e.length?rr(e,Ji(t,2),pr):void 0},xn.mean=function(e){return St(e,qs)},xn.meanBy=function(e,t){return St(e,Ji(t,2))},xn.min=function(e){return e&&e.length?rr(e,qs,Cr):void 0},xn.minBy=function(e,t){return e&&e.length?rr(e,Ji(t,2),Cr):void 0},xn.stubArray=il,xn.stubFalse=al,xn.stubObject=function(){return{}},xn.stubString=function(){return""},xn.stubTrue=function(){return!0},xn.multiply=dl,xn.nth=function(e,t){return e&&e.length?Pr(e,rs(t)):void 0},xn.noConflict=function(){return We._===this&&(We._=$e),this},xn.noop=Xs,xn.now=mo,xn.pad=function(e,t,n){e=ss(e);var r=(t=rs(t))?Vt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Oi(Zt(i),n)+e+Oi(Qt(i),n)},xn.padEnd=function(e,t,n){e=ss(e);var r=(t=rs(t))?Vt(e):0;return t&&r<t?e+Oi(t-r,n):e},xn.padStart=function(e,t,n){e=ss(e);var r=(t=rs(t))?Vt(e):0;return t&&r<t?Oi(t-r,n)+e:e},xn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),cn(ss(e).replace(K,""),t||0)},xn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&sa(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ns(e),void 0===t?(t=e,e=0):t=ns(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=un();return sn(e+i*(t-e+Ue("1e-"+((i+"").length-1))),t)}return Nr(e,t)},xn.reduce=function(e,t,n){var r=Io(e)?mt:Mt,i=arguments.length<3;return r(e,Ji(t,4),n,i,er)},xn.reduceRight=function(e,t,n){var r=Io(e)?vt:Mt,i=arguments.length<3;return r(e,Ji(t,4),n,i,tr)},xn.repeat=function(e,t,n){return t=(n?sa(e,t,n):void 0===t)?1:rs(t),Rr(ss(e),t)},xn.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},xn.result=function(e,t,n){var r=-1,i=(t=si(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var a=null==e?void 0:e[Ta(t[r])];void 0===a&&(r=i,a=n),e=jo(a)?a.call(e):a}return e},xn.round=hl,xn.runInContext=e,xn.sample=function(e){return(Io(e)?Yn:Yr)(e)},xn.size=function(e){if(null==e)return 0;if(Do(e))return Jo(e)?Vt(e):e.length;var t=na(e);return t==m||t==b?e.size:Sr(e).length},xn.snakeCase=Ns,xn.some=function(e,t,n){var r=Io(e)?gt:qr;return n&&sa(e,t,n)&&(t=void 0),r(e,Ji(t,3))},xn.sortedIndex=function(e,t){return Wr(e,t)},xn.sortedIndexBy=function(e,t,n){return Gr(e,t,Ji(n,2))},xn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Wr(e,t);if(r<n&&$o(e[r],t))return r}return-1},xn.sortedLastIndex=function(e,t){return Wr(e,t,!0)},xn.sortedLastIndexBy=function(e,t,n){return Gr(e,t,Ji(n,2),!0)},xn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Wr(e,t,!0)-1;if($o(e[n],t))return n}return-1},xn.startCase=Rs,xn.startsWith=function(e,t,n){return e=ss(e),n=null==n?0:Kn(rs(n),0,e.length),t=Xr(t),e.slice(n,n+t.length)==t},xn.subtract=fl,xn.sum=function(e){return e&&e.length?xt(e,qs):0},xn.sumBy=function(e,t){return e&&e.length?xt(e,Ji(t,2)):0},xn.template=function(e,t,n){var r=xn.templateSettings;n&&sa(e,t,n)&&(t=void 0),e=ss(e),t=us({},t,r,ji);var i,a,o=us({},t.imports,r.imports,ji),s=_s(o),l=Pt(o,s),c=0,u=t.interpolate||ue,d="__p += '",h=ve((t.escape||ue).source+"|"+u.source+"|"+(u===H?ne:ue).source+"|"+(t.evaluate||ue).source+"|$","g"),f="//# sourceURL="+(Se.call(t,"sourceURL")?(t.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++Ye+"]")+"\n";e.replace(h,(function(t,n,r,o,s,l){return r||(r=o),d+=e.slice(c,l).replace(de,Bt),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),d+="';\n";var p=Se.call(t,"variable")&&t.variable;p||(d="with (obj) {\n"+d+"\n}\n"),d=(a?d.replace(I,""):d).replace(A,"$1").replace(D,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Fs((function(){return fe(s,f+"return "+d).apply(void 0,l)}));if(m.source=d,Yo(m))throw m;return m},xn.times=function(e,t){if((e=rs(e))<1||e>9007199254740991)return[];var n=4294967295,r=sn(e,4294967295);e-=4294967295;for(var i=$t(r,t=Ji(t));++n<e;)t(n);return i},xn.toFinite=ns,xn.toInteger=rs,xn.toLength=is,xn.toLower=function(e){return ss(e).toLowerCase()},xn.toNumber=as,xn.toSafeInteger=function(e){return e?Kn(rs(e),-9007199254740991,9007199254740991):0===e?e:0},xn.toString=ss,xn.toUpper=function(e){return ss(e).toUpperCase()},xn.trim=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(G,"");if(!e||!(t=Xr(t)))return e;var r=qt(e),i=qt(t);return ci(r,It(r,i),At(r,i)+1).join("")},xn.trimEnd=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(J,"");if(!e||!(t=Xr(t)))return e;var r=qt(e);return ci(r,0,At(r,qt(t))+1).join("")},xn.trimStart=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(K,"");if(!e||!(t=Xr(t)))return e;var r=qt(e);return ci(r,It(r,qt(t))).join("")},xn.truncate=function(e,t){var n=30,r="...";if(Uo(t)){var i="separator"in t?t.separator:i;n="length"in t?rs(t.length):n,r="omission"in t?Xr(t.omission):r}var a=(e=ss(e)).length;if(Yt(e)){var o=qt(e);a=o.length}if(n>=a)return e;var s=n-Vt(r);if(s<1)return r;var l=o?ci(o,0,s).join(""):e.slice(0,s);if(void 0===i)return l+r;if(o&&(s+=l.length-s),Go(i)){if(e.slice(s).search(i)){var c,u=l;for(i.global||(i=ve(i.source,ss(re.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var d=c.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(Xr(i),s)!=s){var h=l.lastIndexOf(i);h>-1&&(l=l.slice(0,h))}return l+r},xn.unescape=function(e){return(e=ss(e))&&B.test(e)?e.replace(N,Wt):e},xn.uniqueId=function(e){var t=++Te;return ss(e)+t},xn.upperCase=Bs,xn.upperFirst=Ys,xn.each=oo,xn.eachRight=so,xn.first=Aa,Js(xn,(ul={},lr(xn,(function(e,t){Se.call(xn.prototype,t)||(ul[t]=e)})),ul),{chain:!1}),xn.VERSION="4.17.15",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){xn[e].placeholder=xn})),st(["drop","take"],(function(e,t){On.prototype[e]=function(n){n=void 0===n?1:on(rs(n),0);var r=this.__filtered__&&!t?new On(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},On.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;On.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ji(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");On.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");On.prototype[e]=function(){return this.__filtered__?new On(this):this[n](1)}})),On.prototype.compact=function(){return this.filter(qs)},On.prototype.find=function(e){return this.filter(e).head()},On.prototype.findLast=function(e){return this.reverse().find(e)},On.prototype.invokeMap=Br((function(e,t){return"function"==typeof e?new On(this):this.map((function(n){return yr(n,e,t)}))})),On.prototype.reject=function(e){return this.filter(So(Ji(e)))},On.prototype.slice=function(e,t){e=rs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new On(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rs(t))<0?n.dropRight(-t):n.take(t-e)),n)},On.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},On.prototype.toArray=function(){return this.take(4294967295)},lr(On.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=xn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(xn.prototype[t]=function(){var t=this.__wrapped__,o=r?[1]:arguments,s=t instanceof On,l=o[0],c=s||Io(t),u=function(e){var t=i.apply(xn,pt([e],o));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var d=this.__chain__,h=!!this.__actions__.length,f=a&&!d,p=s&&!h;if(!a&&c){t=p?t:new On(this);var m=e.apply(t,o);return m.__actions__.push({func:to,args:[u],thisArg:void 0}),new Pn(m,d)}return f&&p?e.apply(this,o):(m=this.thru(u),f?r?m.value()[0]:m.value():m)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=be[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);xn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Io(i)?i:[],e)}return this[n]((function(n){return t.apply(Io(n)?n:[],e)}))}})),lr(On.prototype,(function(e,t){var n=xn[t];if(n){var r=n.name+"";Se.call(bn,r)||(bn[r]=[]),bn[r].push({name:t,func:n})}})),bn[xi(void 0,2).name]=[{name:"wrapper",func:void 0}],On.prototype.clone=function(){var e=new On(this.__wrapped__);return e.__actions__=gi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=gi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=gi(this.__views__),e},On.prototype.reverse=function(){if(this.__filtered__){var e=new On(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},On.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Io(e),r=t<0,i=n?e.length:0,a=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=sn(t,e+o);break;case"takeRight":e=on(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,l=s-o,c=r?s:o-1,u=this.__iteratees__,d=u.length,h=0,f=sn(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return ni(e,this.__actions__);var p=[];e:for(;l--&&h<f;){for(var m=-1,v=e[c+=t];++m<d;){var g=u[m],y=g.iteratee,b=g.type,_=y(v);if(2==b)v=_;else if(!_){if(1==b)continue e;break e}}p[h++]=v}return p},xn.prototype.at=no,xn.prototype.chain=function(){return eo(this)},xn.prototype.commit=function(){return new Pn(this.value(),this.__chain__)},xn.prototype.next=function(){void 0===this.__values__&&(this.__values__=ts(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},xn.prototype.plant=function(e){for(var t,n=this;n instanceof Ln;){var r=Ma(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},xn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof On){var t=e;return this.__actions__.length&&(t=new On(this)),(t=t.reverse()).__actions__.push({func:to,args:[Ha],thisArg:void 0}),new Pn(t,this.__chain__)}return this.thru(Ha)},xn.prototype.toJSON=xn.prototype.valueOf=xn.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},xn.prototype.first=xn.prototype.head,Qe&&(xn.prototype[Qe]=function(){return this}),xn}();We._=Gt,void 0===(i=function(){return Gt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(22),n(52)(e))},function(e,t,n){"use strict";var r=n(19),i=n(239),a=n(20).Buffer,o=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(e,t){return e<<t|e>>>32-t}function c(e,t,n,r,i,a,o){return l(e+(t&n|~t&r)+i+a|0,o)+t|0}function u(e,t,n,r,i,a,o){return l(e+(t&r|n&~r)+i+a|0,o)+t|0}function d(e,t,n,r,i,a,o){return l(e+(t^n^r)+i+a|0,o)+t|0}function h(e,t,n,r,i,a,o){return l(e+(n^(t|~r))+i+a|0,o)+t|0}r(s,i),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,a=this._d;n=c(n,r,i,a,e[0],3614090360,7),a=c(a,n,r,i,e[1],3905402710,12),i=c(i,a,n,r,e[2],606105819,17),r=c(r,i,a,n,e[3],3250441966,22),n=c(n,r,i,a,e[4],4118548399,7),a=c(a,n,r,i,e[5],1200080426,12),i=c(i,a,n,r,e[6],2821735955,17),r=c(r,i,a,n,e[7],4249261313,22),n=c(n,r,i,a,e[8],1770035416,7),a=c(a,n,r,i,e[9],2336552879,12),i=c(i,a,n,r,e[10],4294925233,17),r=c(r,i,a,n,e[11],2304563134,22),n=c(n,r,i,a,e[12],1804603682,7),a=c(a,n,r,i,e[13],4254626195,12),i=c(i,a,n,r,e[14],2792965006,17),n=u(n,r=c(r,i,a,n,e[15],1236535329,22),i,a,e[1],4129170786,5),a=u(a,n,r,i,e[6],3225465664,9),i=u(i,a,n,r,e[11],643717713,14),r=u(r,i,a,n,e[0],3921069994,20),n=u(n,r,i,a,e[5],3593408605,5),a=u(a,n,r,i,e[10],38016083,9),i=u(i,a,n,r,e[15],3634488961,14),r=u(r,i,a,n,e[4],3889429448,20),n=u(n,r,i,a,e[9],568446438,5),a=u(a,n,r,i,e[14],3275163606,9),i=u(i,a,n,r,e[3],4107603335,14),r=u(r,i,a,n,e[8],1163531501,20),n=u(n,r,i,a,e[13],2850285829,5),a=u(a,n,r,i,e[2],4243563512,9),i=u(i,a,n,r,e[7],1735328473,14),n=d(n,r=u(r,i,a,n,e[12],2368359562,20),i,a,e[5],4294588738,4),a=d(a,n,r,i,e[8],2272392833,11),i=d(i,a,n,r,e[11],1839030562,16),r=d(r,i,a,n,e[14],4259657740,23),n=d(n,r,i,a,e[1],2763975236,4),a=d(a,n,r,i,e[4],1272893353,11),i=d(i,a,n,r,e[7],4139469664,16),r=d(r,i,a,n,e[10],3200236656,23),n=d(n,r,i,a,e[13],681279174,4),a=d(a,n,r,i,e[0],3936430074,11),i=d(i,a,n,r,e[3],3572445317,16),r=d(r,i,a,n,e[6],76029189,23),n=d(n,r,i,a,e[9],3654602809,4),a=d(a,n,r,i,e[12],3873151461,11),i=d(i,a,n,r,e[15],530742520,16),n=h(n,r=d(r,i,a,n,e[2],3299628645,23),i,a,e[0],4096336452,6),a=h(a,n,r,i,e[7],1126891415,10),i=h(i,a,n,r,e[14],2878612391,15),r=h(r,i,a,n,e[5],4237533241,21),n=h(n,r,i,a,e[12],1700485571,6),a=h(a,n,r,i,e[3],2399980690,10),i=h(i,a,n,r,e[10],4293915773,15),r=h(r,i,a,n,e[1],2240044497,21),n=h(n,r,i,a,e[8],1873313359,6),a=h(a,n,r,i,e[15],4264355552,10),i=h(i,a,n,r,e[6],2734768916,15),r=h(r,i,a,n,e[13],1309151649,21),n=h(n,r,i,a,e[4],4149444226,6),a=h(a,n,r,i,e[11],3174756917,10),i=h(i,a,n,r,e[2],718787259,15),r=h(r,i,a,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+a|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,n){e.exports=i;var r=n(93).EventEmitter;function i(){r.call(this)}n(19)(i,r),i.Readable=n(43),i.Writable=n(338),i.Duplex=n(339),i.Transform=n(340),i.PassThrough=n(341),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var o=!1;function s(){o||(o=!0,e.end())}function l(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",c),e.on("error",c),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,a,o,s;if(c(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=u(e))>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,s=l,console&&console.warn&&console.warn(s)}return e}function h(){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)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):v(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},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+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||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},s.prototype.getMaxListeners=function(){return u(this)},s.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){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)a(l,this,t);else{var c=l.length,u=v(l,c);for(n=0;n<c;++n)a(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,f(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,f(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;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,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";(function(t,r,i){var a=n(53);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:a.nextTick;y.WritableState=g;var c=Object.create(n(44));c.inherits=n(19);var u={deprecate:n(336)},d=n(241),h=n(20).Buffer,f=i.Uint8Array||function(){};var p,m=n(242);function v(){}function g(e,t){s=s||n(36),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,c=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(a.nextTick(i,r),a.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),S(e,t))}(e,n,r,t,i);else{var o=k(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?l(_,e,n,o,i):_(e,n,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function y(e){if(s=s||n(36),!(p.call(y,this)||this instanceof s))return new y(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function b(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),S(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,b(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,d=n.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var n=k(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(y,d),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===y&&(e&&e._writableState instanceof g)}})):p=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,i=this._writableState,o=!1,s=!i.objectMode&&(r=e,h.isBuffer(r)||r instanceof f);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=v),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),a.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(r,o),i=!1),i}(this,i,e,n))&&(i.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,n));return t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,i,a);return l}(this,i,s,e,t,n)),o},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,S(e,t),n&&(t.finished?a.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(25),n(32).setImmediate,n(22))},function(e,t,n){"use strict";var r=n(20).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";var r=n(24).Buffer,i=n(19),a=n(239),o=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function f(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function m(e,t,n,r,i,a,o,s){return p(e+(t^n^r)+a+o|0,s)+i|0}function v(e,t,n,r,i,a,o,s){return p(e+(t&n|~t&r)+a+o|0,s)+i|0}function g(e,t,n,r,i,a,o,s){return p(e+((t|~n)^r)+a+o|0,s)+i|0}function y(e,t,n,r,i,a,o,s){return p(e+(t&r|n&~r)+a+o|0,s)+i|0}function b(e,t,n,r,i,a,o,s){return p(e+(t^(n|~r))+a+o|0,s)+i|0}i(f,a),f.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,f=0|this._e,_=0|this._a,w=0|this._b,k=0|this._c,E=0|this._d,S=0|this._e,T=0;T<80;T+=1){var C,M;T<16?(C=m(n,r,i,a,f,e[s[T]],d[0],c[T]),M=b(_,w,k,E,S,e[l[T]],h[0],u[T])):T<32?(C=v(n,r,i,a,f,e[s[T]],d[1],c[T]),M=y(_,w,k,E,S,e[l[T]],h[1],u[T])):T<48?(C=g(n,r,i,a,f,e[s[T]],d[2],c[T]),M=g(_,w,k,E,S,e[l[T]],h[2],u[T])):T<64?(C=y(n,r,i,a,f,e[s[T]],d[3],c[T]),M=v(_,w,k,E,S,e[l[T]],h[3],u[T])):(C=b(n,r,i,a,f,e[s[T]],d[4],c[T]),M=m(_,w,k,E,S,e[l[T]],h[4],u[T])),n=f,f=a,a=p(i,10),i=r,r=C,_=S,S=E,E=p(k,10),k=w,w=M}var x=this._b+i+E|0;this._b=this._c+a+S|0,this._c=this._d+f+_|0,this._d=this._e+n+w|0,this._e=this._a+r+k|0,this._a=x},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=f},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(342),t.sha1=n(343),t.sha224=n(344),t.sha256=n(244),t.sha384=n(345),t.sha512=n(245)},function(e,t,n){"use strict";var r=n(29);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,i,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},function(e,t,n){var r=n(354),i=n(362),a=n(257);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(a)}},function(e,t,n){var r={ECB:n(355),CBC:n(356),CFB:n(357),CFB8:n(358),CFB1:n(359),OFB:n(360),CTR:n(255),GCM:n(255)},i=n(257);for(var a in i)i[a].module=r[i[a].mode];e.exports=i},function(e,t,n){var r;function i(e){this.rand=e}if(e.exports=function(e){return r||(r=new i(null)),r.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=n(366);if("function"!=typeof a.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return a.randomBytes(e)}}catch(e){}},function(e,t,n){(function(t){var r=n(23),i=n(39);function a(e,n){var i=function(e){var t=o(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(n),a=n.modulus.byteLength(),s=(r.mont(n.modulus),new r(e).mul(i.blinder).umod(n.modulus)),l=s.toRed(r.mont(n.prime1)),c=s.toRed(r.mont(n.prime2)),u=n.coefficient,d=n.prime1,h=n.prime2,f=l.redPow(n.exponent1),p=c.redPow(n.exponent2);f=f.fromRed(),p=p.fromRed();var m=f.isub(p).imul(u).umod(d);return m.imul(h),p.iadd(m),new t(p.imul(i.unblinder).umod(n.modulus).toArray(!1,a))}function o(e){for(var t=e.modulus.byteLength(),n=new r(i(t));n.cmp(e.modulus)>=0||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new r(i(t));return n}e.exports=a,a.getr=o}).call(this,n(24).Buffer)},function(e,t,n){"use strict";var r=t;r.version=n(371).version,r.utils=n(30),r.rand=n(101),r.curve=n(263),r.curves=n(104),r.ec=n(382),r.eddsa=n(386)},function(e,t,n){"use strict";var r,i=t,a=n(105),o=n(263),s=n(30).assert;function l(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new l(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=l,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(381)}catch(e){r=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(e,t,n){var r=t;r.utils=n(33),r.common=n(46),r.sha=n(375),r.ripemd=n(379),r.hmac=n(380),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,n){"use strict";(function(e){var n=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function i(e){return null!==e&&"object"==typeof e}var a=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},o={namespaced:{configurable:!0}};o.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(e,t){this._children[e]=t},a.prototype.removeChild=function(e){delete this._children[e]},a.prototype.getChild=function(e){return this._children[e]},a.prototype.hasChild=function(e){return e in this._children},a.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},a.prototype.forEachChild=function(e){r(this._children,e)},a.prototype.forEachGetter=function(e){this._rawModule.getters&&r(this._rawModule.getters,e)},a.prototype.forEachAction=function(e){this._rawModule.actions&&r(this._rawModule.actions,e)},a.prototype.forEachMutation=function(e){this._rawModule.mutations&&r(this._rawModule.mutations,e)},Object.defineProperties(a.prototype,o);var s=function(e){this.register([],e,!1)};s.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},s.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},s.prototype.update=function(e){!function e(t,n,r){0;if(n.update(r),r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;e(t.concat(i),n.getChild(i),r.modules[i])}}([],this.root,e)},s.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var o=new a(t,n);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o);t.modules&&r(t.modules,(function(t,r){i.register(e.concat(r),t,n)}))},s.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];t.getChild(n).runtime&&t.removeChild(n)},s.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return t.hasChild(n)};var l;var c=function(e){var t=this;void 0===e&&(e={}),!l&&"undefined"!=typeof window&&window.Vue&&g(window.Vue);var r=e.plugins;void 0===r&&(r=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new s(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new l,this._makeLocalGettersCache=Object.create(null);var a=this,o=this.dispatch,c=this.commit;this.dispatch=function(e,t){return o.call(a,e,t)},this.commit=function(e,t,n){return c.call(a,e,t,n)},this.strict=i;var u=this._modules.root.state;p(this,u,[],this._modules.root),f(this,u),r.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:l.config.devtools)&&function(e){n&&(e._devtoolHook=n,n.emit("vuex:init",e),n.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){n.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){n.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},u={state:{configurable:!0}};function d(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function h(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;p(e,n,[],e._modules.root,!0),f(e,n,t)}function f(e,t,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,o={};r(a,(function(t,n){o[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=l.config.silent;l.config.silent=!0,e._vm=new l({data:{$$state:t},computed:o}),l.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),i&&(n&&e._withCommit((function(){i._data.$$state=null})),l.nextTick((function(){return i.$destroy()})))}function p(e,t,n,r,i){var a=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!a&&!i){var s=m(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){l.set(s,c,r.state)}))}var u=r.context=function(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var a=v(n,r,i),o=a.payload,s=a.options,l=a.type;return s&&s.root||(l=t+l),e.dispatch(l,o)},commit:r?e.commit:function(n,r,i){var a=v(n,r,i),o=a.payload,s=a.options,l=a.type;s&&s.root||(l=t+l),e.commit(l,o,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var a=i.slice(r);Object.defineProperty(n,a,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return m(e.state,n)}}}),i}(e,o,n);r.forEachMutation((function(t,n){!function(e,t,n,r){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,r.state,t)}))}(e,o+n,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:o+n,i=t.handler||t;!function(e,t,n,r){(e._actions[t]||(e._actions[t]=[])).push((function(t){var i,a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(i=a)&&"function"==typeof i.then||(a=Promise.resolve(a)),e._devtoolHook?a.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):a}))}(e,r,i,u)})),r.forEachGetter((function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,o+n,t,u)})),r.forEachChild((function(r,a){p(e,t,n.concat(a),r,i)}))}function m(e,t){return t.reduce((function(e,t){return e[t]}),e)}function v(e,t,n){return i(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function g(e){l&&e===l||function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(l=e)}u.state.get=function(){return this._vm._data.$$state},u.state.set=function(e){0},c.prototype.commit=function(e,t,n){var r=this,i=v(e,t,n),a=i.type,o=i.payload,s=(i.options,{type:a,payload:o}),l=this._mutations[a];l&&(this._withCommit((function(){l.forEach((function(e){e(o)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},c.prototype.dispatch=function(e,t){var n=this,r=v(e,t),i=r.type,a=r.payload,o={type:i,payload:a},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(o,n.state)}))}catch(e){0}return(s.length>1?Promise.all(s.map((function(e){return e(a)}))):s[0](a)).then((function(e){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(o,n.state)}))}catch(e){0}return e}))}},c.prototype.subscribe=function(e,t){return d(e,this._subscribers,t)},c.prototype.subscribeAction=function(e,t){return d("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},c.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},c.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},c.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),p(this,this.state,e,this._modules.get(e),n.preserveState),f(this,this.state)},c.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=m(t.state,e.slice(0,-1));l.delete(n,e[e.length-1])})),h(this)},c.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},c.prototype.hotUpdate=function(e){this._modules.update(e),h(this,!0)},c.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(c.prototype,u);var y=E((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=S(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),b=E((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var a=S(this.$store,"mapMutations",e);if(!a)return;r=a.context.commit}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),_=E((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||S(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),w=E((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var a=S(this.$store,"mapActions",e);if(!a)return;r=a.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n}));function k(e){return function(e){return Array.isArray(e)||i(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function E(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function S(e,t,n){return e._modulesNamespaceMap[n]}var T={Store:c,install:g,version:"3.3.0",mapState:y,mapMutations:b,mapGetters:_,mapActions:w,createNamespacedHelpers:function(e){return{mapState:y.bind(null,e),mapGetters:_.bind(null,e),mapMutations:b.bind(null,e),mapActions:w.bind(null,e)}}};t.a=T}).call(this,n(22))},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(108);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){var r,i;void 0===(i="function"==typeof(r=function(){var e,t,n,r,i,a={},o={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},l={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function c(e,t){this._input=e,this._value=t}return(e=function(n){var r,i,o,s;if(e.isNumeral(n))r=n.value();else if(0===n||void 0===n)r=0;else if(null===n||t.isNaN(n))r=null;else if("string"==typeof n)if(l.zeroFormat&&n===l.zeroFormat)r=0;else if(l.nullFormat&&n===l.nullFormat||!n.replace(/[^0-9]+/g,"").length)r=null;else{for(i in a)if((s="function"==typeof a[i].regexps.unformat?a[i].regexps.unformat():a[i].regexps.unformat)&&n.match(s)){o=a[i].unformat;break}r=(o=o||e._.stringToNumber)(n)}else r=Number(n)||null;return new c(n,r)}).version="2.0.6",e.isNumeral=function(e){return e instanceof c},e._=t={numberToFormat:function(t,n,r){var i,a,s,l,c,u,d,h,f=o[e.options.currentLocale],p=!1,m=!1,v="",g="",y=!1;if(t=t||0,s=Math.abs(t),e._.includes(n,"(")?(p=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(u=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(a=!!(a=n.match(/a(k|m|b|t)?/))&&a[1],e._.includes(n," a")&&(v=" "),n=n.replace(new RegExp(v+"a[kmbt]?"),""),s>=1e12&&!a||"t"===a?(v+=f.abbreviations.trillion,t/=1e12):s<1e12&&s>=1e9&&!a||"b"===a?(v+=f.abbreviations.billion,t/=1e9):s<1e9&&s>=1e6&&!a||"m"===a?(v+=f.abbreviations.million,t/=1e6):(s<1e6&&s>=1e3&&!a||"k"===a)&&(v+=f.abbreviations.thousand,t/=1e3)),e._.includes(n,"[.]")&&(m=!0,n=n.replace("[.]",".")),l=t.toString().split(".")[0],c=n.split(".")[1],d=n.indexOf(","),i=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,c?(e._.includes(c,"[")?(c=(c=c.replace("]","")).split("["),g=e._.toFixed(t,c[0].length+c[1].length,r,c[1].length)):g=e._.toFixed(t,c.length,r),l=g.split(".")[0],g=e._.includes(g,".")?f.delimiters.decimal+g.split(".")[1]:"",m&&0===Number(g.slice(1))&&(g="")):l=e._.toFixed(t,0,r),v&&!a&&Number(l)>=1e3&&v!==f.abbreviations.trillion)switch(l=String(Number(l)/1e3),v){case f.abbreviations.thousand:v=f.abbreviations.million;break;case f.abbreviations.million:v=f.abbreviations.billion;break;case f.abbreviations.billion:v=f.abbreviations.trillion}if(e._.includes(l,"-")&&(l=l.slice(1),y=!0),l.length<i)for(var b=i-l.length;b>0;b--)l="0"+l;return d>-1&&(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===n.indexOf(".")&&(l=""),h=l+g+(v||""),p?h=(p&&y?"(":"")+h+(p&&y?")":""):u>=0?h=0===u?(y?"-":"+")+h:h+(y?"-":"+"):y&&(h="-"+h),h},stringToNumber:function(e){var t,n,r,i=o[l.currentLocale],a=e,s={thousand:3,million:6,billion:9,trillion:12};if(l.zeroFormat&&e===l.zeroFormat)n=0;else if(l.nullFormat&&e===l.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),s)if(r=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),a.match(r)){n*=Math.pow(10,s[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,a=0;if(3===arguments.length)n=arguments[2];else{for(;a<i&&!(a in r);)a++;if(a>=i)throw new TypeError("Reduce of empty array with no initial value");n=r[a++]}for(;a<i;a++)a in r&&(n=t(n,r[a],a,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){var e=Array.prototype.slice.call(arguments);return e.reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var i,a,o,s,l=e.toString().split("."),c=t-(r||0);return i=2===l.length?Math.min(Math.max(l[1].length,c),t):c,o=Math.pow(10,i),s=(n(e+"e+"+i)/o).toFixed(i),r>t-i&&(a=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(a,"")),s}},e.options=l,e.formats=a,e.locales=o,e.locale=function(e){return e&&(l.currentLocale=e.toLowerCase()),l.currentLocale},e.localeData=function(e){if(!e)return o[l.currentLocale];if(e=e.toLowerCase(),!o[e])throw new Error("Unknown locale : "+e);return o[e]},e.reset=function(){for(var e in s)l[e]=s[e]},e.zeroFormat=function(e){l.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){l.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){l.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,a,o,s,l,c,u;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(t){c=e.localeData(e.locale())}return a=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,i="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,!(null!==(u=t.match(/^[^\d]+/))&&(t=t.substr(1),u[0]!==a)||null!==(u=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),u[0]!==s.thousand&&u[0]!==s.million&&u[0]!==s.billion&&u[0]!==s.trillion)||(l=new RegExp(i+"{2}"),t.match(/[^\d.,]/g)||(o=t.split(r)).length>2||(o.length<2?!o[0].match(/^\d+.*\d$/)||o[0].match(l):1===o[0].length?!o[0].match(/^\d+$/)||o[0].match(l)||!o[1].match(/^\d+$/):!o[0].match(/^\d+.*\d$/)||o[0].match(l)||!o[1].match(/^\d+$/))))},e.fn=c.prototype={clone:function(){return e(this)},format:function(t,n){var r,i,o,s=this._value,c=t||l.defaultFormat;if(n=n||Math.round,0===s&&null!==l.zeroFormat)i=l.zeroFormat;else if(null===s&&null!==l.nullFormat)i=l.nullFormat;else{for(r in a)if(c.match(a[r].regexps.format)){o=a[r].format;break}i=(o=o||e._.numberToFormat)(s,c,n)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,r,i){return e+Math.round(n*t)}),0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,r,i){return e-Math.round(n*t)}),Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,i){var a=t.correctionFactor(e,n);return Math.round(e*a)*Math.round(n*a)/Math.round(a*a)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,i){var a=t.correctionFactor(e,n);return Math.round(e*a)/Math.round(n*a)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,a=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,a+"BPS"),i=i.join("")):i=i+a+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},i="("+(i=(n={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter((function(e){return n.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(t,i,a){var o,s,l,c=e._.includes(i,"ib")?r:n,u=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),o=0;o<=c.suffixes.length;o++)if(s=Math.pow(c.base,o),l=Math.pow(c.base,o+1),null===t||0===t||t>=s&&t<l){u+=c.suffixes[o],s>0&&(t/=s);break}return e._.numberToFormat(t,i,a)+u},unformat:function(t){var i,a,o=e._.stringToNumber(t);if(o){for(i=n.suffixes.length-1;i>=0;i--){if(e._.includes(t,n.suffixes[i])){a=Math.pow(n.base,i);break}if(e._.includes(t,r.suffixes[i])){a=Math.pow(r.base,i);break}}o*=a||1}return o}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,a,o=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),a=0;a<s.before.length;a++)switch(s.before[a]){case"$":i=e._.insert(i,o.currency.symbol,a);break;case" ":i=e._.insert(i," ",a+o.currency.symbol.length-1)}for(a=s.after.length-1;a>=0;a--)switch(s.after[a]){case"$":i=a===s.after.length-1?i+o.currency.symbol:e._.insert(i,o.currency.symbol,-(s.after.length-(1+a)));break;case" ":i=a===s.after.length-1?i+" ":e._.insert(i," ",-(s.after.length-(1+a)+o.currency.symbol.length-1))}return i}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],(function(t,n,r,i){var a=e._.correctionFactor(t,n);return t*a*(n*a)/(a*a)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],a=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),a+=i.ordinal(t),e._.numberToFormat(t,n,r)+a}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,a=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,a+"%"),i=i.join("")):i=i+a+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),a=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){!function(e){"use strict";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){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,o){var s=r(t),l=i[e][r(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("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(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,a,o){var s=n(t),l=r[e][n(t)];return 2===s&&(l=l[i?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(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(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(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(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={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ı"};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:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə 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){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}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){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},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(4))},function(e,t,n){!function(e){"use strict";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 дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";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(4))},function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};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){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(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){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}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:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss: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(4))},function(e,t,n){!function(e){"use strict";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:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),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;function a(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?i+(a(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?i+(a(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(a(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?i+(a(e)?"dny":"dní"):i+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?i+(a(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?i+(a(e)?"roky":"let"):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:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},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(4))},function(e,t,n){!function(e){"use strict";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:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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(4))},function(e,t,n){!function(e){"use strict";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"],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]}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:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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"],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]}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:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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"],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]}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:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];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){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":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,r=this._calendarEl[e],i=t&&t.hours();return((n=r)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(4))},function(e,t,n){!function(e){"use strict";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;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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",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;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(4))},function(e,t,n){!function(e){"use strict";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;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^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;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},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:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^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;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},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:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^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;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},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:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";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"]};return t?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}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(4))},function(e,t,n){!function(e){"use strict";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:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(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(4))},function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,i,a){var o="";switch(i){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":return a?"sekunnin":"sekuntia";case"m":return a?"minuutin":"minuutti";case"mm":o=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":o=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":o=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":o=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":o=a?"vuoden":"vuotta"}return o=function(e,r){return e<10?r?n[e]:t[e]:e}(e,a)+" "+o}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: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(4))},function(e,t,n){!function(e){"use strict";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(4))},function(e,t,n){!function(e){"use strict";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("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(4))},function(e,t,n){!function(e){"use strict";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:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Méitheamh","Iúil","Lúnasa","Meán Fómhair","Deaireadh Fómhair","Samhain","Nollaig"],monthsShort:["Eaná","Feab","Márt","Aibr","Beal","Méit","Iúil","Lúna","Meán","Deai","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Satharn"],weekdaysShort:["Dom","Lua","Mái","Céa","Déa","hAo","Sat"],weekdaysMin:["Do","Lu","Má","Ce","Dé","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:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné aig] 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í",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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:!0,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){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"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(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voranim",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?i[n][0]:i[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s: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:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(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){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";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){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(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){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}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:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss: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(4))},function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(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 r(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("_"),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"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%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(4))},function(e,t,n){!function(e){"use strict";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){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";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){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,i){var a=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(n||i?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||i?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||i?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(i?"daga":"dögum"):n?a+"dagur":a+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(i?"mánuði":"mánuðum"):n?a+"mánuður":a+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?a+(n||i?"ár":"árum"):a+(n||i?"ár":"ári")}}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:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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:"[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(4))},function(e,t,n){!function(e){"use strict";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(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{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/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){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()<e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){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(4))},function(e,t,n){!function(e){"use strict";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){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};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){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(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(4))},function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(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){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";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(4))},function(e,t,n){!function(e){"use strict";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("ku",{months:r,monthsShort:r,weekdays:"یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه".split("_"),weekdaysShort:"یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره|بهیانی/,isPM:function(e){return/ئێواره/.test(e)},meridiem:function(e,t,n){return e<12?"بهیانی":"ئێواره"},calendar:{sameDay:"[ئهمرۆ كاتژمێر] LT",nextDay:"[بهیانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له %s",past:"%s",s:"چهند چركهیهك",ss:"چركه %d",m:"یهك خولهك",mm:"%d خولهك",h:"یهك كاتژمێر",hh:"%d كاتژمێر",d:"یهك ڕۆژ",dd:"%d ڕۆژ",M:"یهك مانگ",MM:"%d مانگ",y:"یهك ساڵ",yy:"%d ساڵ"},preparse:function(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(4))},function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};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){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";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){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}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:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},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(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(4))},function(e,t,n){!function(e){"use strict";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"};function n(e,t,n,r){return t?i(n)[0]:r?i(n)[1]:i(n)[2]}function r(e){return e%10==0||e>10&&e<20}function i(e){return t[e].split("_")}function a(e,t,a,o){var s=e+" ";return 1===e?s+n(0,t,a[0],o):t?s+(r(e)?i(a)[1]:i(a)[0]):o?s+i(a)[1]:s+(r(e)?i(a)[1]:i(a)[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:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={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("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,i){return e+" "+n(t[i],e,r)}function i(e,r,i){return n(t[i],e,r)}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:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={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 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};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:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";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(4))},function(e,t,n){!function(e){"use strict";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;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(4))},function(e,t,n){!function(e){"use strict";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}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},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(4))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(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 वर्षे"}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 वर्षां"}return i.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},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){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";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){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";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){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";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(4))},function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};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(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(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){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^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;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},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:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^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;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},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:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};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){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var i=e+" ";switch(n){case"ss":return i+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return i+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(r(e)?"godziny":"godzin");case"MM":return i+(r(e)?"miesiące":"miesięcy");case"yy":return i+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?""===r?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},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(4))},function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];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){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(4))},function(e,t,n){!function(e){"use strict";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("_");function r(e){return e>1&&e<5}function i(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?a+(r(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?a+(r(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(r(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?a+(r(e)?"dni":"dní"):a+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?a+(r(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?a+(r(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s: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(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return i+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return i+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return i+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}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:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s: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(4))},function(e,t,n){!function(e){"use strict";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:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},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(4))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};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:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";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:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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;return e+(1==~~(e%100/10)?"e":1===t||2===t?"a":"e")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};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){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(4))},function(e,t,n){!function(e){"use strict";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:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(4))},function(e,t,n){!function(e){"use strict";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(4))},function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,i){var a=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),i=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),r>0&&(a+=(""!==a?" ":"")+t[r]+"maH"),i>0&&(a+=(""!==a?" ":"")+t[i]),""===a?"pagh":a}(e);switch(r){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}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:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";var t={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ı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(4))},function(e,t,n){!function(e){"use strict";function t(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||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){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s: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:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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(4))},function(e,t,n){!function(e){"use strict";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(4))},function(e,t,n){!function(e){"use strict";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){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(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(4))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,i={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},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:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] 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){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},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(4))},function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];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){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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(4))},function(e,t,n){!function(e){"use strict";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(4))},function(e,t,n){!function(e){"use strict";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:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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(4))},function(e,t,n){!function(e){"use strict";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){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},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 年"},week:{dow:1,doy:4}})}(n(4))},function(e,t,n){!function(e){"use strict";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){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},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(4))},function(e,t,n){!function(e){"use strict";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){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},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(4))},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var r=n(20).Buffer,i=n(92).Transform;function a(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(19)(a,i),a.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)n[this._blockOffset++]=e[i++];for(var o=0,s=8*e.length;s>0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},a.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=a},function(e,t,n){"use strict";(function(t,r){var i=n(53);e.exports=b;var a,o=n(238);b.ReadableState=y;n(93).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n(241),c=n(20).Buffer,u=t.Uint8Array||function(){};var d=Object.create(n(44));d.inherits=n(19);var h=n(333),f=void 0;f=h&&h.debuglog?h.debuglog("stream"):function(){};var p,m=n(334),v=n(242);d.inherits(b,l);var g=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var r=t instanceof(a=a||n(36));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(95).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function b(e){if(a=a||n(36),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function _(e,t,n,r,i){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,E(e)}(e,o)):(i||(a=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?w(e,o,t,!1):T(e,o)):w(e,o,t,!1))):r||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function w(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&E(e)),T(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=v.destroy,b.prototype._undestroy=v.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),_(this,e,t,!1,n)},b.prototype.unshift=function(e){return _(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return p||(p=n(95).StringDecoder),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(S,e):S(e))}function S(e){f("emit readable"),e.emit("readable"),$(e)}function T(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(C,e,t))}function C(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(f("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function M(e){f("readable nexttick read 0"),e.read(0)}function x(e,t){t.reading||(f("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),$(e),t.flowing&&!t.reading&&e.read(0)}function $(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function I(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}b.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):E(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&P(this),null;var r,i=t.needReadable;return f("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",i=!0),t.ended||t.reading?f("reading or ended",i=!1):i&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),null===(r=e>0?L(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&P(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,f("pipe count=%d opts=%j",a.pipesCount,t);var l=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:b;function c(t,r){f("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",d),e.removeListener("error",v),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",m),h=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function u(){f("onend"),e.end()}a.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",c);var d=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,$(e))}}(n);e.on("drain",d);var h=!1;var p=!1;function m(t){f("ondata"),p=!1,!1!==e.write(t)||p||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==I(a.pipes,e))&&!h&&(f("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function v(t){f("onerror",t),b(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),b()}function y(){f("onfinish"),e.removeListener("close",g),b()}function b(){f("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",v),e.once("close",g),e.once("finish",y),e.emit("pipe",n),a.flowing||(f("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,n);return this}var o=I(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},b.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&E(this):i.nextTick(M,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(x,e,t))}(this,e)),this},b.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(f("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(f("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<g.length;a++)e.on(g[a],this.emit.bind(this,g[a]));return this._read=function(t){f("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=L}).call(this,n(22),n(25))},function(e,t,n){e.exports=n(93).EventEmitter},function(e,t,n){"use strict";var r=n(53);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";e.exports=o;var r=n(36),i=Object.create(n(44));function a(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){l(e,t,n)})):l(this,null,null)}function l(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(19),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){var r=n(19),i=n(40),a=n(20).Buffer,o=[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],s=new Array(64);function l(){this.init(),this._w=s,i.call(this,64,56)}function c(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function f(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(l,i),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,l=0|this._e,p=0|this._f,m=0|this._g,v=0|this._h,g=0;g<16;++g)n[g]=e.readInt32BE(4*g);for(;g<64;++g)n[g]=0|(((t=n[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[g-7]+f(n[g-15])+n[g-16];for(var y=0;y<64;++y){var b=v+h(l)+c(l,p,m)+o[y]+n[y]|0,_=d(r)+u(r,i,a)|0;v=m,m=p,p=l,l=s+b|0,s=a,a=i,i=r,r=b+_|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=v+this._h|0},l.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=l},function(e,t,n){var r=n(19),i=n(40),a=n(20).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function l(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function v(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0<t>>>0?1:0}r(l,i),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,l=0|this._fh,y=0|this._gh,b=0|this._hh,_=0|this._al,w=0|this._bl,k=0|this._cl,E=0|this._dl,S=0|this._el,T=0|this._fl,C=0|this._gl,M=0|this._hl,x=0;x<32;x+=2)t[x]=e.readInt32BE(4*x),t[x+1]=e.readInt32BE(4*x+4);for(;x<160;x+=2){var $=t[x-30],L=t[x-30+1],P=f($,L),O=p(L,$),I=m($=t[x-4],L=t[x-4+1]),A=v(L,$),D=t[x-14],N=t[x-14+1],R=t[x-32],B=t[x-32+1],Y=O+N|0,j=P+D+g(Y,O)|0;j=(j=j+I+g(Y=Y+A|0,A)|0)+R+g(Y=Y+B|0,B)|0,t[x]=j,t[x+1]=Y}for(var F=0;F<160;F+=2){j=t[F],Y=t[F+1];var H=u(n,r,i),U=u(_,w,k),z=d(n,_),V=d(_,n),q=h(s,S),W=h(S,s),G=o[F],K=o[F+1],J=c(s,l,y),X=c(S,T,C),Q=M+W|0,Z=b+q+g(Q,M)|0;Z=(Z=(Z=Z+J+g(Q=Q+X|0,X)|0)+G+g(Q=Q+K|0,K)|0)+j+g(Q=Q+Y|0,Y)|0;var ee=V+U|0,te=z+H+g(ee,V)|0;b=y,M=C,y=l,C=T,l=s,T=S,s=a+Z+g(S=E+Q|0,E)|0,a=i,E=k,i=r,k=w,r=n,w=_,n=Z+te+g(_=Q+ee|0,Q)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+k|0,this._dl=this._dl+E|0,this._el=this._el+S|0,this._fl=this._fl+T|0,this._gl=this._gl+C|0,this._hl=this._hl+M|0,this._ah=this._ah+n+g(this._al,_)|0,this._bh=this._bh+r+g(this._bl,w)|0,this._ch=this._ch+i+g(this._cl,k)|0,this._dh=this._dh+a+g(this._dl,E)|0,this._eh=this._eh+s+g(this._el,S)|0,this._fh=this._fh+l+g(this._fl,T)|0,this._gh=this._gh+y+g(this._gl,C)|0,this._hh=this._hh+b+g(this._hl,M)|0},l.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=l},function(e,t,n){"use strict";var r=n(19),i=n(346),a=n(34),o=n(20).Buffer,s=n(247),l=n(96),c=n(97),u=o.alloc(128);function d(e,t){a.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var n="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>n)?t=("rmd160"===e?new l:c(e)).update(t).digest():t.length<n&&(t=o.concat([t,u],n));for(var r=this._ipad=o.allocUnsafe(n),i=this._opad=o.allocUnsafe(n),s=0;s<n;s++)r[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new l:c(e),this._hash.update(r)}r(d,a),d.prototype._update=function(e){this._hash.update(e)},d.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new l:c(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new d("rmd160",t):"md5"===e?new i(s,t):new d(e,t)}},function(e,t,n){var r=n(91);e.exports=function(e){return(new r).update(e).digest()}},function(e){e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(e,t,n){t.pbkdf2=n(348),t.pbkdf2Sync=n(252)},function(e,t,n){(function(t){var n=Math.pow(2,30)-1;function r(e,n){if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError(n+" must be a buffer or string")}e.exports=function(e,t,i,a){if(r(e,"Password"),r(t,"Salt"),"number"!=typeof i)throw new TypeError("Iterations not a number");if(i<0)throw new TypeError("Bad iterations");if("number"!=typeof a)throw new TypeError("Key length not a number");if(a<0||a>n||a!=a)throw new TypeError("Bad key length")}}).call(this,n(24).Buffer)},function(e,t,n){(function(t){var n;t.browser?n="utf-8":n=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=n}).call(this,n(25))},function(e,t,n){var r=n(247),i=n(96),a=n(97),o=n(250),s=n(251),l=n(20).Buffer,c=l.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,n){var o=function(e){function t(t){return a(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?r:t}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=o(t):t.length<s&&(t=l.concat([t,c],s));for(var d=l.allocUnsafe(s+u[e]),h=l.allocUnsafe(s+u[e]),f=0;f<s;f++)d[f]=54^t[f],h[f]=92^t[f];var p=l.allocUnsafe(s+n+4);d.copy(p,0,0,s),this.ipad1=p,this.ipad2=d,this.opad=h,this.alg=e,this.blocksize=s,this.hash=o,this.size=u[e]}d.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,n,r,i){o(e,t,n,r),l.isBuffer(e)||(e=l.from(e,s)),l.isBuffer(t)||(t=l.from(t,s));var a=new d(i=i||"sha1",e,t.length),c=l.allocUnsafe(r),h=l.allocUnsafe(t.length+4);t.copy(h,0,0,t.length);for(var f=0,p=u[i],m=Math.ceil(r/p),v=1;v<=m;v++){h.writeUInt32BE(v,t.length);for(var g=a.run(h,a.ipad1),y=g,b=1;b<n;b++){y=a.run(y,a.ipad2);for(var _=0;_<p;_++)g[_]^=y[_]}g.copy(c,f),f+=p}return c}},function(e,t,n){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){for(var i=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+o&1}for(o=6;o>=0;o-=2){for(s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}n[r+0]=i>>>0,n[r+1]=a>>>0},t.rip=function(e,t,n,r){for(var i=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},t.pc1=function(e,t,n,r){for(var i=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var a=0,o=0,s=r.length>>>1,l=0;l<s;l++)a<<=1,a|=e>>>r[l]&1;for(l=s;l<r.length;l++)o<<=1,o|=t>>>r[l]&1;n[i+0]=a>>>0,n[i+1]=o>>>0},t.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)r<<=6,r|=e>>>a&63;for(a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var n=0,r=0;r<4;r++){n<<=4,n|=i[64*r+(e>>>18-6*r&63)]}for(r=0;r<4;r++){n<<=4,n|=i[256+64*r+(t>>>18-6*r&63)]}return n>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,n=0;n<a.length;n++)t<<=1,t|=e>>>a[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var i=[],a=0;a<t;a+=n)i.push(r.slice(a,a+n));return i.join(" ")}},function(e,t,n){"use strict";var r=n(29),i=n(19),a=n(253),o=n(98);function s(){this.tmp=new Array(2),this.keys=null}function l(e){o.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(l,o),e.exports=l,l.create=function(e){return new l(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(e,t){e.keys=new Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var n=a.readUInt32BE(t,0),i=a.readUInt32BE(t,4);a.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var s=c[o>>>1];n=a.r28shl(n,s),i=a.r28shl(i,s),a.pc2(n,i,e.keys,o)}},l.prototype._update=function(e,t,n,r){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(n,o,r),a.writeUInt32BE(n,s,r+4)},l.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},l.prototype._unpad=function(e){for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)r.equal(e[n],t);return e.slice(0,e.length-t)},l.prototype._encrypt=function(e,t,n,r,i){for(var o=t,s=n,l=0;l<e.keys.length;l+=2){var c=e.keys[l],u=e.keys[l+1];a.expand(s,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=a.substitute(c,u),h=s;s=(o^a.permute(d))>>>0,o=h}a.rip(s,o,r,i)},l.prototype._decrypt=function(e,t,n,r,i){for(var o=n,s=t,l=e.keys.length-2;l>=0;l-=2){var c=e.keys[l],u=e.keys[l+1];a.expand(o,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=a.substitute(c,u),h=o;o=(s^a.permute(d))>>>0,s=h}a.rip(o,s,r,i)}},function(e,t,n){var r=n(45),i=n(20).Buffer,a=n(256);function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return a(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),a=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var l=o(e),c=a+16*s;e._cache.writeUInt32BE(l[0],c+0),e._cache.writeUInt32BE(l[1],c+4),e._cache.writeUInt32BE(l[2],c+8),e._cache.writeUInt32BE(l[3],c+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,u)}},function(e,t){e.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},function(e){e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(e,t,n){var r=n(54),i=n(20).Buffer,a=n(34),o=n(19),s=n(361),l=n(45),c=n(256);function u(e,t,n,o){a.call(this);var l=i.alloc(4,0);this._cipher=new r.AES(t);var u=this._cipher.encryptBlock(l);this._ghash=new s(u),n=function(e,t,n){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var r=new s(n),a=t.length,o=a%16;r.update(t),o&&(o=16-o,r.update(i.alloc(o,0))),r.update(i.alloc(8,0));var l=8*a,u=i.alloc(8);u.writeUIntBE(l,0,8),r.update(u),e._finID=r.state;var d=i.from(e._finID);return c(d),d}(this,n,u),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(u,a),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i<r;++i)n+=e[i]^t[i];return n}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},u.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=u},function(e,t,n){var r=n(54),i=n(20).Buffer,a=n(34);function o(e,t,n,o){a.call(this),this._cipher=new r.AES(t),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._mode=e}n(19)(o,a),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},e.exports=o},function(e,t,n){var r=n(39);e.exports=y,y.simpleSieve=v,y.fermatTest=g;var i=n(23),a=new i(24),o=new(n(261)),s=new i(1),l=new i(2),c=new i(5),u=(new i(16),new i(8),new i(10)),d=new i(3),h=(new i(7),new i(11)),f=new i(4),p=(new i(12),null);function m(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;i<t&&e[i]<=r&&n%e[i]!=0;i++);t!==i&&e[i]<=r||(e[t++]=n)}return p=e,e}function v(e){for(var t=m(),n=0;n<t.length;n++)if(0===e.modn(t[n]))return 0===e.cmpn(t[n]);return!0}function g(e){var t=i.mont(e);return 0===l.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function y(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var n,p;for(t=new i(t);;){for(n=new i(r(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(l),t.cmp(l)){if(!t.cmp(c))for(;n.mod(u).cmp(d);)n.iadd(f)}else for(;n.mod(a).cmp(h);)n.iadd(f);if(v(p=n.shrn(1))&&v(n)&&g(p)&&g(n)&&o.test(p)&&o.test(n))return n}}},function(e,t,n){var r=n(23),i=n(101);function a(e){this.rand=e||new i.Rand}e.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(e)>=0);return i},a.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},a.prototype.test=function(e,t,n){var i=e.bitLength(),a=r.mont(e),o=new r(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),l=0;!s.testn(l);l++);for(var c=e.shrn(l),u=s.toRed(a);t>0;t--){var d=this._randrange(new r(2),s);n&&n(d);var h=d.toRed(a).redPow(c);if(0!==h.cmp(o)&&0!==h.cmp(u)){for(var f=1;f<l;f++){if(0===(h=h.redSqr()).cmp(o))return!1;if(0===h.cmp(u))break}if(f===l)return!1}}return!0},a.prototype.getDivisor=function(e,t){var n=e.bitLength(),i=r.mont(e),a=new r(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var l=e.shrn(s),c=o.toRed(i);t>0;t--){var u=this._randrange(new r(2),o),d=e.gcd(u);if(0!==d.cmpn(1))return d;var h=u.toRed(i).redPow(l);if(0!==h.cmp(a)&&0!==h.cmp(c)){for(var f=1;f<s;f++){if(0===(h=h.redSqr()).cmp(a))return h.fromRed().subn(1).gcd(e);if(0===h.cmp(c))break}if(f===s)return(h=h.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,n){"use strict";var r=t;function i(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",n=0;n<e.length;n++)t+=i(e[n].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),a=i>>8,o=255&i;a?n.push(a,o):n.push(o)}return n},r.zero2=i,r.toHex=a,r.encode=function(e,t){return"hex"===t?a(e):e}},function(e,t,n){"use strict";var r=t;r.base=n(56),r.short=n(372),r.mont=n(373),r.edwards=n(374)},function(e,t,n){"use strict";var r=n(33).rotr32;function i(e,t,n){return e&t^~e&n}function a(e,t,n){return e&t^e&n^t&n}function o(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?o(t,n,r):2===e?a(t,n,r):void 0},t.ch32=i,t.maj32=a,t.p32=o,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){"use strict";var r=n(33),i=n(46),a=n(264),o=n(29),s=r.sum32,l=r.sum32_4,c=r.sum32_5,u=a.ch32,d=a.maj32,h=a.s0_256,f=a.s1_256,p=a.g0_256,m=a.g1_256,v=i.BlockHash,g=[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];function y(){if(!(this instanceof y))return new y;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(y,v),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=l(m(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],a=this.h[1],v=this.h[2],g=this.h[3],y=this.h[4],b=this.h[5],_=this.h[6],w=this.h[7];for(o(this.k.length===n.length),r=0;r<n.length;r++){var k=c(w,f(y),u(y,b,_),this.k[r],n[r]),E=s(h(i),d(i,a,v));w=_,_=b,b=y,y=s(g,k),g=v,v=a,a=i,i=s(k,E)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],v),this.h[3]=s(this.h[3],g),this.h[4]=s(this.h[4],y),this.h[5]=s(this.h[5],b),this.h[6]=s(this.h[6],_),this.h[7]=s(this.h[7],w)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(33),i=n(46),a=n(29),o=r.rotr64_hi,s=r.rotr64_lo,l=r.shr64_hi,c=r.shr64_lo,u=r.sum64,d=r.sum64_hi,h=r.sum64_lo,f=r.sum64_4_hi,p=r.sum64_4_lo,m=r.sum64_5_hi,v=r.sum64_5_lo,g=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function _(e,t,n,r,i){var a=e&n^~e&i;return a<0&&(a+=4294967296),a}function w(e,t,n,r,i,a){var o=t&r^~t&a;return o<0&&(o+=4294967296),o}function k(e,t,n,r,i){var a=e&n^e&i^n&i;return a<0&&(a+=4294967296),a}function E(e,t,n,r,i,a){var o=t&r^t&a^r&a;return o<0&&(o+=4294967296),o}function S(e,t){var n=o(e,t,28)^o(t,e,2)^o(t,e,7);return n<0&&(n+=4294967296),n}function T(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function C(e,t){var n=o(e,t,14)^o(e,t,18)^o(t,e,9);return n<0&&(n+=4294967296),n}function M(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function x(e,t){var n=o(e,t,1)^o(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function $(e,t){var n=s(e,t,1)^s(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function L(e,t){var n=o(e,t,19)^o(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}function P(e,t){var n=s(e,t,19)^s(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(b,g),e.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=L(n[r-4],n[r-3]),a=P(n[r-4],n[r-3]),o=n[r-14],s=n[r-13],l=x(n[r-30],n[r-29]),c=$(n[r-30],n[r-29]),u=n[r-32],d=n[r-31];n[r]=f(i,a,o,s,l,c,u,d),n[r+1]=p(i,a,o,s,l,c,u,d)}},b.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],l=this.h[4],c=this.h[5],f=this.h[6],p=this.h[7],g=this.h[8],y=this.h[9],b=this.h[10],x=this.h[11],$=this.h[12],L=this.h[13],P=this.h[14],O=this.h[15];a(this.k.length===n.length);for(var I=0;I<n.length;I+=2){var A=P,D=O,N=C(g,y),R=M(g,y),B=_(g,y,b,x,$),Y=w(g,y,b,x,$,L),j=this.k[I],F=this.k[I+1],H=n[I],U=n[I+1],z=m(A,D,N,R,B,Y,j,F,H,U),V=v(A,D,N,R,B,Y,j,F,H,U);A=S(r,i),D=T(r,i),N=k(r,i,o,s,l),R=E(r,i,o,s,l,c);var q=d(A,D,N,R),W=h(A,D,N,R);P=$,O=L,$=b,L=x,b=g,x=y,g=d(f,p,z,V),y=h(p,p,z,V),f=l,p=c,l=o,c=s,o=r,s=i,r=d(z,V,q,W),i=h(z,V,q,W)}u(this.h,0,r,i),u(this.h,2,o,s),u(this.h,4,l,c),u(this.h,6,f,p),u(this.h,8,g,y),u(this.h,10,b,x),u(this.h,12,$,L),u(this.h,14,P,O)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){var r=n(19),i=n(48).Reporter,a=n(24).Buffer;function o(e,t){i.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(o,i),t.DecoderBuffer=o,o.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},o.prototype.restore=function(e){var t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new o(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=s,s.prototype.join=function(e,t){return e||(e=new a(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},function(e,t,n){var r=t;r._reverse=function(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t},r.der=n(394)},function(e,t,n){var r=n(19),i=n(47),a=i.base,o=i.bignum,s=i.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.Node.call(this,"der",e)}function u(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=s.tagClass[n>>6],i=0==(32&n);if(31==(31&n)){var a=n;for(n=0;128==(128&a);){if(a=e.readUInt8(t),e.isError(a))return a;n<<=7,n|=127&a}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function d(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;var i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(var a=0;a<i;a++){r<<=8;var o=e.readUInt8(n);if(e.isError(o))return o;r|=o}return r}e.exports=l,l.prototype.decode=function(e,t){return e instanceof a.DecoderBuffer||(e=new a.DecoderBuffer(e,t)),this.tree._decode(e,t)},r(c,a.Node),c.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;var r=e.save(),i=u(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)},c.prototype._decodeTag=function(e,t,n){var r=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;var i=d(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var a=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-a.offset,e.restore(a),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var n=u(e,t);if(e.isError(n))return n;var r,i=d(e,n.primitive,t);if(e.isError(i))return i;if(r=n.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===n.tagStr)break}},c.prototype._decodeList=function(e,t,n,r){for(var i=[];!e.isEmpty();){var a=this._peekTag(e,"end");if(e.isError(a))return a;var o=n.decode(e,"der",r);if(e.isError(o)&&a)break;i.push(o)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}if("bmpstr"===t){var r=e.raw();if(r.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",a=0;a<r.length/2;a++)i+=String.fromCharCode(r.readUInt16BE(2*a));return i}if("numstr"===t){var o=e.raw().toString("ascii");return this._isNumstr(o)?o:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,n){for(var r,i=[],a=0;!e.isEmpty();){var o=e.readUInt8();a<<=7,a|=127&o,0==(128&o)&&(i.push(a),a=0)}128&o&&i.push(a);var s=i[0]/40|0,l=i[0]%40;if(r=n?i:[s,l].concat(i.slice(1)),t){var c=t[r.join(" ")];void 0===c&&(c=t[r.join(".")]),void 0!==c&&(r=c)}return r},c.prototype._decodeTime=function(e,t){var n=e.raw().toString();if("gentime"===t)var r=0|n.slice(0,4),i=0|n.slice(4,6),a=0|n.slice(6,8),o=0|n.slice(8,10),s=0|n.slice(10,12),l=0|n.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|n.slice(0,2),i=0|n.slice(2,4),a=0|n.slice(4,6),o=0|n.slice(6,8),s=0|n.slice(8,10),l=0|n.slice(10,12);r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,a,o,s,l,0)},c.prototype._decodeNull=function(e){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var n=e.raw(),r=new o(n);return t&&(r=t[r.toString(10)]||r),r},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,n){var r=n(19),i=n(24).Buffer,a=n(47),o=a.base,s=a.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.Node.call(this,"der",e)}function u(e){return e<10?"0"+e:e}e.exports=l,l.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(c,o.Node),c.prototype._encodeComposite=function(e,t,n,r){var a,o=function(e,t,n,r){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}if(i>=31)return r.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[n||"universal"]<<6}(e,t,n,this.reporter);if(r.length<128)return(a=new i(2))[0]=o,a[1]=r.length,this._createEncoderBuffer([a,r]);for(var l=1,c=r.length;c>=256;c>>=8)l++;(a=new i(2+l))[0]=o,a[1]=128|l;c=1+l;for(var u=r.length;u>0;c--,u>>=8)a[c]=255&u;return this._createEncoderBuffer([a,r])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new i(2*e.length),r=0;r<e.length;r++)n.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(n)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},c.prototype._encodeObjid=function(e,t,n){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var r=0;r<e.length;r++)e[r]|=0}else if(Array.isArray(e)){e=e.slice();for(r=0;r<e.length;r++)e[r]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var a=0;for(r=0;r<e.length;r++){var o=e[r];for(a++;o>=128;o>>=7)a++}var s=new i(a),l=s.length-1;for(r=e.length-1;r>=0;r--){o=e[r];for(s[l--]=127&o;(o>>=7)>0;)s[l--]=128|127&o}return this._createEncoderBuffer(s)},c.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[u(r.getFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[u(r.getFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new i(n)}if(i.isBuffer(e)){var r=e.length;0===e.length&&r++;var a=new i(r);return e.copy(a),0===e.length&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);r=1;for(var o=e;o>=256;o>>=8)r++;for(o=(a=new Array(r)).length-1;o>=0;o--)a[o]=255&e,e>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(new i(a))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,n){var r,i=this._baseState;if(null===i.default)return!1;var a=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,n).join()),a.length!==i.defaultBuffer.length)return!1;for(r=0;r<a.length;r++)if(a[r]!==i.defaultBuffer[r])return!1;return!0}},function(e){e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(e,t,n){var r=n(42),i=n(20).Buffer;function a(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var n,o=i.alloc(0),s=0;o.length<t;)n=a(s++),o=i.concat([o,r("sha1").update(e).update(n).digest()]);return o.slice(0,t)}},function(e,t){e.exports=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e}},function(e,t,n){var r=n(23),i=n(20).Buffer;e.exports=function(e,t){return i.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(27);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))})))})),a=o.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(27),i=n(434),a={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,l={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=n(281)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(o(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(a)})),e.exports=l}).call(this,n(25))},function(e,t,n){"use strict";var r=n(27),i=n(435),a=n(437),o=n(278),s=n(438),l=n(441),c=n(442),u=n(282);e.exports=function(e){return new Promise((function(t,n){var d=e.data,h=e.headers;r.isFormData(d)&&delete h["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(p+":"+m)}var v=s(e.baseURL,e.url);if(f.open(e.method.toUpperCase(),o(v,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,a={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:e,request:f};i(t,n,a),f=null}},f.onabort=function(){f&&(n(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(u("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||c(v))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;g&&(h[e.xsrfHeaderName]=g)}if("setRequestHeader"in f&&r.forEach(h,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete h[t]:f.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),n(e),f=null)})),d||(d=null),f.send(d)}))}},function(e,t,n){"use strict";var r=n(436);e.exports=function(e,t,n,i,a){var o=new Error(e);return r(o,t,n,i,a)}},function(e,t,n){"use strict";var r=n(27);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],a=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),r.forEach(a,c),r.forEach(o,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(void 0,t[i])})),r.forEach(s,(function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))}));var u=i.concat(a).concat(o).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(d,c),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){(function(e){t.fetch=s(e.fetch)&&s(e.ReadableStream),t.writableStream=s(e.WritableStream),t.abortController=s(e.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var n;function r(){if(void 0!==n)return n;if(e.XMLHttpRequest){n=new e.XMLHttpRequest;try{n.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function i(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var a=void 0!==e.ArrayBuffer,o=a&&s(e.ArrayBuffer.prototype.slice);function s(e){return"function"==typeof e}t.arraybuffer=t.fetch||a&&i("arraybuffer"),t.msstream=!t.fetch&&o&&i("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&a&&i("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&s(r().overrideMimeType),t.vbArray=s(e.VBArray),n=null}).call(this,n(22))},function(e,t,n){(function(e,r,i){var a=n(285),o=n(19),s=n(43),l=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(t,n,o,l){var c=this;if(s.Readable.call(c),c._mode=o,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",(function(){e.nextTick((function(){c.emit("close")}))})),"fetch"===o){if(c._fetchResponse=n,c.url=n.url,c.statusCode=n.status,c.statusMessage=n.statusText,n.headers.forEach((function(e,t){c.headers[t.toLowerCase()]=e,c.rawHeaders.push(t,e)})),a.writableStream){var u=new WritableStream({write:function(e){return new Promise((function(t,n){c._destroyed?n():c.push(new r(e))?t():c._resumeFetch=t}))},close:function(){i.clearTimeout(l),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{return void n.body.pipeTo(u).catch((function(e){i.clearTimeout(l),c._destroyed||c.emit("error",e)}))}catch(e){}}var d=n.body.getReader();!function e(){d.read().then((function(t){if(!c._destroyed){if(t.done)return i.clearTimeout(l),void c.push(null);c.push(new r(t.value)),e()}})).catch((function(e){i.clearTimeout(l),c._destroyed||c.emit("error",e)}))}()}else{if(c._xhr=t,c._pos=0,c.url=t.responseURL,c.statusCode=t.status,c.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===c.headers[n]&&(c.headers[n]=[]),c.headers[n].push(t[2])):void 0!==c.headers[n]?c.headers[n]+=", "+t[2]:c.headers[n]=t[2],c.rawHeaders.push(t[1],t[2])}})),c._charset="x-user-defined",!a.overrideMimeType){var h=c.rawHeaders["mime-type"];if(h){var f=h.match(/;\s*charset=([^;])(;|$)/);f&&(c._charset=f[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};o(c,s.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==l.DONE)break;try{n=new i.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new r(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var a=n.substr(e._pos);if("x-user-defined"===e._charset){for(var o=new r(a.length),s=0;s<a.length;s++)o[s]=255&a.charCodeAt(s);e.push(o)}else e.push(a,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==l.DONE||!t.response)break;n=t.response,e.push(new r(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==l.LOADING||!n)break;e.push(new r(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==l.LOADING)break;var c=new i.MSStreamReader;c.onprogress=function(){c.result.byteLength>e._pos&&(e.push(new r(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n)}e._xhr.readyState===l.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,n(25),n(24).Buffer,n(22))},function(e,t,n){"use strict";var r=n(453),i=n(454);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=b(e));return e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),d=["%","/","?",";","#"].concat(u),h=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(455);function b(e,t,n){if(e&&i.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),s=-1!==a&&a<e.indexOf("#")?"?":"#",c=e.split(s);c[0]=c[0].replace(/\\/g,"/");var b=e=c.join(s);if(b=b.trim(),!n&&1===e.split("#").length){var _=l.exec(b);if(_)return this.path=b,this.href=b,this.pathname=_[1],_[2]?(this.search=_[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=o.exec(b);if(w){var k=(w=w[0]).toLowerCase();this.protocol=k,b=b.substr(w.length)}if(n||w||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var E="//"===b.substr(0,2);!E||w&&v[w]||(b=b.substr(2),this.slashes=!0)}if(!v[w]&&(E||w&&!g[w])){for(var S,T,C=-1,M=0;M<h.length;M++){-1!==(x=b.indexOf(h[M]))&&(-1===C||x<C)&&(C=x)}-1!==(T=-1===C?b.lastIndexOf("@"):b.lastIndexOf("@",C))&&(S=b.slice(0,T),b=b.slice(T+1),this.auth=decodeURIComponent(S)),C=-1;for(M=0;M<d.length;M++){var x;-1!==(x=b.indexOf(d[M]))&&(-1===C||x<C)&&(C=x)}-1===C&&(C=b.length),this.host=b.slice(0,C),b=b.slice(C),this.parseHost(),this.hostname=this.hostname||"";var $="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!$)for(var L=this.hostname.split(/\./),P=(M=0,L.length);M<P;M++){var O=L[M];if(O&&!O.match(f)){for(var I="",A=0,D=O.length;A<D;A++)O.charCodeAt(A)>127?I+="x":I+=O[A];if(!I.match(f)){var N=L.slice(0,M),R=L.slice(M+1),B=O.match(p);B&&(N.push(B[1]),R.unshift(B[2])),R.length&&(b="/"+R.join(".")+b),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),$||(this.hostname=r.toASCII(this.hostname));var Y=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+Y,this.href+=this.host,$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[k])for(M=0,P=u.length;M<P;M++){var F=u[M];if(-1!==b.indexOf(F)){var H=encodeURIComponent(F);H===F&&(H=escape(F)),b=b.split(F).join(H)}}var U=b.indexOf("#");-1!==U&&(this.hash=b.substr(U),b=b.slice(0,U));var z=b.indexOf("?");if(-1!==z?(this.search=b.substr(z),this.query=b.substr(z+1),t&&(this.query=y.parse(this.query)),b=b.slice(0,z)):t&&(this.search="",this.query={}),b&&(this.pathname=b),g[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){Y=this.pathname||"";var V=this.search||"";this.path=Y+V}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",a=!1,o="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(o=y.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==a?(a="//"+(a||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):a||(a=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+a+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},a.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(i.isString(e)){var t=new a;t.parse(e,!1,!0),e=t}for(var n=new a,r=Object.keys(this),o=0;o<r.length;o++){var s=r[o];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),c=0;c<l.length;c++){var u=l[c];"protocol"!==u&&(n[u]=e[u])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var d=Object.keys(e),h=0;h<d.length;h++){var f=d[h];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",y=n.search||"";n.path=m+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var b=n.pathname&&"/"===n.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=_||b||n.host&&e.pathname,k=w,E=n.pathname&&n.pathname.split("/")||[],S=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(S&&(n.hostname="",n.port=null,n.host&&(""===E[0]?E[0]=n.host:E.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===E[0])),_)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,E=p;else if(p.length)E||(E=[]),E.pop(),E=E.concat(p),n.search=e.search,n.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(S)n.hostname=n.host=E.shift(),($=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=$.shift(),n.host=n.hostname=$.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=E.slice(-1)[0],C=(n.host||e.host||E.length>1)&&("."===T||".."===T)||""===T,M=0,x=E.length;x>=0;x--)"."===(T=E[x])?E.splice(x,1):".."===T?(E.splice(x,1),M++):M&&(E.splice(x,1),M--);if(!w&&!k)for(;M--;M)E.unshift("..");!w||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),C&&"/"!==E.join("/").substr(-1)&&E.push("");var $,L=""===E[0]||E[0]&&"/"===E[0].charAt(0);S&&(n.hostname=n.host=L?"":E.length?E.shift():"",($=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=$.shift(),n.host=n.hostname=$.shift()));return(w=w||n.host&&E.length)&&!L&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"014b":function(e,t,n){"use strict";var r=n("e53d"),i=n("07e3"),a=n("8e60"),o=n("63b6"),s=n("9138"),l=n("ebfd").KEY,c=n("294c"),u=n("dbdb"),d=n("45f2"),h=n("62a0"),f=n("5168"),p=n("ccb9"),m=n("6718"),v=n("47ee"),g=n("9003"),y=n("e4ae"),b=n("f772"),_=n("241e"),w=n("36c3"),k=n("1bc3"),E=n("aebd"),S=n("a159"),T=n("0395"),C=n("bf0b"),M=n("9aa9"),x=n("d9f6"),$=n("c3a1"),L=C.f,P=x.f,O=T.f,I=r.Symbol,A=r.JSON,D=A&&A.stringify,N=f("_hidden"),R=f("toPrimitive"),B={}.propertyIsEnumerable,Y=u("symbol-registry"),j=u("symbols"),F=u("op-symbols"),H=Object.prototype,U="function"==typeof I&&!!M.f,z=r.QObject,V=!z||!z.prototype||!z.prototype.findChild,q=a&&c((function(){return 7!=S(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=L(H,t);r&&delete H[t],P(e,t,n),r&&e!==H&&P(H,t,r)}:P,W=function(e){var t=j[e]=S(I.prototype);return t._k=e,t},G=U&&"symbol"==typeof I.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof I},K=function(e,t,n){return e===H&&K(F,t,n),y(e),t=k(t,!0),y(n),i(j,t)?(n.enumerable?(i(e,N)&&e[N][t]&&(e[N][t]=!1),n=S(n,{enumerable:E(0,!1)})):(i(e,N)||P(e,N,E(1,{})),e[N][t]=!0),q(e,t,n)):P(e,t,n)},J=function(e,t){y(e);for(var n,r=v(t=w(t)),i=0,a=r.length;a>i;)K(e,n=r[i++],t[n]);return e},X=function(e){var t=B.call(this,e=k(e,!0));return!(this===H&&i(j,e)&&!i(F,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,N)&&this[N][e])||t)},Q=function(e,t){if(e=w(e),t=k(t,!0),e!==H||!i(j,t)||i(F,t)){var n=L(e,t);return!n||!i(j,t)||i(e,N)&&e[N][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=O(w(e)),r=[],a=0;n.length>a;)i(j,t=n[a++])||t==N||t==l||r.push(t);return r},ee=function(e){for(var t,n=e===H,r=O(n?F:w(e)),a=[],o=0;r.length>o;)!i(j,t=r[o++])||n&&!i(H,t)||a.push(j[t]);return a};U||(s((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(F,n),i(this,N)&&i(this[N],e)&&(this[N][e]=!1),q(this,e,E(1,n))};return a&&V&&q(H,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",(function(){return this._k})),C.f=Q,x.f=K,n("6abf").f=T.f=Z,n("355d").f=X,M.f=ee,a&&!n("b8e3")&&s(H,"propertyIsEnumerable",X,!0),p.f=function(e){return W(f(e))}),o(o.G+o.W+o.F*!U,{Symbol:I});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var re=$(f.store),ie=0;re.length>ie;)m(re[ie++]);o(o.S+o.F*!U,"Symbol",{for:function(e){return i(Y,e+="")?Y[e]:Y[e]=I(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in Y)if(Y[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),o(o.S+o.F*!U,"Object",{create:function(e,t){return void 0===t?S(e):J(S(e),t)},defineProperty:K,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var ae=c((function(){M.f(1)}));o(o.S+o.F*ae,"Object",{getOwnPropertySymbols:function(e){return M.f(_(e))}}),A&&o(o.S+o.F*(!U||c((function(){var e=I();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!G(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,D.apply(A,r)}}),I.prototype[R]||n("35e8")(I.prototype,R,I.prototype.valueOf),d(I,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),a=n("2aba"),o=n("32e9"),s=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,m,v,g){l(n,t,p);var y,b,_,w=function(e){if(!h&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",E="values"==m,S=!1,T=e.prototype,C=T[d]||T["@@iterator"]||m&&T[m],M=C||w(m),x=m?E?w("entries"):M:void 0,$="Array"==t&&T.entries||C;if($&&(_=u($.call(new e)))!==Object.prototype&&_.next&&(c(_,k,!0),r||"function"==typeof _[d]||o(_,d,f)),E&&C&&"values"!==C.name&&(S=!0,M=function(){return C.call(this)}),r&&!g||!h&&!S&&T[d]||o(T,d,M),s[t]=M,s[k]=f,m)if(y={values:E?M:w("values"),keys:v?M:w("keys"),entries:x},g)for(b in y)b in T||a(T,b,y[b]);else i(i.P+i.F*(h||S),t,y);return y}},"0395":function(e,t,n){var r=n("36c3"),i=n("6abf").f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(r(e))}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0a49":function(e,t,n){var r=n("9b43"),i=n("626a"),a=n("4bf8"),o=n("9def"),s=n("cd1c");e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,h=5==e||d,f=t||s;return function(t,s,p){for(var m,v,g=a(t),y=i(g),b=r(s,p,3),_=o(y.length),w=0,k=n?f(t,_):l?f(t,0):void 0;_>w;w++)if((h||w in y)&&(v=b(m=y[w],w,g),e))if(n)k[w]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:k.push(m)}else if(u)return!1;return d?-1:c||u?u:k}}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");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}},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},"0fc9":function(e,t,n){var r=n("3a38"),i=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):a(e,t)}},1169:function(e,t,n){var r=n("2d95");e.exports=Array.isArray||function(e){return"Array"==r(e)}},1173: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}},"11e9":function(e,t,n){var r=n("52a7"),i=n("4630"),a=n("6821"),o=n("6a99"),s=n("69a8"),l=n("c69a"),c=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?c:function(e,t){if(e=a(e),t=o(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),a=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,l=0;s>l;)r.f(e,n=o[l++],t[n]);return e}},1654:function(e,t,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(e,t,n){var r=n("63b6");r(r.S,"Array",{isArray:n("9003")})},"1bc3":function(e,t,n){var r=n("f772");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,n){var r=n("f772"),i=n("e53d").document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},"20d6":function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(6),a="findIndex",o=!0;a in[]&&Array(1)[a]((function(){o=!1})),r(r.P+r.F*o,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(a)},"20fd":function(e,t,n){"use strict";var r=n("d9f6"),i=n("aebd");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},"241e":function(e,t,n){var r=n("25eb");e.exports=function(e){return Object(r(e))}},"24c5":function(e,t,n){"use strict";var r,i,a,o,s=n("b8e3"),l=n("e53d"),c=n("d864"),u=n("40c3"),d=n("63b6"),h=n("f772"),f=n("79aa"),p=n("1173"),m=n("a22a"),v=n("f201"),g=n("4178").set,y=n("aba2")(),b=n("656e"),_=n("4439"),w=n("bc13"),k=n("cd78"),E=l.TypeError,S=l.process,T=S&&S.versions,C=T&&T.v8||"",M=l.Promise,x="process"==u(S),$=function(){},L=i=b.f,P=!!function(){try{var e=M.resolve(1),t=(e.constructor={})[n("5168")("species")]=function(e){e($,$)};return(x||"function"==typeof PromiseRejectionEvent)&&e.then($)instanceof t&&0!==C.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),O=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},I=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){for(var r=e._v,i=1==e._s,a=0,o=function(t){var n,a,o,s=i?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{s?(i||(2==e._h&&N(e),e._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),o=!0)),n===t.promise?c(E("Promise-chain cycle")):(a=O(n))?a.call(n,l,c):l(n)):c(r)}catch(e){u&&!o&&u.exit(),c(e)}};n.length>a;)o(n[a++]);e._c=[],e._n=!1,t&&!e._h&&A(e)}))}},A=function(e){g.call(l,(function(){var t,n,r,i=e._v,a=D(e);if(a&&(t=_((function(){x?S.emit("unhandledRejection",i,e):(n=l.onunhandledrejection)?n({promise:e,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=x||D(e)?2:1),e._a=void 0,a&&t.e)throw t.v}))},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},N=function(e){g.call(l,(function(){var t;x?S.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})}))},R=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()),I(t,!0))},B=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw E("Promise can't be resolved itself");(t=O(e))?y((function(){var r={_w:n,_d:!1};try{t.call(e,c(B,r,1),c(R,r,1))}catch(e){R.call(r,e)}})):(n._v=e,n._s=1,I(n,!1))}catch(e){R.call({_w:n,_d:!1},e)}}};P||(M=function(e){p(this,M,"Promise","_h"),f(e),r.call(this);try{e(c(B,this,1),c(R,this,1))}catch(e){R.call(this,e)}},(r=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("5c95")(M.prototype,{then:function(e,t){var n=L(v(this,M));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=x?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new r;this.promise=e,this.resolve=c(B,e,1),this.reject=c(R,e,1)},b.f=L=function(e){return e===M||e===o?new a(e):i(e)}),d(d.G+d.W+d.F*!P,{Promise:M}),n("45f2")(M,"Promise"),n("4c95")("Promise"),o=n("584a").Promise,d(d.S+d.F*!P,"Promise",{reject:function(e){var t=L(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!P),"Promise",{resolve:function(e){return k(s&&this===o?M:this,e)}}),d(d.S+d.F*!(P&&n("4ee1")((function(e){M.all(e).catch($)}))),"Promise",{all:function(e){var t=this,n=L(t),r=n.resolve,i=n.reject,a=_((function(){var n=[],a=0,o=1;m(e,!1,(function(e){var s=a++,l=!1;n.push(void 0),o++,t.resolve(e).then((function(e){l||(l=!0,n[s]=e,--o||r(n))}),i)})),--o||r(n)}));return a.e&&i(a.v),n.promise},race:function(e){var t=this,n=L(t),r=n.reject,i=_((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},"252c":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=void 0;function i(){i.init||(i.init=!0,r=-1!==function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}())}var a={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{compareAndNotify:function(){this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit("notify"))},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!r&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),delete this._resizeObject.onload)}},mounted:function(){var e=this;i(),this.$nextTick((function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight}));var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",r&&this.$el.appendChild(t),t.data="about:blank",r||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()}};var o={version:"0.4.5",install:function(e){e.component("resize-observer",a),e.component("ResizeObserver",a)}},s=null;"undefined"!=typeof window?s=window.Vue:void 0!==e&&(s=e.Vue),s&&s.use(o)}).call(this,n("c8ba"))},"25eb":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),a=n("69a8"),o=n("ca5a")("src"),s=n("fa5b"),l=(""+s).split("toString");n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(a(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(a(n,o)||i(n,o,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[o]||s.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),a=n("e11e"),o=n("613b")("IE_PROTO"),s=function(){},l=function(){var e,t=n("230e")("iframe"),r=a.length;for(t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[a[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=l(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),a=n("7726").Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8");r(r.P+r.F*n("5147")("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},3024: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)}},"30f1":function(e,t,n){"use strict";var r=n("b8e3"),i=n("63b6"),a=n("9138"),o=n("35e8"),s=n("481b"),l=n("8f60"),c=n("45f2"),u=n("53e2"),d=n("5168")("iterator"),h=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,m,v,g){l(n,t,p);var y,b,_,w=function(e){if(!h&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",E="values"==m,S=!1,T=e.prototype,C=T[d]||T["@@iterator"]||m&&T[m],M=C||w(m),x=m?E?w("entries"):M:void 0,$="Array"==t&&T.entries||C;if($&&(_=u($.call(new e)))!==Object.prototype&&_.next&&(c(_,k,!0),r||"function"==typeof _[d]||o(_,d,f)),E&&C&&"values"!==C.name&&(S=!0,M=function(){return C.call(this)}),r&&!g||!h&&!S&&T[d]||o(T,d,M),s[t]=M,s[k]=f,m)if(y={values:E?M:w("values"),keys:v?M:w("keys"),entries:x},g)for(b in y)b in T||a(T,b,y[b]);else i(i.P+i.F*(h||S),t,y);return y}},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"32fc":function(e,t,n){var r=n("e53d").document;e.exports=r&&r.documentElement},3314:function(e,t,n){"use strict";var r=n("8f82");n.n(r).a},"335c":function(e,t,n){var r=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var r=n("d9f6"),i=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"36c3":function(e,t,n){var r=n("335c"),i=n("25eb");e.exports=function(e){return r(i(e))}},3702:function(e,t,n){var r=n("481b"),i=n("5168")("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},3846:function(e,t,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),a=n("613b")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},"3a38":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"3c11":function(e,t,n){"use strict";var r=n("63b6"),i=n("584a"),a=n("e53d"),o=n("f201"),s=n("cd78");r(r.P+r.R,"Promise",{finally:function(e){var t=o(this,i.Promise||a.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},"40c3":function(e,t,n){var r=n("6b4c"),i=n("5168")("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},4178:function(e,t,n){var r,i,a,o=n("d864"),s=n("3024"),l=n("32fc"),c=n("1ec9"),u=n("e53d"),d=u.process,h=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,m=u.Dispatch,v=0,g={},y=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},b=function(e){y.call(e.data)};h&&f||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++v]=function(){s("function"==typeof e?e:Function(e),t)},r(v),v},f=function(e){delete g[e]},"process"==n("6b4c")(d)?r=function(e){d.nextTick(o(y,e,1))}:m&&m.now?r=function(e){m.now(o(y,e,1))}:p?(a=(i=new p).port2,i.port1.onmessage=b,r=o(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(e){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(o(y,e,1),0)}),e.exports={set:h,clear:f}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),a=n("7f20"),o={};n("32e9")(o,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},"43fc":function(e,t,n){"use strict";var r=n("63b6"),i=n("656e"),a=n("4439");r(r.S,"Promise",{try:function(e){var t=i.f(this),n=a(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},4439:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},"454f":function(e,t,n){n("46a7");var r=n("584a").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"45f2":function(e,t,n){var r=n("d9f6").f,i=n("07e3"),a=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"46a7":function(e,t,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"47ee":function(e,t,n){var r=n("c3a1"),i=n("9aa9"),a=n("355d");e.exports=function(e){var t=r(e),n=i.f;if(n)for(var o,s=n(e),l=a.f,c=0;s.length>c;)l.call(e,o=s[c++])&&t.push(o);return t}},"481b":function(e,t){e.exports={}},4883:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.colorNameToHex=t.isColorName=t.HexToRgba=t.ShadeColor=void 0;t.ShadeColor=function(e,t){var n=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),i=parseInt(e.substring(5,7),16);return n=parseInt(n*(100+t)/100),r=(r=parseInt(r*(100+t)/100))<255?r:255,i=(i=parseInt(i*(100+t)/100))<255?i:255,"#"+(1===(n=n<255?n:255).toString(16).length?"0"+n.toString(16):n.toString(16))+(1===r.toString(16).length?"0"+r.toString(16):r.toString(16))+(1===i.toString(16).length?"0"+i.toString(16):i.toString(16))};t.HexToRgba=function(e,t){var n;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(e))return 3===(n=e.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),n="0x".concat(n.join("")),"rgba(".concat([n>>16&255,n>>8&255,255&n].join(", "),", ").concat(t,")");throw new Error("Bad Hex")};t.isColorName=function(e){if(!e)throw new Error("isColorName: No color");return!e.includes("#")};t.colorNameToHex=function(e){if(!e)throw new Error("colorNameToHex: No color");var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return void 0!==t[e.toLowerCase()]&&t[e.toLowerCase()]}},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4c95":function(e,t,n){"use strict";var r=n("e53d"),i=n("584a"),a=n("d9f6"),o=n("8e60"),s=n("5168")("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];o&&t&&!t[s]&&a.f(t,s,{configurable:!0,get:function(){return this}})}},"4ee1":function(e,t,n){var r=n("5168")("iterator"),i=!1;try{var a=[7][r]();a.return=function(){i=!0},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a=[7],o=a[r]();o.next=function(){return{done:n=!0}},a[r]=function(){return o},e(a)}catch(e){}return n}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},5168:function(e,t,n){var r=n("dbdb")("wks"),i=n("62a0"),a=n("e53d").Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"53e2":function(e,t,n){var r=n("07e3"),i=n("241e"),a=n("5559")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},"549b":function(e,t,n){"use strict";var r=n("d864"),i=n("63b6"),a=n("241e"),o=n("b0dc"),s=n("3702"),l=n("b447"),c=n("20fd"),u=n("7cd6");i(i.S+i.F*!n("4ee1")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,d,h=a(e),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,v=void 0!==m,g=0,y=u(h);if(v&&(m=r(m,p>2?arguments[2]:void 0,2)),null==y||f==Array&&s(y))for(n=new f(t=l(h.length));t>g;g++)c(n,g,v?m(h[g],g):h[g]);else for(d=y.call(h),n=new f;!(i=d.next()).done;g++)c(n,g,v?o(d,m,[i.value,g],!0):i.value);return n.length=g,n}})},"54a1":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("95d5")},5537:function(e,t,n){var r=n("8378"),i=n("7726"),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,n){var r=n("dbdb")("keys"),i=n("62a0");e.exports=function(e){return r[e]||(r[e]=i(e))}},"584a":function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},"5b4e":function(e,t,n){var r=n("36c3"),i=n("b447"),a=n("0fc9");e.exports=function(e){return function(t,n,o){var s,l=r(t),c=i(l.length),u=a(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},"5c95":function(e,t,n){var r=n("35e8");e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),a=n("32e9"),o=n("2aba"),s=n("9b43"),l=function(e,t,n){var c,u,d,h,f=e&l.F,p=e&l.G,m=e&l.S,v=e&l.P,g=e&l.B,y=p?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,b=p?i:i[t]||(i[t]={}),_=b.prototype||(b.prototype={});for(c in p&&(n=t),n)d=((u=!f&&y&&void 0!==y[c])?y:n)[c],h=g&&u?s(d,r):v&&"function"==typeof d?s(Function.call,d):d,y&&o(y,c,d,e&l.U),b[c]!=d&&a(b,c,h),v&&_[c]!=d&&(_[c]=d)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"5dbc":function(e,t,n){var r=n("d3f4"),i=n("8b97").set;e.exports=function(e,t,n){var a,o=t.constructor;return o!==n&&"function"==typeof o&&(a=o.prototype)!==n.prototype&&r(a)&&i&&i(e,a),e}},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),a=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*a((function(){n(1)})),"Object",o)}},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"63b6":function(e,t,n){var r=n("e53d"),i=n("584a"),a=n("d864"),o=n("35e8"),s=n("07e3"),l=function(e,t,n){var c,u,d,h=e&l.F,f=e&l.G,p=e&l.S,m=e&l.P,v=e&l.B,g=e&l.W,y=f?i:i[t]||(i[t]={}),b=y.prototype,_=f?r:p?r[t]:(r[t]||{}).prototype;for(c in f&&(n=t),n)(u=!h&&_&&void 0!==_[c])&&s(y,c)||(d=u?_[c]:n[c],y[c]=f&&"function"!=typeof _[c]?n[c]:v&&u?a(d,r):g&&_[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?a(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[c]=d,e&l.R&&b&&!b[c]&&o(b,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"656e":function(e,t,n){"use strict";var r=n("79aa");function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},6718:function(e,t,n){var r=n("e53d"),i=n("584a"),a=n("b8e3"),o=n("ccb9"),s=n("d9f6").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=a?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"67bb":function(e,t,n){e.exports=n("f921")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"696e":function(e,t,n){n("c207"),n("1654"),n("6c1c"),n("24c5"),n("3c11"),n("43fc"),e.exports=n("584a").Promise},6996:function(e,t,n){"use strict";var r=n("92cc");n.n(r).a},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"69d3":function(e,t,n){n("6718")("asyncIterator")},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6abf":function(e,t,n){var r=n("e6f3"),i=n("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6b54":function(e,t,n){"use strict";n("3846");var r=n("cb7c"),i=n("0bfb"),a=n("9e1e"),o=/./.toString,s=function(e){n("2aba")(RegExp.prototype,"toString",e,!0)};n("79e5")((function(){return"/a/b"!=o.call({source:"a",flags:"b"})}))?s((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?i.call(e):void 0)})):"toString"!=o.name&&s((function(){return o.call(this)}))},"6c1c":function(e,t,n){n("c367");for(var r=n("e53d"),i=n("35e8"),a=n("481b"),o=n("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var c=s[l],u=r[c],d=u&&u.prototype;d&&!d[o]&&i(d,o,c),a[c]=a.Array}},"71c1":function(e,t,n){var r=n("3a38"),i=n("25eb");e.exports=function(e){return function(t,n){var a,o,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):a:e?s.slice(l,l+2):o-56320+(a-55296<<10)+65536}}},7514:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("find")},"765d":function(e,t,n){n("6718")("observable")},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(e,t,n){e.exports=n("d2d5")},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):a(e,t)}},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"795b":function(e,t,n){e.exports=n("696e")},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7cd6":function(e,t,n){var r=n("40c3"),i=n("5168")("iterator"),a=n("481b");e.exports=n("584a").getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||a[r(e)]}},"7e90":function(e,t,n){var r=n("d9f6"),i=n("e4ae"),a=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,l=0;s>l;)r.f(e,n=o[l++],t[n]);return e}},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),a=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},"7f7f":function(e,t,n){var r=n("86cc").f,i=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in i||n("9e1e")&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(e){return""}}})},8378:function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},8436:function(e,t){e.exports=function(){}},"84f2":function(e,t){e.exports={}},"85f2":function(e,t,n){e.exports=n("454f")},"85fe":function(e,t,n){"use strict";(function(e){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 i(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,r.key,r)}}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",(function(){return c}));var o=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,r)}var t,n,r;return t=e,(n=[{key:"createObserver",value:function(e,t){var n=this;if(this.observer&&this.destroyObserver(),!this.frozen){var r;if(this.options="function"==typeof(r=e)?{callback:r}:r,this.callback=function(e,t){n.options.callback(e,t),e&&n.options.once&&(n.frozen=!0,n.destroyObserver())},this.callback&&this.options.throttle){var i=(this.options.throttleOptions||{}).leading;this.callback=function(e,t){var n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];if(i=c,!n||s!==r){var d=o.leading;"function"==typeof d&&(d=d(s,r)),n&&s===r||!d||e.apply(void 0,[s].concat(a(i))),r=s,clearTimeout(n),n=setTimeout((function(){e.apply(void 0,[s].concat(a(i))),n=0}),t)}};return s._clear=function(){clearTimeout(n),n=null},s}(this.callback,this.options.throttle,{leading:function(e){return"both"===i||"visible"===i&&e||"hidden"===i&&!e}})}this.oldResult=void 0,this.observer=new IntersectionObserver((function(e){var t=e[0];if(e.length>1){var r=e.find((function(e){return e.isIntersecting}));r&&(t=r)}if(n.callback){var i=t.isIntersecting&&t.intersectionRatio>=n.threshold;if(i===n.oldResult)return;n.oldResult=i,n.callback(i,t)}}),this.options.intersection),t.context.$nextTick((function(){n.observer&&n.observer.observe(n.el)}))}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&this.options.intersection.threshold||0}}])&&i(t.prototype,n),r&&i(t,r),e}();function s(e,t,n){var r=t.value;if(r)if("undefined"==typeof IntersectionObserver)console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new o(e,r,n);e._vue_visibilityState=i}}function l(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var c={bind:s,update:function(e,t,n){var i=t.value;if(!function e(t,n){if(t===n)return!0;if("object"===r(t)){for(var i in t)if(!e(t[i],n[i]))return!1;return!0}return!1}(i,t.oldValue)){var a=e._vue_visibilityState;i?a?a.createObserver(i,n):s(e,{value:i},n):l(e)}},unbind:l};var u={version:"0.4.6",install:function(e){e.directive("observe-visibility",c)}},d=null;"undefined"!=typeof window?d=window.Vue:void 0!==e&&(d=e.Vue),d&&d.use(u)}).call(this,n("c8ba"))},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),a=n("6a99"),o=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(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}},8875:function(e,t,n){var r,i,a;"undefined"!=typeof self&&self,i=[],void 0===(a="function"==typeof(r=function(){return function(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(c){var e,t,n,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(c.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(c.stack),i=r&&r[1]||!1,a=r&&r[2]||!1,o=document.location.href.replace(document.location.hash,""),s=document.getElementsByTagName("script");i===o&&(e=document.documentElement.outerHTML,t=new RegExp("(?:[^\\n]+?\\n){0,"+(a-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=e.replace(t,"$1").trim());for(var l=0;l<s.length;l++){if("interactive"===s[l].readyState)return s[l];if(s[l].src===i)return s[l];if(i===o&&s[l].innerHTML&&s[l].innerHTML.trim()===n)return s[l]}return null}}})?r.apply(t,i):r)||(e.exports=a)},"8b97":function(e,t,n){var r=n("d3f4"),i=n("cb7c"),a=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},"8bbf":function(e,t){e.exports=n(8)},"8e60":function(e,t,n){e.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8e6e":function(e,t,n){var r=n("5ca1"),i=n("990b"),a=n("6821"),o=n("11e9"),s=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),l=o.f,c=i(r),u={},d=0;c.length>d;)void 0!==(n=l(r,t=c[d++]))&&s(u,t,n);return u}})},"8f60":function(e,t,n){"use strict";var r=n("a159"),i=n("aebd"),a=n("45f2"),o={};n("35e8")(o,n("5168")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},"8f82":function(e,t,n){},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},9093:function(e,t,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},9138:function(e,t,n){e.exports=n("35e8")},"92cc":function(e,t,n){},"95d5":function(e,t,n){var r=n("40c3"),i=n("5168")("iterator"),a=n("481b");e.exports=n("584a").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||a.hasOwnProperty(r(t))}},"96cf":function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var i=t&&t.prototype instanceof u?t:u,a=Object.create(i.prototype),o=new k(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return S()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=b(o,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var c={};function u(){}function d(){}function h(){}var f={};f[i]=function(){return this};var p=Object.getPrototypeOf,m=p&&p(p(E([])));m&&m!==t&&n.call(m,i)&&(f=m);var v=h.prototype=u.prototype=Object.create(f);function g(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function y(e,t){var r;this._invoke=function(i,a){function o(){return new t((function(r,o){!function r(i,a,o,s){var c=l(e[i],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,s)}))}s(c.arg)}(i,a,r,o)}))}return r=r?r.then(o,o):o()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function _(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:S}}function S(){return{value:void 0,done:!0}}return d.prototype=v.constructor=h,h.constructor=d,h[o]=d.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,o in e||(e[o]="GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(y.prototype),y.prototype[a]=function(){return this},e.AsyncIterator=y,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new y(s(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},g(v),v[o]="Generator",v[i]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,c):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),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},"990b":function(e,t,n){var r=n("9093"),i=n("2621"),a=n("cb7c"),o=n("7726").Reflect;e.exports=o&&o.ownKeys||function(e){var t=r.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;null==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a159:function(e,t,n){var r=n("e4ae"),i=n("7e90"),a=n("1691"),o=n("5559")("IE_PROTO"),s=function(){},l=function(){var e,t=n("1ec9")("iframe"),r=a.length;for(t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[a[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=l(),void 0===t?n:i(n,t)}},a22a:function(e,t,n){var r=n("d864"),i=n("b0dc"),a=n("3702"),o=n("e4ae"),s=n("b447"),l=n("7cd6"),c={},u={};(t=e.exports=function(e,t,n,d,h){var f,p,m,v,g=h?function(){return e}:l(e),y=r(n,d,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(a(g)){for(f=s(e.length);f>b;b++)if((v=t?y(o(p=e[b])[0],p[1]):y(e[b]))===c||v===u)return v}else for(m=g.call(e);!(p=m.next()).done;)if((v=i(m,y,p.value,t))===c||v===u)return v}).BREAK=c,t.RETURN=u},a745:function(e,t,n){e.exports=n("f410")},aa77:function(e,t,n){var r=n("5ca1"),i=n("be13"),a=n("79e5"),o=n("fdef"),s="["+o+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(e,t,n){var i={},s=a((function(){return!!o[e]()||"
"!="
"[e]()})),l=i[e]=s?t(d):o[e];n&&(i[n]=l),r(r.P+r.F*s,"String",i)},d=u.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(c,"")),e};e.exports=u},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),a=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},aba2:function(e,t,n){var r=n("e53d"),i=n("4178").set,a=r.MutationObserver||r.WebKitMutationObserver,o=r.process,s=r.Promise,l="process"==n("6b4c")(o);e.exports=function(){var e,t,n,c=function(){var r,i;for(l&&(r=o.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(l)n=function(){o.nextTick(c)};else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){i.call(r,c)};else{var d=!0,h=document.createTextNode("");new a(c).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),a=n("2aba"),o=n("7726"),s=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),d=c("toStringTag"),h=l.Array,f={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},p=i(f),m=0;m<p.length;m++){var v,g=p[m],y=f[g],b=o[g],_=b&&b.prototype;if(_&&(_[u]||s(_,u,h),_[d]||s(_,d,g),l[g]=h,y))for(v in r)_[v]||a(_,v,r[v],!0)}},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},b0dc:function(e,t,n){var r=n("e4ae");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},b447:function(e,t,n){var r=n("3a38"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},b8ac:function(e,t,n){"use strict";var r=n("d052");n.n(r).a},b8e3:function(e,t){e.exports=!0},bc13:function(e,t,n){var r=n("e53d").navigator;e.exports=r&&r.userAgent||""},be13:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},bf0b:function(e,t,n){var r=n("355d"),i=n("aebd"),a=n("36c3"),o=n("1bc3"),s=n("07e3"),l=n("794b"),c=Object.getOwnPropertyDescriptor;t.f=n("8e60")?c:function(e,t){if(e=a(e),t=o(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},c207:function(e,t){},c366:function(e,t,n){var r=n("6821"),i=n("9def"),a=n("77f1");e.exports=function(e){return function(t,n,o){var s,l=r(t),c=i(l.length),u=a(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c367:function(e,t,n){"use strict";var r=n("8436"),i=n("50ed"),a=n("481b"),o=n("36c3");e.exports=n("30f1")(Array,"Array",(function(e,t){this._t=o(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"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},c3a1:function(e,t,n){var r=n("e6f3"),i=n("1691");e.exports=Object.keys||function(e){return r(e,i)}},c5f6:function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),a=n("2d95"),o=n("5dbc"),s=n("6a99"),l=n("79e5"),c=n("9093").f,u=n("11e9").f,d=n("86cc").f,h=n("aa77").trim,f=r.Number,p=f,m=f.prototype,v="Number"==a(n("2aeb")(m)),g="trim"in String.prototype,y=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,r,i,a=(t=g?t.trim():h(t,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===a){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,l=t.slice(2),c=0,u=l.length;c<u;c++)if((o=l.charCodeAt(c))<48||o>i)return NaN;return parseInt(l,r)}}return+t};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof f&&(v?l((function(){m.valueOf.call(n)})):"Number"!=a(n))?o(new p(y(t)),n,f):y(t)};for(var b,_=n("9e1e")?c(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)i(p,b=_[w])&&!i(f,b)&&d(f,b,u(p,b));f.prototype=m,m.constructor=f,n("2aba")(r,"Number",f)}},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},c8bb:function(e,t,n){e.exports=n("54a1")},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),a=n("84f2"),o=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=o(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"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ccb9:function(e,t,n){t.f=n("5168")},cd1c:function(e,t,n){var r=n("e853");e.exports=function(e,t){return new(r(e))(t)}},cd78:function(e,t,n){var r=n("e4ae"),i=n("f772"),a=n("656e");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),a=n("c366")(!1),o=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=o&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~a(c,n)||c.push(n));return c}},d052:function(e,t,n){},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d2d5:function(e,t,n){n("1654"),n("549b"),e.exports=n("584a").Array.from},d391:function(e){e.exports=JSON.parse('{"AC":"40123","AD":"312345","AE":"501234567","AF":"701234567","AG":"2684641234","AI":"2642351234","AL":"672123456","AM":"77123456","AO":"923123456","AR":"91123456789","AS":"6847331234","AT":"664123456","AU":"412345678","AW":"5601234","AX":"412345678","AZ":"401234567","BA":"61123456","BB":"2462501234","BD":"1812345678","BE":"470123456","BF":"70123456","BG":"48123456","BH":"36001234","BI":"79561234","BJ":"90011234","BL":"690001234","BM":"4413701234","BN":"7123456","BO":"71234567","BQ":"3181234","BR":"11961234567","BS":"2423591234","BT":"17123456","BW":"71123456","BY":"294911911","BZ":"6221234","CA":"5062345678","CC":"412345678","CD":"991234567","CF":"70012345","CG":"061234567","CH":"781234567","CI":"01234567","CK":"71234","CL":"221234567","CM":"671234567","CN":"13123456789","CO":"3211234567","CR":"83123456","CU":"51234567","CV":"9911234","CW":"95181234","CX":"412345678","CY":"96123456","CZ":"601123456","DE":"15123456789","DJ":"77831001","DK":"32123456","DM":"7672251234","DO":"8092345678","DZ":"551234567","EC":"991234567","EE":"51234567","EG":"1001234567","EH":"650123456","ER":"7123456","ES":"612345678","ET":"911234567","FI":"412345678","FJ":"7012345","FK":"51234","FM":"3501234","FO":"211234","FR":"612345678","GA":"06031234","GB":"7400123456","GD":"4734031234","GE":"555123456","GF":"694201234","GG":"7781123456","GH":"231234567","GI":"57123456","GL":"221234","GM":"3012345","GN":"601123456","GP":"690001234","GQ":"222123456","GR":"6912345678","GT":"51234567","GU":"6713001234","GW":"955012345","GY":"6091234","HK":"51234567","HN":"91234567","HR":"921234567","HT":"34101234","HU":"201234567","ID":"812345678","IE":"850123456","IL":"502345678","IM":"7924123456","IN":"8123456789","IO":"3801234","IQ":"7912345678","IR":"9123456789","IS":"6111234","IT":"3123456789","JE":"7797712345","JM":"8762101234","JO":"790123456","JP":"9012345678","KE":"712123456","KG":"700123456","KH":"91234567","KI":"72001234","KM":"3212345","KN":"8697652917","KP":"1921234567","KR":"1020000000","KW":"50012345","KY":"3453231234","KZ":"7710009998","LA":"2023123456","LB":"71123456","LC":"7582845678","LI":"660234567","LK":"712345678","LR":"770123456","LS":"50123456","LT":"61234567","LU":"628123456","LV":"21234567","LY":"912345678","MA":"650123456","MC":"612345678","MD":"62112345","ME":"67622901","MF":"690001234","MG":"321234567","MH":"2351234","MK":"72345678","ML":"65012345","MM":"92123456","MN":"88123456","MO":"66123456","MP":"6702345678","MQ":"696201234","MR":"22123456","MS":"6644923456","MT":"96961234","MU":"52512345","MV":"7712345","MW":"991234567","MX":"12221234567","MY":"123456789","MZ":"821234567","NA":"811234567","NC":"751234","NE":"93123456","NF":"381234","NG":"8021234567","NI":"81234567","NL":"612345678","NO":"40612345","NP":"9841234567","NR":"5551234","NU":"8884012","NZ":"211234567","OM":"92123456","PA":"61234567","PE":"912345678","PF":"87123456","PG":"70123456","PH":"9051234567","PK":"3012345678","PL":"512345678","PM":"551234","PR":"7872345678","PS":"599123456","PT":"912345678","PW":"6201234","PY":"961456789","QA":"33123456","RE":"692123456","RO":"712034567","RS":"601234567","RU":"9123456789","RW":"720123456","SA":"512345678","SB":"7421234","SC":"2510123","SD":"911231234","SE":"701234567","SG":"81234567","SH":"51234","SI":"31234567","SJ":"41234567","SK":"912123456","SL":"25123456","SM":"66661212","SN":"701234567","SO":"71123456","SR":"7412345","SS":"977123456","ST":"9812345","SV":"70123456","SX":"7215205678","SY":"944567890","SZ":"76123456","TA":"8999","TC":"6492311234","TD":"63012345","TG":"90112345","TH":"812345678","TJ":"917123456","TK":"7290","TL":"77212345","TM":"66123456","TN":"20123456","TO":"7715123","TR":"5012345678","TT":"8682911234","TV":"901234","TW":"912345678","TZ":"621234567","UA":"501234567","UG":"712345678","US":"2015550123","UY":"94231234","UZ":"912345678","VA":"3123456789","VC":"7844301234","VE":"4121234567","VG":"2843001234","VI":"3406421234","VN":"912345678","VU":"5912345","WF":"501234","WS":"7212345","XK":"43201234","YE":"712345678","YT":"639012345","ZA":"711234567","ZM":"955123456","ZW":"712345678"}')},d3f4:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d9f6:function(e,t,n){var r=n("e4ae"),i=n("794b"),a=n("1bc3"),o=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(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}},dbdb:function(e,t,n){var r=n("584a"),i=n("e53d"),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4ae:function(e,t,n){var r=n("f772");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},e508:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return k}));var r=n("252c"),i=n("85fe"),a=n("ed83"),o=n.n(a),s=(n("8bbf"),{itemsLimit:1e3});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 c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,a=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}var p={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(e){return["vertical","horizontal"].includes(e)}}};function m(){return this.items.length&&"object"!==l(this.items[0])}var v=!1;if("undefined"!=typeof window){v=!1;try{var g=Object.defineProperty({},"passive",{get:function(){v=!0}});window.addEventListener("test",null,g)}catch(e){}}var y=0;function b(e,t,n,r,i,a,o,s,l,c){"boolean"!=typeof o&&(l=s,s=o,o=!1);const u="function"==typeof n?n.options:n;let d;if(e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,i&&(u.functional=!0)),r&&(u._scopeId=r),a?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=d):t&&(d=o?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),d)if(u.functional){const e=u.render;u.render=function(t,n){return d.call(n),e(t,n)}}else{const e=u.beforeCreate;u.beforeCreate=e?[].concat(e,d):[d]}return n}const _={name:"RecycleScroller",components:{ResizeObserver:r.a},directives:{ObserveVisibility:i.a},props:d({},p,{itemSize:{type:Number,default:null},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1}}),data:function(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes:function(){if(null===this.itemSize){for(var e,t={"-1":{accumulator:0}},n=this.items,r=this.sizeField,i=this.minItemSize,a=1e4,o=0,s=0,l=n.length;s<l;s++)(e=n[s][r]||i)<a&&(a=e),o+=e,t[s]={accumulator:o,size:e};return this.$_computedMinItemSize=a,t}return[]},simpleArray:m},watch:{items:function(){this.updateVisibleItems(!0)},pageMode:function(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler:function(){this.updateVisibleItems(!1)},deep:!0}},created:function(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1))},mounted:function(){var e=this;this.applyPageMode(),this.$nextTick((function(){e.$_prerender=!1,e.updateVisibleItems(!0),e.ready=!0}))},beforeDestroy:function(){this.removeListeners()},methods:{addView:function(e,t,n,r,i){var a={item:n,position:0},o={id:y++,index:t,used:!0,key:r,type:i};return Object.defineProperty(a,"nr",{configurable:!1,value:o}),e.push(a),a},unuseView:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.$_unusedViews,r=e.nr.type,i=n.get(r);i||(i=[],n.set(r,i)),i.push(e),t||(e.nr.used=!1,e.position=-9999,this.$_views.delete(e.nr.key))},handleResize:function(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll:function(e){var t=this;this.$_scrollDirty||(this.$_scrollDirty=!0,requestAnimationFrame((function(){t.$_scrollDirty=!1,t.updateVisibleItems(!1,!0).continuous||(clearTimeout(t.$_refreshTimout),t.$_refreshTimout=setTimeout(t.handleScroll,100))})))},handleVisibilityChange:function(e,t){var n=this;this.ready&&(e||0!==t.boundingClientRect.width||0!==t.boundingClientRect.height?(this.$emit("visible"),requestAnimationFrame((function(){n.updateVisibleItems(!1)}))):this.$emit("hidden"))},updateVisibleItems:function(e){var t,n,r,i,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.itemSize,l=this.$_computedMinItemSize,c=this.typeField,u=this.simpleArray?null:this.keyField,d=this.items,h=d.length,f=this.sizes,p=this.$_views,m=this.$_unusedViews,v=this.pool;if(h)if(this.$_prerender)t=0,n=this.prerender,r=null;else{var g=this.getScroll();if(a){var y=g.start-this.$_lastUpdateScrollPosition;if(y<0&&(y=-y),null===o&&y<l||y<o)return{continuous:!0}}this.$_lastUpdateScrollPosition=g.start;var b=this.buffer;if(g.start-=b,g.end+=b,null===o){var _,w=0,k=h-1,E=~~(h/2);do{_=E,f[E].accumulator<g.start?w=E:E<h-1&&f[E+1].accumulator>g.start&&(k=E),E=~~((w+k)/2)}while(E!==_);for(E<0&&(E=0),t=E,r=f[h-1].accumulator,n=E;n<h&&f[n].accumulator<g.end;n++);-1===n?n=d.length-1:++n>h&&(n=h)}else(t=~~(g.start/o))<0&&(t=0),(n=Math.ceil(g.end/o))>h&&(n=h),r=h*o}else t=n=r=0;n-t>s.itemsLimit&&this.itemsLimitError(),this.totalSize=r;var S=t<=this.$_endIndex&&n>=this.$_startIndex;if(this.$_continuous!==S){if(S){p.clear(),m.clear();for(var T=0,C=v.length;T<C;T++)i=v[T],this.unuseView(i)}this.$_continuous=S}else if(S)for(var M=0,x=v.length;M<x;M++)(i=v[M]).nr.used&&(e&&(i.nr.index=d.findIndex((function(e){return u?e[u]===i.item[u]:e===i.item}))),(-1===i.nr.index||i.nr.index<t||i.nr.index>=n)&&this.unuseView(i));for(var $,L,P,O,I=S?null:new Map,A=t;A<n;A++){$=d[A];var D=u?$[u]:$;if(null==D)throw new Error("Key is ".concat(D," on item (keyField is '").concat(u,"')"));i=p.get(D),o||f[A].size?(i?(i.nr.used=!0,i.item=$):(L=$[c],P=m.get(L),S?P&&P.length?((i=P.pop()).item=$,i.nr.used=!0,i.nr.index=A,i.nr.key=D,i.nr.type=L):i=this.addView(v,A,$,D,L):(O=I.get(L)||0,(!P||O>=P.length)&&(i=this.addView(v,A,$,D,L),this.unuseView(i,!0),P=m.get(L)),(i=P[O]).item=$,i.nr.used=!0,i.nr.index=A,i.nr.key=D,i.nr.type=L,I.set(L,O+1),O++),p.set(D,i)),i.position=null===o?f[A-1].accumulator:A*o):i&&this.unuseView(i)}return this.$_startIndex=t,this.$_endIndex=n,this.emitUpdate&&this.$emit("update",t,n),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,300),{continuous:S}},getListenerTarget:function(){var e=o()(this.$el);return!window.document||e!==window.document.documentElement&&e!==window.document.body||(e=window),e},getScroll:function(){var e,t=this.$el,n="vertical"===this.direction;if(this.pageMode){var r=t.getBoundingClientRect(),i=n?r.height:r.width,a=-(n?r.top:r.left),o=n?window.innerHeight:window.innerWidth;a<0&&(o+=a,a=0),a+o>i&&(o=i-a),e={start:a,end:a+o}}else e=n?{start:t.scrollTop,end:t.scrollTop+t.clientHeight}:{start:t.scrollLeft,end:t.scrollLeft+t.clientWidth};return e},applyPageMode:function(){this.pageMode?this.addListeners():this.removeListeners()},addListeners:function(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,!!v&&{passive:!0}),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners:function(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem:function(e){var t;t=null===this.itemSize?e>0?this.sizes[e-1].accumulator:0:e*this.itemSize,this.scrollToPosition(t)},scrollToPosition:function(e){"vertical"===this.direction?this.$el.scrollTop=e:this.$el.scrollLeft=e},itemsLimitError:function(){var e=this;throw setTimeout((function(){console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",e.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")})),new Error("Rendered items limit reached")},sortViews:function(){this.pool.sort((function(e,t){return e.nr.index-t.nr.index}))}}};var w=function(){var e,t,n=this,r=n.$createElement,i=n._self._c||r;return i("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:n.handleVisibilityChange,expression:"handleVisibilityChange"}],staticClass:"vue-recycle-scroller",class:(e={ready:n.ready,"page-mode":n.pageMode},e["direction-"+n.direction]=!0,e),on:{"&scroll":function(e){return n.handleScroll(e)}}},[n.$slots.before?i("div",{staticClass:"vue-recycle-scroller__slot"},[n._t("before")],2):n._e(),n._v(" "),i("div",{ref:"wrapper",staticClass:"vue-recycle-scroller__item-wrapper",style:(t={},t["vertical"===n.direction?"minHeight":"minWidth"]=n.totalSize+"px",t)},n._l(n.pool,(function(e){return i("div",{key:e.nr.id,staticClass:"vue-recycle-scroller__item-view",class:{hover:n.hoverKey===e.nr.key},style:n.ready?{transform:"translate"+("vertical"===n.direction?"Y":"X")+"("+e.position+"px)"}:null,on:{mouseenter:function(t){n.hoverKey=e.nr.key},mouseleave:function(e){n.hoverKey=null}}},[n._t("default",null,{item:e.item,index:e.nr.index,active:e.nr.used})],2)})),0),n._v(" "),n.$slots.after?i("div",{staticClass:"vue-recycle-scroller__slot"},[n._t("after")],2):n._e(),n._v(" "),i("ResizeObserver",{on:{notify:n.handleResize}})],1)};w._withStripped=!0;const k=b({render:w,staticRenderFns:[]},void 0,_,void 0,!1,void 0,!1,void 0,void 0,void 0);const E={name:"DynamicScroller",components:{RecycleScroller:k},inheritAttrs:!1,provide:function(){return"undefined"!=typeof ResizeObserver&&(this.$_resizeObserver=new ResizeObserver((function(e){var t,n=f(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.target){var i=new CustomEvent("resize",{detail:{contentRect:r.contentRect}});r.target.dispatchEvent(i)}}}catch(e){n.e(e)}finally{n.f()}}))),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},props:d({},p,{minItemSize:{type:[Number,String],required:!0}}),data:function(){return{vscrollData:{active:!0,sizes:{},validSizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:m,itemsWithSize:function(){for(var e=[],t=this.items,n=this.keyField,r=this.simpleArray,i=this.vscrollData.sizes,a=0;a<t.length;a++){var o=t[a],s=r?a:o[n],l=i[s];void 0!==l||this.$_undefinedMap[s]||(l=0),e.push({item:o,id:s,size:l})}return e},listeners:function(){var e={};for(var t in this.$listeners)"resize"!==t&&"visible"!==t&&(e[t]=this.$listeners[t]);return e}},watch:{items:function(){this.forceUpdate(!1)},simpleArray:{handler:function(e){this.vscrollData.simpleArray=e},immediate:!0},direction:function(e){this.forceUpdate(!0)}},created:function(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={}},activated:function(){this.vscrollData.active=!0},deactivated:function(){this.vscrollData.active=!1},methods:{onScrollerResize:function(){this.$refs.scroller&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible:function(){this.$emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(e||this.simpleArray)&&(this.vscrollData.validSizes={}),this.$emit("vscroll:update",{force:!0})},scrollToItem:function(e){var t=this.$refs.scroller;t&&t.scrollToItem(e)},getItemSize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=this.simpleArray?null!=t?t:this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom:function(){var e=this;if(!this.$_scrollingToBottom){this.$_scrollingToBottom=!0;var t=this.$el;this.$nextTick((function(){t.scrollTop=t.scrollHeight+5e3;requestAnimationFrame((function n(){t.scrollTop=t.scrollHeight+5e3,requestAnimationFrame((function(){t.scrollTop=t.scrollHeight+5e3,0===e.$_undefinedSizes?e.$_scrollingToBottom=!1:requestAnimationFrame(n)}))}))}))}}}};var S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("RecycleScroller",e._g(e._b({ref:"scroller",attrs:{items:e.itemsWithSize,"min-item-size":e.minItemSize,direction:e.direction,"key-field":"id"},on:{resize:e.onScrollerResize,visible:e.onScrollerVisible},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.item,r=t.index,i=t.active;return[e._t("default",null,null,{item:n.item,index:r,active:i,itemWithSize:n})]}}],null,!0)},"RecycleScroller",e.$attrs,!1),e.listeners),[e._v(" "),n("template",{slot:"before"},[e._t("before")],2),e._v(" "),n("template",{slot:"after"},[e._t("after")],2)],2)};S._withStripped=!0;const T=b({render:S,staticRenderFns:[]},void 0,E,void 0,!1,void 0,!1,void 0,void 0,void 0);const C=b({},void 0,{name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},computed:{id:function(){return this.vscrollData.simpleArray?this.index:this.item[this.vscrollData.keyField]},size:function(){return this.vscrollData.validSizes[this.id]&&this.vscrollData.sizes[this.id]||0},finalActive:function(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id:function(){this.size||this.onDataUpdate()},finalActive:function(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created:function(){var e=this;if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){var t=function(t){e.$watch((function(){return e.sizeDependencies[t]}),e.onDataUpdate)};for(var n in this.sizeDependencies)t(n);this.vscrollParent.$on("vscroll:update",this.onVscrollUpdate),this.vscrollParent.$on("vscroll:update-size",this.onVscrollUpdateSize)}},mounted:function(){this.vscrollData.active&&(this.updateSize(),this.observeSize())},beforeDestroy:function(){this.vscrollParent.$off("vscroll:update",this.onVscrollUpdate),this.vscrollParent.$off("vscroll:update-size",this.onVscrollUpdateSize),this.unobserveSize()},methods:{updateSize:function(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData:function(){var e=this;this.watchData?this.$_watchData=this.$watch("data",(function(){e.onDataUpdate()}),{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate:function(e){var t=e.force;!this.finalActive&&t&&(this.$_pendingVScrollUpdate=this.id),this.$_forceNextVScrollUpdate!==this.id&&!t&&this.size||this.updateSize()},onDataUpdate:function(){this.updateSize()},computeSize:function(e){var t=this;this.$nextTick((function(){if(t.id===e){var n=t.$el.offsetWidth,r=t.$el.offsetHeight;t.applySize(n,r)}t.$_pendingSizeUpdate=null}))},applySize:function(e,t){var n=Math.round("vertical"===this.vscrollParent.direction?t:e);n&&this.size!==n&&(this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.$set(this.vscrollData.sizes,this.id,n),this.$set(this.vscrollData.validSizes,this.id,!0),this.emitResize&&this.$emit("resize",this.id))},observeSize:function(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.observe(this.$el.parentNode),this.$el.parentNode.addEventListener("resize",this.onResize))},unobserveSize:function(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.unobserve(this.$el.parentNode),this.$el.parentNode.removeEventListener("resize",this.onResize))},onResize:function(e){var t=e.detail.contentRect,n=t.width,r=t.height;this.applySize(n,r)}},render:function(e){return e(this.tag,this.$slots.default)}},void 0,void 0,void 0,!1,void 0,void 0,void 0);var M={version:"1.0.10",install:function(e,t){var n=Object.assign({},{installComponents:!0,componentsPrefix:""},t);for(var r in n)void 0!==n[r]&&(s[r]=n[r]);n.installComponents&&function(e,t){e.component("".concat(t,"recycle-scroller"),k),e.component("".concat(t,"RecycleScroller"),k),e.component("".concat(t,"dynamic-scroller"),T),e.component("".concat(t,"DynamicScroller"),T),e.component("".concat(t,"dynamic-scroller-item"),C),e.component("".concat(t,"DynamicScrollerItem"),C)}(e,n.componentsPrefix)}},x=null;"undefined"!=typeof window?x=window.Vue:void 0!==e&&(x=e.Vue),x&&x.use(M)}).call(this,n("c8ba"))},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(e,t,n){var r=n("07e3"),i=n("36c3"),a=n("5b4e")(!1),o=n("5559")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=o&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~a(c,n)||c.push(n));return c}},e853:function(e,t,n){var r=n("d3f4"),i=n("1169"),a=n("2b4c")("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[a])&&(t=void 0)),void 0===t?Array:t}},ebfd:function(e,t,n){var r=n("62a0")("meta"),i=n("f772"),a=n("07e3"),o=n("d9f6").f,s=0,l=Object.isExtensible||function(){return!0},c=!n("294c")((function(){return l(Object.preventExtensions({}))})),u=function(e){o(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!a(e,r)&&u(e),e}}},ed83:function(e,t,n){var r,i,a;i=[],void 0===(a="function"==typeof(r=function(){var e=/(auto|scroll)/,t=function(e,n){return null===e.parentNode?n:t(e.parentNode,n.concat([e]))},n=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},r=function(t){return e.test(function(e){return n(e,"overflow")+n(e,"overflow-y")+n(e,"overflow-x")}(t))};return function(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var n=t(e.parentNode,[]),i=0;i<n.length;i+=1)if(r(n[i]))return n[i];return document.scrollingElement||document.documentElement}}})?r.apply(t,i):r)||(e.exports=a)},f1ae:function(e,t,n){"use strict";var r=n("86cc"),i=n("4630");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},f201:function(e,t,n){var r=n("e4ae"),i=n("79aa"),a=n("5168")("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||null==(n=r(o)[a])?t:i(n)}},f410:function(e,t,n){n("1af6"),e.exports=n("584a").Array.isArray},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),a=n("d2c8"),o="".startsWith;r(r.P+r.F*n("5147")("startsWith"),"String",{startsWith:function(e){var t=a(this,e,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return o?o.call(t,r,n):t.slice(n,n+r.length)===r}})},f772:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},f921:function(e,t,n){n("014b"),n("c207"),n("69d3"),n("765d"),e.exports=n("584a").Symbol},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!=typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}n("8e6e"),n("ac6a"),n("cadf"),n("456d"),n("6b54"),n("96cf");var o=n("795b"),s=n.n(o);function l(e,t,n,r,i,a,o){try{var l=e[a](o),c=l.value}catch(e){return void n(e)}l.done?t(c):s.a.resolve(c).then(r,i)}function c(e){return function(){var t=this,n=arguments;return new s.a((function(r,i){var a=e.apply(t,n);function o(e){l(a,r,i,o,s,"next",e)}function s(e){l(a,r,i,o,s,"throw",e)}o(void 0)}))}}var u=n("85f2"),d=n.n(u);function h(e,t,n){return t in e?d()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("c5f6"),n("6762"),n("2fdb");var f=[["Afghanistan (افغانستان)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (الجزائر)","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1242"],["Bahrain (البحرين)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1246"],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1441"],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1],["Cayman Islands","ky","1345"],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2],["Cocos (Keeling) Islands","cc","61",1],["Colombia","co","57"],["Comoros (جزر القمر)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (مصر)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590",0],["Guam","gu","1671"],["Guatemala","gt","502"],["Guernsey","gg","44",1],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (ایران)","ir","98"],["Iraq (العراق)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2],["Israel (ישראל)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1876"],["Japan (日本)","jp","81"],["Jersey","je","44",3],["Jordan (الأردن)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (الكويت)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (لبنان)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (ليبيا)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Macedonia (FYROM) (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (موريتانيا)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1664"],["Morocco (المغرب)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1670"],["Norway (Norge)","no","47",0],["Oman (عُمان)","om","968"],["Pakistan (پاکستان)","pk","92"],["Palau","pw","680"],["Palestine (فلسطين)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (قطر)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (المملكة العربية السعودية)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1721"],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (جنوب السودان)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්රී ලංකාව)","lk","94"],["Sudan (السودان)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1],["Swaziland","sz","268"],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (سوريا)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia (تونس)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (الإمارات العربية المتحدة)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (الصحراء الغربية)","eh","212",1],["Yemen (اليمن)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1]],p=f.map((function(e){return e[1].toUpperCase()})),m=f.map((function(e){return{name:e[0],iso2:e[1].toUpperCase(),dialCode:e[2],priority:e[3]||0,areaCodes:e[4]||null}})),v=n("d391"),g={version:"1.7.51",country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([457]\\d{6})$","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2457]\\d{6})$","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","11\\d{8}|(?:[2368]|9\\d)\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"1|([267]\\d{6})$","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7,8}|8[0-24-9]\\d{7})|(?:[2-478]\\d\\d|550)\\d{6}|1\\d{4,7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|[45]"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"0|(183[12])",0,0,0,[["(?:[237]\\d{5}|8(?:51(?:0(?:0[03-9]|[1247]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-6])|1(?:1[69]|[23]\\d|4[0-4]))|(?:[6-8]\\d{3}|9(?:[02-9]\\d\\d|1(?:[0-57-9]\\d|6[0135-9])))\\d))\\d{3}",[9]],["4(?:83[0-38]|93[01])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-2457-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["16\\d{3,7}",[5,6,7,8,9]],["(?:14(?:5(?:1[0458]|[23][458])|71\\d)|550\\d\\d)\\d{4}",[9]],["13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}",[6,8,10]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365|46","1[28]|2|365(?:[0-46-9]|5[0-35-9])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","246$1",0,"246"],BD:["880","00","1\\d{9}|2\\d{7,8}|88\\d{4,6}|(?:8[0-79]|9\\d)\\d{4,8}|(?:[346]\\d|[57])\\d{5,8}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:[2689]\\d|51)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[25689]"]]]],BL:["590","00","(?:590|69\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[29]|3[0-5]))\\d{4}"],0,0,0,0,0,0,["976[01]\\d{5}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-24679]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"0(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([3-8]\\d{6})$","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","90\\d{5}|(?:[2-6]|7\\d)\\d{6}",[7,8],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[2-6]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["7"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}",[10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[57])|4(?:03|1[68]|3[178]|50)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|(?:5(?:00|2[12]|33|44|66|77|88)|622)[2-9]\\d{6}"],0,0,0,["600[2-9]\\d{6}"]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d|8[0-24-9])\\d{7}|(?:[148]\\d\\d|550)\\d{6}|1\\d{5,7}",[6,7,8,9,10],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:02|31|60)|118)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:83[0-38]|93[01])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-2457-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["(?:14(?:5(?:1[0458]|[23][458])|71\\d)|550\\d\\d)\\d{4}",[9]],["13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}",[6,8,10]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["801"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[02-9]"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-3]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","(?:[26]\\d\\d|88)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","(?:10|2[0-57-9])(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"0|(1(?:[12]\\d|79)\\d\\d)",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:1\\d|3)\\d{9}|[124-8]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1 $2",["[14][2-9]|[25-8]"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["5"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d|8[0-24-9])\\d{7}|(?:[148]\\d\\d|550)\\d{6}|1\\d{5,7}",[6,7,8,9,10],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:01|30|59)|117)|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:83[0-38]|93[01])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-2457-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["(?:14(?:5(?:1[0458]|[23][458])|71\\d)|550\\d\\d)\\d{4}",[9]],["13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}",[6,8,10]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[05]\\d{10}|[46][1-8]\\d{4,9})|49(?:[0-25]\\d|3[1-689]|7[1-7])\\d{4,8}|49(?:[0-2579]\\d|[34][1-9]|6[0-8])\\d{3}|49\\d{3,4}|(?:1|[368]\\d|4[0-8])\\d{3,13}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[189]"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","(?:51|[6-9]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-59]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-59]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","(?:[2-8]\\d|90)\\d{4}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]]],0,0,"0(11\\d{6}|6[256]\\d{6}|7[47]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[03])|(?:4[0-5]|5[0-26-9]|6[0-4]|[78][0-49])\\d\\d)|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:0\\d|20)))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:0[0-2]|2[356]|34|4[0134]|5[49]|6[0-369]|77|81|9[39])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"0|([25-9]\\d{5})$","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:0[0-2]|2[356]|34|4[0134]|5[49]|6[0-369]|77|81|9[39])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","[256]\\d{7}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-689]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590|69\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|1[0-2]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[29]|3[0-5]))\\d{4}"],0,0,0,0,0,0,["976[01]\\d{5}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|(?:[2689]\\d|70)\\d{8}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]]]],GT:["502","00","(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"1|([3-9]\\d{6})$","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:862\\d|9008)\\d{3}|(?:[2-46]\\d|77)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4}(?:\\d(?:\\d(?:\\d{4})?)?)?|(?:[235-79]\\d|46)\\d{6}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-489]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-489]"]]]],HU:["36","00","[2357]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57-9]"],"06 $1"]],"06"],ID:["62","00[189]","(?:(?:007803|8\\d{4})\\d|[1-36])\\d{6}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([5-8]\\d{5})$","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1[4679]|[38]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d\\d|89(?:2|4[5-9]\\d))\\d{3}|89[45][0-4]\\d\\d|(?:1(?:44|6[346])|89(?:5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([0-24-8]\\d{5})$","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:0[0-2]|2[356]|34|4[0134]|5[49]|6[0-369]|77|81|9[39])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[78]|96)|477|51[24]|636)|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[78]|96[2457-9])|477|51[24]|636[457-9])|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[279]|49|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[0468][01]|[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|2[01]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[0468][01]|[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|2[01]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[0468][01]|[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|2[01]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[29][2-9]|5[3-9]|7[2-4679]|8(?:[246-9]|3[3-8]|5[2-9])","[14]|[29][2-9]|5[3-9]|7[2-4679]|8(?:[246-9]|3(?:[3-6][2-9]|7|8[2-5])|5[2-9])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[2579]|80"],"0$1"]],"0"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|(?:[235-8]\\d|99)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","(?:18|[2569]\\d\\d)\\d{5}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[25]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","345$1",0,"345"],KZ:["7","810","33622\\d{5}|(?:7\\d|80)\\d{8}",[10],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[7-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","758$1",0,"758"],LI:["423","00","90\\d{5}|(?:[2378]|6\\d\\d)\\d{6}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[237-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"0|(1001)"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]","5(?:29|38)[89]0"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:29(?:[189][05]|2[29]|3[01])|38[89][05])\\d{4}|5(?:2(?:[015-7]\\d|2[02-9]|3[0-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|80|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:0[016-8]|6[1267]|7[0-27]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],MC:["377","00","870\\d{5}|(?:[349]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[39]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590|69\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[29]|3[0-5]))\\d{4}"],0,0,0,0,0,0,["976[01]\\d{5}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"0|([24-9]\\d{6})$","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[57-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[57-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","(?:28|[68]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","670$1",0,"670"],MQ:["596","00","69\\d{7}|(?:59|97)6\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"1|([34]\\d{6})$","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[2-468]|5\\d)\\d{6}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["5"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[3467]|9[13-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","1\\d{6}(?:\\d{2})?|(?:[23]1|77|88|99)\\d{7}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","(?:1(?:[01467]\\d|[2359][1-9]|8[1-79])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9])|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1[36-8]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","[2-57-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[2-57-9]"]]]],NE:["227","00","[0289]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|[89]\\d{6,9}|1\\d{4,5}",[5,6,7,8,9,10],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|5[89]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","9\\d{9}|[1-9]\\d{7}",[8,10],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["[1-8]|9(?:[1-579]|6[2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[47]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["83"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[0367]|[89]0"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[59]|80"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7|86"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|8007\\d{4,5}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:[1-57-9]|6\\d)\\d{6}",[7,8],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["6"]]]],PE:["51","19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,0," Anexo "],PF:["689","00","[48]\\d{7}|4\\d{5}",[6,8],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[48]"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","1800\\d{7,9}|(?:2|[89]\\d{4})\\d{5}|[2-8]\\d{8}|[28]\\d{7}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","[1-57-9]\\d{6}(?:\\d{2})?|6\\d{5,8}",[6,7,8,9],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["39|45|5[0137]|6[0469]|7[02389]|8[08]"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-8]|9[145]"]]]],PM:["508","00","[45]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|(?:[2-46-9]\\d|5[0-8])\\d{4,7}",[6,7,8,9],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"]],"0"],QA:["974","00","[2-7]\\d{7}|(?:2\\d\\d|800)\\d{4}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["2[126]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]]]],RE:["262","00","9769\\d{5}|(?:26|[68]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,"26[23]|69|[89]"],RO:["40","00","(?:[237]\\d|[89]0)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","[347-9]\\d{9}",[10],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[3489]"],"8 ($1)",1]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","8000\\d{3}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:01|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[4589]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[2378]\\d|66|99)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d{4}|93330)\\d{4}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["24|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[1-35-9]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|(5\\d{6})$","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"1|([2-479]\\d{6})$","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","1\\d{8,9}|(?:[2-57]|[689]\\d)\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["14|[3-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:00|11|[3-579]\\d|88)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"],0,1],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"],0,1],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3"],0,1],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0457-9]|11"],0,1]],"8",0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|[5-8]\\d{3})\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-8]"]]]],TR:["90","00","(?:4|8\\d{5})\\d{6}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[0589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-46-8]\\d{6})$","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[26-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["4[45][0-5]|5(?:0|6[37])|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]","4[45][0-5]|5(?:0|6(?:3[14-7]|7))|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["[3-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}",[10],[["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[0135]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[0235]|58|6[39]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[013-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[0179]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[02-59]|8[156])|8(?:0[1-68]|1[02-8]|2[08]|3[0-28]|4[3578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[0179]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","(?:[249]\\d\\d|80)\\d{5}|9\\d{6}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["8|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[24]"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:[679]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[6-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-578]\\d{6})$","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","(?:[23]\\d|[48]8)\\d{3}|(?:[57]\\d|90)\\d{5}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[579]"]]]],WF:["681","00","(?:[45]0|68|72|8\\d)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[4-8]"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","80\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,"269|63"],ZA:["27","00","[1-9]\\d{8}|8\\d{4,7}",[5,6,7,8,9],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"]],"0"],ZM:["260","00","(?:63|80)0\\d{6}|(?:21|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,["[1-9]\\d{7}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"[35-7]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]\\d|7[6-8])\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"[0-36-9]\\d{8}",[9],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],0,0,0,0,0,0,[0,["[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|[19]\\d{7}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[19]"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["34[57]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-3]"]]],0,0,0,0,0,0,[0,["3(?:37\\d\\d|42)\\d{4}|3(?:2|47|7\\d{3})\\d{7}",[7,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}"]]],883:["883",0,"51\\d{7}(?:\\d{3})?",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["510"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["5"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["51[013]0\\d{8}|5100\\d{5}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}},y="".concat("-‐-―−ー-").concat("//").concat("..").concat(" ").concat("()()[]\\[\\]").concat("~⁓∼~");function b(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}var _=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=this.constructor.name,this.message=t,this.stack=new Error(t).stack};(_.prototype=Object.create(Error.prototype)).constructor=_;var w=function(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var a=Number(n[i]),o=Number(r[i]);if(a>o)return 1;if(o>a)return-1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0};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 E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,r.key,r)}}function T(e,t,n){return t&&S(e.prototype,t),n&&S(e,n),e}var C=function(){function e(t){E(this,e),function(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!O(e)||!O(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(O(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+I(e)+": "+e,"."))}(t),this.metadata=t,N.call(this,t)}return T(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new M(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new M(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&1===r.length&&"001"===r[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){this.selectNumberingPlan(null,e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),e}(),M=function(){function e(t,n){E(this,e),this.globalMetadataObject=n,this.metadata=t,N.call(this,n.metadata)}return T(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,t=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return t.map((function(t){return new x(t,e)}))}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&P(this.types(),e))return new L(P(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?" ext. ":this.metadata[13]||" ext. "}}]),e}(),x=function(){function e(t,n){E(this,e),this._format=t,this.metadata=n}return T(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return this.nationalPrefixFormattingRule()&&!$.test(this.nationalPrefixFormattingRule())}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),$=/^\(?\$1\)?$/,L=function(){function e(t,n){E(this,e),this.type=t,this.metadata=n}return T(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function P(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}var O=function(e){return"object"===k(e)},I=function(e){return k(e)};function A(e,t){if((t=new C(t)).hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function D(e,t){return void 0!==t.countries[e]}function N(e){this.v1=!e.version,this.v2=void 0!==e.version&&-1===w(e.version,"1.2.0"),this.v3=void 0!==e.version&&-1===w(e.version,"1.7.35"),this.v4=void 0!==e.version}function R(e){var t="xx##~~";switch(e){case"parsing":t=",;"+t}return";ext=([0-90-9٠-٩۰-۹]{1,7})|[ \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|["+t+"]|int|anexo|int)[:\\..]?[ \\t,-]*([0-90-9٠-٩۰-۹]{1,7})#?|[- ]+([0-90-9٠-٩۰-۹]{1,5})#"}var B=R("parsing"),Y=R("matching"),j=new RegExp("(?:"+B+")$","i");var F=new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^"+("[++]{0,1}(?:["+y+"]*[0-90-9٠-٩۰-۹]){3,}["+y+"0-90-9٠-٩۰-۹]*")+"(?:"+B+")?$","i");function H(e){return e.length>=2&&F.test(e)}var U={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function z(e){return U[e]}function V(e){var t="",n=e.split(""),r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(i>=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}var o=z(a);o&&(t+=o)}return t}function q(e){var t="",n=e.split(""),r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(i>=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}t+=W(a,t)||""}return t}function W(e,t){if("+"===e){if(t)return;return"+"}return z(e)}var G=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function K(e,t,n){if(t=t||{},e.country){(n=new C(n)).selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(b(r,n.nationalNumberPattern())){if(J(r,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":n.type("MOBILE")?J(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var i=0,a=G;i<a.length;i++){var o=a[i];if(J(r,o,n))return o}}}}function J(e,t,n){return!(!(t=n.type(t))||!t.pattern())&&(!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&b(e,t.pattern()))}function X(e,t,n){var r=n.type(t),i=r&&r.possibleLengths()||n.possibleLengths();if(!i)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===t){if(!n.type("FIXED_LINE"))return X(e,"MOBILE",n);var a=n.type("MOBILE");a&&(i=function(e,t){var n=e.slice(),r=t,i=Array.isArray(r),a=0;for(r=i?r:r[Symbol.iterator]();;){var o;if(i){if(a>=r.length)break;o=r[a++]}else{if((a=r.next()).done)break;o=a.value}var s=o;e.indexOf(s)<0&&n.push(s)}return n.sort((function(e,t){return e-t}))}(i,a.possibleLengths()))}else if(t&&!r)return"INVALID_LENGTH";var o=e.length,s=i[0];return s===o?"IS_POSSIBLE":s>o?"TOO_SHORT":i[i.length-1]<o?"TOO_LONG":i.indexOf(o,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Q(e,t,n){if(void 0===t&&(t={}),n=new C(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.chooseCountryByCountryCallingCode(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.chooseCountryByCountryCallingCode(e.countryCallingCode)}}if(n.possibleLengths())return Z(e.phone||e.nationalNumber,void 0,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function Z(e,t,n){switch(X(e,void 0,n)){case"IS_POSSIBLE":return!0;default:return!1}}var ee=new RegExp("([0-90-9٠-٩۰-۹])"),te=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function ne(e,t,n,r){if(t){var i=new C(r);i.selectNumberingPlan(t,n);var a=new RegExp(i.IDDPrefix());if(0===e.search(a)){var o=(e=e.slice(e.match(a)[0].length)).match(ee);if(!(o&&null!=o[1]&&o[1].length>0&&"0"===o[1]))return e}}}function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ie(e){var t,n,r=(e=e.replace(/^tel:/,"tel=")).split(";"),i=Array.isArray(r),a=0;for(r=i?r:r[Symbol.iterator]();;){var o;if(i){if(a>=r.length)break;o=r[a++]}else{if((a=r.next()).done)break;o=a.value}var s=re(o.split("="),2),l=s[0],c=s[1];switch(l){case"tel":t=c;break;case"ext":n=c;break;case"phone-context":"+"===c[0]&&(t=c+t)}}if(!H(t))return{};var u={number:t};return n&&(u.ext=n),u}function ae(e){var t=e.number,n=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}function oe(e,t,n){return t=t||{},n=new C(n),!!e.country&&(n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?void 0!==K(e,t,n.metadata):b(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern()))}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var le={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function ce(e,t,n,r){if(n=n?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){se(e,t,n[t])}))}return e}({},le,n):le,r=new C(r),e.country&&"001"!==e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)return e.phone||"";r.chooseCountryByCountryCallingCode(e.countryCallingCode)}var i,a=r.countryCallingCode(),o=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return o?pe(i=he(o,"NATIONAL",r,n),e.ext,r,n.formatExtension):"";case"INTERNATIONAL":return o?(i=he(o,"INTERNATIONAL",r,n),pe(i="+".concat(a," ").concat(i),e.ext,r,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(o);case"RFC3966":return ae({number:"+".concat(a).concat(o),ext:e.ext});case"IDD":if(!n.fromCountry)return;var s=function(e,t,n){var r=new C(n);return r.selectNumberingPlan(e,t),te.test(r.IDDPrefix())?r.IDDPrefix():r.defaultIDDPrefix()}(n.fromCountry,void 0,r.metadata);if(!s)return;if(n.humanReadable){var l=a&&function(e,t,n,r,i){var a=new C(r.metadata);if(a.country(n),t===a.countryCallingCode())return"1"===t?t+" "+he(e,"NATIONAL",r,i):he(e,"NATIONAL",r,i)}(o,r.countryCallingCode(),n.fromCountry,r,n);return pe(i=l||"".concat(s," ").concat(a," ").concat(he(o,"INTERNATIONAL",r,n)),e.ext,r,n.formatExtension)}return"".concat(s).concat(a).concat(o);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}var ue=/(\$\d)/;function de(e,t,n,r,i){var a=e.replace(new RegExp(t.pattern()),n?t.internationalFormat():r&&t.nationalPrefixFormattingRule()?t.format().replace(ue,t.nationalPrefixFormattingRule()):t.format());return n?fe(a):a}function he(e,t,n,r){var i=function(e,t){var n=e,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(i>=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}var o=a;if(o.leadingDigitsPatterns().length>0){var s=o.leadingDigitsPatterns()[o.leadingDigitsPatterns().length-1];if(0!==t.search(s))continue}if(b(t,o.pattern()))return o}}(n.formats(),e);return i?de(e,i,"INTERNATIONAL"===t,!i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!1!==r.nationalPrefix):e}function fe(e){return e.replace(new RegExp("[".concat(y,"]+"),"g")," ").trim()}function pe(e,t,n,r){return t?r(e,t,n):e}function me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ve(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,r.key,r)}}var ge=function(){function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!n)throw new TypeError("`nationalNumber` not passed");var i=new C(r);ye(t)&&(this.country=t,i.country(t),t=i.countryCallingCode()),this.countryCallingCode=t,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.metadata=r}var t,n,r;return t=e,(n=[{key:"isPossible",value:function(){return Q(this,{v2:!0},this.metadata)}},{key:"isValid",value:function(){return oe(this,{v2:!0},this.metadata)}},{key:"isNonGeographic",value:function(){return new C(this.metadata).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return K(this,{v2:!0},this.metadata)}},{key:"format",value:function(e,t){return ce(this,e,t?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){me(e,t,n[t])}))}return e}({},t,{v2:!0}):{v2:!0},this.metadata)}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])&&ve(t.prototype,n),r&&ve(t,r),e}(),ye=function(e){return/^[A-Z]{2}$/.test(e)},be=new RegExp("[++0-90-9٠-٩۰-۹]"),_e=new RegExp("[^0-90-9٠-٩۰-۹]+$");function we(e,t,n){if(t=t||{},n=new C(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry)){if(t.v2)throw new _("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var r=function(e,t){if(e&&0===e.indexOf("tel:"))return ie(e);var n=function(e,t){if(!e)return;if(e.length>250){if(t)throw new _("TOO_LONG");return}var n=e.search(be);if(n<0)return;return e.slice(n).replace(_e,"")}(e,t);if(!n||!H(n))return{};var r=function(e){var t=e.search(j);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(j),i=1;i<r.length;){if(null!=r[i]&&r[i].length>0)return{number:n,ext:r[i]};i++}}(n);if(r.ext)return r;return{number:n}}(e,t.v2),i=r.number,a=r.ext;if(!i){if(t.v2)throw new _("NOT_A_NUMBER");return{}}var o=function(e,t,n,r){var i,a=Te(q(e),t,n,r.metadata),o=a.countryCallingCode,s=a.number;if(o)r.chooseCountryByCountryCallingCode(o);else{if(!s||!t&&!n)return{};r.selectNumberingPlan(t,n),t&&(i=t),o=n||A(t,r.metadata)}if(!s)return{countryCallingCode:o};var l=Se(q(s),r),c=l.nationalNumber,u=l.carrierCode,d=Ee(o,c,r);d&&(i=d,"001"===d||r.country(i));return{country:i,countryCallingCode:o,nationalNumber:c,carrierCode:u}}(i,t.defaultCountry,t.defaultCallingCode,n),s=o.country,l=o.nationalNumber,c=o.countryCallingCode,u=o.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new _("INVALID_COUNTRY");return{}}if(!l||l.length<2){if(t.v2)throw new _("TOO_SHORT");return{}}if(l.length>17){if(t.v2)throw new _("TOO_LONG");return{}}if(t.v2){var d=new ge(c,l,n.metadata);return s&&(d.country=s),u&&(d.carrierCode=u),a&&(d.ext=a),d}var h=!!(t.extended?n.hasSelectedNumberingPlan():s)&&b(l,n.nationalNumberPattern());return t.extended?{country:s,countryCallingCode:c,carrierCode:u,valid:h,possible:!!h||!(!0!==t.extended||!n.possibleLengths()||!Z(l,0,n)),phone:l,ext:a}:h?function(e,t,n){var r={country:e,phone:t};n&&(r.ext=n);return r}(s,l,a):{}}function ke(e,t){if(e&&t.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,a,o=r.length-1;if(t.nationalPrefixTransformRule()&&o>0&&r[o])i=e.replace(n,t.nationalPrefixTransformRule()),o>1&&r[o]&&(a=r[1]);else{var s=r[0];i=e.slice(s.length),o>0&&(a=r[1])}if(!b(e,t.nationalNumberPattern())||b(i,t.nationalNumberPattern()))return{nationalNumber:i,carrierCode:a}}}return{nationalNumber:e}}function Ee(e,t,n){var r=n.getCountryCodesForCallingCode(e);if(r)return 1===r.length?r[0]:function(e,t,n){n=new C(n);var r=e,i=Array.isArray(r),a=0;for(r=i?r:r[Symbol.iterator]();;){var o;if(i){if(a>=r.length)break;o=r[a++]}else{if((a=r.next()).done)break;o=a.value}var s=o;if(n.country(s),n.leadingDigits()){if(t&&0===t.search(n.leadingDigits()))return s}else if(K({phone:t,country:s},void 0,n.metadata))return s}}(r,t,n.metadata)}function Se(e,t){var n=ke(q(e),t),r=n.nationalNumber,i=n.carrierCode;if(r.length!==e.length+(i?i.length:0)&&t.possibleLengths())switch(X(r,void 0,t)){case"TOO_SHORT":case"INVALID_LENGTH":return{nationalNumber:e}}return{nationalNumber:r,carrierCode:i}}function Te(e,t,n,r){if(!e)return{};if("+"!==e[0]){var i=ne(e,t,n,r);if(!i||i===e){if(t||n){var a=Ce(e,t,n,r),o=a.countryCallingCode,s=a.number;if(o)return{countryCallingCode:o,number:s}}return{number:e}}e="+"+i}if("0"===e[1])return{};r=new C(r);for(var l=2;l-1<=3&&l<=e.length;){var c=e.slice(1,l);if(r.hasCallingCode(c))return r.selectNumberingPlan(void 0,c),{countryCallingCode:c,number:e.slice(l)};l++}return{}}function Ce(e,t,n,r){var i=t?A(t,r):n;if(0===e.indexOf(i)){(r=new C(r)).selectNumberingPlan(t,n);var a=e.slice(i.length),o=ke(a,r).nationalNumber,s=ke(e,r).nationalNumber;if(!b(s,r.nationalNumberPattern())&&b(o,r.nationalNumberPattern())||"TOO_LONG"===X(s,void 0,r))return{countryCallingCode:i,number:a}}return{number:e}}function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xe(e,t,n){return we(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Me(e,t,n[t])}))}return e}({},t,{v2:!0}),n)}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 Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Oe(e){var t,n,r,i=Pe(Array.prototype.slice.call(e),4),a=i[0],o=i[1],s=i[2],l=i[3];if("string"!=typeof a)throw new TypeError("A text for parsing must be a string.");if(t=a,o&&"string"!=typeof o){if(!Ie(o))throw new Error("Invalid second argument: ".concat(o));s?(n=o,r=s):r=o}else l?(n=s,r=l):(n=void 0,r=s),o&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Le(e,t,n[t])}))}return e}({defaultCountry:o},n));return{text:t,options:n,metadata:r}}var Ie=function(e){return"object"===$e(e)};function Ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e,t,n){t&&t.defaultCountry&&!D(t.defaultCountry,n)&&(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ae(e,t,n[t])}))}return e}({},t,{defaultCountry:void 0}));try{return xe(e,t,n)}catch(e){if(!(e instanceof _))throw e}}function Ne(){var e=Oe(arguments),t=e.text,n=e.options,r=e.metadata;return De(t,n,r)}function Re(e,t,n){if(t[e])return new ge(e,t[e],n)}function Be(e,t){if(e<0||t<=0||t<e)throw new TypeError;return"{".concat(e,",").concat(t,"}")}function Ye(e,t){var n=t.search(e);return n>=0?t.slice(0,n):t}var je=/[\\/] *x/;function Fe(e){return Ye(je,e)}var He=/(?:(?:[0-3]?\d\/[01]?\d)|(?:[01]?\d\/[0-3]?\d))\/(?:[12]\d)?\d{2}/,Ue=/[12]\d{3}[-/]?[01]\d[-/]?[0-3]\d +[0-2]\d$/,ze=/^:[0-5]\d/;function Ve(e,t,n){if(He.test(e))return!1;if(Ue.test(e)){var r=n.slice(t+e.length);if(ze.test(r))return!1}return!0}var qe=" - \u2028\u2029 ",We="[".concat(qe,"]"),Ge="[^".concat(qe,"]"),Ke="[".concat("0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-9","]"),Je="A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Xe="[".concat(Je,"]"),Qe=new RegExp(Xe),Ze="[".concat("$¢-¥֏؋৲৳৻૱௹฿៛₠-₹꠸﷼﹩$¢£¥₩","]"),et=new RegExp(Ze),tt="[".concat("̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ࣾऀ-ंऺ़ु-ै्॑-ॗॢॣঁ়ু-ৄ্ৢৣਁਂ਼ੁੂੇੈੋ-੍ੑੰੱੵઁં઼ુ-ૅેૈ્ૢૣଁ଼ିୁ-ୄ୍ୖୢୣஂீ்ా-ీె-ైొ-్ౕౖౢౣ಼ಿೆೌ್ೢೣു-ൄ്ൢൣ්ි-ුූัิ-ฺ็-๎ັິ-ູົຼ່-ໍཱ༹༘༙༵༷-ཾྀ-྄྆྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္်ွှၘၙၞ-ၠၱ-ၴႂႅႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧᤨᤲ᤹-᤻ᨘᨗᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀᮁᮢ-ᮥᮨᮩ᯦᮫ᯨᯩᯭᯯ-ᯱᰬ-ᰳᰶ᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᷀-ᷦ᷼-᷿⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〭꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠥꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꨩ-ꨮꨱꨲꨵꨶꩃꩌꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫬꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︦","]"),nt=new RegExp(tt),rt=new RegExp("[\0--ÿĀ-ſḀ-ỿƀ-ɏ̀-ͯ]");function it(e){return!(!Qe.test(e)&&!nt.test(e))&&rt.test(e)}function at(e){return"%"===e||et.test(e)}var ot="[^".concat("(\\[([").concat(")\\])]","]"),st="[".concat("(\\[([").concat("++","]"),lt=new RegExp("^"+st),ct=Be(0,3),ut=new RegExp("^(?:[(\\[([])?(?:"+ot+"+[)\\])]])?"+ot+"+(?:[(\\[([]"+ot+"+[)\\])]])"+ct+ot+"*$"),dt=/\d{1,5}-+\d{1,5}\s{0,4}\(\d{1,4}/;function ht(e,t,n,r){if(ut.test(e)&&!dt.test(e)){if("POSSIBLE"!==r){if(t>0&&!lt.test(e)){var i=n[t-1];if(at(i)||it(i))return!1}var a=t+e.length;if(a<n.length){var o=n[a];if(at(o)||it(o))return!1}}return!0}}function ft(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,r.key,r)}}function pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mt="[++]{0,1}(?:["+y+"]*[0-90-9٠-٩۰-۹]){3,}["+y+"0-90-9٠-٩۰-۹]*",vt=new RegExp("^[ ]+"),gt=new RegExp("["+y+"]+$");var yt=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),pt(this,"state","NOT_READY"),this.text=t,this.options=n||{},this.metadata=r,this.regexp=new RegExp(mt+"(?:"+B+")?","ig")}var t,n,r;return t=e,(n=[{key:"find",value:function(){var e=this.regexp.exec(this.text);if(e){var t=e[0],n=e.index;t=t.replace(vt,""),n+=e[0].length-t.length,t=Fe(t=t.replace(gt,""));var r=this.parseCandidate(t,n);return r||this.find()}}},{key:"parseCandidate",value:function(e,t){if(Ve(e,t,this.text)&&ht(e,t,this.text,this.options.extended?"POSSIBLE":"VALID")){var n=we(e,this.options,this.metadata);if(n.phone)return n.startsAt=t,n.endsAt=t+e.length,n}}},{key:"hasNext",value:function(){return"NOT_READY"===this.state&&(this.last_match=this.find(),this.last_match?this.state="READY":this.state="DONE"),"READY"===this.state}},{key:"next",value:function(){if(!this.hasNext())throw new Error("No next element");var e=this.last_match;return this.last_match=null,this.state="NOT_READY",e}}])&&ft(t.prototype,n),r&&ft(t,r),e}();function bt(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,r.key,r)}}function _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var wt=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_t(this,e),this.key=t,this.value=n,this.next=r,this.prev=i},kt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;_t(this,e),this.size=0,this.limit=t,this.head=null,this.tail=null,this.cache={}}var t,n,r;return t=e,(n=[{key:"put",value:function(e,t){if(this.ensureLimit(),this.head){var n=new wt(e,t,this.head);this.head.prev=n,this.head=n}else this.head=this.tail=new wt(e,t);this.cache[e]=this.head,this.size++}},{key:"get",value:function(e){if(this.cache[e]){var t=this.cache[e].value;return this.remove(e),this.put(e,t),t}console.log("Item not available in cache for key ".concat(e))}},{key:"ensureLimit",value:function(){this.size===this.limit&&this.remove(this.tail.key)}},{key:"remove",value:function(e){var t=this.cache[e];null!==t.prev?t.prev.next=t.next:this.head=t.next,null!==t.next?t.next.prev=t.prev:this.tail=t.prev,delete this.cache[e],this.size--}},{key:"clear",value:function(){this.head=null,this.tail=null,this.size=0,this.cache={}}}])&&bt(t.prototype,n),r&&bt(t,r),e}();function Et(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,r.key,r)}}var St=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache=new kt(t)}var t,n,r;return t=e,(n=[{key:"getPatternForRegExp",value:function(e){var t=this.cache.get(e);return t||(t=new RegExp("^"+e),this.cache.put(e,t)),t}}])&&Et(t.prototype,n),r&&Et(t,r),e}(),Tt={POSSIBLE:function(e,t,n){return!0},VALID:function(e,t,n){return!(!oe(e,void 0,n)||!Ct(e,t.toString(),n))},STRICT_GROUPING:function(e,t,n,r){var i=t.toString();return!(!oe(e,void 0,n)||!Ct(e,i,n)||xt(e,i)||!Mt(e,n))&&$t(e,t,n,Ot,r)},EXACT_GROUPING:function(e,t,n,r){var i=t.toString();return!(!oe(e,void 0,n)||!Ct(e,i,n)||xt(e,i)||!Mt(e,n))&&$t(e,t,n,Pt,r)}};function Ct(e,t,n){for(var r=0;r<t.length-1;r++){var i=t.charAt(r);if("x"===i||"X"===i){var a=t.charAt(r+1);if("x"===a||"X"===a){if(r++,util.isNumberMatch(e,t.substring(r))!=MatchType.NSN_MATCH)return!1}else if(V(t.substring(r))!==e.ext)return!1}}return!0}function Mt(e,t){if("FROM_DEFAULT_COUNTRY"!=e.getCountryCodeSource())return!0;var n=util.getRegionCodeForCountryCode(e.getCountryCode()),r=util.getMetadataForRegion(n);if(null==r)return!0;var i=util.getNationalSignificantNumber(e),a=util.chooseFormattingPatternForNumber(r.numberFormats(),i);if(a&&a.getNationalPrefixFormattingRule().length>0){if(a.getNationalPrefixOptionalWhenFormatting())return!0;if(PhoneNumberUtil.formattingRuleHasFirstGroupOnly(a.getNationalPrefixFormattingRule()))return!0;var o=PhoneNumberUtil.normalizeDigitsOnly(e.getRawInput());return util.maybeStripNationalPrefixAndCarrierCode(o,r,null)}return!0}function xt(e,t){var n=t.indexOf("/");if(n<0)return!1;var r=t.indexOf("/",n+1);return!(r<0)&&(!(e.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN||e.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN)||PhoneNumberUtil.normalizeDigitsOnly(t.substring(0,n))!==String(e.getCountryCode())||t.slice(r+1).indexOf("/")>=0)}function $t(e,t,n,r,i){var a=normalizeDigits(t,!0),o=Lt(n,e,null);if(r(n,e,a,o))return!0;var s=MetadataManager.getAlternateFormatsForCountry(e.getCountryCode()),l=util.getNationalSignificantNumber(e);if(s){var c=s.numberFormats(),u=Array.isArray(c),d=0;for(c=u?c:c[Symbol.iterator]();;){var h;if(u){if(d>=c.length)break;h=c[d++]}else{if((d=c.next()).done)break;h=d.value}var f=h;if(f.leadingDigitsPatterns().length>0)if(!i.getPatternForRegExp("^"+f.leadingDigitsPatterns()[0]).test(l))continue;if(r(n,e,a,o=Lt(n,e,f)))return!0}}return!1}function Lt(e,t,n){if(n){var r=util.getNationalSignificantNumber(t);return util.formatNsnUsingPattern(r,n,"RFC3966",e).split("-")}var i=formatNumber(t,"RFC3966",e),a=i.indexOf(";");a<0&&(a=i.length);var o=i.indexOf("-")+1;return i.slice(o,a).split("-")}function Pt(e,t,n,r){var i=n.split(NON_DIGITS_PATTERN),a=t.hasExtension()?i.length-2:i.length-1;if(1==i.length||i[a].contains(util.getNationalSignificantNumber(t)))return!0;for(var o,s,l=r.length-1;l>0&&a>=0;){if(i[a]!==r[l])return!1;l--,a--}return a>=0&&(o=i[a],s=r[0],o.indexOf(s,o.length-s.length)===o.length-s.length)}function Ot(e,t,n,r){var i,a,o=0;if(t.getCountryCodeSource()!==CountryCodeSource.FROM_DEFAULT_COUNTRY){var s=String(t.getCountryCode());o=n.indexOf(s)+s.length()}for(var l=0;l<r.length;l++){if((o=n.indexOf(r[l],o))<0)return!1;if(o+=r[l].length(),0==l&&o<n.length()){var c=util.getRegionCodeForCountryCode(t.getCountryCode());if(null!=util.getNddPrefixForRegion(c,!0)&&Character.isDigit(n.charAt(o))){var u=util.getNationalSignificantNumber(t);return i=n.slice(o-r[l].length),a=u,0===i.indexOf(a)}}}return n.slice(o).contains(t.getExtension())}function It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Nt(e,t,n[t])}))}return e}function At(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,r.key,r)}}function Nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rt=["\\/+(.*)/","(\\([^(]*)","(?:".concat(We,"-|-").concat(We,")").concat(We,"*(.+)"),"[‒-―-]".concat(We,"*(.+)"),"\\.+".concat(We,"*([^.]+)"),"".concat(We,"+(").concat(Ge,"+)")],Bt=Be(0,2),Yt=Be(0,4),jt=Be(0,20),Ft="[".concat(y,"]")+Yt,Ht=Ke+Be(1,20),Ut="(?:"+st+Ft+")"+Bt+Ht+"(?:"+Ft+Ht+")"+jt+"(?:"+Y+")?",zt=new RegExp("[^".concat("0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൦-൵๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↉①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-9").concat(Je,"#]+$")),Vt=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,qt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(At(this,e),Nt(this,"state","NOT_READY"),Nt(this,"searchIndex",0),Nt(this,"regExpCache",new St(32)),!(n=It({},n,{defaultCallingCode:n.defaultCallingCode,defaultCountry:n.defaultCountry&&D(n.defaultCountry,r)?n.defaultCountry:void 0,leniency:n.leniency||n.extended?"POSSIBLE":"VALID",maxTries:n.maxTries||Vt})).leniency)throw new TypeError("`Leniency` not supplied");if(n.maxTries<0)throw new TypeError("`maxTries` not supplied");if(this.text=t,this.options=n,this.metadata=r,this.leniency=Tt[n.leniency],!this.leniency)throw new TypeError("Unknown leniency: ".concat(n.leniency,"."));this.maxTries=n.maxTries,this.PATTERN=new RegExp(Ut,"ig")}var t,n,r;return t=e,(n=[{key:"find",value:function(){for(var e;this.maxTries>0&&null!==(e=this.PATTERN.exec(this.text));){var t=e[0],n=e.index;if(Ve(t=Fe(t),n,this.text)){var r=this.parseAndVerify(t,n,this.text)||this.extractInnerMatch(t,n,this.text);if(r){if(this.options.v2){var i=new ge(r.country||r.countryCallingCode,r.phone,this.metadata);return r.ext&&(i.ext=r.ext),{startsAt:r.startsAt,endsAt:r.endsAt,number:i}}return r}}this.maxTries--}}},{key:"extractInnerMatch",value:function(e,t,n){for(var r=0,i=Rt;r<i.length;r++)for(var a=!0,o=void 0,s=new RegExp(i[r],"g");null!==(o=s.exec(e))&&this.maxTries>0;){if(a){var l=Ye(zt,e.slice(0,o.index)),c=this.parseAndVerify(l,t,n);if(c)return c;this.maxTries--,a=!1}var u=Ye(zt,o[1]),d=this.parseAndVerify(u,t+o.index,n);if(d)return d;this.maxTries--}}},{key:"parseAndVerify",value:function(e,t,n){if(ht(e,t,n,this.options.leniency)){var r=we(e,{extended:!0,defaultCountry:this.options.defaultCountry,defaultCallingCode:this.options.defaultCallingCode},this.metadata);if(r.possible&&this.leniency(r,e,this.metadata,this.regExpCache)){var i={startsAt:t,endsAt:t+e.length,phone:r.phone};return r.country&&"001"!==r.country?i.country=r.country:i.countryCallingCode=r.countryCallingCode,r.ext&&(i.ext=r.ext),i}}}},{key:"hasNext",value:function(){return"NOT_READY"===this.state&&(this.lastMatch=this.find(),this.lastMatch?this.state="READY":this.state="DONE"),"READY"===this.state}},{key:"next",value:function(){if(!this.hasNext())throw new Error("No next element");var e=this.lastMatch;return this.lastMatch=null,this.state="NOT_READY",e}}])&&Dt(t.prototype,n),r&&Dt(t,r),e}();function Wt(e){return(Wt="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 Gt(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,r.key,r)}}var Kt=sn("9",15),Jt=new RegExp("x"),Xt=/[- ]/,Qt=function(){return/\[([^\[\]])*\]/g},Zt=function(){return/\d(?=[^,}][^,}])/g},en=new RegExp("^["+y+"]*(\\$\\d["+y+"]*)+$"),tn=new RegExp("^"+("["+y+"0-90-9٠-٩۰-۹]+")+"$","i"),nn="(?:[++]["+y+"0-90-9٠-٩۰-۹]*|["+y+"0-90-9٠-٩۰-۹]+)",rn=new RegExp("[^"+y+"0-90-9٠-٩۰-۹]+.*$"),an=function(){function e(t,n){var r,i,a,o,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a={},(i="options")in(r=this)?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,this.metadata=new C(n),t&&("object"===Wt(t)?(o=t.defaultCountry,s=t.defaultCallingCode):o=t),o&&this.metadata.hasCountry(o)&&(this.defaultCountry=o),s&&(this.defaultCallingCode=s),this.reset()}var t,n,r;return t=e,(n=[{key:"reset",value:function(){return this.formattedOutput="",this.international=!1,this.internationalPrefix=void 0,this.countryCallingCode=void 0,this.digits="",this.nationalNumberDigits="",this.nationalPrefix="",this.carrierCode="",this.setCountry(this.defaultCountry,this.defaultCallingCode),this}},{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"isInternational",value:function(){return this.international}},{key:"getCountryCallingCode",value:function(){return this.countryCallingCode}},{key:"getCountry",value:function(){if(this.digits){var e=this.country;return e}}},{key:"setCountry",value:function(e,t){this.country=e,this.metadata.selectNumberingPlan(e,t),this.metadata.hasSelectedNumberingPlan()?this.initializePhoneNumberFormatsForCountry():this.matchingFormats=[],this.resetFormat()}},{key:"input",value:function(e){var t=this.extractFormattedDigits(e);return tn.test(t)&&(this.formattedOutput=this.getFullNumber(this.inputDigits(V(t))||this.getNonFormattedNationalNumber())),this.formattedOutput}},{key:"extractFormattedDigits",value:function(e){var t=function(e){var t,n=e.search(nn);if(!(n<0))return"+"===(e=e.slice(n))[0]&&(t=!0,e=e.slice("+".length)),e=e.replace(rn,""),t&&(e="+"+e),e}(e)||"";return"+"===t[0]&&(t=t.slice("+".length),this.digits||(this.formattedOutput="+",this.startInternationalNumber())),t}},{key:"startInternationalNumber",value:function(){this.international=!0,this.setCountry()}},{key:"inputDigits",value:function(e){if(!this.digits){var t=ne(e,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);t&&t!==e&&(this.internationalPrefix=e.slice(0,e.length-t.length),e=t,this.startInternationalNumber())}if(this.digits+=e,this.isInternational())if(this.countryCallingCode)this.nationalNumberDigits+=e,this.country&&!this.isCountryCallingCodeAmbiguous()||this.determineTheCountry();else{if(!this.extractCountryCallingCode())return;this.nationalNumberDigits=this.digits.slice(this.countryCallingCode.length),this.determineTheCountry()}else{this.nationalNumberDigits+=e,this.country||this.determineTheCountry();var n=this.nationalPrefix;this.nationalNumberDigits=this.nationalPrefix+this.nationalNumberDigits,this.extractNationalPrefix(),this.nationalPrefix!==n&&(this.initializePhoneNumberFormatsForCountry(),this.resetFormat())}return this.nationalNumberDigits&&this.matchFormats(this.nationalNumberDigits),this.formatNationalNumberWithNextDigits(e)}},{key:"formatNationalNumberWithNextDigits",value:function(e){var t=this.attemptToFormatCompletePhoneNumber();if(t)return t;var n=this.chosenFormat,r=this.chooseFormat();return r?r===n?this.formatNextNationalNumberDigits(e):this.reformatNationalNumber():void 0}},{key:"chooseFormat",value:function(){var e=this.matchingFormats,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var i=r;if(this.chosenFormat===i)break;if(this.createFormattingTemplate(i)){this.chosenFormat=i,this.populatedNationalNumberTemplatePosition=-1;break}}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"reformatNationalNumber",value:function(){return this.formatNextNationalNumberDigits(this.nationalPrefix+this.nationalNumberDigits)}},{key:"initializePhoneNumberFormatsForCountry",value:function(){this.matchingFormats=this.metadata.formats().filter((function(e){return en.test(e.internationalFormat())}))}},{key:"matchFormats",value:function(e){var t=this,n=e.length-3;n<0&&(n=0),this.matchingFormats=this.matchingFormats.filter((function(r){if(!t.isInternational()&&!t.nationalPrefix&&r.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())return!1;var i=r.leadingDigitsPatterns().length;if(0===i)return!0;if(e.length<3)return!0;n=Math.min(n,i-1);var a=r.leadingDigitsPatterns()[n];return new RegExp("^(".concat(a,")")).test(e)})),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"getSeparatorAfterNationalPrefix",value:function(e){return"1"===this.metadata.countryCallingCode()||e&&e.nationalPrefixFormattingRule()&&Xt.test(e.nationalPrefixFormattingRule())?" ":""}},{key:"attemptToFormatCompletePhoneNumber",value:function(){var e=this.matchingFormats,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var i=r;if(new RegExp("^(?:".concat(i.pattern(),")$")).test(this.nationalNumberDigits)){var a=de(this.nationalNumberDigits,i,this.isInternational(),!1,this.metadata);if(V(a)===this.nationalNumberDigits){if(this.nationalPrefix){var o=de(this.nationalNumberDigits,i,this.isInternational(),!0,this.metadata);a=V(o)===this.nationalPrefix+this.nationalNumberDigits?o:this.nationalPrefix+this.getSeparatorAfterNationalPrefix(i)+a}return this.resetFormat(),this.chosenFormat=i,this.createFormattingTemplate(i)?this.reformatNationalNumber():(this.template=this.getFullNumber(a).replace(/[\d\+]/g,"x"),this.populatedNationalNumberTemplate=a,this.populatedNationalNumberTemplatePosition=this.populatedNationalNumberTemplate.length-1),a}}}}},{key:"getInternationalPrefix",value:function(e){return this.internationalPrefix?e&&!1===e.spacing?this.internationalPrefix:this.internationalPrefix+" ":"+"}},{key:"getFullNumber",value:function(e){if(this.isInternational()){var t=this.getInternationalPrefix();return this.countryCallingCode?e?"".concat(t).concat(this.countryCallingCode," ").concat(e):"".concat(t).concat(this.countryCallingCode):"".concat(t).concat(this.digits)}return e}},{key:"getNonFormattedNationalNumber",value:function(){return this.nationalPrefix+(this.nationalPrefix&&this.nationalNumberDigits&&this.getSeparatorAfterNationalPrefix())+this.nationalNumberDigits}},{key:"extractCountryCallingCode",value:function(){var e=Te("+"+this.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),t=e.countryCallingCode,n=e.number;if(t)return this.nationalNumberDigits=n,this.countryCallingCode=t,this.metadata.chooseCountryByCountryCallingCode(t),this.initializePhoneNumberFormatsForCountry(),this.resetFormat(),this.metadata.hasSelectedNumberingPlan()}},{key:"extractNationalPrefix",value:function(){if(this.nationalPrefix="",this.metadata.hasSelectedNumberingPlan()){var e=ke(this.nationalNumberDigits,this.metadata),t=e.nationalNumber,n=e.carrierCode;if(t){var r=this.nationalNumberDigits.indexOf(t);if(r<0||r!==this.nationalNumberDigits.length-t.length)return}return n&&(this.carrierCode=n),this.nationalPrefix=this.nationalNumberDigits.slice(0,this.nationalNumberDigits.length-t.length),this.nationalNumberDigits=t,this.nationalPrefix}}},{key:"isCountryCallingCodeAmbiguous",value:function(){var e=this.metadata.getCountryCodesForCallingCode(this.countryCallingCode);return e&&e.length>1}},{key:"createFormattingTemplate",value:function(e){if(!(e.pattern().indexOf("|")>=0)){var t=this.getTemplateForNumberFormatPattern(e,this.nationalPrefix);if(t)return this.template=t,this.populatedNationalNumberTemplate=t,this.isInternational()&&(this.template=this.getInternationalPrefix().replace(/[\d\+]/g,"x")+sn("x",this.countryCallingCode.length)+" "+t),this.template}}},{key:"getTemplateForNumberFormatPattern",value:function(e,t){var n=e.pattern();n=n.replace(Qt(),"\\d").replace(Zt(),"\\d");var r=Kt.match(n)[0];if(!(this.nationalNumberDigits.length>r.length)){var i=new RegExp("^"+n+"$"),a=this.nationalNumberDigits.replace(/\d/g,"9");i.test(a)&&(r=a);var o,s=this.getFormatFormat(e);if(t&&e.nationalPrefixFormattingRule()){var l=s.replace(ue,e.nationalPrefixFormattingRule());if(V(l)===t+V(s)){s=l,o=!0;for(var c=t.length;c>0;)s=s.replace(/\d/,"x"),c--}}var u=r.replace(new RegExp(n),s).replace(new RegExp("9","g"),"x");return t&&(o||(u=sn("x",t.length)+this.getSeparatorAfterNationalPrefix(e)+u)),u}}},{key:"formatNextNationalNumberDigits",value:function(e){var t=e.split(""),n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var a=i;if(this.populatedNationalNumberTemplate.slice(this.populatedNationalNumberTemplatePosition+1).search(Jt)<0)return void this.resetFormat();this.populatedNationalNumberTemplatePosition=this.populatedNationalNumberTemplate.search(Jt),this.populatedNationalNumberTemplate=this.populatedNationalNumberTemplate.replace(Jt,a)}return on(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"getFormatFormat",value:function(e){return this.isInternational()?fe(e.internationalFormat()):e.format()}},{key:"determineTheCountry",value:function(){this.country=Ee(this.isInternational()?this.countryCallingCode:this.defaultCallingCode,this.nationalNumberDigits,this.metadata)}},{key:"getNumber",value:function(){if(this.isInternational()){if(!this.countryCallingCode)return}else if(!this.country&&!this.defaultCallingCode)return;if(this.nationalNumberDigits){var e=this.getCountry(),t=this.getCountryCallingCode()||this.defaultCallingCode,n=this.nationalNumberDigits,r=this.carrierCode;if(!this.isInternational()&&this.nationalNumberDigits===this.digits){var i=Ce(this.digits,e,t,this.metadata.metadata),a=i.countryCallingCode,o=i.number;if(a){var s=Se(o,this.metadata);n=s.nationalNumber,r=s.carrierCode}}var l=new ge(e||t,n,this.metadata.metadata);return r&&(l.carrierCode=r),l}}},{key:"isPossible",value:function(){var e=this.getNumber();return!!e&&e.isPossible()}},{key:"isValid",value:function(){var e=this.getNumber();return!!e&&e.isValid()}},{key:"getNationalNumber",value:function(){return this.nationalNumberDigits}},{key:"getNonFormattedTemplate",value:function(){return this.getFullNumber(this.getNonFormattedNationalNumber()).replace(/[\+\d]/g,"x")}},{key:"getTemplate",value:function(){if(!this.template)return this.getNonFormattedTemplate();for(var e=-1,t=0;t<(this.isInternational()?this.getInternationalPrefix({spacing:!1}).length:0)+this.digits.length;)e=this.template.indexOf("x",e+1),t++;return on(this.template,e+1)}}])&&Gt(t.prototype,n),r&&Gt(t,r),e}();function on(e,t){return")"===e[t]&&t++,function(e){for(var t=[],n=0;n<e.length;)"("===e[n]?t.push(n):")"===e[n]&&t.pop(),n++;var r=0,i="";t.push(e.length);for(var a=0,o=t;a<o.length;a++){var s=o[a];i+=e.slice(r,s),r=s+1}return i}(e.slice(0,t))}function sn(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function ln(){var e=Array.prototype.slice.call(arguments);return e.push(g),Ne.apply(this,e)}function cn(e,t){yt.call(this,e,t,g)}function un(e,t){qt.call(this,e,t,g)}function dn(e){an.call(this,e,g)}function hn(e){return A(e,g)}cn.prototype=Object.create(yt.prototype,{}),cn.prototype.constructor=cn,un.prototype=Object.create(qt.prototype,{}),un.prototype.constructor=un,dn.prototype=Object.create(an.prototype,{}),dn.prototype.constructor=dn;var fn={props:{theme:{type:Object,required:!0}},computed:{labelColorStyle:function(){return this.error?this.theme.errorColor:this.valid?this.theme.validColor:this.isFocus?this.theme.color:this.dark?this.theme.textDarkColor:null},inputBorderStyle:function(){return this.error?this.theme.borderErrorColor:this.valid?this.theme.borderValidColor:this.isHover||this.isFocus?this.theme.borderColor:null},inputBoxShadowStyle:function(){return this.isFocus?this.error?this.theme.boxShadowError:this.valid?this.theme.boxShadowValid:this.theme.boxShadowColor:null},inputBgColor:function(){return this.dark?this.theme.bgDarkColor:null},textColor:function(){return this.dark?this.theme.textDarkColor:null},inputCaretStyle:function(){return{caretColor:this.theme.colorValue}},radiusStyle:function(){return this.theme.borderRadius},radiusLeftStyle:function(){return this.theme.borderLeftRadius},radiusRightStyle:function(){return this.theme.borderRightRadius},bgItemSelectedStyle:function(){return this.theme.bgColor},loaderBgColor:function(){return this.theme.bgColor}}},pn={name:"InputTel",mixins:[fn],props:{value:{type:[String,Number],default:null},label:{type:String,default:"Enter text"},hint:{type:String,default:null},error:{type:Boolean,default:Boolean},disabled:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},id:{type:String,default:"InputTel"},size:{type:String,default:null},type:{type:String,default:"tel"},readonly:{type:Boolean,default:!1},valid:{type:Boolean,default:!1},required:{type:Boolean,default:!1},loader:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},noCountrySelector:{type:Boolean,default:!1}},data:function(){return{isFocus:!1,isHover:!1}},computed:{inputValue:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},labelValue:function(){var e=this.label;return this.required&&e?"".concat(e," *"):e},hintValue:function(){var e=this.hint;return this.required&&e?"".concat(e," *"):e}},methods:{updateHoverState:function(e){this.isHover=e},focusInput:function(){this.$refs.InputTel.focus()},onFocus:function(){this.$emit("focus"),this.isFocus=!0},onBlur:function(){this.$emit("blur"),this.isFocus=!1},clear:function(){this.$emit("input",null),this.$emit("clear")},keyUp:function(e){this.$emit("keyup",e)},keyDown:function(e){this.$emit("keydown",e)}}};n("b8ac");function mn(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var vn=mn(pn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"parent",staticClass:"input-tel",class:[{"is-focused":e.isFocus,"is-valid":e.valid,"has-value":e.value,"has-error":e.error,"is-disabled":e.disabled,"is-dark":e.dark,"has-hint":e.hint},e.size],on:{click:e.focusInput,mouseenter:function(t){return e.updateHoverState(!0)},mouseleave:function(t){return e.updateHoverState(!1)}}},["checkbox"===e.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"InputTel",staticClass:"input-tel__input",class:{"no-country-selector":e.noCountrySelector},style:[e.noCountrySelector?e.radiusStyle:e.radiusRightStyle,e.inputCaretStyle,e.inputBorderStyle,e.inputBoxShadowStyle,e.inputBgColor,e.textColor],attrs:{id:e.id,placeholder:e.labelValue,disabled:e.disabled,required:e.required,type:"checkbox"},domProps:{checked:Array.isArray(e.inputValue)?e._i(e.inputValue,null)>-1:e.inputValue},on:{keydown:e.keyDown,keyup:e.keyUp,focus:e.onFocus,blur:e.onBlur,click:function(t){return e.$emit("click",t)},change:function(t){var n=e.inputValue,r=t.target,i=!!r.checked;if(Array.isArray(n)){var a=e._i(n,null);r.checked?a<0&&(e.inputValue=n.concat([null])):a>-1&&(e.inputValue=n.slice(0,a).concat(n.slice(a+1)))}else e.inputValue=i}}},"input",e.$attrs,!1)):"radio"===e.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"InputTel",staticClass:"input-tel__input",class:{"no-country-selector":e.noCountrySelector},style:[e.noCountrySelector?e.radiusStyle:e.radiusRightStyle,e.inputCaretStyle,e.inputBorderStyle,e.inputBoxShadowStyle,e.inputBgColor,e.textColor],attrs:{id:e.id,placeholder:e.labelValue,disabled:e.disabled,required:e.required,type:"radio"},domProps:{checked:e._q(e.inputValue,null)},on:{keydown:e.keyDown,keyup:e.keyUp,focus:e.onFocus,blur:e.onBlur,click:function(t){return e.$emit("click",t)},change:function(t){e.inputValue=null}}},"input",e.$attrs,!1)):n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"InputTel",staticClass:"input-tel__input",class:{"no-country-selector":e.noCountrySelector},style:[e.noCountrySelector?e.radiusStyle:e.radiusRightStyle,e.inputCaretStyle,e.inputBorderStyle,e.inputBoxShadowStyle,e.inputBgColor,e.textColor],attrs:{id:e.id,placeholder:e.labelValue,disabled:e.disabled,required:e.required,type:e.type},domProps:{value:e.inputValue},on:{keydown:e.keyDown,keyup:e.keyUp,focus:e.onFocus,blur:e.onBlur,click:function(t){return e.$emit("click",t)},input:function(t){t.target.composing||(e.inputValue=t.target.value)}}},"input",e.$attrs,!1)),n("label",{ref:"label",staticClass:"input-tel__label",class:e.error?"text-danger":null,style:[e.labelColorStyle],attrs:{for:e.id},on:{click:e.focusInput}},[e._v(" "+e._s(e.hintValue||e.labelValue)+" ")]),e.clearable&&e.inputValue?n("button",{staticClass:"input-tel__clear",attrs:{title:"clear",type:"button",tabindex:"-1"},on:{click:e.clear}},[n("span",{staticClass:"input-tel__clear__effect"}),n("span",[e._v(" ✕ ")])]):e._e(),e.loader?n("div",{staticClass:"input-tel__loader"},[n("div",{staticClass:"input-tel__loader__progress-bar",style:[e.loaderBgColor]})]):e._e()])}),[],!1,null,"e59be3b4",null).exports,gn=(n("7f7f"),n("f559"),n("20d6"),n("a745")),yn=n.n(gn);function bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _n=n("774e"),wn=n.n(_n),kn=n("c8bb"),En=n.n(kn),Sn=n("67bb"),Tn=n.n(Sn);function Cn(e){return function(e){if(yn()(e))return bn(e)}(e)||function(e){if(void 0!==Tn.a&&En()(Object(e)))return wn()(e)}(e)||function(e,t){if(e){if("string"==typeof e)return bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?wn()(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n("7514");var Mn,xn={name:"CountrySelector",components:{RecycleScroller:n("e508").a},mixins:[fn],props:{id:{type:String,default:"CountrySelector"},value:{type:[String,Object],default:null},label:{type:String,default:"Choose country"},hint:{type:String,default:String},size:{type:String,default:String},error:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},valid:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},items:{type:Array,default:Array,required:!0},preferredCountries:{type:Array,default:null},onlyCountries:{type:Array,default:null},ignoredCountries:{type:Array,default:null},noFlags:{type:Boolean,default:!1},countriesHeight:{type:Number,default:35},showCodeOnList:{type:Boolean,default:!1}},data:function(){return{isFocus:!1,hasListOpen:!1,selectedIndex:null,tmpValue:this.value,query:"",indexItemToShow:0,isHover:!1}},computed:{itemHeight:function(){return{height:"".concat(this.countriesHeight,"px")}},listHeight:function(){return{height:"".concat(7*(this.countriesHeight+1),"px"),maxHeight:"".concat(7*(this.countriesHeight+1),"px")}},countriesList:function(){var e=this;return this.items.filter((function(t){return!e.ignoredCountries.includes(t.iso2)}))},countriesFiltered:function(){var e=this;return(this.onlyCountries||this.preferredCountries).map((function(t){return e.countriesList.find((function(e){return e.iso2.includes(t)}))}))},otherCountries:function(){var e=this;return this.countriesList.filter((function(t){return!e.preferredCountries.includes(t.iso2)}))},countriesSorted:function(){return this.preferredCountries?[].concat(Cn(this.countriesFiltered),Cn(this.otherCountries)):this.onlyCountries?this.countriesFiltered:this.countriesList},selectedValueIndex:function(){var e=this;return this.value?this.countriesSorted.findIndex((function(t){return t.iso2===e.value})):null},tmpValueIndex:function(){var e=this;return this.countriesSorted.findIndex((function(t){return t.iso2===e.tmpValue}))},callingCode:function(){return this.value?"+".concat(hn(this.value)):null}},methods:{updateHoverState:function(e){this.isHover=e},handleBlur:function(e){this.$el.contains(e.relatedTarget)||(this.isFocus=!1,this.closeList())},toggleList:function(){this.$refs.countriesList.offsetParent?this.closeList():this.openList()},openList:function(){this.disabled||(this.$refs.CountrySelector.focus(),this.$emit("open"),this.isFocus=!0,this.hasListOpen=!0,this.value&&this.scrollToSelectedOnFocus(this.selectedValueIndex))},closeList:function(){this.$emit("close"),this.hasListOpen=!1},updateValue:(Mn=c(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.tmpValue=t,this.$emit("input",t||null),e.next=4,this.$nextTick();case 4:this.closeList();case 5:case"end":return e.stop()}}),e,this)}))),function(e){return Mn.apply(this,arguments)}),scrollToSelectedOnFocus:function(e){var t=this;this.$nextTick((function(){t.$refs.countriesList.scrollTop=e*(t.countriesHeight+1)-3*(t.countriesHeight+1)}))},keyboardNav:function(e){var t=e.keyCode;if(40===t||38===t){e.view&&e.view.event&&e.view.event.preventDefault(),this.hasListOpen||this.openList();var n=40===t?this.tmpValueIndex+1:this.tmpValueIndex-1;(-1===n||n>=this.countriesSorted.length)&&(n=-1===n?this.countriesSorted.length-1:0),this.tmpValue=this.countriesSorted[n].iso2,this.scrollToSelectedOnFocus(n)}else 13===t?this.hasListOpen?this.updateValue(this.tmpValue):this.openList():27===t?this.closeList():this.searching(e)},searching:function(e){var t=this,n=e.keyCode;clearTimeout(this.queryTimer),this.queryTimer=setTimeout((function(){t.query=""}),1e3);var r=String.fromCharCode(n);if(8===n&&""!==this.query)this.query=this.query.substring(0,this.query.length-1);else if(/[a-zA-Z-e ]/.test(r)){this.hasListOpen||this.openList(),this.query+=e.key;var i=(this.preferredCountries?this.countriesSorted.slice(this.preferredCountries.length):this.countriesSorted).findIndex((function(e){return t.tmpValue=e.iso2,e.name.toLowerCase().startsWith(t.query)}));-1!==i&&this.scrollToSelectedOnFocus(i+(this.preferredCountries?this.preferredCountries.length:0))}}}},$n=(n("3314"),mn(xn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"parent",staticClass:"country-selector",class:[{"is-focused":e.isFocus,"has-value":e.value,"has-hint":e.hint,"has-error":e.error,"is-disabled":e.disabled,"is-dark":e.dark,"no-flags":e.noFlags,"has-list-open":e.hasListOpen,"is-valid":e.valid},e.size],on:{"!blur":function(t){return e.handleBlur(t)},mouseenter:function(t){return e.updateHoverState(!0)},mouseleave:function(t){return e.updateHoverState(!1)}}},[e.value&&!e.noFlags?n("div",{staticClass:"country-selector__country-flag",on:{click:function(t){return t.stopPropagation(),e.toggleList(t)}}},[n("div",{class:"iti-flag-small iti-flag "+e.value.toLowerCase()})]):e._e(),n("input",{ref:"CountrySelector",staticClass:"country-selector__input",style:[e.radiusLeftStyle,e.inputBorderStyle,e.inputBoxShadowStyle,e.inputBgColor],attrs:{id:e.id,placeholder:e.label,disabled:e.disabled,readonly:""},domProps:{value:e.callingCode},on:{focus:function(t){e.isFocus=!0},keydown:e.keyboardNav,click:function(t){return t.stopPropagation(),e.toggleList(t)}}}),n("div",{staticClass:"country-selector__toggle",on:{click:function(t){return t.stopPropagation(),e.toggleList(t)}}},[e._t("arrow",[n("svg",{staticClass:"country-selector__toggle__arrow",attrs:{mlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[n("path",{staticClass:"arrow",attrs:{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}}),n("path",{attrs:{fill:"none",d:"M0 0h24v24H0V0z"}})])])],2),n("label",{ref:"label",staticClass:"country-selector__label",style:[e.labelColorStyle],on:{click:function(t){return t.stopPropagation(),e.toggleList(t)}}},[e._v(" "+e._s(e.hint||e.label)+" ")]),n("Transition",{attrs:{name:"slide"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.hasListOpen,expression:"hasListOpen"}],ref:"countriesList",staticClass:"country-selector__list",class:{"has-calling-code":e.showCodeOnList},style:[e.radiusStyle,e.listHeight,e.inputBgColor]},[n("RecycleScroller",{attrs:{items:e.countriesSorted,"item-size":1,"key-field":"iso2"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.item;return[n("button",{key:"item-"+r.code,staticClass:"flex align-center country-selector__list__item",class:[{selected:e.value===r.iso2},{"keyboard-selected":e.value!==r.iso2&&e.tmpValue===r.iso2}],style:[e.itemHeight,e.value===r.iso2?e.bgItemSelectedStyle:null],attrs:{tabindex:"-1",type:"button"},on:{click:function(t){return t.stopPropagation(),e.updateValue(r.iso2)}}},[e.noFlags?e._e():n("div",{staticClass:"country-selector__list__item__flag-container"},[n("div",{class:"iti-flag-small iti-flag "+r.iso2.toLowerCase()})]),e.showCodeOnList?n("span",{staticClass:"country-selector__list__item__calling-code flex-fixed"},[e._v("+"+e._s(r.dialCode))]):e._e(),n("div",{staticClass:"dots-text"},[e._v(" "+e._s(r.name)+" ")])])]}}])})],1)])],1)}),[],!1,null,"46e105de",null).exports),Ln={countrySelectorLabel:"Country code",countrySelectorError:"Choose country",phoneNumberLabel:"Phone number",example:"Example:"},Pn=n("4883");function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?On(n,!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):On(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var An,Dn,Nn=function(e){return Object(Pn.isColorName)(e)?Object(Pn.HexToRgba)(Object(Pn.colorNameToHex)(e),.7):Object(Pn.HexToRgba)(e,.7)},Rn=function(){if(!window)return null;var e=window.navigator.userLanguage||window.navigator.language,t=e?e.substr(3,4).toUpperCase():null;return""===t&&(t=e.substr(0,2).toUpperCase()),t},Bn={name:"MazPhoneNumberInput",components:{InputTel:vn,CountrySelector:$n},props:{value:{type:String,default:null},id:{type:String,default:"MazPhoneNumberInput"},color:{type:String,default:"dodgerblue"},validColor:{type:String,default:"yellowgreen"},errorColor:{type:String,default:"orangered"},darkColor:{type:String,default:"#424242"},disabled:{type:Boolean,default:!1},defaultCountryCode:{type:String,default:null},size:{type:String,default:null},preferredCountries:{type:Array,default:null},onlyCountries:{type:Array,default:null},ignoredCountries:{type:Array,default:Array},translations:{type:Object,default:null},noValidatorState:{type:Boolean,default:!1},noFlags:{type:Boolean,default:!1},error:{type:Boolean,default:!1},noExample:{type:Boolean,default:!1},required:{type:Boolean,default:!1},countriesHeight:{type:Number,default:30},noUseBrowserLocale:{type:Boolean,default:!1},fetchCountry:{type:Boolean,default:!1},noCountrySelector:{type:Boolean,default:!1},showCodeOnList:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},borderRadius:{type:Number,default:4}},data:function(){return{results:{},userLocale:this.defaultCountryCode,lastKeyPressed:null}},computed:{uniqueId:function(){return"".concat(this.id,"-").concat(this._uid)},t:function(){return In({},Ln,{},this.translations)},codesCountries:function(){return m},countryCode:{get:function(){return this.userLocale||this.results.countryCode},set:function(e){this.setLocale(e),this.$refs.PhoneNumberInput.$el.querySelector("input").focus()}},phoneNumber:{get:function(){return this.value},set:function(e){this.emitValues({countryCode:this.countryCode,phoneNumber:e})}},shouldChooseCountry:function(){return!this.countryCode&&!!this.phoneNumber},phoneFormatted:function(){return this.results.formatInternational},isValid:function(){return this.results.isValid},phoneNumberExample:function(){var e=this.countryCode?function(){var e=Array.prototype.slice.call(arguments);return e.push(g),Re.apply(this,e)}(this.countryCode,v):null;return e?e.formatNational():null},hasEmptyPhone:function(){return""===this.phoneNumber||null===this.phoneNumber},hintValue:function(){return this.noExample||!this.phoneNumberExample||this.hasEmptyPhone||this.isValid?null:"".concat(this.t.example," ").concat(this.phoneNumberExample)},theme:function(){return{colorValue:this.color,color:{color:this.color},textColor:{color:"#747474"},textDarkColor:{color:"rgba(255, 255, 255, 0.7)"},validColor:{color:this.validColor},errorColor:{color:this.errorColor},darkColor:{color:this.darkColor},bgColor:{backgroundColor:this.color},bgValidColor:{backgroundColor:this.validColor},bgErrorColor:{backgroundColor:this.errorColor},bgDarkColor:{backgroundColor:this.darkColor},borderColor:{borderColor:this.color},borderValidColor:{borderColor:this.validColor},borderErrorColor:{borderColor:this.errorColor},borderDarkColor:{borderColor:this.darkColor},boxShadowColor:{boxShadow:"0 0 0 0.125rem ".concat(Nn(this.color))},boxShadowValid:{boxShadow:"0 0 0 0.125rem ".concat(Nn(this.validColor))},boxShadowError:{boxShadow:"0 0 0 0.125rem ".concat(Nn(this.errorColor))},borderRadius:{borderRadius:"".concat(this.borderRadius,"px")},borderLeftRadius:{borderTopLeftRadius:"".concat(this.borderRadius,"px"),borderBottomLeftRadius:"".concat(this.borderRadius,"px")},borderRightRadius:{borderTopRightRadius:"".concat(this.borderRadius,"px"),borderBottomRightRadius:"".concat(this.borderRadius,"px")}}}},watch:{defaultCountryCode:function(e,t){e!==t&&this.setLocale(e)},phoneNumber:{handler:function(e,t){if(e&&e!==t){var n=ln(e);n&&this.emitValues({phoneNumber:n.nationalNumber,countryCode:this.countryCode?this.countryCode:n.country})}},immediate:!0}},mounted:(Dn=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.phoneNumber&&this.defaultCountryCode&&this.emitValues({countryCode:this.defaultCountryCode,phoneNumber:this.phoneNumber}),!this.defaultCountryCode||!this.fetchCountry){e.next=4;break}throw new Error('MazPhoneNumberInput: Do not use "fetch-country" and "default-country-code" options in the same time');case 4:if(!this.defaultCountryCode||!this.noUseBrowserLocale){e.next=6;break}throw new Error('MazPhoneNumberInput: If you use a "default-country-code", do not use "no-use-browser-locale" options');case 6:if(!this.defaultCountryCode){e.next=8;break}return e.abrupt("return");case 8:this.fetchCountry?this.fetchCountryCode():!this.noUseBrowserLocale&&this.setLocale(Rn()),e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),new Error(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),function(){return Dn.apply(this,arguments)}),methods:{getAsYouTypeFormat:function(e){var t=e.countryCode,n=e.phoneNumber,r=new dn(t);return n?r.input(n):null},getParsePhoneNumberFromString:function(e){var t=e.phoneNumber,n=e.countryCode,r=t&&n?ln(t,n):null;return In({countryCode:n,isValid:!1},t&&""!==t?{phoneNumber:t}:null,{},r?{countryCallingCode:r.countryCallingCode,formattedNumber:r.number,nationalNumber:r.nationalNumber,isValid:r.isValid(),type:r.getType(),formatInternational:r.formatInternational(),formatNational:r.formatNational(),uri:r.getURI(),e164:r.format("E.164")}:null)},emitValues:function(e){var t=this,n=this.getAsYouTypeFormat(e),r=8===this.lastKeyPressed;this.$nextTick((function(){var i=!!t.phoneNumber&&t.phoneNumber.trim().slice(-1);r&&i&&")"===i.slice(-1)&&(n=t.phoneNumber.slice(0,-2),e.phoneNumber=t.phoneNumber.slice(0,-2)),t.results=t.getParsePhoneNumberFromString(e),t.$emit("update",t.results),t.$emit("input",n)}))},setLocale:function(e){var t=function(e){return p.includes(e)}(e);t&&e?(this.userLocale=t?e:null,this.emitValues({countryCode:e,phoneNumber:this.phoneNumber})):!t&&e&&window.console.warn("The locale ".concat(e," is not available"))},fetchCountryCode:(An=c(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://ip2c.org/s");case 3:return t=e.sent,e.next=6,t.text();case 6:n=e.sent,(r=(n||"").toString())&&"1"===r[0]&&this.setLocale(r.substr(2,2)),e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),new Error(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),function(){return An.apply(this,arguments)})}},Yn=(n("6996"),mn(Bn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-phone-number-input flex",class:[{dark:e.dark},e.size],attrs:{id:e.id}},[e.noCountrySelector?e._e():n("div",{staticClass:"select-country-container"},[n("CountrySelector",{ref:"CountrySelector",staticClass:"input-country-selector",attrs:{id:e.uniqueId+"_country_selector",items:e.codesCountries,"countries-height":e.countriesHeight,error:e.shouldChooseCountry,hint:e.shouldChooseCountry?e.t.countrySelectorError:null,disabled:e.disabled,valid:e.isValid&&!e.noValidatorState,"preferred-countries":e.preferredCountries,"only-countries":e.onlyCountries,"ignored-countries":e.ignoredCountries,label:e.t.countrySelectorLabel,"no-flags":e.noFlags,"show-code-on-list":e.showCodeOnList,size:e.size,dark:e.dark,theme:e.theme},model:{value:e.countryCode,callback:function(t){e.countryCode=t},expression:"countryCode"}},[e._t("arrow",null,{slot:"arrow"})],2)],1),n("div",{staticClass:"flex-1"},[n("InputTel",e._b({ref:"PhoneNumberInput",staticClass:"input-phone-number",attrs:{id:e.uniqueId+"_phone_number",label:e.t.phoneNumberLabel,hint:e.hintValue,dark:e.dark,disabled:e.disabled,size:e.size,error:e.error,valid:e.isValid&&!e.noValidatorState,required:e.required,"no-country-selector":e.noCountrySelector,theme:e.theme},on:{keydown:function(t){e.lastKeyPressed=t.keyCode},focus:function(t){return e.$emit("phone-number-focused")},blur:function(t){return e.$emit("phone-number-blur")}},model:{value:e.phoneNumber,callback:function(t){e.phoneNumber=t},expression:"phoneNumber"}},"InputTel",e.$attrs,!1))],1)])}),[],!1,null,"19c9a1c7",null).exports);t.default=Yn},fdef:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"}}).default},function(e,t,n){window,e.exports=function(){return n={},e.m=t=[function(e,t,n){var r=n(2);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5).default)("7ce5ac5d",r,!0,{})},function(e,t,n){"use strict";n(0)},function(e,t,n){(e.exports=n(3)(!1)).push([e.i,"\n.payButton{\n color: #61DAFB;\n width: 250px;\n height: 50px;\n font-weight: 800;\n}\n",""])},function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e))));return"/*# ".concat("sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t)," */")}(r),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")}));return[n].concat(a).concat([i]).join("\n")}return""+n}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var a=this[i][0];null!=a&&(r[a]=!0)}for(var o=0;o<e.length;o++){var s=e[o];null!=s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="(".concat(s[2],") and (").concat(n,")")),t.push(s))}},t}},function(e,t,n){"use strict";n.r(t);var r={props:{styleClass:{type:String,default:"payButton"},email:{type:String,required:!0},amount:{type:Number,required:!0},raveKey:{type:String,required:!0},reference:{type:String,required:!0},callback:{type:Function,required:!0,default:function(){}},close:{type:Function,required:!0,default:function(){}},metadata:{type:Array,default:function(){return[]}},currency:{type:String,default:"NGN"},country:{type:String,default:"NG"},customerFirstname:{type:String,default:""},customerLastname:{type:String,default:""},customTitle:{type:String,default:""},customDescription:{type:String,default:""},customLogo:{type:String,default:""},redirectUrl:{type:String,default:""},paymentOptions:{type:String,default:"card"},paymentPlan:{type:Number,default:0},hostedPayment:{type:Number,default:0},subaccounts:{type:Array,default:function(){return[]}}},created:function(){var e=document.createElement("script");e.src="https://api.ravepay.co/flwv3-pug/getpaidx/api/flwpbf-inline.js",document.getElementsByTagName("head")[0].appendChild(e)},methods:{payWithRave:function(){var e=this;window.getpaidSetup({customer_email:this.email,amount:this.amount,txref:this.reference,PBFPubKey:this.raveKey,onclose:function(){return e.close()},callback:function(t){return e.callback(t)},meta:this.metadata,currency:this.currency,country:this.country,customer_firstname:this.customerFirstname,customer_lastname:this.customerLastname,custom_title:this.customTitle,custom_logo:this.customLogo,redirect_url:this.redirectUrl,payment_plan:this.paymentPlan,payment_options:this.paymentOptions,subaccounts:this.subaccounts,hosted_payment:this.hostedPayment})}}},i=(n(1),function(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=[],c._compiled=!0),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}(r,(function(){var e=this;return(e._self._c||e.$createElement)("button",{class:e.styleClass,on:{click:e.payWithRave}},[e._t("default",[e._v("Make Payment")])],2)})));t.default=i.exports},function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var a=t[i],o=a[0],s={id:e+":"+i,css:a[1],media:a[2],sourceMap:a[3]};r[o]?r[o].parts.push(s):n.push(r[o]={id:o,parts:[s]})}return n}function i(e,t,n,i){m=n,g=i||{};var o=r(e,t);return a(o),function(t){for(var n=[],i=0;i<o.length;i++)(s=d[o[i].id]).refs--,n.push(s);for(t?a(o=r(e,t)):o=[],i=0;i<n.length;i++){var s;if(0===(s=n[i]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete d[s.id]}}}}function a(e){for(var t=0;t<e.length;t++){var n=e[t],r=d[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(s(n.parts[i]));n.parts.length<r.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(s(n.parts[i]));d[n.id]={id:n.id,refs:1,parts:a}}}}function o(){var e=document.createElement("style");return e.type="text/css",h.appendChild(e),e}function s(e){var t,n,r=document.querySelector("style["+y+'~="'+e.id+'"]');if(r){if(m)return v;r.parentNode.removeChild(r)}if(b){var i=p++;r=f=f||o(),t=l.bind(null,r,i,!1),n=l.bind(null,r,i,!0)}else r=o(),t=function(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),g.ssrId&&e.setAttribute(y,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function l(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}n.r(t),n.d(t,"default",(function(){return i}));var c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u,d={},h=c&&(document.head||document.getElementsByTagName("head")[0]),f=null,p=0,m=!1,v=function(){},g=null,y="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase()),_=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")})}],e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="/dist/",e(e.s=4);function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var t,n}()},function(e,t,n){var r=n(427),i=n(428),a=i;a.v1=r,a.v4=i,e.exports=a},function(e,t,n){var r=n(108);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}},function(e,t){e.exports=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(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,a,o,s,l=1,c={},u=!1,d=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){a.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&p(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(o+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return c[l]=i,r(l),l++},h.clearImmediate=f}function f(e){delete c[e]}function p(e){if(u)setTimeout(p,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{f(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(22),n(25))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),function(e){var t=n(17),r=n.n(t);(function(){var t,n="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};var i=function(t){t=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof e&&e,t];for(var n=0;n<t.length;++n){var r=t[n];if(r&&r.Math==Math)return r}return globalThis}(this);function a(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function o(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:a(e)}}!function(e,t){if(t){var r=i;e=e.split(".");for(var a=0;a<e.length-1;a++){var o=e[a];o in r||(r[o]={}),r=r[o]}(t=t(a=r[e=e[e.length-1]]))!=a&&null!=t&&n(r,e,{configurable:!0,writable:!0,value:t})}}("Promise",(function(e){function t(e){this.b=0,this.c=void 0,this.a=[];var t=this.f();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function n(){this.a=null}function r(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;n.prototype.b=function(e){if(null==this.a){this.a=[];var t=this;this.c((function(){t.g()}))}this.a.push(e)};var a=i.setTimeout;n.prototype.c=function(e){a(e,0)},n.prototype.g=function(){for(;this.a&&this.a.length;){var e=this.a;this.a=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.f(e)}}}this.a=null},n.prototype.f=function(e){this.c((function(){throw e}))},t.prototype.f=function(){function e(e){return function(r){n||(n=!0,e.call(t,r))}}var t=this,n=!1;return{resolve:e(this.m),reject:e(this.g)}},t.prototype.m=function(e){if(e===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.s(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.u(e):this.h(e)}},t.prototype.u=function(e){var t=void 0;try{t=e.then}catch(e){return void this.g(e)}"function"==typeof t?this.w(t,e):this.h(e)},t.prototype.g=function(e){this.i(2,e)},t.prototype.h=function(e){this.i(1,e)},t.prototype.i=function(e,t){if(0!=this.b)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.b);this.b=e,this.c=t,this.l()},t.prototype.l=function(){if(null!=this.a){for(var e=0;e<this.a.length;++e)s.b(this.a[e]);this.a=null}};var s=new n;return t.prototype.s=function(e){var t=this.f();e.Oa(t.resolve,t.reject)},t.prototype.w=function(e,t){var n=this.f();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},t.prototype.then=function(e,n){function r(e,t){return"function"==typeof e?function(t){try{i(e(t))}catch(e){a(e)}}:t}var i,a,o=new t((function(e,t){i=e,a=t}));return this.Oa(r(e,i),r(n,a)),o},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.Oa=function(e,t){function n(){switch(r.b){case 1:e(r.c);break;case 2:t(r.c);break;default:throw Error("Unexpected state: "+r.b)}}var r=this;null==this.a?s.b(n):this.a.push(n)},t.resolve=r,t.reject=function(e){return new t((function(t,n){n(e)}))},t.race=function(e){return new t((function(t,n){for(var i=o(e),a=i.next();!a.done;a=i.next())r(a.value).Oa(t,n)}))},t.all=function(e){var n=o(e),i=n.next();return i.done?r([]):new t((function(e,t){function a(t){return function(n){o[t]=n,0==--s&&e(o)}}var o=[],s=0;do{o.push(void 0),s++,r(i.value).Oa(a(o.length-1),t),i=n.next()}while(!i.done)}))},t}));var s=s||{},l=this||self,c=/^[\w+/_-]+[=]{0,2}$/,u=null;function d(){}function h(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function f(e){var t=h(e);return"array"==t||"object"==t&&"number"==typeof e.length}function p(e){return"function"==h(e)}function m(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function v(e){return Object.prototype.hasOwnProperty.call(e,g)&&e[g]||(e[g]=++y)}var g="closure_uid_"+(1e9*Math.random()>>>0),y=0;function b(e,t,n){return e.call.apply(e.bind,arguments)}function _(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function w(e,t,n){return(w=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?b:_).apply(null,arguments)}function k(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}var E=Date.now||function(){return+new Date};function S(e,t){function n(){}n.prototype=t.prototype,e.Za=t.prototype,e.prototype=new n,e.prototype.constructor=e}function T(e,t,n){this.code=x+e,this.message=t||$[e]||"",this.a=n||null}function C(e){var t=e&&e.code;return t?new T(t.substring(x.length),e.message,e.serverResponse):null}S(T,Error),T.prototype.v=function(){var e={code:this.code,message:this.message};return this.a&&(e.serverResponse=this.a),e},T.prototype.toJSON=function(){return this.v()};var M,x="auth/",$={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must always have a verified email.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},L={hd:{Ra:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},pd:{Ra:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://securetoken.googleapis.com/v1/token",Ua:"https://identitytoolkit.googleapis.com/v2/",id:"p"},rd:{Ra:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},sd:{Ra:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Xa:"https://test-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function P(e){for(var t in L)if(L[t].id===e)return{firebaseEndpoint:(e=L[t]).Ra,secureTokenEndpoint:e.Xa,identityPlatformEndpoint:e.Ua};return null}function O(e){if(!e)return!1;try{return!!e.$goog_Thenable}catch(e){return!1}}function I(e){if(Error.captureStackTrace)Error.captureStackTrace(this,I);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function A(e,t){for(var n="",r=(e=e.split("%s")).length-1,i=0;i<r;i++)n+=e[i]+(i<t.length?t[i]:"%s");I.call(this,n+e[r])}function D(e,t){throw new A("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}function N(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function R(e,t){e.f(t),100>e.b&&(e.b++,t.next=e.a,e.a=t)}function B(){this.b=this.a=null}M=P("__EID__")?"__EID__":void 0,S(I,Error),I.prototype.name="CustomError",S(A,I),A.prototype.name="AssertionError",N.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var Y=new N((function(){return new F}),(function(e){e.reset()}));function j(){var e=yt,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function F(){this.next=this.b=this.a=null}B.prototype.add=function(e,t){var n=Y.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},F.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},F.prototype.reset=function(){this.next=this.b=this.a=null};var H=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,0);for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},U=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,i="string"==typeof e?e.split(""):e,a=0;a<r;a++)a in i&&t.call(n,i[a],a,e)};var z=Array.prototype.filter?function(e,t){return Array.prototype.filter.call(e,t,void 0)}:function(e,t){for(var n=e.length,r=[],i=0,a="string"==typeof e?e.split(""):e,o=0;o<n;o++)if(o in a){var s=a[o];t.call(void 0,s,o,e)&&(r[i++]=s)}return r},V=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var n=e.length,r=Array(n),i="string"==typeof e?e.split(""):e,a=0;a<n;a++)a in i&&(r[a]=t.call(void 0,i[a],a,e));return r},q=Array.prototype.some?function(e,t){return Array.prototype.some.call(e,t,void 0)}:function(e,t){for(var n=e.length,r="string"==typeof e?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e))return!0;return!1};function W(e,t){return 0<=H(e,t)}function G(e,t){var n;return(n=0<=(t=H(e,t)))&&Array.prototype.splice.call(e,t,1),n}function K(e,t){!function(e,t){for(var n="string"==typeof e?e.split(""):e,r=e.length-1;0<=r;--r)r in n&&t.call(void 0,n[r],r,e)}(e,(function(n,r){t.call(void 0,n,r,e)&&1==Array.prototype.splice.call(e,r,1).length&&0}))}function J(e){return Array.prototype.concat.apply([],arguments)}function X(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}var Q,Z=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},ee=/&/g,te=/</g,ne=/>/g,re=/"/g,ie=/'/g,ae=/\x00/g,oe=/[\x00&<>"']/;function se(e,t){return-1!=e.indexOf(t)}function le(e,t){return e<t?-1:e>t?1:0}e:{var ce=l.navigator;if(ce){var ue=ce.userAgent;if(ue){Q=ue;break e}}Q=""}function de(e){return se(Q,e)}function he(e,t){for(var n in e)t.call(void 0,e[n],n,e)}function fe(e){for(var t in e)return!1;return!0}function pe(e){var t,n={};for(t in e)n[t]=e[t];return n}var me="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function ve(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var a=0;a<me.length;a++)n=me[a],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function ge(e,t){e:{try{var n=e&&e.ownerDocument,r=n&&(n.defaultView||n.parentWindow);if((r=r||l).Element&&r.Location){var i=r;break e}}catch(e){}i=null}if(i&&void 0!==i[t]&&(!e||!(e instanceof i[t])&&(e instanceof i.Location||e instanceof i.Element))){if(m(e))try{var a=e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch(e){a="<object could not be stringified>"}else a=void 0===e?"undefined":null===e?"null":typeof e;D("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,a)}}function ye(e,t){this.a=e===we&&t||"",this.b=_e}function be(e){return e instanceof ye&&e.constructor===ye&&e.b===_e?e.a:(D("expected object of type Const, got '"+e+"'"),"type_error:Const")}ye.prototype.ra=!0,ye.prototype.qa=function(){return this.a},ye.prototype.toString=function(){return"Const{"+this.a+"}"};var _e={},we={},ke=new ye(we,"");function Ee(e,t){this.a=e===$e&&t||"",this.b=xe}function Se(e){return e instanceof Ee&&e.constructor===Ee&&e.b===xe?e.a:(D("expected object of type TrustedResourceUrl, got '"+e+"' of type "+h(e)),"type_error:TrustedResourceUrl")}function Te(e,t){var n=be(e);if(!Me.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return e=n.replace(Ce,(function(e,r){if(!Object.prototype.hasOwnProperty.call(t,r))throw Error('Found marker, "'+r+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[r])instanceof ye?be(e):encodeURIComponent(String(e))})),new Ee($e,e)}Ee.prototype.ra=!0,Ee.prototype.qa=function(){return this.a.toString()},Ee.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Ce=/%{(\w+)}/g,Me=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,xe={},$e={};function Le(e,t){this.a=e===De&&t||"",this.b=Ae}function Pe(e){return e instanceof Le&&e.constructor===Le&&e.b===Ae?e.a:(D("expected object of type SafeUrl, got '"+e+"' of type "+h(e)),"type_error:SafeUrl")}Le.prototype.ra=!0,Le.prototype.qa=function(){return this.a.toString()},Le.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Oe=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Ie(e){return e instanceof Le?e:(e="object"==typeof e&&e.ra?e.qa():String(e),Oe.test(e)||(e="about:invalid#zClosurez"),new Le(De,e))}var Ae={},De={};function Ne(){this.a="",this.b=Be}function Re(e){return e instanceof Ne&&e.constructor===Ne&&e.b===Be?e.a:(D("expected object of type SafeHtml, got '"+e+"' of type "+h(e)),"type_error:SafeHtml")}Ne.prototype.ra=!0,Ne.prototype.qa=function(){return this.a.toString()},Ne.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Be={};function Ye(e){var t=new Ne;return t.a=e,t}Ye("<!DOCTYPE html>");var je=Ye("");function Fe(e,t){for(var n=e.split("%s"),r="",i=Array.prototype.slice.call(arguments,1);i.length&&1<n.length;)r+=n.shift()+i.shift();return r+n.join("%s")}function He(e){return oe.test(e)&&(-1!=e.indexOf("&")&&(e=e.replace(ee,"&")),-1!=e.indexOf("<")&&(e=e.replace(te,"<")),-1!=e.indexOf(">")&&(e=e.replace(ne,">")),-1!=e.indexOf('"')&&(e=e.replace(re,""")),-1!=e.indexOf("'")&&(e=e.replace(ie,"'")),-1!=e.indexOf("\0")&&(e=e.replace(ae,"�"))),e}function Ue(e){return Ue[" "](e),e}Ye("<br>"),Ue[" "]=d;var ze,Ve,qe=de("Opera"),We=de("Trident")||de("MSIE"),Ge=de("Edge"),Ke=Ge||We,Je=de("Gecko")&&!(se(Q.toLowerCase(),"webkit")&&!de("Edge"))&&!(de("Trident")||de("MSIE"))&&!de("Edge"),Xe=se(Q.toLowerCase(),"webkit")&&!de("Edge");function Qe(){var e=l.document;return e?e.documentMode:void 0}e:{var Ze="",et=(Ve=Q,Je?/rv:([^\);]+)(\)|;)/.exec(Ve):Ge?/Edge\/([\d\.]+)/.exec(Ve):We?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Ve):Xe?/WebKit\/(\S+)/.exec(Ve):qe?/(?:Version)[ \/]?(\S+)/.exec(Ve):void 0);if(et&&(Ze=et?et[1]:""),We){var tt=Qe();if(null!=tt&&tt>parseFloat(Ze)){ze=String(tt);break e}}ze=Ze}var nt,rt={};function it(e){return function(e,t){var n=rt;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,(function(){for(var t=0,n=Z(String(ze)).split("."),r=Z(String(e)).split("."),i=Math.max(n.length,r.length),a=0;0==t&&a<i;a++){var o=n[a]||"",s=r[a]||"";do{if(o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==o[0].length&&0==s[0].length)break;t=le(0==o[1].length?0:parseInt(o[1],10),0==s[1].length?0:parseInt(s[1],10))||le(0==o[2].length,0==s[2].length)||le(o[2],s[2]),o=o[3],s=s[3]}while(0==t)}return 0<=t}))}nt=l.document&&We?Qe():void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(Ve){}var at=!We||9<=Number(nt);function ot(e){var t=document;return"string"==typeof e?t.getElementById(e):e}function st(e,t){he(t,(function(t,n){t&&"object"==typeof t&&t.ra&&(t=t.qa()),"style"==n?e.style.cssText=t:"class"==n?e.className=t:"for"==n?e.htmlFor=t:ut.hasOwnProperty(n)?e.setAttribute(ut[n],t):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?e.setAttribute(n,t):e[n]=t}))}var lt,ct,ut={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function dt(e,t,n){function r(n){n&&t.appendChild("string"==typeof n?e.createTextNode(n):n)}for(var i=2;i<n.length;i++){var a=n[i];!f(a)||m(a)&&0<a.nodeType?r(a):U(ft(a)?X(a):a,r)}}function ht(e,t){return t=String(t),"application/xhtml+xml"===e.contentType&&(t=t.toLowerCase()),e.createElement(t)}function ft(e){if(e&&"number"==typeof e.length){if(m(e))return"function"==typeof e.item||"string"==typeof e.item;if(p(e))return"function"==typeof e.item}return!1}function pt(e){l.setTimeout((function(){throw e}),0)}function mt(){var e=l.MessageChannel;if(void 0===e&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!de("Presto")&&(e=function(){var e=ht(document,"IFRAME");e.style.display="none",function(e){var t=new Ee($e,be(ke));ge(e,"HTMLIFrameElement"),e.src=Se(t).toString()}(e),document.documentElement.appendChild(e);var t=e.contentWindow;(e=t.document).open(),e.write(Re(je)),e.close();var n="callImmediate"+Math.random(),r="file:"==t.location.protocol?"*":t.location.protocol+"//"+t.location.host;e=w((function(e){"*"!=r&&e.origin!=r||e.data!=n||this.port1.onmessage()}),this),t.addEventListener("message",e,!1),this.port1={},this.port2={postMessage:function(){t.postMessage(n,r)}}}),void 0!==e&&!de("Trident")&&!de("MSIE")){var t=new e,n={},r=n;return t.port1.onmessage=function(){if(void 0!==n.next){var e=(n=n.next).Db;n.Db=null,e()}},function(e){r.next={Db:e},r=r.next,t.port2.postMessage(0)}}return function(e){l.setTimeout(e,0)}}function vt(e,t){ct||function(){if(l.Promise&&l.Promise.resolve){var e=l.Promise.resolve(void 0);ct=function(){e.then(bt)}}else ct=function(){var e=bt;!p(l.setImmediate)||l.Window&&l.Window.prototype&&!de("Edge")&&l.Window.prototype.setImmediate==l.setImmediate?(lt||(lt=mt()),lt(e)):l.setImmediate(e)}}(),gt||(ct(),gt=!0),yt.add(e,t)}var gt=!1,yt=new B;function bt(){for(var e;e=j();){try{e.a.call(e.b)}catch(e){pt(e)}R(Y,e)}gt=!1}function _t(e,t){if(this.a=wt,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,e!=d)try{var n=this;e.call(t,(function(e){It(n,kt,e)}),(function(e){if(!(e instanceof jt))try{if(e instanceof Error)throw e;throw Error("Promise rejected.")}catch(e){}It(n,Et,e)}))}catch(e){It(this,Et,e)}}var wt=0,kt=2,Et=3;function St(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}St.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Tt=new N((function(){return new St}),(function(e){e.reset()}));function Ct(e,t,n){var r=Tt.get();return r.g=e,r.b=t,r.f=n,r}function Mt(e){if(e instanceof _t)return e;var t=new _t(d);return It(t,kt,e),t}function xt(e){return new _t((function(t,n){n(e)}))}function $t(e,t,n){At(e,t,n,null)||vt(k(t,e))}function Lt(e){return new _t((function(t){var n=e.length,r=[];if(n)for(var i=function(e,i,a){n--,r[e]=i?{Mb:!0,value:a}:{Mb:!1,reason:a},0==n&&t(r)},a=0;a<e.length;a++)$t(e[a],k(i,a,!0),k(i,a,!1));else t(r)}))}function Pt(e,t){e.b||e.a!=kt&&e.a!=Et||Dt(e),e.f?e.f.next=t:e.b=t,e.f=t}function Ot(e,t,n,r){var i=Ct(null,null,null);return i.a=new _t((function(e,a){i.g=t?function(n){try{var i=t.call(r,n);e(i)}catch(e){a(e)}}:e,i.b=n?function(t){try{var i=n.call(r,t);void 0===i&&t instanceof jt?a(t):e(i)}catch(e){a(e)}}:a})),i.a.c=e,Pt(e,i),i.a}function It(e,t,n){e.a==wt&&(e===n&&(t=Et,n=new TypeError("Promise cannot resolve to itself")),e.a=1,At(n,e.Yc,e.Zc,e)||(e.i=n,e.a=t,e.c=null,Dt(e),t!=Et||n instanceof jt||function(e,t){e.g=!0,vt((function(){e.g&&Yt.call(null,t)}))}(e,n)))}function At(e,t,n,r){if(e instanceof _t)return Pt(e,Ct(t||d,n||null,r)),!0;if(O(e))return e.then(t,n,r),!0;if(m(e))try{var i=e.then;if(p(i))return function(e,t,n,r,i){function a(e){o||(o=!0,r.call(i,e))}var o=!1;try{t.call(e,(function(e){o||(o=!0,n.call(i,e))}),a)}catch(e){a(e)}}(e,i,t,n,r),!0}catch(e){return n.call(r,e),!0}return!1}function Dt(e){e.h||(e.h=!0,vt(e.ec,e))}function Nt(e){var t=null;return e.b&&(t=e.b,e.b=t.next,t.next=null),e.b||(e.f=null),t}function Rt(e,t,n,r){if(n==Et&&t.b&&!t.c)for(;e&&e.g;e=e.c)e.g=!1;if(t.a)t.a.c=null,Bt(t,n,r);else try{t.c?t.g.call(t.f):Bt(t,n,r)}catch(e){Yt.call(null,e)}R(Tt,t)}function Bt(e,t,n){t==kt?e.g.call(e.f,n):e.b&&e.b.call(e.f,n)}_t.prototype.then=function(e,t,n){return Ot(this,p(e)?e:null,p(t)?t:null,n)},_t.prototype.$goog_Thenable=!0,(t=_t.prototype).ma=function(e,t){return(e=Ct(e,e,t)).c=!0,Pt(this,e),this},t.o=function(e,t){return Ot(this,null,e,t)},t.cancel=function(e){if(this.a==wt){var t=new jt(e);vt((function(){!function e(t,n){if(t.a==wt)if(t.c){var r=t.c;if(r.b){for(var i=0,a=null,o=null,s=r.b;s&&(s.c||(i++,s.a==t&&(a=s),!(a&&1<i)));s=s.next)a||(o=s);a&&(r.a==wt&&1==i?e(r,n):(o?((i=o).next==r.f&&(r.f=i),i.next=i.next.next):Nt(r),Rt(r,a,Et,n)))}t.c=null}else It(t,Et,n)}(this,t)}),this)}},t.Yc=function(e){this.a=wt,It(this,kt,e)},t.Zc=function(e){this.a=wt,It(this,Et,e)},t.ec=function(){for(var e;e=Nt(this);)Rt(this,e,this.a,this.i);this.h=!1};var Yt=pt;function jt(e){I.call(this,e)}function Ft(){0!=Ht&&(Ut[v(this)]=this),this.wa=this.wa,this.na=this.na}S(jt,I),jt.prototype.name="cancel";var Ht=0,Ut={};function zt(e){if(!e.wa&&(e.wa=!0,e.Ba(),0!=Ht)){var t=v(e);if(0!=Ht&&e.na&&0<e.na.length)throw Error(e+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete Ut[t]}}Ft.prototype.wa=!1,Ft.prototype.Ba=function(){if(this.na)for(;this.na.length;)this.na.shift()()};var Vt=Object.freeze||function(e){return e},qt=!We||9<=Number(nt),Wt=We&&!it("9"),Gt=function(){if(!l.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{l.addEventListener("test",d,t),l.removeEventListener("test",d,t)}catch(e){}return e}();function Kt(e,t){this.type=e,this.b=this.target=t,this.defaultPrevented=!1}function Jt(e,t){if(Kt.call(this,e?e.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.b=t,t=e.relatedTarget){if(Je){e:{try{Ue(t.nodeName);var i=!0;break e}catch(e){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:Xt[e.pointerType]||"",this.a=e,e.defaultPrevented&&this.preventDefault()}}Kt.prototype.preventDefault=function(){this.defaultPrevented=!0},S(Jt,Kt);var Xt=Vt({2:"touch",3:"pen",4:"mouse"});Jt.prototype.preventDefault=function(){Jt.Za.preventDefault.call(this);var e=this.a;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,Wt)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(e){}},Jt.prototype.f=function(){return this.a};var Qt="closure_listenable_"+(1e6*Math.random()|0),Zt=0;function en(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.Ta=i,this.key=++Zt,this.ua=this.Na=!1}function tn(e){e.ua=!0,e.listener=null,e.proxy=null,e.src=null,e.Ta=null}function nn(e){this.src=e,this.a={},this.b=0}function rn(e,t){var n=t.type;n in e.a&&G(e.a[n],t)&&(tn(t),0==e.a[n].length&&(delete e.a[n],e.b--))}function an(e,t,n,r){for(var i=0;i<e.length;++i){var a=e[i];if(!a.ua&&a.listener==t&&a.capture==!!n&&a.Ta==r)return i}return-1}nn.prototype.add=function(e,t,n,r,i){var a=e.toString();(e=this.a[a])||(e=this.a[a]=[],this.b++);var o=an(e,t,r,i);return-1<o?(t=e[o],n||(t.Na=!1)):((t=new en(t,this.src,a,!!r,i)).Na=n,e.push(t)),t};var on="closure_lm_"+(1e6*Math.random()|0),sn={};function ln(e,t,n,r,i){if(r&&r.once)un(e,t,n,r,i);else if(Array.isArray(t))for(var a=0;a<t.length;a++)ln(e,t[a],n,r,i);else n=bn(n),e&&e[Qt]?wn(e,t,n,m(r)?!!r.capture:!!r,i):cn(e,t,n,!1,r,i)}function cn(e,t,n,r,i,a){if(!t)throw Error("Invalid event type");var o=m(i)?!!i.capture:!!i,s=gn(e);if(s||(e[on]=s=new nn(e)),!(n=s.add(t,n,r,o,a)).proxy){if(r=function(){var e=vn,t=qt?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)Gt||(i=o),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(fn(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}0}}function un(e,t,n,r,i){if(Array.isArray(t))for(var a=0;a<t.length;a++)un(e,t[a],n,r,i);else n=bn(n),e&&e[Qt]?kn(e,t,n,m(r)?!!r.capture:!!r,i):cn(e,t,n,!0,r,i)}function dn(e,t,n,r,i){if(Array.isArray(t))for(var a=0;a<t.length;a++)dn(e,t[a],n,r,i);else r=m(r)?!!r.capture:!!r,n=bn(n),e&&e[Qt]?(e=e.u,(t=String(t).toString())in e.a&&(-1<(n=an(a=e.a[t],n,r,i))&&(tn(a[n]),Array.prototype.splice.call(a,n,1),0==a.length&&(delete e.a[t],e.b--)))):e&&(e=gn(e))&&(t=e.a[t.toString()],e=-1,t&&(e=an(t,n,r,i)),(n=-1<e?t[e]:null)&&hn(n))}function hn(e){if("number"!=typeof e&&e&&!e.ua){var t=e.src;if(t&&t[Qt])rn(t.u,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(fn(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=gn(t))?(rn(n,e),0==n.b&&(n.src=null,t[on]=null)):tn(e)}}}function fn(e){return e in sn?sn[e]:sn[e]="on"+e}function pn(e,t,n,r){var i=!0;if((e=gn(e))&&(t=e.a[t.toString()]))for(t=t.concat(),e=0;e<t.length;e++){var a=t[e];a&&a.capture==n&&!a.ua&&(a=mn(a,r),i=i&&!1!==a)}return i}function mn(e,t){var n=e.listener,r=e.Ta||e.src;return e.Na&&hn(e),n.call(r,t)}function vn(e,t){if(e.ua)return!0;if(!qt){if(!t)e:{t=["window","event"];for(var n=l,r=0;r<t.length;r++)if(null==(n=n[t[r]])){t=null;break e}t=n}if(t=new Jt(r=t,this),n=!0,!(0>r.keyCode||null!=r.returnValue)){e:{var i=!1;if(0==r.keyCode)try{r.keyCode=-1;break e}catch(e){i=!0}(i||null==r.returnValue)&&(r.returnValue=!0)}for(r=[],i=t.b;i;i=i.parentNode)r.push(i);for(e=e.type,i=r.length-1;0<=i;i--){t.b=r[i];var a=pn(r[i],e,!0,t);n=n&&a}for(i=0;i<r.length;i++)t.b=r[i],a=pn(r[i],e,!1,t),n=n&&a}return n}return mn(e,new Jt(t,this))}function gn(e){return(e=e[on])instanceof nn?e:null}var yn="__closure_events_fn_"+(1e9*Math.random()>>>0);function bn(e){return p(e)?e:(e[yn]||(e[yn]=function(t){return e.handleEvent(t)}),e[yn])}function _n(){Ft.call(this),this.u=new nn(this),this.Yb=this,this.eb=null}function wn(e,t,n,r,i){e.u.add(String(t),n,!1,r,i)}function kn(e,t,n,r,i){e.u.add(String(t),n,!0,r,i)}function En(e,t,n,r){if(!(t=e.u.a[String(t)]))return!0;t=t.concat();for(var i=!0,a=0;a<t.length;++a){var o=t[a];if(o&&!o.ua&&o.capture==n){var s=o.listener,l=o.Ta||o.src;o.Na&&rn(e.u,o),i=!1!==s.call(l,r)&&i}}return i&&!r.defaultPrevented}function Sn(e,t,n){if(p(e))n&&(e=w(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=w(e.handleEvent,e)}return 2147483647<Number(t)?-1:l.setTimeout(e,t||0)}function Tn(e){var t=null;return new _t((function(n,r){-1==(t=Sn((function(){n(void 0)}),e))&&r(Error("Failed to schedule timer."))})).o((function(e){throw l.clearTimeout(t),e}))}function Cn(e){if(e.V&&"function"==typeof e.V)return e.V();if("string"==typeof e)return e.split("");if(f(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}function Mn(e){if(e.X&&"function"==typeof e.X)return e.X();if(!e.V||"function"!=typeof e.V){if(f(e)||"string"==typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}for(var r in t=[],n=0,e)t[n++]=r;return t}}function xn(e,t){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(e)if(e instanceof xn)for(n=e.X(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}function $n(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var r=e.a[t];Ln(e.b,r)&&(e.a[n++]=r),t++}e.a.length=n}if(e.c!=e.a.length){var i={};for(n=t=0;t<e.a.length;)Ln(i,r=e.a[t])||(e.a[n++]=r,i[r]=1),t++;e.a.length=n}}function Ln(e,t){return Object.prototype.hasOwnProperty.call(e,t)}S(_n,Ft),_n.prototype[Qt]=!0,_n.prototype.addEventListener=function(e,t,n,r){ln(this,e,t,n,r)},_n.prototype.removeEventListener=function(e,t,n,r){dn(this,e,t,n,r)},_n.prototype.dispatchEvent=function(e){var t,n=this.eb;if(n)for(t=[];n;n=n.eb)t.push(n);n=this.Yb;var r=e.type||e;if("string"==typeof e)e=new Kt(e,n);else if(e instanceof Kt)e.target=e.target||n;else{var i=e;ve(e=new Kt(r,n),i)}if(i=!0,t)for(var a=t.length-1;0<=a;a--){var o=e.b=t[a];i=En(o,r,!0,e)&&i}if(i=En(o=e.b=n,r,!0,e)&&i,i=En(o,r,!1,e)&&i,t)for(a=0;a<t.length;a++)i=En(o=e.b=t[a],r,!1,e)&&i;return i},_n.prototype.Ba=function(){if(_n.Za.Ba.call(this),this.u){var e,t=this.u;for(e in t.a){for(var n=t.a[e],r=0;r<n.length;r++)tn(n[r]);delete t.a[e],t.b--}}this.eb=null},(t=xn.prototype).V=function(){$n(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},t.X=function(){return $n(this),this.a.concat()},t.clear=function(){this.b={},this.c=this.a.length=0},t.get=function(e,t){return Ln(this.b,e)?this.b[e]:t},t.set=function(e,t){Ln(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},t.forEach=function(e,t){for(var n=this.X(),r=0;r<n.length;r++){var i=n[r],a=this.get(i);e.call(t,a,i,this)}};var Pn=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/\\#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function On(e,t){var n;this.b=this.i=this.f="",this.l=null,this.g=this.c="",this.h=!1,e instanceof On?(this.h=void 0!==t?t:e.h,In(this,e.f),this.i=e.i,this.b=e.b,An(this,e.l),this.c=e.c,Dn(this,er(e.a)),this.g=e.g):e&&(n=String(e).match(Pn))?(this.h=!!t,In(this,n[1]||"",!0),this.i=jn(n[2]||""),this.b=jn(n[3]||"",!0),An(this,n[4]),this.c=jn(n[5]||"",!0),Dn(this,n[6]||"",!0),this.g=jn(n[7]||"")):(this.h=!!t,this.a=new Gn(null,this.h))}function In(e,t,n){e.f=n?jn(t,!0):t,e.f&&(e.f=e.f.replace(/:$/,""))}function An(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.l=t}else e.l=null}function Dn(e,t,n){t instanceof Gn?(e.a=t,function(e,t){t&&!e.f&&(Kn(e),e.c=null,e.a.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(Xn(this,t),Zn(this,n,e))}),e)),e.f=t}(e.a,e.h)):(n||(t=Fn(t,qn)),e.a=new Gn(t,e.h))}function Nn(e,t,n){e.a.set(t,n)}function Rn(e,t){return e.a.get(t)}function Bn(e){return e instanceof On?new On(e):new On(e,void 0)}function Yn(e,t){var n=new On(null,void 0);return In(n,"https"),e&&(n.b=e),t&&(n.c=t),n}function jn(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Fn(e,t,n){return"string"==typeof e?(e=encodeURI(e).replace(t,Hn),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Hn(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}On.prototype.toString=function(){var e=[],t=this.f;t&&e.push(Fn(t,Un,!0),":");var n=this.b;return(n||"file"==t)&&(e.push("//"),(t=this.i)&&e.push(Fn(t,Un,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.l)&&e.push(":",String(n))),(n=this.c)&&(this.b&&"/"!=n.charAt(0)&&e.push("/"),e.push(Fn(n,"/"==n.charAt(0)?Vn:zn,!0))),(n=this.a.toString())&&e.push("?",n),(n=this.g)&&e.push("#",Fn(n,Wn)),e.join("")},On.prototype.resolve=function(e){var t=new On(this),n=!!e.f;n?In(t,e.f):n=!!e.i,n?t.i=e.i:n=!!e.b,n?t.b=e.b:n=null!=e.l;var r=e.c;if(n)An(t,e.l);else if(n=!!e.c){if("/"!=r.charAt(0))if(this.b&&!this.c)r="/"+r;else{var i=t.c.lastIndexOf("/");-1!=i&&(r=t.c.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(se(i,"./")||se(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var a=[],o=0;o<i.length;){var s=i[o++];"."==s?r&&o==i.length&&a.push(""):".."==s?((1<a.length||1==a.length&&""!=a[0])&&a.pop(),r&&o==i.length&&a.push("")):(a.push(s),r=!0)}r=a.join("/")}else r=i}return n?t.c=r:n=""!==e.a.toString(),n?Dn(t,er(e.a)):n=!!e.g,n&&(t.g=e.g),t};var Un=/[#\/\?@]/g,zn=/[#\?:]/g,Vn=/[#\?]/g,qn=/[#\?@]/g,Wn=/#/g;function Gn(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function Kn(e){e.a||(e.a=new xn,e.b=0,e.c&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var a=e[n].substring(0,r);i=e[n].substring(r+1)}else a=e[n];t(a,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.c,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function Jn(e){var t=Mn(e);if(void 0===t)throw Error("Keys are undefined");var n=new Gn(null,void 0);e=Cn(e);for(var r=0;r<t.length;r++){var i=t[r],a=e[r];Array.isArray(a)?Zn(n,i,a):n.add(i,a)}return n}function Xn(e,t){Kn(e),t=tr(e,t),Ln(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,Ln((e=e.a).b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&$n(e)))}function Qn(e,t){return Kn(e),t=tr(e,t),Ln(e.a.b,t)}function Zn(e,t,n){Xn(e,t),0<n.length&&(e.c=null,e.a.set(tr(e,t),X(n)),e.b+=n.length)}function er(e){var t=new Gn;return t.c=e.c,e.a&&(t.a=new xn(e.a),t.b=e.b),t}function tr(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}function nr(e){var t=[];return function e(t,n,r){if(null==n)r.push("null");else{if("object"==typeof n){if(Array.isArray(n)){var i=n;n=i.length,r.push("[");for(var a="",o=0;o<n;o++)r.push(a),e(t,i[o],r),a=",";return void r.push("]")}if(!(n instanceof String||n instanceof Number||n instanceof Boolean)){for(i in r.push("{"),a="",n)Object.prototype.hasOwnProperty.call(n,i)&&("function"!=typeof(o=n[i])&&(r.push(a),or(i,r),r.push(":"),e(t,o,r),a=","));return void r.push("}")}n=n.valueOf()}switch(typeof n){case"string":or(n,r);break;case"number":r.push(isFinite(n)&&!isNaN(n)?String(n):"null");break;case"boolean":r.push(String(n));break;case"function":r.push("null");break;default:throw Error("Unknown type: "+typeof n)}}}(new rr,e,t),t.join("")}function rr(){}(t=Gn.prototype).add=function(e,t){Kn(this),this.c=null,e=tr(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},t.clear=function(){this.a=this.c=null,this.b=0},t.forEach=function(e,t){Kn(this),this.a.forEach((function(n,r){U(n,(function(n){e.call(t,n,r,this)}),this)}),this)},t.X=function(){Kn(this);for(var e=this.a.V(),t=this.a.X(),n=[],r=0;r<t.length;r++)for(var i=e[r],a=0;a<i.length;a++)n.push(t[r]);return n},t.V=function(e){Kn(this);var t=[];if("string"==typeof e)Qn(this,e)&&(t=J(t,this.a.get(tr(this,e))));else{e=this.a.V();for(var n=0;n<e.length;n++)t=J(t,e[n])}return t},t.set=function(e,t){return Kn(this),this.c=null,Qn(this,e=tr(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},t.get=function(e,t){return e&&0<(e=this.V(e)).length?String(e[0]):t},t.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.X(),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r));r=this.V(r);for(var a=0;a<r.length;a++){var o=i;""!==r[a]&&(o+="="+encodeURIComponent(String(r[a]))),e.push(o)}}return this.c=e.join("&")};var ir={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},ar=/\uffff/.test("")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function or(e,t){t.push('"',e.replace(ar,(function(e){var t=ir[e];return t||(t="\\u"+(65536|e.charCodeAt(0)).toString(16).substr(1),ir[e]=t),t})),'"')}function sr(){var e=Cr();return We&&!!nt&&11==nt||/Edge\/\d+/.test(e)}function lr(){return l.window&&l.window.location.href||self&&self.location&&self.location.href||""}function cr(e,t){t=t||l.window;var n="about:blank";e&&(n=Pe(Ie(e))),t.location.href=n}function ur(e){return!!((e=(e||Cr()).toLowerCase()).match(/android/)||e.match(/webos/)||e.match(/iphone|ipad|ipod/)||e.match(/blackberry/)||e.match(/windows phone/)||e.match(/iemobile/))}function dr(e){e=e||l.window;try{e.close()}catch(e){}}function hr(e,t,n){var r=Math.floor(1e9*Math.random()).toString();t=t||500,n=n||600;var i=(window.screen.availHeight-n)/2,a=(window.screen.availWidth-t)/2;for(o in t={width:t,height:n,top:0<i?i:0,left:0<a?a:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=Cr().toLowerCase(),r&&(t.target=r,se(n,"crios/")&&(t.target="_blank")),Er(Cr())==wr&&(e=e||"http://localhost",t.scrollbars=!0),n=e||"",(e=t)||(e={}),r=window,t=n instanceof Le?n:Ie(void 0!==n.href?n.href:String(n)),n=e.target||n.target,i=[],e)switch(o){case"width":case"height":case"top":case"left":i.push(o+"="+e[o]);break;case"target":case"noopener":case"noreferrer":break;default:i.push(o+"="+(e[o]?1:0))}var o=i.join(",");if((de("iPhone")&&!de("iPod")&&!de("iPad")||de("iPad")||de("iPod"))&&r.navigator&&r.navigator.standalone&&n&&"_self"!=n?(ge(o=ht(document,"A"),"HTMLAnchorElement"),t instanceof Le||t instanceof Le||(t="object"==typeof t&&t.ra?t.qa():String(t),Oe.test(t)||(t="about:invalid#zClosurez"),t=new Le(De,t)),o.href=Pe(t),o.setAttribute("target",n),e.noreferrer&&o.setAttribute("rel","noreferrer"),(e=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,r,1),o.dispatchEvent(e),o={}):e.noreferrer?(o=r.open("",n,o),e=Pe(t),o&&(Ke&&se(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),o.opener=null,e=Ye('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+He(e)+'">'),r=o.document)&&(r.write(Re(e)),r.close())):(o=r.open(Pe(t),n,o))&&e.noopener&&(o.opener=null),o)try{o.focus()}catch(e){}return o}var fr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,pr=/^[^@]+@[^@]+$/;function mr(){var e=null;return new _t((function(t){"complete"==l.document.readyState?t():(e=function(){t()},un(window,"load",e))})).o((function(t){throw dn(window,"load",e),t}))}function vr(e){return e=e||Cr(),!("file:"!==Pr()&&"ionic:"!==Pr()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function gr(){var e=l.window;try{return!(!e||e==e.top)}catch(e){return!1}}function yr(){return void 0!==l.WorkerGlobalScope&&"function"==typeof l.importScripts}function br(){return r.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":r.a.INTERNAL.hasOwnProperty("node")?"Node":yr()?"Worker":"Browser"}function _r(){var e=br();return"ReactNative"===e||"Node"===e}var wr="Firefox",kr="Chrome";function Er(e){var t=e.toLowerCase();return se(t,"opera/")||se(t,"opr/")||se(t,"opios/")?"Opera":se(t,"iemobile")?"IEMobile":se(t,"msie")||se(t,"trident/")?"IE":se(t,"edge/")?"Edge":se(t,"firefox/")?wr:se(t,"silk/")?"Silk":se(t,"blackberry")?"Blackberry":se(t,"webos")?"Webos":!se(t,"safari/")||se(t,"chrome/")||se(t,"crios/")||se(t,"android")?!se(t,"chrome/")&&!se(t,"crios/")||se(t,"edge/")?se(t,"android")?"Android":(e=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==e.length?e[1]:"Other":kr:"Safari"}var Sr={jd:"FirebaseCore-web",ld:"FirebaseUI-web"};function Tr(e,t){t=t||[];var n,r=[],i={};for(n in Sr)i[Sr[n]]=!0;for(n=0;n<t.length;n++)void 0!==i[t[n]]&&(delete i[t[n]],r.push(t[n]));return r.sort(),(t=r).length||(t=["FirebaseCore-web"]),"Browser"===(r=br())?r=Er(i=Cr()):"Worker"===r&&(r=Er(i=Cr())+"-"+r),r+"/JsCore/"+e+"/"+t.join(",")}function Cr(){return l.navigator&&l.navigator.userAgent||""}function Mr(e,t){e=e.split("."),t=t||l;for(var n=0;n<e.length&&"object"==typeof t&&null!=t;n++)t=t[e[n]];return n!=e.length&&(t=void 0),t}function xr(){try{var e=l.localStorage,t=Nr();if(e)return e.setItem(t,"1"),e.removeItem(t),!sr()||!!l.indexedDB}catch(e){return yr()&&!!l.indexedDB}return!1}function $r(){return(Lr()||"chrome-extension:"===Pr()||vr())&&!_r()&&xr()&&!yr()}function Lr(){return"http:"===Pr()||"https:"===Pr()}function Pr(){return l.location&&l.location.protocol||null}function Or(e){return!ur(e=e||Cr())&&Er(e)!=wr}function Ir(e){return void 0===e?null:nr(e)}function Ar(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&null!==e[t]&&void 0!==e[t]&&(n[t]=e[t]);return n}function Dr(e){if(null!==e)return JSON.parse(e)}function Nr(e){return e||Math.floor(1e9*Math.random()).toString()}function Rr(e){return"Safari"!=Er(e=e||Cr())&&!e.toLowerCase().match(/iphone|ipad|ipod/)}function Br(){var e=l.___jsl;if(e&&e.H)for(var t in e.H)if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=e.H[t].L.concat(),e.CP)for(var n=0;n<e.CP.length;n++)e.CP[n]=null}function Yr(e,t){if(e>t)throw Error("Short delay should be less than long delay!");this.a=e,this.c=t,e=Cr(),t=br(),this.b=ur(e)||"ReactNative"===t}function jr(){var e=l.document;return!e||void 0===e.visibilityState||"visible"==e.visibilityState}function Fr(e){try{var t=new Date(parseInt(e,10));if(!isNaN(t.getTime())&&!/[^0-9]/.test(e))return t.toUTCString()}catch(e){}return null}function Hr(){return!(!Mr("fireauth.oauthhelper",l)&&!Mr("fireauth.iframe",l))}Yr.prototype.get=function(){var e=l.navigator;return!e||"boolean"!=typeof e.onLine||!Lr()&&"chrome-extension:"!==Pr()&&void 0===e.connection||e.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Ur,zr={};function Vr(e){zr[e]||(zr[e]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e))}try{var qr={};Object.defineProperty(qr,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(qr,"abcd",{configurable:!0,enumerable:!0,value:2}),Ur=2==qr.abcd}catch(Ve){Ur=!1}function Wr(e,t,n){Ur?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}):e[t]=n}function Gr(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&Wr(e,n,t[n])}function Kr(e){var t={};return Gr(t,e),t}function Jr(e){var t=e;if("object"==typeof e&&null!=e)for(var n in t="length"in e?[]:{},e)Wr(t,n,Jr(e[n]));return t}function Xr(e){var t=e&&(e[ni]?"phone":null);if(!(t&&e&&e[ti]))throw new T("internal-error","Internal assert: invalid MultiFactorInfo object");Wr(this,"uid",e[ti]),Wr(this,"displayName",e[Zr]||null);var n=null;e[ei]&&(n=new Date(e[ei]).toUTCString()),Wr(this,"enrollmentTime",n),Wr(this,"factorId",t)}function Qr(e){try{var t=new ri(e)}catch(e){t=null}return t}Xr.prototype.v=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var Zr="displayName",ei="enrolledAt",ti="mfaEnrollmentId",ni="phoneInfo";function ri(e){Xr.call(this,e),Wr(this,"phoneNumber",e[ni])}function ii(e){var t={},n=e[li],r=e[ui],i=e[di];if(e=Qr(e[ci]),!i||i!=oi&&i!=si&&!n||i==si&&!r||i==ai&&!e)throw Error("Invalid checkActionCode response!");i==si?(t[fi]=n||null,t[mi]=n||null,t[hi]=r):(t[fi]=r||null,t[mi]=r||null,t[hi]=n||null),t[pi]=e||null,Wr(this,gi,i),Wr(this,vi,Jr(t))}S(ri,Xr),ri.prototype.v=function(){var e=ri.Za.v.call(this);return e.phoneNumber=this.phoneNumber,e};var ai="REVERT_SECOND_FACTOR_ADDITION",oi="EMAIL_SIGNIN",si="VERIFY_AND_CHANGE_EMAIL",li="email",ci="mfaInfo",ui="newEmail",di="requestType",hi="email",fi="fromEmail",pi="multiFactorInfo",mi="previousEmail",vi="data",gi="operation";function yi(e){var t=Rn(e=Bn(e),bi)||null,n=Rn(e,_i)||null,r=Rn(e,Ei)||null;if(r=r&&Ti[r]||null,!t||!n||!r)throw new T("argument-error",bi+", "+_i+"and "+Ei+" are required in a valid action code URL.");Gr(this,{apiKey:t,operation:r,code:n,continueUrl:Rn(e,wi)||null,languageCode:Rn(e,ki)||null,tenantId:Rn(e,Si)||null})}var bi="apiKey",_i="oobCode",wi="continueUrl",ki="languageCode",Ei="mode",Si="tenantId",Ti={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:ai,signIn:oi,verifyAndChangeEmail:si,verifyEmail:"VERIFY_EMAIL"};function Ci(e){try{return new yi(e)}catch(e){return null}}function Mi(e){var t=e[Oi];if(void 0===t)throw new T("missing-continue-uri");if("string"!=typeof t||"string"==typeof t&&!t.length)throw new T("invalid-continue-uri");this.h=t,this.b=this.a=null,this.g=!1;var n=e[xi];if(n&&"object"==typeof n){t=n[Di];var r=n[Ii];if(n=n[Ai],"string"==typeof t&&t.length){if(this.a=t,void 0!==r&&"boolean"!=typeof r)throw new T("argument-error",Ii+" property must be a boolean when specified.");if(this.g=!!r,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new T("argument-error",Ai+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==t)throw new T("argument-error",Di+" property must be a non empty string when specified.");if(void 0!==r||void 0!==n)throw new T("missing-android-pkg-name")}}else if(void 0!==n)throw new T("argument-error",xi+" property must be a non null object when specified.");if(this.f=null,(t=e[Pi])&&"object"==typeof t){if("string"==typeof(t=t[Ni])&&t.length)this.f=t;else if(void 0!==t)throw new T("argument-error",Ni+" property must be a non empty string when specified.")}else if(void 0!==t)throw new T("argument-error",Pi+" property must be a non null object when specified.");if(void 0!==(t=e[Li])&&"boolean"!=typeof t)throw new T("argument-error",Li+" property must be a boolean when specified.");if(this.c=!!t,void 0!==(e=e[$i])&&("string"!=typeof e||"string"==typeof e&&!e.length))throw new T("argument-error",$i+" property must be a non empty string when specified.");this.i=e||null}var xi="android",$i="dynamicLinkDomain",Li="handleCodeInApp",Pi="iOS",Oi="url",Ii="installApp",Ai="minimumVersion",Di="packageName",Ni="bundleId";function Ri(e){var t={};for(var n in t.continueUrl=e.h,t.canHandleCodeInApp=e.c,(t.androidPackageName=e.a)&&(t.androidMinimumVersion=e.b,t.androidInstallApp=e.g),t.iOSBundleId=e.f,t.dynamicLinkDomain=e.i,t)null===t[n]&&delete t[n];return t}var Bi=null;function Yi(e){var t="";return function(e,t){function n(t){for(;r<e.length;){var n=e.charAt(r++),i=Bi[n];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return t}!function(){if(!Bi){Bi={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++)for(var r=e.concat(t[n].split("")),i=0;i<r.length;i++){var a=r[i];void 0===Bi[a]&&(Bi[a]=i)}}}();for(var r=0;;){var i=n(-1),a=n(0),o=n(64),s=n(64);if(64===s&&-1===i)break;t(i<<2|a>>4),64!=o&&(t(a<<4&240|o>>2),64!=s&&t(o<<6&192|s))}}(e,(function(e){t+=String.fromCharCode(e)})),t}function ji(e){var t=Hi(e);if(!(t&&t.sub&&t.iss&&t.aud&&t.exp))throw Error("Invalid JWT");this.g=e,this.c=t.exp,this.h=t.sub,E(),this.a=t.provider_id||t.firebase&&t.firebase.sign_in_provider||null,this.f=t.firebase&&t.firebase.tenant||null,this.b=!!t.is_anonymous||"anonymous"==this.a}function Fi(e){try{return new ji(e)}catch(e){return null}}function Hi(e){if(!e)return null;if(3!=(e=e.split(".")).length)return null;for(var t=(4-(e=e[1]).length%4)%4,n=0;n<t;n++)e+=".";try{return JSON.parse(Yi(e))}catch(e){}return null}ji.prototype.S=function(){return this.f},ji.prototype.i=function(){return this.b},ji.prototype.toString=function(){return this.g};var Ui="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),zi=["client_id","response_type","scope","redirect_uri","state"],Vi={kd:{Ha:"locale",ta:700,sa:600,ea:"facebook.com",Va:zi},md:{Ha:null,ta:500,sa:750,ea:"github.com",Va:zi},nd:{Ha:"hl",ta:515,sa:680,ea:"google.com",Va:zi},td:{Ha:"lang",ta:485,sa:705,ea:"twitter.com",Va:Ui},gd:{Ha:"locale",ta:600,sa:600,ea:"apple.com",Va:[]}};function qi(e){for(var t in Vi)if(Vi[t].ea==e)return Vi[t];return null}function Wi(e){var t={};t["facebook.com"]=Qi,t["google.com"]=ea,t["github.com"]=Zi,t["twitter.com"]=ta;var n=e&&e[Ki];try{if(n)return t[n]?new t[n](e):new Xi(e);if(void 0!==e[Gi])return new Ji(e)}catch(e){}return null}var Gi="idToken",Ki="providerId";function Ji(e){var t=e[Ki];if(!t&&e[Gi]){var n=Fi(e[Gi]);n&&n.a&&(t=n.a)}if(!t)throw Error("Invalid additional user info!");"anonymous"!=t&&"custom"!=t||(t=null),n=!1,void 0!==e.isNewUser?n=!!e.isNewUser:"identitytoolkit#SignupNewUserResponse"===e.kind&&(n=!0),Wr(this,"providerId",t),Wr(this,"isNewUser",n)}function Xi(e){Ji.call(this,e),Wr(this,"profile",Jr((e=Dr(e.rawUserInfo||"{}"))||{}))}function Qi(e){if(Xi.call(this,e),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function Zi(e){if(Xi.call(this,e),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Wr(this,"username",this.profile&&this.profile.login||null)}function ea(e){if(Xi.call(this,e),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function ta(e){if(Xi.call(this,e),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Wr(this,"username",e.screenName||null)}function na(e){var t=Bn(e),n=Rn(t,"link"),r=Rn(Bn(n),"link");return t=Rn(t,"deep_link_id"),Rn(Bn(t),"link")||t||r||n||e}function ra(e,t){if(!e&&!t)throw new T("internal-error","Internal assert: no raw session string available");if(e&&t)throw new T("internal-error","Internal assert: unable to determine the session type");this.a=e||null,this.b=t||null,this.type=this.a?ia:aa}S(Xi,Ji),S(Qi,Xi),S(Zi,Xi),S(ea,Xi),S(ta,Xi);var ia="enroll",aa="signin";function oa(){}function sa(e,t){return e.then((function(e){if(e[Ko]){var n=Fi(e[Ko]);if(!n||t!=n.h)throw new T("user-mismatch");return e}throw new T("user-mismatch")})).o((function(e){throw e&&e.code&&e.code==x+"user-not-found"?new T("user-mismatch"):e}))}function la(e,t){if(!t)throw new T("internal-error","failed to construct a credential");this.a=t,Wr(this,"providerId",e),Wr(this,"signInMethod",e)}function ca(e){return{pendingToken:e.a,requestUri:"http://localhost"}}function ua(e){if(e&&e.providerId&&e.signInMethod&&0==e.providerId.indexOf("saml.")&&e.pendingToken)try{return new la(e.providerId,e.pendingToken)}catch(e){}return null}function da(e,t,n){if(this.a=null,t.idToken||t.accessToken)t.idToken&&Wr(this,"idToken",t.idToken),t.accessToken&&Wr(this,"accessToken",t.accessToken),t.nonce&&!t.pendingToken&&Wr(this,"nonce",t.nonce),t.pendingToken&&(this.a=t.pendingToken);else{if(!t.oauthToken||!t.oauthTokenSecret)throw new T("internal-error","failed to construct a credential");Wr(this,"accessToken",t.oauthToken),Wr(this,"secret",t.oauthTokenSecret)}Wr(this,"providerId",e),Wr(this,"signInMethod",n)}function ha(e){var t={};return e.idToken&&(t.id_token=e.idToken),e.accessToken&&(t.access_token=e.accessToken),e.secret&&(t.oauth_token_secret=e.secret),t.providerId=e.providerId,e.nonce&&!e.a&&(t.nonce=e.nonce),t={postBody:Jn(t).toString(),requestUri:"http://localhost"},e.a&&(delete t.postBody,t.pendingToken=e.a),t}function fa(e){if(e&&e.providerId&&e.signInMethod){var t={idToken:e.oauthIdToken,accessToken:e.oauthTokenSecret?null:e.oauthAccessToken,oauthTokenSecret:e.oauthTokenSecret,oauthToken:e.oauthTokenSecret&&e.oauthAccessToken,nonce:e.nonce,pendingToken:e.pendingToken};try{return new da(e.providerId,t,e.signInMethod)}catch(e){}}return null}function pa(e,t){this.Oc=t||[],Gr(this,{providerId:e,isOAuthProvider:!0}),this.Fb={},this.lb=(qi(e)||{}).Ha||null,this.kb=null}function ma(e){if("string"!=typeof e||0!=e.indexOf("saml."))throw new T("argument-error",'SAML provider IDs must be prefixed with "saml."');pa.call(this,e,[])}function va(e){pa.call(this,e,zi),this.a=[]}function ga(){va.call(this,"facebook.com")}function ya(e){if(!e)throw new T("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return m(e)&&(t=e.accessToken),(new ga).credential({accessToken:t})}function ba(){va.call(this,"github.com")}function _a(e){if(!e)throw new T("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return m(e)&&(t=e.accessToken),(new ba).credential({accessToken:t})}function wa(){va.call(this,"google.com"),this.Aa("profile")}function ka(e,t){var n=e;return m(e)&&(n=e.idToken,t=e.accessToken),(new wa).credential({idToken:n,accessToken:t})}function Ea(){pa.call(this,"twitter.com",Ui)}function Sa(e,t){var n=e;if(m(n)||(n={oauthToken:e,oauthTokenSecret:t}),!n.oauthToken||!n.oauthTokenSecret)throw new T("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new da("twitter.com",n,"twitter.com")}function Ta(e,t,n){this.a=e,this.f=t,Wr(this,"providerId","password"),Wr(this,"signInMethod",n===Ma.EMAIL_LINK_SIGN_IN_METHOD?Ma.EMAIL_LINK_SIGN_IN_METHOD:Ma.EMAIL_PASSWORD_SIGN_IN_METHOD)}function Ca(e){return e&&e.email&&e.password?new Ta(e.email,e.password,e.signInMethod):null}function Ma(){Gr(this,{providerId:"password",isOAuthProvider:!1})}function xa(e,t){if(!(t=$a(t)))throw new T("argument-error","Invalid email link!");return new Ta(e,t.code,Ma.EMAIL_LINK_SIGN_IN_METHOD)}function $a(e){return(e=Ci(e=na(e)))&&e.operation===oi?e:null}function La(e){if(!(e.bb&&e.ab||e.Ja&&e.da))throw new T("internal-error");this.a=e,Wr(this,"providerId","phone"),this.ea="phone",Wr(this,"signInMethod","phone")}function Pa(e){if(e&&"phone"===e.providerId&&(e.verificationId&&e.verificationCode||e.temporaryProof&&e.phoneNumber)){var t={};return U(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(n){e[n]&&(t[n]=e[n])})),new La(t)}return null}function Oa(e){return e.a.Ja&&e.a.da?{temporaryProof:e.a.Ja,phoneNumber:e.a.da}:{sessionInfo:e.a.bb,code:e.a.ab}}function Ia(e){try{this.a=e||r.a.auth()}catch(e){throw new T("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}Gr(this,{providerId:"phone",isOAuthProvider:!1})}function Aa(e,t){if(!e)throw new T("missing-verification-id");if(!t)throw new T("missing-verification-code");return new La({bb:e,ab:t})}function Da(e){if(e.temporaryProof&&e.phoneNumber)return new La({Ja:e.temporaryProof,da:e.phoneNumber});var t=e&&e.providerId;if(!t||"password"===t)return null;var n=e&&e.oauthAccessToken,r=e&&e.oauthTokenSecret,i=e&&e.nonce,a=e&&e.oauthIdToken,o=e&&e.pendingToken;try{switch(t){case"google.com":return ka(a,n);case"facebook.com":return ya(n);case"github.com":return _a(n);case"twitter.com":return Sa(n,r);default:return n||r||a||o?o?0==t.indexOf("saml.")?new la(t,o):new da(t,{pendingToken:o,idToken:e.oauthIdToken,accessToken:e.oauthAccessToken},t):new va(t).credential({idToken:a,accessToken:n,rawNonce:i}):null}}catch(e){return null}}function Na(e){if(!e.isOAuthProvider)throw new T("invalid-oauth-provider")}function Ra(e,t,n,r,i,a,o){if(this.c=e,this.b=t||null,this.g=n||null,this.f=r||null,this.i=a||null,this.h=o||null,this.a=i||null,!this.g&&!this.a)throw new T("invalid-auth-event");if(this.g&&this.a)throw new T("invalid-auth-event");if(this.g&&!this.f)throw new T("invalid-auth-event")}function Ba(e){return(e=e||{}).type?new Ra(e.type,e.eventId,e.urlResponse,e.sessionId,e.error&&C(e.error),e.postBody,e.tenantId):null}function Ya(){this.b=null,this.a=[]}ra.prototype.Fa=function(){return this.a?Mt(this.a):Mt(this.b)},ra.prototype.v=function(){return this.type==ia?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},oa.prototype.ia=function(){},oa.prototype.b=function(){},oa.prototype.c=function(){},oa.prototype.v=function(){},la.prototype.ia=function(e){return ms(e,ca(this))},la.prototype.b=function(e,t){var n=ca(this);return n.idToken=t,vs(e,n)},la.prototype.c=function(e,t){return sa(gs(e,ca(this)),t)},la.prototype.v=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},da.prototype.ia=function(e){return ms(e,ha(this))},da.prototype.b=function(e,t){var n=ha(this);return n.idToken=t,vs(e,n)},da.prototype.c=function(e,t){return sa(gs(e,ha(this)),t)},da.prototype.v=function(){var e={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(e.oauthIdToken=this.idToken),this.accessToken&&(e.oauthAccessToken=this.accessToken),this.secret&&(e.oauthTokenSecret=this.secret),this.nonce&&(e.nonce=this.nonce),this.a&&(e.pendingToken=this.a),e},pa.prototype.Ia=function(e){return this.Fb=pe(e),this},S(ma,pa),S(va,pa),va.prototype.Aa=function(e){return W(this.a,e)||this.a.push(e),this},va.prototype.Nb=function(){return X(this.a)},va.prototype.credential=function(e,t){var n;if(!(n=m(e)?{idToken:e.idToken||null,accessToken:e.accessToken||null,nonce:e.rawNonce||null}:{idToken:e||null,accessToken:t||null}).idToken&&!n.accessToken)throw new T("argument-error","credential failed: must provide the ID token and/or the access token.");return new da(this.providerId,n,this.providerId)},S(ga,va),Wr(ga,"PROVIDER_ID","facebook.com"),Wr(ga,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),S(ba,va),Wr(ba,"PROVIDER_ID","github.com"),Wr(ba,"GITHUB_SIGN_IN_METHOD","github.com"),S(wa,va),Wr(wa,"PROVIDER_ID","google.com"),Wr(wa,"GOOGLE_SIGN_IN_METHOD","google.com"),S(Ea,pa),Wr(Ea,"PROVIDER_ID","twitter.com"),Wr(Ea,"TWITTER_SIGN_IN_METHOD","twitter.com"),Ta.prototype.ia=function(e){return this.signInMethod==Ma.EMAIL_LINK_SIGN_IN_METHOD?Qs(e,Ts,{email:this.a,oobCode:this.f}):Qs(e,Ws,{email:this.a,password:this.f})},Ta.prototype.b=function(e,t){return this.signInMethod==Ma.EMAIL_LINK_SIGN_IN_METHOD?Qs(e,Cs,{idToken:t,email:this.a,oobCode:this.f}):Qs(e,Ys,{idToken:t,email:this.a,password:this.f})},Ta.prototype.c=function(e,t){return sa(this.ia(e),t)},Ta.prototype.v=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Gr(Ma,{PROVIDER_ID:"password"}),Gr(Ma,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Gr(Ma,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),La.prototype.ia=function(e){return e.cb(Oa(this))},La.prototype.b=function(e,t){var n=Oa(this);return n.idToken=t,Qs(e,Ks,n)},La.prototype.c=function(e,t){var n=Oa(this);return n.operation="REAUTH",sa(e=Qs(e,Js,n),t)},La.prototype.v=function(){var e={providerId:"phone"};return this.a.bb&&(e.verificationId=this.a.bb),this.a.ab&&(e.verificationCode=this.a.ab),this.a.Ja&&(e.temporaryProof=this.a.Ja),this.a.da&&(e.phoneNumber=this.a.da),e},Ia.prototype.cb=function(e,t){var n=this.a.b;return Mt(t.verify()).then((function(r){if("string"!=typeof r)throw new T("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(t.type){case"recaptcha":var i=m(e)?e.session:null,a=m(e)?e.phoneNumber:e;return(i&&i.type==ia?i.Fa().then((function(e){return function(e,t){return Qs(e,Fs,t).then((function(e){return e.phoneSessionInfo.sessionInfo}))}(n,{idToken:e,phoneEnrollmentInfo:{phoneNumber:a,recaptchaToken:r}})})):i&&i.type==aa?i.Fa().then((function(t){return function(e,t){return Qs(e,Hs,t).then((function(e){return e.phoneResponseInfo.sessionInfo}))}(n,{mfaPendingCredential:t,mfaEnrollmentId:e.multiFactorHint&&e.multiFactorHint.uid||e.multiFactorUid,phoneSignInInfo:{recaptchaToken:r}})})):function(e,t){return Qs(e,Rs,t)}(n,{phoneNumber:a,recaptchaToken:r})).then((function(e){return"function"==typeof t.reset&&t.reset(),e}),(function(e){throw"function"==typeof t.reset&&t.reset(),e}));default:throw new T("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}}))},Gr(Ia,{PROVIDER_ID:"phone"}),Gr(Ia,{PHONE_SIGN_IN_METHOD:"phone"}),Ra.prototype.getUid=function(){var e=[];return e.push(this.c),this.b&&e.push(this.b),this.f&&e.push(this.f),this.h&&e.push(this.h),e.join("-")},Ra.prototype.S=function(){return this.h},Ra.prototype.v=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.v()}};var ja,Fa=null;function Ha(e){var t="unauthorized-domain",n=void 0,r=Bn(e);e=r.b,"chrome-extension"==(r=r.f)?n=Fe("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):"http"==r||"https"==r?n=Fe("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):t="operation-not-supported-in-this-environment",T.call(this,t,n)}function Ua(e,t,n){T.call(this,e,n),(e=t||{}).Gb&&Wr(this,"email",e.Gb),e.da&&Wr(this,"phoneNumber",e.da),e.credential&&Wr(this,"credential",e.credential),e.Wb&&Wr(this,"tenantId",e.Wb)}function za(e){if(e.code){var t=e.code||"";0==t.indexOf(x)&&(t=t.substring(x.length));var n={credential:Da(e),Wb:e.tenantId};if(e.email)n.Gb=e.email;else if(e.phoneNumber)n.da=e.phoneNumber;else if(!n.credential)return new T(t,e.message||void 0);return new Ua(t,n,e.message)}return null}function Va(){}function qa(e){return e.c||(e.c=e.b())}function Wa(){}function Ga(e){if(!e.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<t.length;n++){var r=t[n];try{return new ActiveXObject(r),e.f=r}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.f}function Ka(){}function Ja(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=w(this.oc,this),this.a.onerror=w(this.Pb,this),this.a.onprogress=w(this.pc,this),this.a.ontimeout=w(this.tc,this)}function Xa(e,t){e.readyState=t,e.onreadystatechange&&e.onreadystatechange()}function Qa(e,t,n){this.reset(e,t,n,void 0,void 0)}S(Ha,T),S(Ua,T),Ua.prototype.v=function(){var e={code:this.code,message:this.message};this.email&&(e.email=this.email),this.phoneNumber&&(e.phoneNumber=this.phoneNumber),this.tenantId&&(e.tenantId=this.tenantId);var t=this.credential&&this.credential.v();return t&&ve(e,t),e},Ua.prototype.toJSON=function(){return this.v()},Va.prototype.c=null,S(Wa,Va),Wa.prototype.a=function(){var e=Ga(this);return e?new ActiveXObject(e):new XMLHttpRequest},Wa.prototype.b=function(){var e={};return Ga(this)&&(e[0]=!0,e[1]=!0),e},ja=new Wa,S(Ka,Va),Ka.prototype.a=function(){var e=new XMLHttpRequest;if("withCredentials"in e)return e;if("undefined"!=typeof XDomainRequest)return new Ja;throw Error("Unsupported browser")},Ka.prototype.b=function(){return{}},(t=Ja.prototype).open=function(e,t,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(e,t)},t.send=function(e){if(e){if("string"!=typeof e)throw Error("Only string data is supported");this.a.send(e)}else this.a.send()},t.abort=function(){this.a.abort()},t.setRequestHeader=function(){},t.getResponseHeader=function(e){return"content-type"==e.toLowerCase()?this.a.contentType:""},t.oc=function(){this.status=200,this.response=this.responseText=this.a.responseText,Xa(this,4)},t.Pb=function(){this.status=500,this.response=this.responseText="",Xa(this,4)},t.tc=function(){this.Pb()},t.pc=function(){this.status=200,Xa(this,1)},t.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Qa.prototype.a=null;function Za(e){this.f=e,this.b=this.c=this.a=null}function eo(e,t){this.name=e,this.value=t}Qa.prototype.reset=function(e,t,n,r,i){"number"==typeof i||0,r||E(),delete this.a},eo.prototype.toString=function(){return this.name};var to=new eo("SEVERE",1e3),no=new eo("WARNING",900),ro=new eo("CONFIG",700),io=new eo("FINE",500);Za.prototype.log=function(e,t,n){if(e.value>=function e(t){return t.c?t.c:t.a?e(t.a):(D("Root logger has no level set."),null)}(this).value)for(p(t)&&(t=t()),e=new Qa(e,String(t),this.f),n&&(e.a=n),n=this;n;)n=n.a};var ao={},oo=null;function so(e){var t;if(oo||(oo=new Za(""),ao[""]=oo,oo.c=ro),!(t=ao[e])){t=new Za(e);var n=e.lastIndexOf("."),r=e.substr(n+1);(n=so(e.substr(0,n))).b||(n.b={}),n.b[r]=t,t.a=n,ao[e]=t}return t}function lo(e,t){e&&e.log(io,t,void 0)}function co(e){this.f=e}function uo(e){_n.call(this),this.s=e,this.readyState=ho,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=so("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}S(co,Va),co.prototype.a=function(){return new uo(this.f)},co.prototype.b=function(e){return function(){return e}}({}),S(uo,_n);var ho=0;function fo(e){e.c.read().then(e.nc.bind(e)).catch(e.Sa.bind(e))}function po(e,t){t&&e.f&&(e.status=e.f.status,e.statusText=e.f.statusText),e.readyState=4,e.f=null,e.c=null,e.l=null,mo(e)}function mo(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function vo(e){_n.call(this),this.headers=new xn,this.D=e||null,this.c=!1,this.B=this.a=null,this.h=this.P=this.l="",this.f=this.O=this.i=this.N=!1,this.g=0,this.s=null,this.m=go,this.w=this.R=!1}(t=uo.prototype).open=function(e,t){if(this.readyState!=ho)throw this.abort(),Error("Error reopening a connection");this.m=e,this.g=t,this.readyState=1,mo(this)},t.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var t={headers:this.i,method:this.m,credentials:void 0,cache:void 0};e&&(t.body=e),this.s.fetch(new Request(this.g,t)).then(this.sc.bind(this),this.Sa.bind(this))},t.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,po(this,!1)),this.readyState=ho},t.sc=function(e){this.a&&(this.f=e,this.b||(this.b=e.headers,this.readyState=2,mo(this)),this.a&&(this.readyState=3,mo(this),this.a&&("arraybuffer"===this.responseType?e.arrayBuffer().then(this.qc.bind(this),this.Sa.bind(this)):void 0!==l.ReadableStream&&"body"in e?(this.response=this.responseText="",this.c=e.body.getReader(),this.l=new TextDecoder,fo(this)):e.text().then(this.rc.bind(this),this.Sa.bind(this)))))},t.nc=function(e){if(this.a){var t=this.l.decode(e.value?e.value:new Uint8Array(0),{stream:!e.done});t&&(this.response=this.responseText+=t),e.done?po(this,!0):mo(this),3==this.readyState&&fo(this)}},t.rc=function(e){this.a&&(this.response=this.responseText=e,po(this,!0))},t.qc=function(e){this.a&&(this.response=e,po(this,!0))},t.Sa=function(e){var t=this.h;t&&t.log(no,"Failed to fetch url "+this.g,e instanceof Error?e:Error(e)),this.a&&po(this,!0)},t.setRequestHeader=function(e,t){this.i.append(e,t)},t.getResponseHeader=function(e){return this.b?this.b.get(e.toLowerCase())||"":((e=this.h)&&e.log(no,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},t.getAllResponseHeaders=function(){if(!this.b){var e=this.h;return e&&e.log(no,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}e=[];for(var t=this.b.entries(),n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},S(vo,_n);var go="";vo.prototype.b=so("goog.net.XhrIo");var yo=/^https?$/i,bo=["POST","PUT"];function _o(e,t,n,r,i){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.l+"; newUri="+t);n=n?n.toUpperCase():"GET",e.l=t,e.h="",e.P=n,e.N=!1,e.c=!0,e.a=e.D?e.D.a():ja.a(),e.B=e.D?qa(e.D):qa(ja),e.a.onreadystatechange=w(e.Sb,e);try{lo(e.b,$o(e,"Opening Xhr")),e.O=!0,e.a.open(n,String(t),!0),e.O=!1}catch(t){return lo(e.b,$o(e,"Error opening Xhr: "+t.message)),void ko(e,t)}t=r||"";var a=new xn(e.headers);i&&function(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(f(e)||"string"==typeof e)U(e,t,void 0);else for(var n=Mn(e),r=Cn(e),i=r.length,a=0;a<i;a++)t.call(void 0,r[a],n&&n[a],e)}(i,(function(e,t){a.set(t,e)})),i=function(e){e:{for(var t=wo,n=e.length,r="string"==typeof e?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e)){t=i;break e}t=-1}return 0>t?null:"string"==typeof e?e.charAt(t):e[t]}(a.X()),r=l.FormData&&t instanceof l.FormData,!W(bo,n)||i||r||a.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),a.forEach((function(e,t){this.a.setRequestHeader(t,e)}),e),e.m&&(e.a.responseType=e.m),"withCredentials"in e.a&&e.a.withCredentials!==e.R&&(e.a.withCredentials=e.R);try{Co(e),0<e.g&&(e.w=function(e){return We&&it(9)&&"number"==typeof e.timeout&&void 0!==e.ontimeout}(e.a),lo(e.b,$o(e,"Will abort after "+e.g+"ms if incomplete, xhr2 "+e.w)),e.w?(e.a.timeout=e.g,e.a.ontimeout=w(e.Ka,e)):e.s=Sn(e.Ka,e.g,e)),lo(e.b,$o(e,"Sending request")),e.i=!0,e.a.send(t),e.i=!1}catch(t){lo(e.b,$o(e,"Send error: "+t.message)),ko(e,t)}}function wo(e){return"content-type"==e.toLowerCase()}function ko(e,t){e.c=!1,e.a&&(e.f=!0,e.a.abort(),e.f=!1),e.h=t,Eo(e),To(e)}function Eo(e){e.N||(e.N=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function So(e){if(e.c&&void 0!==s)if(e.B[1]&&4==Mo(e)&&2==xo(e))lo(e.b,$o(e,"Local request error detected and ignored"));else if(e.i&&4==Mo(e))Sn(e.Sb,0,e);else if(e.dispatchEvent("readystatechange"),4==Mo(e)){lo(e.b,$o(e,"Request complete")),e.c=!1;try{var t,n=xo(e);e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break e;default:r=!1}if(!(t=r)){var i;if(i=0===n){var a=String(e.l).match(Pn)[1]||null;if(!a&&l.self&&l.self.location){var o=l.self.location.protocol;a=o.substr(0,o.length-1)}i=!yo.test(a?a.toLowerCase():"")}t=i}if(t)e.dispatchEvent("complete"),e.dispatchEvent("success");else{try{var c=2<Mo(e)?e.a.statusText:""}catch(t){lo(e.b,"Can not get status: "+t.message),c=""}e.h=c+" ["+xo(e)+"]",Eo(e)}}finally{To(e)}}}function To(e,t){if(e.a){Co(e);var n=e.a,r=e.B[0]?d:null;e.a=null,e.B=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=r}catch(t){(e=e.b)&&e.log(to,"Problem encountered resetting onreadystatechange: "+t.message,void 0)}}}function Co(e){e.a&&e.w&&(e.a.ontimeout=null),e.s&&(l.clearTimeout(e.s),e.s=null)}function Mo(e){return e.a?e.a.readyState:0}function xo(e){try{return 2<Mo(e)?e.a.status:-1}catch(e){return-1}}function $o(e,t){return t+" ["+e.P+" "+e.l+" "+xo(e)+"]"}function Lo(e){var t=Fo;this.g=[],this.w=t,this.s=e||null,this.f=this.a=!1,this.c=void 0,this.u=this.B=this.i=!1,this.h=0,this.b=null,this.l=0}function Po(e,t,n){e.a=!0,e.c=n,e.f=!t,Do(e)}function Oo(e){if(e.a){if(!e.u)throw new No(e);e.u=!1}}function Io(e,t,n,r){e.g.push([t,n,r]),e.a&&Do(e)}function Ao(e){return q(e.g,(function(e){return p(e[1])}))}function Do(e){if(e.h&&e.a&&Ao(e)){var t=e.h,n=Yo[t];n&&(l.clearTimeout(n.a),delete Yo[t]),e.h=0}e.b&&(e.b.l--,delete e.b),t=e.c;for(var r=n=!1;e.g.length&&!e.i;){var i=e.g.shift(),a=i[0],o=i[1];if(i=i[2],a=e.f?o:a)try{var s=a.call(i||e.s,t);void 0!==s&&(e.f=e.f&&(s==t||s instanceof Error),e.c=t=s),(O(t)||"function"==typeof l.Promise&&t instanceof l.Promise)&&(r=!0,e.i=!0)}catch(r){t=r,e.f=!0,Ao(e)||(n=!0)}}e.c=t,r&&(s=w(e.m,e,!0),r=w(e.m,e,!1),t instanceof Lo?(Io(t,s,r),t.B=!0):t.then(s,r)),n&&(t=new Bo(t),Yo[t.a]=t,e.h=t.a)}function No(){I.call(this)}function Ro(){I.call(this)}function Bo(e){this.a=l.setTimeout(w(this.c,this),0),this.b=e}(t=vo.prototype).Ka=function(){void 0!==s&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",lo(this.b,$o(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},t.abort=function(){this.a&&this.c&&(lo(this.b,$o(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),To(this))},t.Ba=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),To(this,!0)),vo.Za.Ba.call(this)},t.Sb=function(){this.wa||(this.O||this.i||this.f?So(this):this.Hc())},t.Hc=function(){So(this)},t.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case go:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var e=this.b;return e&&e.log(to,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(e){return lo(this.b,"Can not get response: "+e.message),null}},Lo.prototype.cancel=function(e){if(this.a)this.c instanceof Lo&&this.c.cancel();else{if(this.b){var t=this.b;delete this.b,e?t.cancel(e):(t.l--,0>=t.l&&t.cancel())}this.w?this.w.call(this.s,this):this.u=!0,this.a||(e=new Ro(this),Oo(this),Po(this,!1,e))}},Lo.prototype.m=function(e,t){this.i=!1,Po(this,e,t)},Lo.prototype.then=function(e,t,n){var r,i,a=new _t((function(e,t){r=e,i=t}));return Io(this,r,(function(e){e instanceof Ro?a.cancel():i(e)})),a.then(e,t,n)},Lo.prototype.$goog_Thenable=!0,S(No,I),No.prototype.message="Deferred has already fired",No.prototype.name="AlreadyCalledError",S(Ro,I),Ro.prototype.message="Deferred was canceled",Ro.prototype.name="CanceledError",Bo.prototype.c=function(){throw delete Yo[this.a],this.b};var Yo={};function jo(e){var t={},n=t.document||document,r=Se(e).toString(),i=ht(document,"SCRIPT"),a={Tb:i,Ka:void 0},o=new Lo(a),s=null,d=null!=t.timeout?t.timeout:5e3;return 0<d&&(s=window.setTimeout((function(){Ho(i,!0);var e=new Vo(zo,"Timeout reached for loading script "+r);Oo(o),Po(o,!1,e)}),d),a.Ka=s),i.onload=i.onreadystatechange=function(){i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(Ho(i,t.ud||!1,s),Oo(o),Po(o,!0,null))},i.onerror=function(){Ho(i,!0,s);var e=new Vo(Uo,"Error while loading script "+r);Oo(o),Po(o,!1,e)},ve(a=t.attributes||{},{type:"text/javascript",charset:"UTF-8"}),st(i,a),function(e,t){ge(e,"HTMLScriptElement"),e.src=Se(t),null===u&&(u=(t=(t=l.document).querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&c.test(t)?t:""),(t=u)&&e.setAttribute("nonce",t)}(i,e),function(e){var t;return(t=(e||document).getElementsByTagName("HEAD"))&&0!=t.length?t[0]:e.documentElement}(n).appendChild(i),o}function Fo(){if(this&&this.Tb){var e=this.Tb;e&&"SCRIPT"==e.tagName&&Ho(e,!0,this.Ka)}}function Ho(e,t,n){null!=n&&l.clearTimeout(n),e.onload=d,e.onerror=d,e.onreadystatechange=d,t&&window.setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),0)}var Uo=0,zo=1;function Vo(e,t){var n="Jsloader error (code #"+e+")";t&&(n+=": "+t),I.call(this,n),this.code=e}function qo(e){this.f=e}function Wo(e,t,n){if(this.c=e,e=t||{},this.u=e.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=e.secureTokenTimeout||Jo,this.g=pe(e.secureTokenHeaders||Xo),this.h=e.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.l=e.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.i=e.firebaseTimeout||Qo,this.a=pe(e.firebaseHeaders||Zo),n&&(this.a["X-Client-Version"]=n,this.g["X-Client-Version"]=n),n="Node"==br(),!(n=l.XMLHttpRequest||n&&r.a.INTERNAL.node&&r.a.INTERNAL.node.XMLHttpRequest)&&!yr())throw new T("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,yr()?this.f=new co(self):_r()?this.f=new qo(n):this.f=new Ka,this.b=null}S(Vo,I),S(qo,Va),qo.prototype.a=function(){return new this.f},qo.prototype.b=function(){return{}};var Go,Ko="idToken",Jo=new Yr(3e4,6e4),Xo={"Content-Type":"application/x-www-form-urlencoded"},Qo=new Yr(3e4,6e4),Zo={"Content-Type":"application/json"};function es(e,t){t?e.a["X-Firebase-Locale"]=t:delete e.a["X-Firebase-Locale"]}function ts(e,t){t?(e.a["X-Client-Version"]=t,e.g["X-Client-Version"]=t):(delete e.a["X-Client-Version"],delete e.g["X-Client-Version"])}function ns(e,t,n,r,i,a,o){(function(){var e=Cr();return!((e=Er(e)!=kr?null:(e=e.match(/\sChrome\/(\d+)/i))&&2==e.length?parseInt(e[1],10):null)&&30>e)&&(!We||!nt||9<nt)})()||yr()?e=w(e.w,e):(Go||(Go=new _t((function(e,t){!function(e,t){if(((window.gapi||{}).client||{}).request)e();else{l[is]=function(){((window.gapi||{}).client||{}).request?e():t(Error("CORS_UNSUPPORTED"))},function(e,t){Io(e,null,t,void 0)}(jo(Te(rs,{onload:is})),(function(){t(Error("CORS_UNSUPPORTED"))}))}}(e,t)}))),e=w(e.s,e)),e(t,n,r,i,a,o)}Wo.prototype.S=function(){return this.b},Wo.prototype.w=function(e,t,n,r,i,a){if(yr()&&(void 0===l.fetch||void 0===l.Headers||void 0===l.Request))throw new T("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var o=new vo(this.f);if(a){o.g=Math.max(0,a);var s=setTimeout((function(){o.dispatchEvent("timeout")}),a)}wn(o,"complete",(function(){s&&clearTimeout(s);var e=null;try{e=JSON.parse(function(e){try{return e.a?e.a.responseText:""}catch(t){return lo(e.b,"Can not get responseText: "+t.message),""}}(this))||null}catch(t){e=null}t&&t(e)})),kn(o,"ready",(function(){s&&clearTimeout(s),zt(this)})),kn(o,"timeout",(function(){s&&clearTimeout(s),zt(this),t&&t(null)})),_o(o,e,n,r,i)};var rs=new ye(we,"https://apis.google.com/js/client.js?onload=%{onload}"),is="__fcb"+Math.floor(1e6*Math.random()).toString();function as(e,t,n,r,i,a,o){var s=Bn(t+n);Nn(s,"key",e.c),o&&Nn(s,"cb",E().toString());var l="GET"==r;if(l)for(var c in i)i.hasOwnProperty(c)&&Nn(s,c,i[c]);return new _t((function(t,n){ns(e,s.toString(),(function(e){e?e.error?n(el(e,a||{})):t(e):n(new T("network-request-failed"))}),r,l?void 0:nr(Ar(i)),e.a,e.i.get())}))}function os(e){if("string"!=typeof(e=e.email)||!pr.test(e))throw new T("invalid-email")}function ss(e){"email"in e&&os(e)}function ls(e){if(!e[Ko]){if(e.mfaPendingCredential)throw new T("multi-factor-auth-required",null,pe(e));throw new T("internal-error")}}function cs(e){if(e.phoneNumber||e.temporaryProof){if(!e.phoneNumber||!e.temporaryProof)throw new T("internal-error")}else{if(!e.sessionInfo)throw new T("missing-verification-id");if(!e.code)throw new T("missing-verification-code")}}Wo.prototype.s=function(e,t,n,r,i){var a=this;Go.then((function(){window.gapi.client.setApiKey(a.c);var o=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:e,method:n,body:r,headers:i,authType:"none",callback:function(e){window.gapi.auth.setToken(o),t&&t(e)}})})).o((function(e){t&&t({error:{message:e&&e.message||"CORS_UNSUPPORTED"}})}))},Wo.prototype.vb=function(){return Qs(this,js,{})},Wo.prototype.xb=function(e,t){return Qs(this,Bs,{idToken:e,email:t})},Wo.prototype.yb=function(e,t){return Qs(this,Ys,{idToken:e,password:t})};var us={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function ds(e){if(!e.phoneVerificationInfo)throw new T("internal-error");if(!e.phoneVerificationInfo.sessionInfo)throw new T("missing-verification-id");if(!e.phoneVerificationInfo.code)throw new T("missing-verification-code")}function hs(e){if(!e.requestUri||!e.sessionId&&!e.postBody&&!e.pendingToken)throw new T("internal-error")}function fs(e,t){return t.oauthIdToken&&t.providerId&&0==t.providerId.indexOf("oidc.")&&!t.pendingToken&&(e.sessionId?t.nonce=e.sessionId:e.postBody&&(Qn(e=new Gn(e.postBody),"nonce")&&(t.nonce=e.get("nonce")))),t}function ps(e){var t=null;if(e.needConfirmation?(e.code="account-exists-with-different-credential",t=za(e)):"FEDERATED_USER_ID_ALREADY_LINKED"==e.errorMessage?(e.code="credential-already-in-use",t=za(e)):"EMAIL_EXISTS"==e.errorMessage?(e.code="email-already-in-use",t=za(e)):e.errorMessage&&(t=Zs(e.errorMessage)),t)throw t;ls(e)}function ms(e,t){return t.returnIdpCredential=!0,Qs(e,Us,t)}function vs(e,t){return t.returnIdpCredential=!0,Qs(e,Vs,t)}function gs(e,t){return t.returnIdpCredential=!0,t.autoCreate=!1,Qs(e,zs,t)}function ys(e){if(!e.oobCode)throw new T("invalid-action-code")}(t=Wo.prototype).zb=function(e,t){var n={idToken:e},r=[];return he(us,(function(e,i){var a=t[i];null===a?r.push(e):i in t&&(n[i]=a)})),r.length&&(n.deleteAttribute=r),Qs(this,Bs,n)},t.rb=function(e,t){return ve(e={requestType:"PASSWORD_RESET",email:e},t),Qs(this,Is,e)},t.sb=function(e,t){return ve(e={requestType:"EMAIL_SIGNIN",email:e},t),Qs(this,Ls,e)},t.qb=function(e,t){return ve(e={requestType:"VERIFY_EMAIL",idToken:e},t),Qs(this,Ps,e)},t.Ab=function(e,t,n){return ve(e={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:e,newEmail:t},n),Qs(this,Os,e)},t.cb=function(e){return Qs(this,Gs,e)},t.jb=function(e,t){return Qs(this,Ns,{oobCode:e,newPassword:t})},t.Pa=function(e){return Qs(this,_s,{oobCode:e})},t.fb=function(e){return Qs(this,bs,{oobCode:e})};var bs={endpoint:"setAccountInfo",A:ys,Y:"email",C:!0},_s={endpoint:"resetPassword",A:ys,G:function(e){var t=e.requestType;if(!t||!e.email&&"EMAIL_SIGNIN"!=t&&"VERIFY_AND_CHANGE_EMAIL"!=t)throw new T("internal-error")},C:!0},ws={endpoint:"signupNewUser",A:function(e){if(os(e),!e.password)throw new T("weak-password")},G:ls,U:!0,C:!0},ks={endpoint:"createAuthUri",C:!0},Es={endpoint:"deleteAccount",M:["idToken"]},Ss={endpoint:"setAccountInfo",M:["idToken","deleteProvider"],A:function(e){if("array"!=h(e.deleteProvider))throw new T("internal-error")}},Ts={endpoint:"emailLinkSignin",M:["email","oobCode"],A:os,G:ls,U:!0,C:!0},Cs={endpoint:"emailLinkSignin",M:["idToken","email","oobCode"],A:os,G:ls,U:!0},Ms={endpoint:"accounts/mfaEnrollment:finalize",M:["idToken","phoneVerificationInfo"],A:ds,G:ls,C:!0,La:!0},xs={endpoint:"accounts/mfaSignIn:finalize",M:["mfaPendingCredential","phoneVerificationInfo"],A:ds,G:ls,C:!0,La:!0},$s={endpoint:"getAccountInfo"},Ls={endpoint:"getOobConfirmationCode",M:["requestType"],A:function(e){if("EMAIL_SIGNIN"!=e.requestType)throw new T("internal-error");os(e)},Y:"email",C:!0},Ps={endpoint:"getOobConfirmationCode",M:["idToken","requestType"],A:function(e){if("VERIFY_EMAIL"!=e.requestType)throw new T("internal-error")},Y:"email",C:!0},Os={endpoint:"getOobConfirmationCode",M:["idToken","newEmail","requestType"],A:function(e){if("VERIFY_AND_CHANGE_EMAIL"!=e.requestType)throw new T("internal-error")},Y:"email",C:!0},Is={endpoint:"getOobConfirmationCode",M:["requestType"],A:function(e){if("PASSWORD_RESET"!=e.requestType)throw new T("internal-error");os(e)},Y:"email",C:!0},As={hb:!0,endpoint:"getProjectConfig",Rb:"GET"},Ds={hb:!0,endpoint:"getRecaptchaParam",Rb:"GET",G:function(e){if(!e.recaptchaSiteKey)throw new T("internal-error")}},Ns={endpoint:"resetPassword",A:ys,Y:"email",C:!0},Rs={endpoint:"sendVerificationCode",M:["phoneNumber","recaptchaToken"],Y:"sessionInfo",C:!0},Bs={endpoint:"setAccountInfo",M:["idToken"],A:ss,U:!0},Ys={endpoint:"setAccountInfo",M:["idToken"],A:function(e){if(ss(e),!e.password)throw new T("weak-password")},G:ls,U:!0},js={endpoint:"signupNewUser",G:ls,U:!0,C:!0},Fs={endpoint:"accounts/mfaEnrollment:start",M:["idToken","phoneEnrollmentInfo"],A:function(e){if(!e.phoneEnrollmentInfo)throw new T("internal-error");if(!e.phoneEnrollmentInfo.phoneNumber)throw new T("missing-phone-number");if(!e.phoneEnrollmentInfo.recaptchaToken)throw new T("missing-app-credential")},G:function(e){if(!e.phoneSessionInfo||!e.phoneSessionInfo.sessionInfo)throw new T("internal-error")},C:!0,La:!0},Hs={endpoint:"accounts/mfaSignIn:start",M:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],A:function(e){if(!e.phoneSignInInfo||!e.phoneSignInInfo.recaptchaToken)throw new T("missing-app-credential")},G:function(e){if(!e.phoneResponseInfo||!e.phoneResponseInfo.sessionInfo)throw new T("internal-error")},C:!0,La:!0},Us={endpoint:"verifyAssertion",A:hs,Wa:fs,G:ps,U:!0,C:!0},zs={endpoint:"verifyAssertion",A:hs,Wa:fs,G:function(e){if(e.errorMessage&&"USER_NOT_FOUND"==e.errorMessage)throw new T("user-not-found");if(e.errorMessage)throw Zs(e.errorMessage);ls(e)},U:!0,C:!0},Vs={endpoint:"verifyAssertion",A:function(e){if(hs(e),!e.idToken)throw new T("internal-error")},Wa:fs,G:ps,U:!0},qs={endpoint:"verifyCustomToken",A:function(e){if(!e.token)throw new T("invalid-custom-token")},G:ls,U:!0,C:!0},Ws={endpoint:"verifyPassword",A:function(e){if(os(e),!e.password)throw new T("wrong-password")},G:ls,U:!0,C:!0},Gs={endpoint:"verifyPhoneNumber",A:cs,G:ls,C:!0},Ks={endpoint:"verifyPhoneNumber",A:function(e){if(!e.idToken)throw new T("internal-error");cs(e)},G:function(e){if(e.temporaryProof)throw e.code="credential-already-in-use",za(e);ls(e)}},Js={Eb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:cs,G:ls,C:!0},Xs={endpoint:"accounts/mfaEnrollment:withdraw",M:["idToken","mfaEnrollmentId"],G:function(e){if(!!e[Ko]^!!e.refreshToken)throw new T("internal-error")},C:!0,La:!0};function Qs(e,t,n){if(!function(e,t){if(!t||!t.length)return!0;if(!e)return!1;for(var n=0;n<t.length;n++){var r=e[t[n]];if(null==r||""===r)return!1}return!0}(n,t.M))return xt(new T("internal-error"));var r,i=!!t.La,a=t.Rb||"POST";return Mt(n).then(t.A).then((function(){return t.U&&(n.returnSecureToken=!0),t.C&&e.b&&void 0===n.tenantId&&(n.tenantId=e.b),as(e,i?e.l:e.h,t.endpoint,a,n,t.Eb,t.hb||!1)})).then((function(e){return r=e,t.Wa?t.Wa(n,r):r})).then(t.G).then((function(){if(!t.Y)return r;if(!(t.Y in r))throw new T("internal-error");return r[t.Y]}))}function Zs(e){return el({error:{errors:[{message:e}],code:400,message:e}})}function el(e,t){var n=(e.error&&e.error.errors&&e.error.errors[0]||{}).reason||"",r={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=r[n]?new T(r[n]):null)return n;for(var i in n=e.error&&e.error.message||"",ve(r={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},t||{}),t=(t=n.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<t.length?t[1]:void 0,r)if(0===n.indexOf(i))return new T(r[i],t);return!t&&e&&(t=Ir(e)),new T("internal-error",t)}function tl(e){this.b=e,this.a=null,this.nb=function(e){return(al||(al=new _t((function(e,t){function n(){Br(),Mr("gapi.load")("gapi.iframes",{callback:e,ontimeout:function(){Br(),t(Error("Network Error"))},timeout:rl.get()})}if(Mr("gapi.iframes.Iframe"))e();else if(Mr("gapi.load"))n();else{var r="__iframefcb"+Math.floor(1e6*Math.random()).toString();l[r]=function(){Mr("gapi.load")?n():t(Error("Network Error"))},Mt(jo(r=Te(nl,{onload:r}))).o((function(){t(Error("Network Error"))}))}})).o((function(e){throw al=null,e})))).then((function(){return new _t((function(t,n){Mr("gapi.iframes.getContext")().open({where:document.body,url:e.b,messageHandlersFilter:Mr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},(function(r){function i(){clearTimeout(a),t()}e.a=r,e.a.restyle({setHideOnLeave:!1});var a=setTimeout((function(){n(Error("Network Error"))}),il.get());r.ping(i).then(i,(function(){n(Error("Network Error"))}))}))}))}))}(this)}var nl=new ye(we,"https://apis.google.com/js/api.js?onload=%{onload}"),rl=new Yr(3e4,6e4),il=new Yr(5e3,15e3),al=null;function ol(e,t,n){this.i=e,this.g=t,this.h=n,this.f=null,this.a=Yn(this.i,"/__/auth/iframe"),Nn(this.a,"apiKey",this.g),Nn(this.a,"appName",this.h),this.b=null,this.c=[]}function sl(e,t,n,r,i){this.s=e,this.m=t,this.c=n,this.u=r,this.i=this.g=this.l=null,this.a=i,this.h=this.f=null}function ll(e){try{return r.a.app(e).auth().Ea()}catch(e){return[]}}function cl(e,t,n,r,i){this.u=e,this.f=t,this.b=n,this.c=r||null,this.h=i||null,this.m=this.s=this.w=null,this.g=[],this.l=this.a=null}function ul(e){var t=lr();return function(e){return Qs(e,As,{}).then((function(e){return e.authorizedDomains||[]}))}(e).then((function(e){e:{var n=Bn(t),r=n.f;n=n.b;for(var i=0;i<e.length;i++){var a=e[i],o=n,s=r;if(0==a.indexOf("chrome-extension://")?o=Bn(a).b==o&&"chrome-extension"==s:"http"!=s&&"https"!=s?o=!1:fr.test(a)?o=o==a:(a=a.split(".").join("\\."),o=new RegExp("^(.+\\."+a+"|"+a+")$","i").test(o)),o){e=!0;break e}}e=!1}if(!e)throw new Ha(lr())}))}function dl(e){return e.l||(e.l=mr().then((function(){if(!e.s){var t=e.c,n=e.h,r=ll(e.b),i=new ol(e.u,e.f,e.b);i.f=t,i.b=n,i.c=X(r||[]),e.s=i.toString()}e.i=new tl(e.s),function(e){if(!e.i)throw Error("IfcHandler must be initialized!");!function(e,t){e.nb.then((function(){e.a.register("authEvent",t,Mr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}(e.i,(function(t){var n={};if(t&&t.authEvent){var r=!1;for(t=Ba(t.authEvent),n=0;n<e.g.length;n++)r=e.g[n](t)||r;return(n={}).status=r?"ACK":"ERROR",Mt(n)}return n.status="ERROR",Mt(n)}))}(e)}))),e.l}function hl(e){return e.m||(e.w=e.c?Tr(e.c,ll(e.b)):null,e.m=new Wo(e.f,P(e.h),e.w)),e.m}function fl(e,t,n,r,i,a,o,s,l,c,u){return(e=new sl(e,t,n,r,i)).l=a,e.g=o,e.i=s,e.b=pe(l||null),e.f=c,e.ub(u).toString()}function pl(e){if(this.a=e||r.a.INTERNAL.reactNative&&r.a.INTERNAL.reactNative.AsyncStorage,!this.a)throw new T("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function ml(e){this.b=e,this.a={},this.f=w(this.c,this)}ol.prototype.toString=function(){return this.f?Nn(this.a,"v",this.f):Xn(this.a.a,"v"),this.b?Nn(this.a,"eid",this.b):Xn(this.a.a,"eid"),this.c.length?Nn(this.a,"fw",this.c.join(",")):Xn(this.a.a,"fw"),this.a.toString()},sl.prototype.ub=function(e){return this.h=e,this},sl.prototype.toString=function(){var e=Yn(this.s,"/__/auth/handler");if(Nn(e,"apiKey",this.m),Nn(e,"appName",this.c),Nn(e,"authType",this.u),this.a.isOAuthProvider){var t=this.a;try{var n=r.a.app(this.c).auth().ja()}catch(e){n=null}for(var i in t.kb=n,Nn(e,"providerId",this.a.providerId),n=Ar((t=this.a).Fb))n[i]=n[i].toString();i=t.Oc,n=pe(n);for(var a=0;a<i.length;a++){var o=i[a];o in n&&delete n[o]}t.lb&&t.kb&&!n[t.lb]&&(n[t.lb]=t.kb),fe(n)||Nn(e,"customParameters",Ir(n))}if("function"==typeof this.a.Nb&&((t=this.a.Nb()).length&&Nn(e,"scopes",t.join(","))),this.l?Nn(e,"redirectUrl",this.l):Xn(e.a,"redirectUrl"),this.g?Nn(e,"eventId",this.g):Xn(e.a,"eventId"),this.i?Nn(e,"v",this.i):Xn(e.a,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Rn(e,s)&&Nn(e,s,this.b[s]);return this.h?Nn(e,"tid",this.h):Xn(e.a,"tid"),this.f?Nn(e,"eid",this.f):Xn(e.a,"eid"),(s=ll(this.c)).length&&Nn(e,"fw",s.join(",")),e.toString()},(t=cl.prototype).Lb=function(e,t,n){var r=new T("popup-closed-by-user"),i=new T("web-storage-unsupported"),a=this,o=!1;return this.ka().then((function(){(function(e){var t={type:"webStorageSupport"};return dl(e).then((function(){return function(e,t){return e.nb.then((function(){return new _t((function(n){e.a.send(t.type,t,n,Mr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}))}(e.i,t)})).then((function(e){if(e&&e.length&&void 0!==e[0].webStorageSupport)return e[0].webStorageSupport;throw Error()}))})(a).then((function(n){n||(e&&dr(e),t(i),o=!0)}))})).o((function(){})).then((function(){if(!o)return function(e){return new _t((function(t){return function n(){Tn(2e3).then((function(){if(e&&!e.closed)return n();t()}))}()}))}(e)})).then((function(){if(!o)return Tn(n).then((function(){t(r)}))}))},t.Ub=function(){var e=Cr();return!Or(e)&&!Rr(e)},t.Qb=function(){return!1},t.Jb=function(e,t,n,r,i,a,o,s){if(!e)return xt(new T("popup-blocked"));if(o&&!Or())return this.ka().o((function(t){dr(e),i(t)})),r(),Mt();this.a||(this.a=ul(hl(this)));var l=this;return this.a.then((function(){var t=l.ka().o((function(t){throw dr(e),i(t),t}));return r(),t})).then((function(){(Na(n),o)||cr(fl(l.u,l.f,l.b,t,n,null,a,l.c,void 0,l.h,s),e)})).o((function(e){throw"auth/network-request-failed"==e.code&&(l.a=null),e}))},t.Kb=function(e,t,n,r){this.a||(this.a=ul(hl(this)));var i=this;return this.a.then((function(){Na(t),cr(fl(i.u,i.f,i.b,e,t,lr(),n,i.c,void 0,i.h,r))})).o((function(e){throw"auth/network-request-failed"==e.code&&(i.a=null),e}))},t.ka=function(){var e=this;return dl(this).then((function(){return e.i.nb})).o((function(){throw e.a=null,new T("network-request-failed")}))},t.Xb=function(){return!0},t.Ca=function(e){this.g.push(e)},t.Qa=function(e){K(this.g,(function(t){return t==e}))},(t=pl.prototype).get=function(e){return Mt(this.a.getItem(e)).then((function(e){return e&&Dr(e)}))},t.set=function(e,t){return Mt(this.a.setItem(e,Ir(t)))},t.T=function(e){return Mt(this.a.removeItem(e))},t.ba=function(){},t.ha=function(){};var vl,gl=[];function yl(e,t,n){fe(e.a)&&e.b.addEventListener("message",e.f),void 0===e.a[t]&&(e.a[t]=[]),e.a[t].push(n)}function bl(e){this.a=e}function _l(e){this.c=e,this.b=!1,this.a=[]}function wl(e,t,n,r){var i,a,o,s,l=n||{},c=null;if(e.b)return xt(Error("connection_unavailable"));var u=r?800:50,d="undefined"!=typeof MessageChannel?new MessageChannel:null;return new _t((function(n,r){d?(i=Math.floor(Math.random()*Math.pow(10,20)).toString(),d.port1.start(),o=setTimeout((function(){r(Error("unsupported_event"))}),u),c={messageChannel:d,onMessage:a=function(e){e.data.eventId===i&&("ack"===e.data.status?(clearTimeout(o),s=setTimeout((function(){r(Error("timeout"))}),3e3)):"done"===e.data.status?(clearTimeout(s),void 0!==e.data.response?n(e.data.response):r(Error("unknown_error"))):(clearTimeout(o),clearTimeout(s),r(Error("invalid_response"))))}},e.a.push(c),d.port1.addEventListener("message",a),e.c.postMessage({eventType:t,eventId:i,data:l},[d.port2])):r(Error("connection_unavailable"))})).then((function(t){return kl(e,c),t})).o((function(t){throw kl(e,c),t}))}function kl(e,t){if(t){var n=t.messageChannel,r=t.onMessage;n&&(n.port1.removeEventListener("message",r),n.port1.close()),K(e.a,(function(e){return e==t}))}}function El(){if(!Cl())throw new T("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.u=l.indexedDB,this.type="indexedDB",this.g=this.l=this.f=this.i=null,this.s=!1,this.h=null;var e=this;yr()&&self?(this.l=function(){var e=yr()?self:null;if(U(gl,(function(n){n.b==e&&(t=n)})),!t){var t=new ml(e);gl.push(t)}return t}(),yl(this.l,"keyChanged",(function(t,n){return Pl(e).then((function(t){return 0<t.length&&U(e.a,(function(e){e(t)})),{keyProcessed:W(t,n.key)}}))})),yl(this.l,"ping",(function(){return Mt(["keyChanged"])}))):function(){var e=l.navigator;return e&&e.serviceWorker?Mt().then((function(){return e.serviceWorker.ready})).then((function(e){return e.active||null})).o((function(){return null})):Mt(null)}().then((function(t){(e.h=t)&&(e.g=new _l(new bl(t)),wl(e.g,"ping",null,!0).then((function(t){t[0].fulfilled&&W(t[0].value,"keyChanged")&&(e.s=!0)})).o((function(){})))}))}function Sl(e){return new _t((function(t,n){var r=e.u.open("firebaseLocalStorageDb",1);r.onerror=function(e){try{e.preventDefault()}catch(e){}n(Error(e.target.error))},r.onupgradeneeded=function(e){e=e.target.result;try{e.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(e){n(e)}},r.onsuccess=function(r){(r=r.target.result).objectStoreNames.contains("firebaseLocalStorage")?t(r):function(e){return new _t((function(t,n){var r=e.u.deleteDatabase("firebaseLocalStorageDb");r.onsuccess=function(){t()},r.onerror=function(e){n(Error(e.target.error))}}))}(e).then((function(){return Sl(e)})).then((function(e){t(e)})).o((function(e){n(e)}))}}))}function Tl(e){return e.m||(e.m=Sl(e)),e.m}function Cl(){try{return!!l.indexedDB}catch(e){return!1}}function Ml(e){return e.objectStore("firebaseLocalStorage")}function xl(e,t){return e.transaction(["firebaseLocalStorage"],t?"readwrite":"readonly")}function $l(e){return new _t((function(t,n){e.onsuccess=function(e){e&&e.target?t(e.target.result):t()},e.onerror=function(e){n(e.target.error)}}))}function Ll(e,t){return e.g&&e.h&&function(){var e=l.navigator;return e&&e.serviceWorker&&e.serviceWorker.controller||null}()===e.h?wl(e.g,"keyChanged",{key:t},e.s).then((function(){})).o((function(){})):Mt()}function Pl(e){return Tl(e).then((function(e){var t=Ml(xl(e,!1));return t.getAll?$l(t.getAll()):new _t((function(e,n){var r=[],i=t.openCursor();i.onsuccess=function(t){(t=t.target.result)?(r.push(t.value),t.continue()):e(r)},i.onerror=function(e){n(e.target.error)}}))})).then((function(t){var n={},r=[];if(0==e.b){for(r=0;r<t.length;r++)n[t[r].fbase_key]=t[r].value;r=function e(t,n){var r,i=[];for(r in t)r in n?typeof t[r]!=typeof n[r]?i.push(r):"object"==typeof t[r]&&null!=t[r]&&null!=n[r]?0<e(t[r],n[r]).length&&i.push(r):t[r]!==n[r]&&i.push(r):i.push(r);for(r in n)r in t||i.push(r);return i}(e.c,n),e.c=n}return r}))}function Ol(e){e.i&&e.i.cancel("STOP_EVENT"),e.f&&(clearTimeout(e.f),e.f=null)}function Il(e){var t=this,n=null;this.a=[],this.type="indexedDB",this.c=e,this.b=Mt().then((function(){if(Cl()){var e=Nr(),r="__sak"+e;return vl||(vl=new El),(n=vl).set(r,e).then((function(){return n.get(r)})).then((function(t){if(t!==e)throw Error("indexedDB not supported!");return n.T(r)})).then((function(){return n})).o((function(){return t.c}))}return t.c})).then((function(e){return t.type=e.type,e.ba((function(e){U(t.a,(function(t){t(e)}))})),e}))}function Al(){this.a={},this.type="inMemory"}function Dl(){if(!function(){var e="Node"==br();if(!(e=Nl()||e&&r.a.INTERNAL.node&&r.a.INTERNAL.node.localStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==br())throw new T("internal-error","The LocalStorage compatibility library was not found.");throw new T("web-storage-unsupported")}this.a=Nl()||r.a.INTERNAL.node.localStorage,this.type="localStorage"}function Nl(){try{var e=l.localStorage,t=Nr();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(e){return null}}function Rl(){this.type="nullStorage"}function Bl(){if(!function(){var e="Node"==br();if(!(e=Yl()||e&&r.a.INTERNAL.node&&r.a.INTERNAL.node.sessionStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==br())throw new T("internal-error","The SessionStorage compatibility library was not found.");throw new T("web-storage-unsupported")}this.a=Yl()||r.a.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Yl(){try{var e=l.sessionStorage,t=Nr();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(e){return null}}function jl(){var e={};e.Browser=Ul,e.Node=zl,e.ReactNative=Vl,e.Worker=ql,this.a=e[br()]}ml.prototype.c=function(e){var t=e.data.eventType,n=e.data.eventId,r=this.a[t];if(r&&0<r.length){e.ports[0].postMessage({status:"ack",eventId:n,eventType:t,response:null});var i=[];U(r,(function(t){i.push(Mt().then((function(){return t(e.origin,e.data.data)})))})),Lt(i).then((function(r){var i=[];U(r,(function(e){i.push({fulfilled:e.Mb,value:e.value,reason:e.reason?e.reason.message:void 0})})),U(i,(function(e){for(var t in e)void 0===e[t]&&delete e[t]})),e.ports[0].postMessage({status:"done",eventId:n,eventType:t,response:i})}))}},bl.prototype.postMessage=function(e,t){this.a.postMessage(e,t)},_l.prototype.close=function(){for(;0<this.a.length;)kl(this,this.a[0]);this.b=!0},(t=El.prototype).set=function(e,t){var n,r=!1,i=this;return Tl(this).then((function(t){return $l((t=Ml(xl(n=t,!0))).get(e))})).then((function(a){var o=Ml(xl(n,!0));return a?(a.value=t,$l(o.put(a))):(i.b++,r=!0,(a={}).fbase_key=e,a.value=t,$l(o.add(a)))})).then((function(){return i.c[e]=t,Ll(i,e)})).ma((function(){r&&i.b--}))},t.get=function(e){return Tl(this).then((function(t){return $l(Ml(xl(t,!1)).get(e))})).then((function(e){return e&&e.value}))},t.T=function(e){var t=!1,n=this;return Tl(this).then((function(r){return t=!0,n.b++,$l(Ml(xl(r,!0)).delete(e))})).then((function(){return delete n.c[e],Ll(n,e)})).ma((function(){t&&n.b--}))},t.ba=function(e){0==this.a.length&&function(e){Ol(e),function t(){e.f=setTimeout((function(){e.i=Pl(e).then((function(t){0<t.length&&U(e.a,(function(e){e(t)}))})).then((function(){t()})).o((function(e){"STOP_EVENT"!=e.message&&t()}))}),800)}()}(this),this.a.push(e)},t.ha=function(e){K(this.a,(function(t){return t==e})),0==this.a.length&&Ol(this)},(t=Il.prototype).get=function(e){return this.b.then((function(t){return t.get(e)}))},t.set=function(e,t){return this.b.then((function(n){return n.set(e,t)}))},t.T=function(e){return this.b.then((function(t){return t.T(e)}))},t.ba=function(e){this.a.push(e)},t.ha=function(e){K(this.a,(function(t){return t==e}))},(t=Al.prototype).get=function(e){return Mt(this.a[e])},t.set=function(e,t){return this.a[e]=t,Mt()},t.T=function(e){return delete this.a[e],Mt()},t.ba=function(){},t.ha=function(){},(t=Dl.prototype).get=function(e){var t=this;return Mt().then((function(){return Dr(t.a.getItem(e))}))},t.set=function(e,t){var n=this;return Mt().then((function(){var r=Ir(t);null===r?n.T(e):n.a.setItem(e,r)}))},t.T=function(e){var t=this;return Mt().then((function(){t.a.removeItem(e)}))},t.ba=function(e){l.window&&ln(l.window,"storage",e)},t.ha=function(e){l.window&&dn(l.window,"storage",e)},(t=Rl.prototype).get=function(){return Mt(null)},t.set=function(){return Mt()},t.T=function(){return Mt()},t.ba=function(){},t.ha=function(){},(t=Bl.prototype).get=function(e){var t=this;return Mt().then((function(){return Dr(t.a.getItem(e))}))},t.set=function(e,t){var n=this;return Mt().then((function(){var r=Ir(t);null===r?n.T(e):n.a.setItem(e,r)}))},t.T=function(e){var t=this;return Mt().then((function(){t.a.removeItem(e)}))},t.ba=function(){},t.ha=function(){};var Fl,Hl,Ul={F:Dl,$a:Bl},zl={F:Dl,$a:Bl},Vl={F:pl,$a:Rl},ql={F:Dl,$a:Rl},Wl={od:"local",NONE:"none",qd:"session"};function Gl(){var e=!(Rr(Cr())||!gr()),t=Or(),n=xr();this.m=e,this.h=t,this.l=n,this.a={},Fl||(Fl=new jl),e=Fl;try{this.g=!sr()&&Hr()||!l.indexedDB?new e.a.F:new Il(yr()?new Al:new e.a.F)}catch(e){this.g=new Al,this.h=!0}try{this.i=new e.a.$a}catch(e){this.i=new Al}this.u=new Al,this.f=w(this.Vb,this),this.b={}}function Kl(){return Hl||(Hl=new Gl),Hl}function Jl(e,t){switch(t){case"session":return e.i;case"none":return e.u;default:return e.g}}function Xl(e,t){return"firebase:"+e.name+(t?":"+t:"")}function Ql(e,t,n){return n=Xl(t,n),"local"==t.F&&(e.b[n]=null),Jl(e,t.F).T(n)}function Zl(e){e.c&&(clearInterval(e.c),e.c=null)}function ec(e){this.a=e,this.b=Kl()}(t=Gl.prototype).get=function(e,t){return Jl(this,e.F).get(Xl(e,t))},t.set=function(e,t,n){var r=Xl(e,n),i=this,a=Jl(this,e.F);return a.set(r,t).then((function(){return a.get(r)})).then((function(t){"local"==e.F&&(i.b[r]=t)}))},t.addListener=function(e,t,n){e=Xl(e,t),this.l&&(this.b[e]=l.localStorage.getItem(e)),fe(this.a)&&(Jl(this,"local").ba(this.f),this.h||(sr()||!Hr())&&l.indexedDB||!this.l||function(e){Zl(e),e.c=setInterval((function(){for(var t in e.a){var n=l.localStorage.getItem(t),r=e.b[t];n!=r&&(e.b[t]=n,n=new Jt({type:"storage",key:t,target:window,oldValue:r,newValue:n,a:!0}),e.Vb(n))}}),1e3)}(this)),this.a[e]||(this.a[e]=[]),this.a[e].push(n)},t.removeListener=function(e,t,n){e=Xl(e,t),this.a[e]&&(K(this.a[e],(function(e){return e==n})),0==this.a[e].length&&delete this.a[e]),fe(this.a)&&(Jl(this,"local").ha(this.f),Zl(this))},t.Vb=function(e){if(e&&e.f){var t=e.a.key;if(null==t)for(var n in this.a){var r=this.b[n];void 0===r&&(r=null);var i=l.localStorage.getItem(n);i!==r&&(this.b[n]=i,this.ib(n))}else if(0==t.indexOf("firebase:")&&this.a[t]){if(void 0!==e.a.a?Jl(this,"local").ha(this.f):Zl(this),this.m)if(n=l.localStorage.getItem(t),(r=e.a.newValue)!==n)null!==r?l.localStorage.setItem(t,r):l.localStorage.removeItem(t);else if(this.b[t]===r&&void 0===e.a.a)return;var a=this;n=function(){void 0===e.a.a&&a.b[t]===l.localStorage.getItem(t)||(a.b[t]=l.localStorage.getItem(t),a.ib(t))},We&&nt&&10==nt&&l.localStorage.getItem(t)!==e.a.newValue&&e.a.newValue!==e.a.oldValue?setTimeout(n,10):n()}}else U(e,w(this.ib,this))},t.ib=function(e){this.a[e]&&U(this.a[e],(function(e){e()}))};var tc,nc={name:"authEvent",F:"local"};function rc(){this.a=Kl()}function ic(e,t){this.b=ac,this.f=l.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=e,this.h=t,this.l=l.Int32Array?new Int32Array(64):Array(64),void 0===tc&&(tc=l.Int32Array?new Int32Array(hc):hc),this.reset()}S(ic,(function(){this.b=-1}));for(var ac=64,oc=ac-1,sc=[],lc=0;lc<oc;lc++)sc[lc]=0;var cc=J(128,sc);function uc(e){for(var t=e.f,n=e.l,r=0,i=0;i<t.length;)n[r++]=t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3],i=4*r;for(t=16;64>t;t++){i=0|n[t-15],r=0|n[t-2];var a=(0|n[t-16])+((i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)|0,o=(0|n[t-7])+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;n[t]=a+o|0}r=0|e.a[0],i=0|e.a[1];var s=0|e.a[2],l=0|e.a[3],c=0|e.a[4],u=0|e.a[5],d=0|e.a[6];for(a=0|e.a[7],t=0;64>t;t++){var h=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&s^i&s)|0;o=(a=a+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0)+((o=(o=c&u^~c&d)+(0|tc[t])|0)+(0|n[t])|0)|0,a=d,d=u,u=c,c=l+o|0,l=s,s=i,i=r,r=o+h|0}e.a[0]=e.a[0]+r|0,e.a[1]=e.a[1]+i|0,e.a[2]=e.a[2]+s|0,e.a[3]=e.a[3]+l|0,e.a[4]=e.a[4]+c|0,e.a[5]=e.a[5]+u|0,e.a[6]=e.a[6]+d|0,e.a[7]=e.a[7]+a|0}function dc(e,t,n){void 0===n&&(n=t.length);var r=0,i=e.c;if("string"==typeof t)for(;r<n;)e.f[i++]=t.charCodeAt(r++),i==e.b&&(uc(e),i=0);else{if(!f(t))throw Error("message must be string or array");for(;r<n;){var a=t[r++];if(!("number"==typeof a&&0<=a&&255>=a&&a==(0|a)))throw Error("message must be a byte array");e.f[i++]=a,i==e.b&&(uc(e),i=0)}}e.c=i,e.g+=n}ic.prototype.reset=function(){this.g=this.c=0,this.a=l.Int32Array?new Int32Array(this.h):X(this.h)};var hc=[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];function fc(){ic.call(this,8,pc)}S(fc,ic);var pc=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function mc(e,t,n,r,i){this.u=e,this.i=t,this.l=n,this.m=r||null,this.s=i||null,this.h=t+":"+n,this.w=new rc,this.g=new ec(this.h),this.f=null,this.b=[],this.a=this.c=null}function vc(e){return new T("invalid-cordova-configuration",e)}function gc(e){var t=new fc;dc(t,e),e=[];var n=8*t.g;56>t.c?dc(t,cc,56-t.c):dc(t,cc,t.b-(t.c-56));for(var r=63;56<=r;r--)t.f[r]=255&n,n/=256;for(uc(t),r=n=0;r<t.i;r++)for(var i=24;0<=i;i-=8)e[n++]=t.a[r]>>i&255;return function(e){return V(e,(function(e){return 1<(e=e.toString(16)).length?e:"0"+e})).join("")}(e)}function yc(e,t){for(var n=0;n<e.b.length;n++)try{e.b[n](t)}catch(e){}}function bc(e){return e.f||(e.f=e.ka().then((function(){return new _t((function(t){e.Ca((function n(r){return t(r),e.Qa(n),!1})),function(e){function t(t){r=!0,i&&i.cancel(),_c(e).then((function(r){var i=n;if(r&&t&&t.url){var a=null;-1!=(i=na(t.url)).indexOf("/__/auth/callback")&&(a=(a="object"==typeof(a=Dr(Rn(a=Bn(i),"firebaseError")||null))?C(a):null)?new Ra(r.c,r.b,null,null,a,null,r.S()):new Ra(r.c,r.b,i,r.f,null,null,r.S())),i=a||n}yc(e,i)}))}var n=new Ra("unknown",null,null,null,new T("no-auth-event")),r=!1,i=Tn(500).then((function(){return _c(e).then((function(){r||yc(e,n)}))})),a=l.handleOpenURL;l.handleOpenURL=function(e){if(0==e.toLowerCase().indexOf(Mr("BuildInfo.packageName",l).toLowerCase()+"://")&&t({url:e}),"function"==typeof a)try{a(e)}catch(e){console.error(e)}},Fa||(Fa=new Ya),function(e){var t=Fa;t.a.push(e),t.b||(t.b=function(e){for(var n=0;n<t.a.length;n++)t.a[n](e)},"function"==typeof(e=Mr("universalLinks.subscribe",l))&&e(null,t.b))}(t)}(e)}))}))),e.f}function _c(e){var t=null;return function(e){return e.b.get(nc,e.a).then((function(e){return Ba(e)}))}(e.g).then((function(n){return t=n,Ql((n=e.g).b,nc,n.a)})).then((function(){return t}))}function wc(e){this.a=e,this.b=Kl()}(t=mc.prototype).ka=function(){return this.Ga?this.Ga:this.Ga=(vr(void 0)?mr().then((function(){return new _t((function(e,t){var n=l.document,r=setTimeout((function(){t(Error("Cordova framework is not ready."))}),1e3);n.addEventListener("deviceready",(function(){clearTimeout(r),e()}),!1)}))})):xt(Error("Cordova must run in an Android or iOS file scheme."))).then((function(){if("function"!=typeof Mr("universalLinks.subscribe",l))throw vc("cordova-universal-links-plugin-fix is not installed");if(void 0===Mr("BuildInfo.packageName",l))throw vc("cordova-plugin-buildinfo is not installed");if("function"!=typeof Mr("cordova.plugins.browsertab.openUrl",l))throw vc("cordova-plugin-browsertab is not installed");if("function"!=typeof Mr("cordova.InAppBrowser.open",l))throw vc("cordova-plugin-inappbrowser is not installed")}),(function(){throw new T("cordova-not-ready")}))},t.Lb=function(e,t){return t(new T("operation-not-supported-in-this-environment")),Mt()},t.Jb=function(){return xt(new T("operation-not-supported-in-this-environment"))},t.Xb=function(){return!1},t.Ub=function(){return!0},t.Qb=function(){return!0},t.Kb=function(e,t,n,r){if(this.c)return xt(new T("redirect-operation-pending"));var i=this,a=l.document,o=null,s=null,c=null,u=null;return this.c=Mt().then((function(){return Na(t),bc(i)})).then((function(){return function(e,t,n,r,i){var a=function(){for(var e=20,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}(),o=new Ra(t,r,null,a,new T("no-auth-event"),null,i),s=Mr("BuildInfo.packageName",l);if("string"!=typeof s)throw new T("invalid-cordova-configuration");var c=Mr("BuildInfo.displayName",l),u={};if(Cr().toLowerCase().match(/iphone|ipad|ipod/))u.ibi=s;else{if(!Cr().toLowerCase().match(/android/))return xt(new T("operation-not-supported-in-this-environment"));u.apn=s}c&&(u.appDisplayName=c),a=gc(a),u.sessionId=a;var d=fl(e.u,e.i,e.l,t,n,null,r,e.m,u,e.s,i);return e.ka().then((function(){var t=e.h;return e.w.a.set(nc,o.v(),t)})).then((function(){var t=Mr("cordova.plugins.browsertab.isAvailable",l);if("function"!=typeof t)throw new T("invalid-cordova-configuration");var n=null;t((function(t){if(t){if("function"!=typeof(n=Mr("cordova.plugins.browsertab.openUrl",l)))throw new T("invalid-cordova-configuration");n(d)}else{if("function"!=typeof(n=Mr("cordova.InAppBrowser.open",l)))throw new T("invalid-cordova-configuration");t=Cr(),e.a=n(d,t.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||t.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}(i,e,t,n,r)})).then((function(){return new _t((function(e,t){s=function(){var t=Mr("cordova.plugins.browsertab.close",l);return e(),"function"==typeof t&&t(),i.a&&"function"==typeof i.a.close&&(i.a.close(),i.a=null),!1},i.Ca(s),c=function(){o||(o=Tn(2e3).then((function(){t(new T("redirect-cancelled-by-user"))})))},u=function(){jr()&&c()},a.addEventListener("resume",c,!1),Cr().toLowerCase().match(/android/)||a.addEventListener("visibilitychange",u,!1)})).o((function(e){return _c(i).then((function(){throw e}))}))})).ma((function(){c&&a.removeEventListener("resume",c,!1),u&&a.removeEventListener("visibilitychange",u,!1),o&&o.cancel(),s&&i.Qa(s),i.c=null}))},t.Ca=function(e){this.b.push(e),bc(this).o((function(t){"auth/invalid-cordova-configuration"===t.code&&(t=new Ra("unknown",null,null,null,new T("no-auth-event")),e(t))}))},t.Qa=function(e){K(this.b,(function(t){return t==e}))};var kc={name:"pendingRedirect",F:"session"};function Ec(e){return Ql(e.b,kc,e.a)}function Sc(e,t,n){this.i={},this.w=0,this.D=e,this.u=t,this.m=n,this.h=[],this.f=!1,this.l=w(this.s,this),this.b=new Bc,this.B=new Uc,this.g=new wc(this.u+":"+this.m),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.B,this.c.linkViaPopup=this.B,this.c.reauthViaPopup=this.B,this.a=Tc(this.D,this.u,this.m,M)}function Tc(e,t,n,i){var a=r.a.SDK_VERSION||null;return vr()?new mc(e,t,n,a,i):new cl(e,t,n,a,i)}function Cc(e){e.f||(e.f=!0,e.a.Ca(e.l));var t=e.a;return e.a.ka().o((function(n){throw e.a==t&&e.reset(),n}))}function Mc(e){e.a.Ub()&&Cc(e).o((function(t){var n=new Ra("unknown",null,null,null,new T("operation-not-supported-in-this-environment"));Ic(t)&&e.s(n)})),e.a.Qb()||Yc(e.b)}function xc(e,t){W(e.h,t)||e.h.push(t),e.f||function(e){return e.b.get(kc,e.a).then((function(e){return"pending"==e}))}(e.g).then((function(t){t?Ec(e.g).then((function(){Cc(e).o((function(t){var n=new Ra("unknown",null,null,null,new T("operation-not-supported-in-this-environment"));Ic(t)&&e.s(n)}))})):Mc(e)})).o((function(){Mc(e)}))}function $c(e,t){K(e.h,(function(e){return e==t}))}Sc.prototype.reset=function(){this.f=!1,this.a.Qa(this.l),this.a=Tc(this.D,this.u,this.m),this.i={}},Sc.prototype.s=function(e){if(!e)throw new T("invalid-auth-event");if(6e5<=E()-this.w&&(this.i={},this.w=0),e&&e.getUid()&&this.i.hasOwnProperty(e.getUid()))return!1;for(var t=!1,n=0;n<this.h.length;n++){var r=this.h[n];if(r.Cb(e.c,e.b)){(t=this.c[e.c])&&(t.h(e,r),e&&(e.f||e.b)&&(this.i[e.getUid()]=!0,this.w=E())),t=!0;break}}return Yc(this.b),t};var Lc=new Yr(2e3,1e4),Pc=new Yr(3e4,6e4);function Oc(e,t,n,r,i,a,o){return e.a.Jb(t,n,r,(function(){e.f||(e.f=!0,e.a.Ca(e.l))}),(function(){e.reset()}),i,a,o)}function Ic(e){return!(!e||"auth/cordova-not-ready"!=e.code)}function Ac(e,t,n,r,i){var a;return function(e){return e.b.set(kc,"pending",e.a)}(e.g).then((function(){return e.a.Kb(t,n,r,i).o((function(t){if(Ic(t))throw new T("operation-not-supported-in-this-environment");return a=t,Ec(e.g).then((function(){throw a}))})).then((function(){return e.a.Xb()?new _t((function(){})):Ec(e.g).then((function(){return e.pa()})).then((function(){})).o((function(){}))}))}))}function Dc(e,t,n,r,i){return e.a.Lb(r,(function(e){t.la(n,null,e,i)}),Lc.get())}Sc.prototype.pa=function(){return this.b.pa()};var Nc={};function Rc(e,t,n){var r=t+":"+n;return Nc[r]||(Nc[r]=new Sc(e,t,n)),Nc[r]}function Bc(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function Yc(e){e.g||(e.g=!0,Hc(e,!1,null,null))}function jc(e){e.g&&!e.i&&Hc(e,!1,null,null)}function Fc(e,t){if(e.b=function(){return Mt(t)},e.f.length)for(var n=0;n<e.f.length;n++)e.f[n](t)}function Hc(e,t,n,r){t?r?function(e,t){if(e.b=function(){return xt(t)},e.c.length)for(var n=0;n<e.c.length;n++)e.c[n](t)}(e,r):Fc(e,n):Fc(e,{user:null}),e.f=[],e.c=[]}function Uc(){}function zc(){this.Bb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.Bb},set:function(e){this.Bb=e},enumerable:!1})}function Vc(e,t){this.a=t,Wr(this,"verificationId",e)}function qc(e,t,n,r){return new Ia(e).cb(t,n).then((function(e){return new Vc(e,r)}))}function Wc(e){var t=Hi(e);if(!(t&&t.exp&&t.auth_time&&t.iat))throw new T("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");Gr(this,{token:e,expirationTime:Fr(1e3*t.exp),authTime:Fr(1e3*t.auth_time),issuedAtTime:Fr(1e3*t.iat),signInProvider:t.firebase&&t.firebase.sign_in_provider?t.firebase.sign_in_provider:null,signInSecondFactor:t.firebase&&t.firebase.sign_in_second_factor?t.firebase.sign_in_second_factor:null,claims:t})}function Gc(e,t,n){var r=t&&t[Jc];if(!r)throw new T("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=e,this.f=pe(t),this.g=n,this.c=new ra(null,r),this.b=[];var i=this;U(t[Kc]||[],(function(e){(e=Qr(e))&&i.b.push(e)})),Wr(this,"auth",this.a),Wr(this,"session",this.c),Wr(this,"hints",this.b)}Bc.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},Bc.prototype.h=function(e,t){if(e){this.reset(),this.g=!0;var n=e.c,r=e.b,i=e.a&&"auth/web-storage-unsupported"==e.a.code,a=e.a&&"auth/operation-not-supported-in-this-environment"==e.a.code;this.i=!(!i&&!a),"unknown"!=n||i||a?e.a?(Hc(this,!0,null,e.a),Mt()):t.Da(n,r)?function(e,t,n){n=n.Da(t.c,t.b);var r=t.g,i=t.f,a=t.i,o=t.S(),s=!!t.c.match(/Redirect$/);n(r,i,o,a).then((function(t){Hc(e,s,t,null)})).o((function(t){Hc(e,s,null,t)}))}(this,e,t):xt(new T("invalid-auth-event")):(Hc(this,!1,null,null),Mt())}else xt(new T("invalid-auth-event"))},Bc.prototype.pa=function(){var e=this;return new _t((function(t,n){e.b?e.b().then(t,n):(e.f.push(t),e.c.push(n),function(e){var t=new T("timeout");e.a&&e.a.cancel(),e.a=Tn(Pc.get()).then((function(){e.b||(e.g=!0,Hc(e,!0,null,t))}))}(e))}))},Uc.prototype.h=function(e,t){if(e){var n=e.c,r=e.b;e.a?(t.la(e.c,null,e.a,e.b),Mt()):t.Da(n,r)?function(e,t){var n=e.b,r=e.c;t.Da(r,n)(e.g,e.f,e.S(),e.i).then((function(e){t.la(r,e,null,n)})).o((function(e){t.la(r,null,e,n)}))}(e,t):xt(new T("invalid-auth-event"))}else xt(new T("invalid-auth-event"))},Vc.prototype.confirm=function(e){return e=Aa(this.verificationId,e),this.a(e)};var Kc="mfaInfo",Jc="mfaPendingCredential";function Xc(e,t,n,r){T.call(this,"multi-factor-auth-required",r,t),this.b=new Gc(e,t,n),Wr(this,"resolver",this.b)}function Qc(e,t,n){if(e&&m(e.serverResponse)&&"auth/multi-factor-auth-required"===e.code)try{return new Xc(t,e.serverResponse,n,e.message)}catch(e){}return null}function Zc(){}function eu(e){Wr(this,"factorId",e.ea),this.a=e}function tu(e){if(eu.call(this,e),this.a.ea!=Ia.PROVIDER_ID)throw new T("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function nu(e,t){for(var n in Kt.call(this,e),t)this[n]=t[n]}function ru(e,t){this.a=e,this.b=[],this.c=w(this.wc,this),ln(this.a,"userReloaded",this.c);var n=[];t&&t.multiFactor&&t.multiFactor.enrolledFactors&&U(t.multiFactor.enrolledFactors,(function(e){var t=null,r={};if(e){e.uid&&(r[ti]=e.uid),e.displayName&&(r[Zr]=e.displayName),e.enrollmentTime&&(r[ei]=new Date(e.enrollmentTime).toISOString()),e.phoneNumber&&(r[ni]=e.phoneNumber);try{t=new ri(r)}catch(e){}e=t}else e=null;e&&n.push(e)})),iu(this,n)}function iu(e,t){e.b=t,Wr(e,"enrolledFactors",t)}function au(e,t,n){if(this.h=e,this.i=t,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function ou(e){this.c=e,this.b=this.a=null}function su(e){return e.b&&1e3*e.b.c||0}function lu(e,t){var n=t.refreshToken;e.b=Fi(t[Ko]||""),e.a=n}function cu(e,t){return function(e,t){return new _t((function(n,r){"refresh_token"==t.grant_type&&t.refresh_token||"authorization_code"==t.grant_type&&t.code?ns(e,e.u+"?key="+encodeURIComponent(e.c),(function(e){e?e.error?r(el(e)):e.access_token&&e.refresh_token?n(e):r(new T("internal-error")):r(new T("network-request-failed"))}),"POST",Jn(t).toString(),e.g,e.m.get()):r(new T("internal-error"))}))}(e.c,t).then((function(t){return e.b=Fi(t.access_token),e.a=t.refresh_token,{accessToken:e.b.toString(),refreshToken:e.a}})).o((function(t){throw"auth/user-token-expired"==t.code&&(e.a=null),t}))}function uu(e,t){this.a=e||null,this.b=t||null,Gr(this,{lastSignInTime:Fr(t||null),creationTime:Fr(e||null)})}function du(e,t,n,r,i,a){Gr(this,{uid:e,displayName:r||null,photoURL:i||null,email:n||null,phoneNumber:a||null,providerId:t})}function hu(e,t,n){this.N=[],this.l=e.apiKey,this.m=e.appName,this.s=e.authDomain||null,e=r.a.SDK_VERSION?Tr(r.a.SDK_VERSION):null,this.a=new Wo(this.l,P(M),e),this.b=new ou(this.a),bu(this,t[Ko]),lu(this.b,t),Wr(this,"refreshToken",this.b.a),ku(this,n||{}),_n.call(this),this.P=!1,this.s&&$r()&&(this.i=Rc(this.s,this.l,this.m)),this.R=[],this.h=null,this.B=function(e){return new au((function(){return e.I(!0)}),(function(e){return!(!e||"auth/network-request-failed"!=e.code)}),(function(){var t=su(e.b)-E()-3e5;return 0<t?t:0}))}(this),this.Z=w(this.Ma,this);var i=this;this.oa=null,this.za=function(e){i.va(e.g)},this.aa=null,this.W=[],this.ya=function(e){pu(i,e.c)},this.$=null,this.O=new ru(this,n),Wr(this,"multiFactor",this.O)}function fu(e,t){e.aa&&dn(e.aa,"languageCodeChanged",e.za),(e.aa=t)&&ln(t,"languageCodeChanged",e.za)}function pu(e,t){e.W=t,ts(e.a,r.a.SDK_VERSION?Tr(r.a.SDK_VERSION,e.W):null)}function mu(e,t){e.$&&dn(e.$,"frameworkChanged",e.ya),(e.$=t)&&ln(t,"frameworkChanged",e.ya)}function vu(e){try{return r.a.app(e.m).auth()}catch(t){throw new T("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+e.m+"'!")}}function gu(e){e.D||e.B.b||(e.B.start(),dn(e,"tokenChanged",e.Z),ln(e,"tokenChanged",e.Z))}function yu(e){dn(e,"tokenChanged",e.Z),e.B.stop()}function bu(e,t){e.xa=t,Wr(e,"_lat",t)}function _u(e){for(var t=[],n=0;n<e.R.length;n++)t.push(e.R[n](e));return Lt(t).then((function(){return e}))}function wu(e){e.i&&!e.P&&(e.P=!0,xc(e.i,e))}function ku(e,t){Gr(e,{uid:t.uid,displayName:t.displayName||null,photoURL:t.photoURL||null,email:t.email||null,emailVerified:t.emailVerified||!1,phoneNumber:t.phoneNumber||null,isAnonymous:t.isAnonymous||!1,tenantId:t.tenantId||null,metadata:new uu(t.createdAt,t.lastLoginAt),providerData:[]}),e.a.b=e.tenantId}function Eu(){}function Su(e){return Mt().then((function(){if(e.D)throw new T("app-deleted")}))}function Tu(e){return V(e.providerData,(function(e){return e.providerId}))}function Cu(e,t){t&&(Mu(e,t.providerId),e.providerData.push(t))}function Mu(e,t){K(e.providerData,(function(e){return e.providerId==t}))}function xu(e,t,n){("uid"!=t||n)&&e.hasOwnProperty(t)&&Wr(e,t,n)}function $u(e,t){e!=t&&(Gr(e,{uid:t.uid,displayName:t.displayName,photoURL:t.photoURL,email:t.email,emailVerified:t.emailVerified,phoneNumber:t.phoneNumber,isAnonymous:t.isAnonymous,tenantId:t.tenantId,providerData:[]}),t.metadata?Wr(e,"metadata",function(e){return new uu(e.a,e.b)}(t.metadata)):Wr(e,"metadata",new uu),U(t.providerData,(function(t){Cu(e,t)})),function(e,t){e.b=t.b,e.a=t.a}(e.b,t.b),Wr(e,"refreshToken",e.b.a),iu(e.O,t.O.b))}function Lu(e){return e.I().then((function(t){var n=e.isAnonymous;return function(e,t){return Qs(e.a,$s,{idToken:t}).then(w(e.Ic,e))}(e,t).then((function(){return n||xu(e,"isAnonymous",!1),t}))}))}function Pu(e,t){t[Ko]&&e.xa!=t[Ko]&&(lu(e.b,t),e.dispatchEvent(new nu("tokenChanged")),bu(e,t[Ko]),xu(e,"refreshToken",e.b.a))}function Ou(e,t){return Lu(e).then((function(){if(W(Tu(e),t))return _u(e).then((function(){throw new T("provider-already-linked")}))}))}function Iu(e,t,n){return Kr({user:e,credential:Da(t),additionalUserInfo:t=Wi(t),operationType:n})}function Au(e,t){return Pu(e,t),e.reload().then((function(){return e}))}function Du(e,t,n,i,a){if(!$r())return xt(new T("operation-not-supported-in-this-environment"));if(e.h&&!a)return xt(e.h);var o=qi(n.providerId),s=Nr(e.uid+":::"),l=null;(!Or()||gr())&&e.s&&n.isOAuthProvider&&(l=fl(e.s,e.l,e.m,t,n,null,s,r.a.SDK_VERSION||null,null,null,e.tenantId));var c=hr(l,o&&o.ta,o&&o.sa);return i=i().then((function(){if(Ru(e),!a)return e.I().then((function(){}))})).then((function(){return Oc(e.i,c,t,n,s,!!l,e.tenantId)})).then((function(){return new _t((function(n,r){e.la(t,null,new T("cancelled-popup-request"),e.g||null),e.f=n,e.w=r,e.g=s,e.c=Dc(e.i,e,t,c,s)}))})).then((function(e){return c&&dr(c),e?Kr(e):null})).o((function(e){throw c&&dr(c),e})),Bu(e,i,a)}function Nu(e,t,n,r,i){if(!$r())return xt(new T("operation-not-supported-in-this-environment"));if(e.h&&!i)return xt(e.h);var a=null,o=Nr(e.uid+":::");return r=r().then((function(){if(Ru(e),!i)return e.I().then((function(){}))})).then((function(){return e.fa=o,_u(e)})).then((function(t){return e.ga&&(t=(t=e.ga).b.set(Fu,e.v(),t.a)),t})).then((function(){return Ac(e.i,t,n,o,e.tenantId)})).o((function(t){if(a=t,e.ga)return Hu(e.ga);throw a})).then((function(){if(a)throw a})),Bu(e,r,i)}function Ru(e){if(!e.i||!e.P){if(e.i&&!e.P)throw new T("internal-error");throw new T("auth-domain-config-required")}}function Bu(e,t,n){var r=function(e,t,n){return e.h&&!n?(t.cancel(),xt(e.h)):t.o((function(t){throw!t||"auth/user-disabled"!=t.code&&"auth/user-token-expired"!=t.code||(e.h||e.dispatchEvent(new nu("userInvalidated")),e.h=t),t}))}(e,t,n);return e.N.push(r),r.ma((function(){G(e.N,r)})),r.o((function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=Qc(t.v(),vu(e),w(e.hc,e))),n||t}))}function Yu(e){if(!e.apiKey)return null;var t={apiKey:e.apiKey,authDomain:e.authDomain,appName:e.appName},n={};if(!e.stsTokenManager||!e.stsTokenManager.accessToken)return null;n[Ko]=e.stsTokenManager.accessToken,n.refreshToken=e.stsTokenManager.refreshToken||null;var r=new hu(t,n,e);return e.providerData&&U(e.providerData,(function(e){e&&Cu(r,Kr(e))})),e.redirectEventId&&(r.fa=e.redirectEventId),r}function ju(e){this.a=e,this.b=Kl()}Gc.prototype.Pc=function(e){var t=this;return e.ob(this.a.b,this.c).then((function(e){var n=pe(t.f);return delete n[Kc],delete n[Jc],ve(n,e),t.g(n)}))},S(Xc,T),Zc.prototype.ob=function(e,t,n){return t.type==ia?function(e,t,n,r){return n.Fa().then((function(n){return n={idToken:n},void 0!==r&&(n.displayName=r),ve(n,{phoneVerificationInfo:Oa(e.a)}),Qs(t,Ms,n)}))}(this,e,t,n):function(e,t,n){return n.Fa().then((function(n){return ve(n={mfaPendingCredential:n},{phoneVerificationInfo:Oa(e.a)}),Qs(t,xs,n)}))}(this,e,t)},S(eu,Zc),S(tu,eu),S(nu,Kt),(t=ru.prototype).wc=function(e){iu(this,function(e){var t=[];return U(e.mfaInfo||[],(function(e){(e=Qr(e))&&t.push(e)})),t}(e.ed))},t.Ob=function(){return this.a.I().then((function(e){return new ra(e,null)}))},t.dc=function(e,t){var n=this,r=this.a.a;return this.Ob().then((function(n){return e.ob(r,n,t)})).then((function(e){return Pu(n.a,e),n.a.reload()}))},t.$c=function(e){var t=this,n="string"==typeof e?e:e.uid,r=this.a.a;return this.a.I().then((function(e){return Qs(r,Xs,{idToken:e,mfaEnrollmentId:n})})).then((function(e){var r=z(t.b,(function(e){return e.uid!=n}));return iu(t,r),Pu(t.a,e),t.a.reload().o((function(e){if("auth/user-token-expired"!=e.code)throw e}))}))},t.v=function(){return{multiFactor:{enrolledFactors:V(this.b,(function(e){return e.v()}))}}},au.prototype.start=function(){this.a=this.c,function e(t,n){t.stop(),t.b=Tn(function(e,t){return t?(e.a=e.c,e.g()):(t=e.a,e.a*=2,e.a>e.f&&(e.a=e.f),t)}(t,n)).then((function(){return function(){var e=l.document,t=null;return jr()||!e?Mt():new _t((function(n){t=function(){jr()&&(e.removeEventListener("visibilitychange",t,!1),n())},e.addEventListener("visibilitychange",t,!1)})).o((function(n){throw e.removeEventListener("visibilitychange",t,!1),n}))}()})).then((function(){return t.h()})).then((function(){e(t,!0)})).o((function(n){t.i(n)&&e(t,!1)}))}(this,!0)},au.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},ou.prototype.v=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:su(this)}},ou.prototype.getToken=function(e){return e=!!e,this.b&&!this.a?xt(new T("user-token-expired")):e||!this.b||E()>su(this)-3e4?this.a?cu(this,{grant_type:"refresh_token",refresh_token:this.a}):Mt(null):Mt({accessToken:this.b.toString(),refreshToken:this.a})},uu.prototype.v=function(){return{lastLoginAt:this.b,createdAt:this.a}},S(hu,_n),hu.prototype.va=function(e){this.oa=e,es(this.a,e)},hu.prototype.ja=function(){return this.oa},hu.prototype.Ea=function(){return X(this.W)},hu.prototype.Ma=function(){this.B.b&&(this.B.stop(),this.B.start())},Wr(hu.prototype,"providerId","firebase"),(t=hu.prototype).reload=function(){var e=this;return Bu(this,Su(this).then((function(){return Lu(e).then((function(){return _u(e)})).then(Eu)})))},t.mc=function(e){return this.I(e).then((function(e){return new Wc(e)}))},t.I=function(e){var t=this;return Bu(this,Su(this).then((function(){return t.b.getToken(e)})).then((function(e){if(!e)throw new T("internal-error");return e.accessToken!=t.xa&&(bu(t,e.accessToken),t.dispatchEvent(new nu("tokenChanged"))),xu(t,"refreshToken",e.refreshToken),e.accessToken})))},t.Ic=function(e){if(!(e=e.users)||!e.length)throw new T("internal-error");ku(this,{uid:(e=e[0]).localId,displayName:e.displayName,photoURL:e.photoUrl,email:e.email,emailVerified:!!e.emailVerified,phoneNumber:e.phoneNumber,lastLoginAt:e.lastLoginAt,createdAt:e.createdAt,tenantId:e.tenantId});for(var t=function(e){return(e=e.providerUserInfo)&&e.length?V(e,(function(e){return new du(e.rawId,e.providerId,e.email,e.displayName,e.photoUrl,e.phoneNumber)})):[]}(e),n=0;n<t.length;n++)Cu(this,t[n]);xu(this,"isAnonymous",!(this.email&&e.passwordHash||this.providerData&&this.providerData.length)),this.dispatchEvent(new nu("userReloaded",{ed:e}))},t.Jc=function(e){return Vr("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.pb(e)},t.pb=function(e){var t=this,n=null;return Bu(this,e.c(this.a,this.uid).then((function(e){return Pu(t,e),n=Iu(t,e,"reauthenticate"),t.h=null,t.reload()})).then((function(){return n})),!0)},t.Ac=function(e){return Vr("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.mb(e)},t.mb=function(e){var t=this,n=null;return Bu(this,Ou(this,e.providerId).then((function(){return t.I()})).then((function(n){return e.b(t.a,n)})).then((function(e){return n=Iu(t,e,"link"),Au(t,e)})).then((function(){return n})))},t.Bc=function(e,t){var n=this;return Bu(this,Ou(this,"phone").then((function(){return qc(vu(n),e,t,w(n.mb,n))})))},t.Kc=function(e,t){var n=this;return Bu(this,Mt().then((function(){return qc(vu(n),e,t,w(n.pb,n))})),!0)},t.xb=function(e){var t=this;return Bu(this,this.I().then((function(n){return t.a.xb(n,e)})).then((function(e){return Pu(t,e),t.reload()})))},t.cd=function(e){var t=this;return Bu(this,this.I().then((function(n){return e.b(t.a,n)})).then((function(e){return Pu(t,e),t.reload()})))},t.yb=function(e){var t=this;return Bu(this,this.I().then((function(n){return t.a.yb(n,e)})).then((function(e){return Pu(t,e),t.reload()})))},t.zb=function(e){if(void 0===e.displayName&&void 0===e.photoURL)return Su(this);var t=this;return Bu(this,this.I().then((function(n){return t.a.zb(n,{displayName:e.displayName,photoUrl:e.photoURL})})).then((function(e){return Pu(t,e),xu(t,"displayName",e.displayName||null),xu(t,"photoURL",e.photoUrl||null),U(t.providerData,(function(e){"password"===e.providerId&&(Wr(e,"displayName",t.displayName),Wr(e,"photoURL",t.photoURL))})),_u(t)})).then(Eu))},t.ad=function(e){var t=this;return Bu(this,Lu(this).then((function(n){return W(Tu(t),e)?function(e,t,n){return Qs(e,Ss,{idToken:t,deleteProvider:n})}(t.a,n,[e]).then((function(e){var n={};return U(e.providerUserInfo||[],(function(e){n[e.providerId]=!0})),U(Tu(t),(function(e){n[e]||Mu(t,e)})),n[Ia.PROVIDER_ID]||Wr(t,"phoneNumber",null),_u(t)})):_u(t).then((function(){throw new T("no-such-provider")}))})))},t.delete=function(){var e=this;return Bu(this,this.I().then((function(t){return Qs(e.a,Es,{idToken:t})})).then((function(){e.dispatchEvent(new nu("userDeleted"))}))).then((function(){for(var t=0;t<e.N.length;t++)e.N[t].cancel("app-deleted");fu(e,null),mu(e,null),e.N=[],e.D=!0,yu(e),Wr(e,"refreshToken",null),e.i&&$c(e.i,e)}))},t.Cb=function(e,t){return!!("linkViaPopup"==e&&(this.g||null)==t&&this.f||"reauthViaPopup"==e&&(this.g||null)==t&&this.f||"linkViaRedirect"==e&&(this.fa||null)==t||"reauthViaRedirect"==e&&(this.fa||null)==t)},t.la=function(e,t,n,r){"linkViaPopup"!=e&&"reauthViaPopup"!=e||r!=(this.g||null)||(n&&this.w?this.w(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.w)},t.Da=function(e,t){return"linkViaPopup"==e&&t==(this.g||null)?w(this.Hb,this):"reauthViaPopup"==e&&t==(this.g||null)?w(this.Ib,this):"linkViaRedirect"==e&&(this.fa||null)==t?w(this.Hb,this):"reauthViaRedirect"==e&&(this.fa||null)==t?w(this.Ib,this):null},t.Cc=function(e){var t=this;return Du(this,"linkViaPopup",e,(function(){return Ou(t,e.providerId).then((function(){return _u(t)}))}),!1)},t.Lc=function(e){return Du(this,"reauthViaPopup",e,(function(){return Mt()}),!0)},t.Dc=function(e){var t=this;return Nu(this,"linkViaRedirect",e,(function(){return Ou(t,e.providerId)}),!1)},t.Mc=function(e){return Nu(this,"reauthViaRedirect",e,(function(){return Mt()}),!0)},t.Hb=function(e,t,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var a=null;return Bu(this,this.I().then((function(n){return vs(i.a,{requestUri:e,postBody:r,sessionId:t,idToken:n})})).then((function(e){return a=Iu(i,e,"link"),Au(i,e)})).then((function(){return a})))},t.Ib=function(e,t,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var a=null;return Bu(this,Mt().then((function(){return sa(gs(i.a,{requestUri:e,sessionId:t,postBody:r,tenantId:n}),i.uid)})).then((function(e){return a=Iu(i,e,"reauthenticate"),Pu(i,e),i.h=null,i.reload()})).then((function(){return a})),!0)},t.qb=function(e){var t=this,n=null;return Bu(this,this.I().then((function(t){return n=t,void 0===e||fe(e)?{}:Ri(new Mi(e))})).then((function(e){return t.a.qb(n,e)})).then((function(e){if(t.email!=e)return t.reload()})).then((function(){})))},t.Ab=function(e,t){var n=this,r=null;return Bu(this,this.I().then((function(e){return r=e,void 0===t||fe(t)?{}:Ri(new Mi(t))})).then((function(t){return n.a.Ab(r,e,t)})).then((function(e){if(n.email!=e)return n.reload()})).then((function(){})))},t.hc=function(e){var t=null,n=this;return Bu(this,e=sa(Mt(e),n.uid).then((function(e){return t=Iu(n,e,"reauthenticate"),Pu(n,e),n.h=null,n.reload()})).then((function(){return t})),!0)},t.toJSON=function(){return this.v()},t.v=function(){var e={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.s,stsTokenManager:this.b.v(),redirectEventId:this.fa||null};return this.metadata&&ve(e,this.metadata.v()),U(this.providerData,(function(t){e.providerData.push(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}(t))})),ve(e,this.O.v()),e};var Fu={name:"redirectUser",F:"session"};function Hu(e){return Ql(e.b,Fu,e.a)}function Uu(e){this.a=e,this.b=Kl(),this.c=null,this.f=function(e){var t=qu("local"),n=qu("session"),r=qu("none");return function(e,t,n){var r=Xl(t,n),i=Jl(e,t.F);return e.get(t,n).then((function(a){var o=null;try{o=Dr(l.localStorage.getItem(r))}catch(e){}if(o&&!a)return l.localStorage.removeItem(r),e.set(t,o,n);o&&a&&"localStorage"!=i.type&&l.localStorage.removeItem(r)}))}(e.b,t,e.a).then((function(){return e.b.get(n,e.a)})).then((function(i){return i?n:e.b.get(r,e.a).then((function(n){return n?r:e.b.get(t,e.a).then((function(n){return n?t:e.b.get(Vu,e.a).then((function(e){return e?qu(e):t}))}))}))})).then((function(t){return e.c=t,zu(e,t.F)})).o((function(){e.c||(e.c=t)}))}(this),this.b.addListener(qu("local"),this.a,w(this.g,this))}function zu(e,t){var n,r=[];for(n in Wl)Wl[n]!==t&&r.push(Ql(e.b,qu(Wl[n]),e.a));return r.push(Ql(e.b,Vu,e.a)),function(e){return new _t((function(t,n){var r=e.length,i=[];if(r)for(var a=function(e,n){r--,i[e]=n,0==r&&t(i)},o=function(e){n(e)},s=0;s<e.length;s++)$t(e[s],k(a,s),o);else t(i)}))}(r)}Uu.prototype.g=function(){var e=this,t=qu("local");Ju(this,(function(){return Mt().then((function(){return e.c&&"local"!=e.c.F?e.b.get(t,e.a):null})).then((function(n){if(n)return zu(e,"local").then((function(){e.c=t}))}))}))};var Vu={name:"persistence",F:"session"};function qu(e){return{name:"authUser",F:e}}function Wu(e,t){return Ju(e,(function(){return e.b.set(e.c,t.v(),e.a)}))}function Gu(e){return Ju(e,(function(){return Ql(e.b,e.c,e.a)}))}function Ku(e,t){return Ju(e,(function(){return e.b.get(e.c,e.a).then((function(e){return e&&t&&(e.authDomain=t),Yu(e||{})}))}))}function Ju(e,t){return e.f=e.f.then(t,t),e.f}function Xu(e){if(this.l=!1,Wr(this,"settings",new zc),Wr(this,"app",e),!ad(this).options||!ad(this).options.apiKey)throw new T("invalid-api-key");e=r.a.SDK_VERSION?Tr(r.a.SDK_VERSION):null,this.b=new Wo(ad(this).options&&ad(this).options.apiKey,P(M),e),this.P=[],this.m=[],this.O=[],this.$b=r.a.INTERNAL.createSubscribe(w(this.xc,this)),this.W=void 0,this.ac=r.a.INTERNAL.createSubscribe(w(this.yc,this)),rd(this,null),this.i=new Uu(ad(this).options.apiKey+":"+ad(this).name),this.B=new ju(ad(this).options.apiKey+":"+ad(this).name),this.Z=cd(this,function(e){var t=ad(e).options.authDomain,n=function(e){var t=function(e,t){return e.b.get(Fu,e.a).then((function(e){return e&&t&&(e.authDomain=t),Yu(e||{})}))}(e.B,ad(e).options.authDomain).then((function(t){return(e.D=t)&&(t.ga=e.B),Hu(e.B)}));return cd(e,t)}(e).then((function(){return Ku(e.i,t)})).then((function(t){return t?(t.ga=e.B,e.D&&(e.D.fa||null)==(t.fa||null)?t:t.reload().then((function(){return Wu(e.i,t).then((function(){return t}))})).o((function(n){return"auth/network-request-failed"==n.code?t:Gu(e.i)}))):null})).then((function(t){rd(e,t||null)}));return cd(e,n)}(this)),this.h=cd(this,function(e){return e.Z.then((function(){return td(e)})).o((function(){})).then((function(){if(!e.l)return e.oa()})).o((function(){})).then((function(){if(!e.l){e.aa=!0;var t=e.i;t.b.addListener(qu("local"),t.a,e.oa)}}))}(this)),this.aa=!1,this.oa=w(this.Xc,this),this.Ma=w(this.ca,this),this.xa=w(this.jc,this),this.ya=w(this.uc,this),this.za=w(this.vc,this),this.a=null,function(e){var t=ad(e).options.authDomain,n=ad(e).options.apiKey;t&&$r()&&(e.Zb=e.Z.then((function(){if(!e.l){if(e.a=Rc(t,n,ad(e).name),xc(e.a,e),od(e)&&wu(od(e)),e.D){wu(e.D);var r=e.D;r.va(e.ja()),fu(r,e),pu(r=e.D,e.N),mu(r,e),e.D=null}return e.a}})))}(this),this.INTERNAL={},this.INTERNAL.delete=w(this.delete,this),this.INTERNAL.logFramework=w(this.Ec,this),this.s=0,_n.call(this),function(e){Object.defineProperty(e,"lc",{get:function(){return this.ja()},set:function(e){this.va(e)},enumerable:!1}),e.$=null,Object.defineProperty(e,"ti",{get:function(){return this.S()},set:function(e){this.ub(e)},enumerable:!1}),e.R=null}(this),this.N=[]}function Qu(e){Kt.call(this,"languageCodeChanged"),this.g=e}function Zu(e){Kt.call(this,"frameworkChanged"),this.c=e}function ed(e){return e.Zb||xt(new T("auth-domain-config-required"))}function td(e){if(!$r())return xt(new T("operation-not-supported-in-this-environment"));var t=ed(e).then((function(){return e.a.pa()})).then((function(e){return e?Kr(e):null}));return cd(e,t)}function nd(e,t){var n={};return n.apiKey=ad(e).options.apiKey,n.authDomain=ad(e).options.authDomain,n.appName=ad(e).name,e.Z.then((function(){return function(e,t,n,r){var i=new hu(e,t);return n&&(i.ga=n),r&&pu(i,r),i.reload().then((function(){return i}))}(n,t,e.B,e.Ea())})).then((function(t){return od(e)&&t.uid==od(e).uid?($u(od(e),t),e.ca(t)):(rd(e,t),wu(t),e.ca(t))})).then((function(){ld(e)}))}function rd(e,t){od(e)&&(function(e,t){K(e.R,(function(e){return e==t}))}(od(e),e.Ma),dn(od(e),"tokenChanged",e.xa),dn(od(e),"userDeleted",e.ya),dn(od(e),"userInvalidated",e.za),yu(od(e))),t&&(t.R.push(e.Ma),ln(t,"tokenChanged",e.xa),ln(t,"userDeleted",e.ya),ln(t,"userInvalidated",e.za),0<e.s&&gu(t)),Wr(e,"currentUser",t),t&&(t.va(e.ja()),fu(t,e),pu(t,e.N),mu(t,e))}function id(e,t){var n=null,r=null;return cd(e,t.then((function(t){return n=Da(t),r=Wi(t),nd(e,t)}),(function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=Qc(t.v(),e,w(e.ic,e))),n||t})).then((function(){return Kr({user:od(e),credential:n,additionalUserInfo:r,operationType:"signIn"})})))}function ad(e){return e.app}function od(e){return e.currentUser}function sd(e){return od(e)&&od(e)._lat||null}function ld(e){if(e.aa){for(var t=0;t<e.m.length;t++)e.m[t]&&e.m[t](sd(e));if(e.W!==e.getUid()&&e.O.length)for(e.W=e.getUid(),t=0;t<e.O.length;t++)e.O[t]&&e.O[t](sd(e))}}function cd(e,t){return e.P.push(t),t.ma((function(){G(e.P,t)})),t}function ud(){}function dd(){this.a={},this.b=1e12}Uu.prototype.tb=function(e){var t=null,n=this;return function(e){var t=new T("invalid-persistence-type"),n=new T("unsupported-persistence-type");e:{for(r in Wl)if(Wl[r]==e){var r=!0;break e}r=!1}if(!r||"string"!=typeof e)throw t;switch(br()){case"ReactNative":if("session"===e)throw n;break;case"Node":if("none"!==e)throw n;break;case"Worker":if("session"===e||!Cl()&&"none"!==e)throw n;break;default:if(!xr()&&"none"!==e)throw n}}(e),Ju(this,(function(){return e!=n.c.F?n.b.get(n.c,n.a).then((function(r){return t=r,zu(n,e)})).then((function(){if(n.c=qu(e),t)return n.b.set(n.c,t,n.a)})):Mt()}))},S(Xu,_n),S(Qu,Kt),S(Zu,Kt),(t=Xu.prototype).tb=function(e){return cd(this,e=this.i.tb(e))},t.va=function(e){this.$===e||this.l||(this.$=e,es(this.b,this.$),this.dispatchEvent(new Qu(this.ja())))},t.ja=function(){return this.$},t.dd=function(){var e=l.navigator;this.va(e&&(e.languages&&e.languages[0]||e.language||e.userLanguage)||null)},t.Ec=function(e){this.N.push(e),ts(this.b,r.a.SDK_VERSION?Tr(r.a.SDK_VERSION,this.N):null),this.dispatchEvent(new Zu(this.N))},t.Ea=function(){return X(this.N)},t.ub=function(e){this.R===e||this.l||(this.R=e,this.b.b=this.R)},t.S=function(){return this.R},t.toJSON=function(){return{apiKey:ad(this).options.apiKey,authDomain:ad(this).options.authDomain,appName:ad(this).name,currentUser:od(this)&&od(this).v()}},t.Cb=function(e,t){switch(e){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==t&&!!this.f;default:return!1}},t.la=function(e,t,n,r){"signInViaPopup"==e&&this.g==r&&(n&&this.w?this.w(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.w)},t.Da=function(e,t){return"signInViaRedirect"==e||"signInViaPopup"==e&&this.g==t&&this.f?w(this.gc,this):null},t.gc=function(e,t,n,r){var i=this,a={requestUri:e,postBody:r,sessionId:t,tenantId:n};return this.c&&(this.c.cancel(),this.c=null),i.Z.then((function(){return id(i,ms(i.b,a))}))},t.Vc=function(e){if(!$r())return xt(new T("operation-not-supported-in-this-environment"));var t=this,n=qi(e.providerId),i=Nr(),a=null;(!Or()||gr())&&ad(this).options.authDomain&&e.isOAuthProvider&&(a=fl(ad(this).options.authDomain,ad(this).options.apiKey,ad(this).name,"signInViaPopup",e,null,i,r.a.SDK_VERSION||null,null,null,this.S()));var o=hr(a,n&&n.ta,n&&n.sa);return cd(this,n=ed(this).then((function(n){return Oc(n,o,"signInViaPopup",e,i,!!a,t.S())})).then((function(){return new _t((function(e,n){t.la("signInViaPopup",null,new T("cancelled-popup-request"),t.g),t.f=e,t.w=n,t.g=i,t.c=Dc(t.a,t,"signInViaPopup",o,i)}))})).then((function(e){return o&&dr(o),e?Kr(e):null})).o((function(e){throw o&&dr(o),e})))},t.Wc=function(e){if(!$r())return xt(new T("operation-not-supported-in-this-environment"));var t=this;return cd(this,ed(this).then((function(){return function(e){return Ju(e,(function(){return e.b.set(Vu,e.c.F,e.a)}))}(t.i)})).then((function(){return Ac(t.a,"signInViaRedirect",e,void 0,t.S())})))},t.pa=function(){var e=this;return td(this).then((function(t){return e.a&&jc(e.a.b),t})).o((function(t){throw e.a&&jc(e.a.b),t}))},t.bd=function(e){if(!e)return xt(new T("null-user"));if(this.R!=e.tenantId)return xt(new T("tenant-id-mismatch"));var t=this,n={};n.apiKey=ad(this).options.apiKey,n.authDomain=ad(this).options.authDomain,n.appName=ad(this).name;var r=function(e,t,n,r){var i=e.b,a={};return a[Ko]=i.b&&i.b.toString(),a.refreshToken=i.a,t=new hu(t||{apiKey:e.l,authDomain:e.s,appName:e.m},a),n&&(t.ga=n),r&&pu(t,r),$u(t,e),t}(e,n,t.B,t.Ea());return cd(this,this.h.then((function(){if(ad(t).options.apiKey!=e.l)return r.reload()})).then((function(){return od(t)&&e.uid==od(t).uid?($u(od(t),e),t.ca(e)):(rd(t,r),wu(r),t.ca(r))})).then((function(){ld(t)})))},t.wb=function(){var e=this;return cd(this,this.h.then((function(){return e.a&&jc(e.a.b),od(e)?(rd(e,null),Gu(e.i).then((function(){ld(e)}))):Mt()})))},t.Xc=function(){var e=this;return Ku(this.i,ad(this).options.authDomain).then((function(t){if(!e.l){var n;if(n=od(e)&&t){n=od(e).uid;var r=t.uid;n=null!=n&&""!==n&&null!=r&&""!==r&&n==r}if(n)return $u(od(e),t),od(e).I();(od(e)||t)&&(rd(e,t),t&&(wu(t),t.ga=e.B),e.a&&xc(e.a,e),ld(e))}}))},t.ca=function(e){return Wu(this.i,e)},t.jc=function(){ld(this),this.ca(od(this))},t.uc=function(){this.wb()},t.vc=function(){this.wb()},t.ic=function(e){var t=this;return this.h.then((function(){return id(t,Mt(e))}))},t.xc=function(e){var t=this;this.addAuthTokenListener((function(){e.next(od(t))}))},t.yc=function(e){var t=this;!function(e,t){e.O.push(t),cd(e,e.h.then((function(){!e.l&&W(e.O,t)&&e.W!==e.getUid()&&(e.W=e.getUid(),t(sd(e)))})))}(this,(function(){e.next(od(t))}))},t.Gc=function(e,t,n){var r=this;return this.aa&&Promise.resolve().then((function(){p(e)?e(od(r)):p(e.next)&&e.next(od(r))})),this.$b(e,t,n)},t.Fc=function(e,t,n){var r=this;return this.aa&&Promise.resolve().then((function(){r.W=r.getUid(),p(e)?e(od(r)):p(e.next)&&e.next(od(r))})),this.ac(e,t,n)},t.kc=function(e){var t=this;return cd(this,this.h.then((function(){return od(t)?od(t).I(e).then((function(e){return{accessToken:e}})):null})))},t.Rc=function(e){var t=this;return this.h.then((function(){return id(t,Qs(t.b,qs,{token:e}))})).then((function(e){var n=e.user;return xu(n,"isAnonymous",!1),t.ca(n),e}))},t.Sc=function(e,t){var n=this;return this.h.then((function(){return id(n,Qs(n.b,Ws,{email:e,password:t}))}))},t.cc=function(e,t){var n=this;return this.h.then((function(){return id(n,Qs(n.b,ws,{email:e,password:t}))}))},t.Ya=function(e){var t=this;return this.h.then((function(){return id(t,e.ia(t.b))}))},t.Qc=function(e){return Vr("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Ya(e)},t.vb=function(){var e=this;return this.h.then((function(){var t=od(e);if(t&&t.isAnonymous){var n=Kr({providerId:null,isNewUser:!1});return Kr({user:t,credential:null,additionalUserInfo:n,operationType:"signIn"})}return id(e,e.b.vb()).then((function(t){var n=t.user;return xu(n,"isAnonymous",!0),e.ca(n),t}))}))},t.getUid=function(){return od(this)&&od(this).uid||null},t.bc=function(e){this.addAuthTokenListener(e),this.s++,0<this.s&&od(this)&&gu(od(this))},t.Nc=function(e){var t=this;U(this.m,(function(n){n==e&&t.s--})),0>this.s&&(this.s=0),0==this.s&&od(this)&&yu(od(this)),this.removeAuthTokenListener(e)},t.addAuthTokenListener=function(e){var t=this;this.m.push(e),cd(this,this.h.then((function(){t.l||W(t.m,e)&&e(sd(t))})))},t.removeAuthTokenListener=function(e){K(this.m,(function(t){return t==e}))},t.delete=function(){this.l=!0;for(var e=0;e<this.P.length;e++)this.P[e].cancel("app-deleted");return this.P=[],this.i&&(e=this.i).b.removeListener(qu("local"),e.a,this.oa),this.a&&($c(this.a,this),jc(this.a.b)),Promise.resolve()},t.fc=function(e){return cd(this,function(e,t){return Qs(e,ks,{identifier:t,continueUri:Lr()?lr():"http://localhost"}).then((function(e){return e.signinMethods||[]}))}(this.b,e))},t.zc=function(e){return!!$a(e)},t.sb=function(e,t){var n=this;return cd(this,Mt().then((function(){var e=new Mi(t);if(!e.c)throw new T("argument-error",Li+" must be true when sending sign in link to email");return Ri(e)})).then((function(t){return n.b.sb(e,t)})).then((function(){})))},t.fd=function(e){return this.Pa(e).then((function(e){return e.data.email}))},t.jb=function(e,t){return cd(this,this.b.jb(e,t).then((function(){})))},t.Pa=function(e){return cd(this,this.b.Pa(e).then((function(e){return new ii(e)})))},t.fb=function(e){return cd(this,this.b.fb(e).then((function(){})))},t.rb=function(e,t){var n=this;return cd(this,Mt().then((function(){return void 0===t||fe(t)?{}:Ri(new Mi(t))})).then((function(t){return n.b.rb(e,t)})).then((function(){})))},t.Uc=function(e,t){return cd(this,qc(this,e,t,w(this.Ya,this)))},t.Tc=function(e,t){var n=this;return cd(this,Mt().then((function(){var r=t||lr(),i=xa(e,r);if(!(r=$a(r)))throw new T("argument-error","Invalid email link!");if(r.tenantId!==n.S())throw new T("tenant-id-mismatch");return n.Ya(i)})))},ud.prototype.render=function(){},ud.prototype.reset=function(){},ud.prototype.getResponse=function(){},ud.prototype.execute=function(){};var hd=null;function fd(e,t){return(t=pd(t))&&e.a[t]||null}function pd(e){return(e=void 0===e?1e12:e)?e.toString():null}function md(e,t){this.g=!1,this.c=t,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=ot(e);var n=this;this.i=function(){n.execute()},this.h?this.execute():ln(this.f,"click",this.i)}function vd(e){if(e.g)throw Error("reCAPTCHA mock was already deleted!")}function gd(){}function yd(){}dd.prototype.render=function(e,t){return this.a[this.b.toString()]=new md(e,t),this.b++},dd.prototype.reset=function(e){var t=fd(this,e);e=pd(e),t&&e&&(t.delete(),delete this.a[e])},dd.prototype.getResponse=function(e){return(e=fd(this,e))?e.getResponse():null},dd.prototype.execute=function(e){(e=fd(this,e))&&e.execute()},md.prototype.getResponse=function(){return vd(this),this.b},md.prototype.execute=function(){vd(this);var e=this;this.a||(this.a=setTimeout((function(){e.b=function(){for(var e=50,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}();var t=e.c.callback,n=e.c["expired-callback"];if(t)try{t(e.b)}catch(e){}e.a=setTimeout((function(){if(e.a=null,e.b=null,n)try{n()}catch(e){}e.h&&e.execute()}),6e4)}),500))},md.prototype.delete=function(){vd(this),this.g=!0,clearTimeout(this.a),this.a=null,dn(this.f,"click",this.i)},Wr(gd,"FACTOR_ID","phone"),yd.prototype.g=function(){return hd||(hd=new dd),Mt(hd)},yd.prototype.c=function(){};var bd=null;function _d(){this.b=l.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var wd=new ye(we,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),kd=new Yr(3e4,6e4);_d.prototype.g=function(e){var t=this;return new _t((function(n,r){var i=setTimeout((function(){r(new T("network-request-failed"))}),kd.get());!l.grecaptcha||e!==t.f&&!t.b?(l[t.a]=function(){if(l.grecaptcha){t.f=e;var a=l.grecaptcha.render;l.grecaptcha.render=function(e,n){return e=a(e,n),t.b++,e},clearTimeout(i),n(l.grecaptcha)}else clearTimeout(i),r(new T("internal-error"));delete l[t.a]},Mt(jo(Te(wd,{onload:t.a,hl:e||""}))).o((function(){clearTimeout(i),r(new T("internal-error","Unable to load external reCAPTCHA dependencies!"))}))):(clearTimeout(i),n(l.grecaptcha))}))},_d.prototype.c=function(){this.b--};var Ed=null;function Sd(e,t,n,r,i,a,o){if(Wr(this,"type","recaptcha"),this.c=this.f=null,this.D=!1,this.u=t,this.g=null,o?(bd||(bd=new yd),o=bd):(Ed||(Ed=new _d),o=Ed),this.m=o,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[Md])throw new T("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[xd],!l.document)throw new T("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!ot(t)||!this.i&&ot(t).hasChildNodes())throw new T("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.s=new Wo(e,a||null,i||null),this.w=r||function(){return null};var s=this;this.l=[];var c=this.a[Td];this.a[Td]=function(e){if($d(s,e),"function"==typeof c)c(e);else if("string"==typeof c){var t=Mr(c,l);"function"==typeof t&&t(e)}};var u=this.a[Cd];this.a[Cd]=function(){if($d(s,null),"function"==typeof u)u();else if("string"==typeof u){var e=Mr(u,l);"function"==typeof e&&e()}}}var Td="callback",Cd="expired-callback",Md="sitekey",xd="size";function $d(e,t){for(var n=0;n<e.l.length;n++)try{e.l[n](t)}catch(e){}}function Ld(e,t){return e.h.push(t),t.ma((function(){G(e.h,t)})),t}function Pd(e){if(e.D)throw new T("internal-error","RecaptchaVerifier instance has been destroyed.")}function Od(e,t,n){var i=!1;try{this.b=n||r.a.app()}catch(e){throw new T("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new T("invalid-api-key");n=this.b.options.apiKey;var a=this,o=null;try{o=this.b.auth().Ea()}catch(e){}try{i=this.b.auth().settings.appVerificationDisabledForTesting}catch(e){}o=r.a.SDK_VERSION?Tr(r.a.SDK_VERSION,o):null,Sd.call(this,n,e,t,(function(){try{var e=a.b.auth().ja()}catch(t){e=null}return e}),o,P(M),i)}function Id(e,t,n,r){e:{n=Array.prototype.slice.call(n);for(var i=0,a=!1,o=0;o<t.length;o++)if(t[o].optional)a=!0;else{if(a)throw new T("internal-error","Argument validator encountered a required argument after an optional argument.");i++}if(a=t.length,n.length<i||a<n.length)r="Expected "+(i==a?1==i?"1 argument":i+" arguments":i+"-"+a+" arguments")+" but got "+n.length+".";else{for(i=0;i<n.length;i++)if(a=t[i].optional&&void 0===n[i],!t[i].K(n[i])&&!a){if(t=t[i],0>i||i>=Ad.length)throw new T("internal-error","Argument validator received an unsupported number of arguments.");n=Ad[i],r=(r?"":n+" argument ")+(t.name?'"'+t.name+'" ':"")+"must be "+t.J+".";break e}r=null}}if(r)throw new T("argument-error",e+" failed: "+r)}(t=Sd.prototype).Ga=function(){var e=this;return this.f?this.f:this.f=Ld(this,Mt().then((function(){if(Lr()&&!yr())return mr();throw new T("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return e.m.g(e.w())})).then((function(t){return e.g=t,Qs(e.s,Ds,{})})).then((function(t){e.a[Md]=t.recaptchaSiteKey})).o((function(t){throw e.f=null,t})))},t.render=function(){Pd(this);var e=this;return Ld(this,this.Ga().then((function(){if(null===e.c){var t=e.u;if(!e.i){var n=ot(t);t=function(e,t,n){var r=arguments,i=document,a=String(r[0]),o=r[1];if(!at&&o&&(o.name||o.type)){if(a=["<",a],o.name&&a.push(' name="',He(o.name),'"'),o.type){a.push(' type="',He(o.type),'"');var s={};ve(s,o),delete s.type,o=s}a.push(">"),a=a.join("")}return a=ht(i,a),o&&("string"==typeof o?a.className=o:Array.isArray(o)?a.className=o.join(" "):st(a,o)),2<r.length&&dt(i,a,r),a}("DIV"),n.appendChild(t)}e.c=e.g.render(t,e.a)}return e.c})))},t.verify=function(){Pd(this);var e=this;return Ld(this,this.render().then((function(t){return new _t((function(n){var r=e.g.getResponse(t);if(r)n(r);else{var i=function(t){t&&(function(e,t){K(e.l,(function(e){return e==t}))}(e,i),n(t))};e.l.push(i),e.i&&e.g.execute(e.c)}}))})))},t.reset=function(){Pd(this),null!==this.c&&this.g.reset(this.c)},t.clear=function(){Pd(this),this.D=!0,this.m.c();for(var e=0;e<this.h.length;e++)this.h[e].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){e=ot(this.u);for(var t;t=e.firstChild;)e.removeChild(t)}},S(Od,Sd);var Ad="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function Dd(e,t){return{name:e||"",J:"a valid string",optional:!!t,K:function(e){return"string"==typeof e}}}function Nd(e,t){return{name:e||"",J:"a boolean",optional:!!t,K:function(e){return"boolean"==typeof e}}}function Rd(e,t){return{name:e||"",J:"a valid object",optional:!!t,K:m}}function Bd(e,t){return{name:e||"",J:"a function",optional:!!t,K:p}}function Yd(e,t){return{name:e||"",J:"null",optional:!!t,K:function(e){return null===e}}}function jd(e){return{name:e?e+"Credential":"credential",J:e?"a valid "+e+" credential":"a valid credential",optional:!1,K:function(t){if(!t)return!1;var n=!e||t.providerId===e;return!(!t.ia||!n)}}}function Fd(e,t){return m(e)&&"string"==typeof e.type&&e.type===t&&p(e.Fa)}function Hd(e){return m(e)&&"string"==typeof e.uid}function Ud(){return{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!=typeof e.type||!p(e.verify))}}}function zd(e,t,n,r){return{name:n||"",J:e.J+" or "+t.J,optional:!!r,K:function(n){return e.K(n)||t.K(n)}}}function Vd(e,t){for(var n in t){var r=t[n].name;e[r]=Gd(r,e[n],t[n].j)}}function qd(e,t){for(var n in t){var r=t[n].name;r!==n&&Object.defineProperty(e,r,{get:k((function(e){return this[e]}),n),set:k((function(e,t,n,r){Id(e,[n],[r],!0),this[t]=r}),r,n,t[n].gb),enumerable:!0})}}function Wd(e,t,n,r){e[t]=Gd(t,n,r)}function Gd(e,t,n){function r(){var e=Array.prototype.slice.call(arguments);return Id(a,n,e),t.apply(this,e)}if(!n)return t;var i,a=function(e){return(e=e.split("."))[e.length-1]}(e);for(i in t)r[i]=t[i];for(i in t.prototype)r.prototype[i]=t.prototype[i];return r}Vd(Xu.prototype,{fb:{name:"applyActionCode",j:[Dd("code")]},Pa:{name:"checkActionCode",j:[Dd("code")]},jb:{name:"confirmPasswordReset",j:[Dd("code"),Dd("newPassword")]},cc:{name:"createUserWithEmailAndPassword",j:[Dd("email"),Dd("password")]},fc:{name:"fetchSignInMethodsForEmail",j:[Dd("email")]},pa:{name:"getRedirectResult",j:[]},zc:{name:"isSignInWithEmailLink",j:[Dd("emailLink")]},Fc:{name:"onAuthStateChanged",j:[zd(Rd(),Bd(),"nextOrObserver"),Bd("opt_error",!0),Bd("opt_completed",!0)]},Gc:{name:"onIdTokenChanged",j:[zd(Rd(),Bd(),"nextOrObserver"),Bd("opt_error",!0),Bd("opt_completed",!0)]},rb:{name:"sendPasswordResetEmail",j:[Dd("email"),zd(Rd("opt_actionCodeSettings",!0),Yd(null,!0),"opt_actionCodeSettings",!0)]},sb:{name:"sendSignInLinkToEmail",j:[Dd("email"),Rd("actionCodeSettings")]},tb:{name:"setPersistence",j:[Dd("persistence")]},Qc:{name:"signInAndRetrieveDataWithCredential",j:[jd()]},vb:{name:"signInAnonymously",j:[]},Ya:{name:"signInWithCredential",j:[jd()]},Rc:{name:"signInWithCustomToken",j:[Dd("token")]},Sc:{name:"signInWithEmailAndPassword",j:[Dd("email"),Dd("password")]},Tc:{name:"signInWithEmailLink",j:[Dd("email"),Dd("emailLink",!0)]},Uc:{name:"signInWithPhoneNumber",j:[Dd("phoneNumber"),Ud()]},Vc:{name:"signInWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Wc:{name:"signInWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},bd:{name:"updateCurrentUser",j:[zd({name:"user",J:"an instance of Firebase User",optional:!1,K:function(e){return!!(e&&e instanceof hu)}},Yd(),"user")]},wb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[Dd(null,!0)]},dd:{name:"useDeviceLanguage",j:[]},fd:{name:"verifyPasswordResetCode",j:[Dd("code")]}}),qd(Xu.prototype,{lc:{name:"languageCode",gb:zd(Dd(),Yd(),"languageCode")},ti:{name:"tenantId",gb:zd(Dd(),Yd(),"tenantId")}}),Xu.Persistence=Wl,Xu.Persistence.LOCAL="local",Xu.Persistence.SESSION="session",Xu.Persistence.NONE="none",Vd(hu.prototype,{delete:{name:"delete",j:[]},mc:{name:"getIdTokenResult",j:[Nd("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[Nd("opt_forceRefresh",!0)]},Ac:{name:"linkAndRetrieveDataWithCredential",j:[jd()]},mb:{name:"linkWithCredential",j:[jd()]},Bc:{name:"linkWithPhoneNumber",j:[Dd("phoneNumber"),Ud()]},Cc:{name:"linkWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Dc:{name:"linkWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Jc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[jd()]},pb:{name:"reauthenticateWithCredential",j:[jd()]},Kc:{name:"reauthenticateWithPhoneNumber",j:[Dd("phoneNumber"),Ud()]},Lc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Mc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},qb:{name:"sendEmailVerification",j:[zd(Rd("opt_actionCodeSettings",!0),Yd(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[Dd(null,!0)]},ad:{name:"unlink",j:[Dd("provider")]},xb:{name:"updateEmail",j:[Dd("email")]},yb:{name:"updatePassword",j:[Dd("password")]},cd:{name:"updatePhoneNumber",j:[jd("phone")]},zb:{name:"updateProfile",j:[Rd("profile")]},Ab:{name:"verifyBeforeUpdateEmail",j:[Dd("email"),zd(Rd("opt_actionCodeSettings",!0),Yd(null,!0),"opt_actionCodeSettings",!0)]}}),Vd(dd.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Vd(ud.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Vd(_t.prototype,{ma:{name:"finally"},o:{name:"catch"},then:{name:"then"}}),qd(zc.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",gb:Nd("appVerificationDisabledForTesting")}}),Vd(Vc.prototype,{confirm:{name:"confirm",j:[Dd("verificationCode")]}}),Wd(oa,"fromJSON",(function(e){e="string"==typeof e?JSON.parse(e):e;for(var t,n=[fa,Ca,Pa,ua],r=0;r<n.length;r++)if(t=n[r](e))return t;return null}),[zd(Dd(),Rd(),"json")]),Wd(Ma,"credential",(function(e,t){return new Ta(e,t)}),[Dd("email"),Dd("password")]),Vd(Ta.prototype,{v:{name:"toJSON",j:[Dd(null,!0)]}}),Vd(ga.prototype,{Aa:{name:"addScope",j:[Dd("scope")]},Ia:{name:"setCustomParameters",j:[Rd("customOAuthParameters")]}}),Wd(ga,"credential",ya,[zd(Dd(),Rd(),"token")]),Wd(Ma,"credentialWithLink",xa,[Dd("email"),Dd("emailLink")]),Vd(ba.prototype,{Aa:{name:"addScope",j:[Dd("scope")]},Ia:{name:"setCustomParameters",j:[Rd("customOAuthParameters")]}}),Wd(ba,"credential",_a,[zd(Dd(),Rd(),"token")]),Vd(wa.prototype,{Aa:{name:"addScope",j:[Dd("scope")]},Ia:{name:"setCustomParameters",j:[Rd("customOAuthParameters")]}}),Wd(wa,"credential",ka,[zd(Dd(),zd(Rd(),Yd()),"idToken"),zd(Dd(),Yd(),"accessToken",!0)]),Vd(Ea.prototype,{Ia:{name:"setCustomParameters",j:[Rd("customOAuthParameters")]}}),Wd(Ea,"credential",Sa,[zd(Dd(),Rd(),"token"),Dd("secret",!0)]),Vd(va.prototype,{Aa:{name:"addScope",j:[Dd("scope")]},credential:{name:"credential",j:[zd(Dd(),zd(Rd(),Yd()),"optionsOrIdToken"),zd(Dd(),Yd(),"accessToken",!0)]},Ia:{name:"setCustomParameters",j:[Rd("customOAuthParameters")]}}),Vd(da.prototype,{v:{name:"toJSON",j:[Dd(null,!0)]}}),Vd(la.prototype,{v:{name:"toJSON",j:[Dd(null,!0)]}}),Wd(Ia,"credential",Aa,[Dd("verificationId"),Dd("verificationCode")]),Vd(Ia.prototype,{cb:{name:"verifyPhoneNumber",j:[zd(Dd(),{name:"phoneInfoOptions",J:"valid phone info options",optional:!1,K:function(e){return!!e&&(e.session&&e.phoneNumber?Fd(e.session,ia)&&"string"==typeof e.phoneNumber:e.session&&e.multiFactorHint?Fd(e.session,aa)&&Hd(e.multiFactorHint):e.session&&e.multiFactorUid?Fd(e.session,aa)&&"string"==typeof e.multiFactorUid:!!e.phoneNumber&&"string"==typeof e.phoneNumber)}},"phoneInfoOptions"),Ud()]}}),Vd(La.prototype,{v:{name:"toJSON",j:[Dd(null,!0)]}}),Vd(T.prototype,{toJSON:{name:"toJSON",j:[Dd(null,!0)]}}),Vd(Ua.prototype,{toJSON:{name:"toJSON",j:[Dd(null,!0)]}}),Vd(Ha.prototype,{toJSON:{name:"toJSON",j:[Dd(null,!0)]}}),Vd(Xc.prototype,{toJSON:{name:"toJSON",j:[Dd(null,!0)]}}),Vd(Gc.prototype,{Pc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(e){return!!e&&!!e.ob}}]}}),Vd(ru.prototype,{Ob:{name:"getSession",j:[]},dc:{name:"enroll",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(e){return!!e&&!!e.ob}},Dd("displayName",!0)]},$c:{name:"unenroll",j:[zd({name:"multiFactorInfo",J:"a valid multiFactorInfo",optional:!1,K:Hd},Dd(),"multiFactorInfoIdentifier")]}}),Vd(Od.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),Wd(yi,"parseLink",Ci,[Dd("link")]),Wd(gd,"assertion",(function(e){return new tu(e)}),[jd("phone")]),function(){if(void 0===r.a||!r.a.INTERNAL||!r.a.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var e={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:oi,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:ai,VERIFY_AND_CHANGE_EMAIL:si,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:Xu,AuthCredential:oa,Error:T};Wd(e,"EmailAuthProvider",Ma,[]),Wd(e,"FacebookAuthProvider",ga,[]),Wd(e,"GithubAuthProvider",ba,[]),Wd(e,"GoogleAuthProvider",wa,[]),Wd(e,"TwitterAuthProvider",Ea,[]),Wd(e,"OAuthProvider",va,[Dd("providerId")]),Wd(e,"SAMLAuthProvider",ma,[Dd("providerId")]),Wd(e,"PhoneAuthProvider",Ia,[{name:"auth",J:"an instance of Firebase Auth",optional:!0,K:function(e){return!!(e&&e instanceof Xu)}}]),Wd(e,"RecaptchaVerifier",Od,[zd(Dd(),{name:"",J:"an HTML element",optional:!1,K:function(e){return!!(e&&e instanceof Element)}},"recaptchaContainer"),Rd("recaptchaParameters",!0),{name:"app",J:"an instance of Firebase App",optional:!0,K:function(e){return!!(e&&e instanceof r.a.app.App)}}]),Wd(e,"ActionCodeURL",yi,[]),Wd(e,"PhoneMultiFactorGenerator",gd,[]),r.a.INTERNAL.registerComponent({name:"auth",instanceFactory:function(e){return new Xu(e=e.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:e,instantiationMode:"LAZY",type:"PUBLIC"}),r.a.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(e){return{getUid:w((e=e.getProvider("auth").getImmediate()).getUid,e),getToken:w(e.kc,e),addAuthTokenListener:w(e.bc,e),removeAuthTokenListener:w(e.Nc,e)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),r.a.registerVersion("@firebase/auth","0.14.4"),r.a.INTERNAL.extendNamespace({User:hu})}()}).apply(void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})}.call(this,n(22))},function(e,t,n){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=(i=n(17))&&"object"==typeof i&&"default"in i?i.default:i,s=n(5),l=n(28),c=n(37),u=n(26),d=function(){function e(e){this.domStorage_=e,this.prefix_="firebase:"}return e.prototype.set=function(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),l.stringify(t))},e.prototype.get=function(e){var t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:l.jsonEval(t)},e.prototype.remove=function(e){this.domStorage_.removeItem(this.prefixedName_(e))},e.prototype.prefixedName_=function(e){return this.prefix_+e},e.prototype.toString=function(){return this.domStorage_.toString()},e}(),h=function(){function e(){this.cache_={},this.isInMemoryStorage=!0}return e.prototype.set=function(e,t){null==t?delete this.cache_[e]:this.cache_[e]=t},e.prototype.get=function(e){return l.contains(this.cache_,e)?this.cache_[e]:null},e.prototype.remove=function(e){delete this.cache_[e]},e}(),f=function(e){try{if("undefined"!=typeof window&&void 0!==window[e]){var t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new d(t)}}catch(e){}return new h},p=f("localStorage"),m=f("sessionStorage"),v=new c.Logger("@firebase/database"),g=(a=1,function(){return a++}),y=function(e){var t=l.stringToByteArray(e),n=new l.Sha1;n.update(t);var r=n.digest();return l.base64.encodeByteArray(r)},b=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=0;r<e.length;r++){var i=e[r];Array.isArray(i)||i&&"object"==typeof i&&"number"==typeof i.length?n+=b.apply(null,i):n+="object"==typeof i?l.stringify(i):i,n+=" "}return n},_=null,w=!0,k=function(e,t){l.assert(!t||!0===e||!1===e,"Can't turn on custom loggers persistently."),!0===e?(v.logLevel=c.LogLevel.VERBOSE,_=v.log.bind(v),t&&m.set("logging_enabled",!0)):"function"==typeof e?_=e:(_=null,m.remove("logging_enabled"))},E=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!0===w&&(w=!1,null===_&&!0===m.get("logging_enabled")&&k(!0)),_){var n=b.apply(null,e);_(n)}},S=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];E.apply(void 0,s.__spread([e],t))}},T=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE INTERNAL ERROR: "+b.apply(void 0,s.__spread(e));v.error(n)},C=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE FATAL ERROR: "+b.apply(void 0,s.__spread(e));throw v.error(n),new Error(n)},M=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE WARNING: "+b.apply(void 0,s.__spread(e));v.warn(n)},x=function(e){return"number"==typeof e&&(e!=e||e===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY)},$="[MIN_NAME]",L="[MAX_NAME]",P=function(e,t){if(e===t)return 0;if(e===$||t===L)return-1;if(t===$||e===L)return 1;var n=Y(e),r=Y(t);return null!==n?null!==r?n-r==0?e.length-t.length:n-r:-1:null!==r?1:e<t?-1:1},O=function(e,t){return e===t?0:e<t?-1:1},I=function(e,t){if(t&&e in t)return t[e];throw new Error("Missing required key ("+e+") in object: "+l.stringify(t))},A=function(e){if("object"!=typeof e||null===e)return l.stringify(e);var t=[];for(var n in e)t.push(n);t.sort();for(var r="{",i=0;i<t.length;i++)0!==i&&(r+=","),r+=l.stringify(t[i]),r+=":",r+=A(e[t[i]]);return r+="}"},D=function(e,t){var n=e.length;if(n<=t)return[e];for(var r=[],i=0;i<n;i+=t)i+t>n?r.push(e.substring(i,n)):r.push(e.substring(i,i+t));return r};function N(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}var R=function(e){l.assert(!x(e),"Invalid JSON number");var t,n,r,i,a;0===e?(n=0,r=0,t=1/e==-1/0?1:0):(t=e<0,(e=Math.abs(e))>=Math.pow(2,-1022)?(n=(i=Math.min(Math.floor(Math.log(e)/Math.LN2),1023))+1023,r=Math.round(e*Math.pow(2,52-i)-Math.pow(2,52))):(n=0,r=Math.round(e/Math.pow(2,-1074))));var o=[];for(a=52;a;a-=1)o.push(r%2?1:0),r=Math.floor(r/2);for(a=11;a;a-=1)o.push(n%2?1:0),n=Math.floor(n/2);o.push(t?1:0),o.reverse();var s=o.join(""),c="";for(a=0;a<64;a+=8){var u=parseInt(s.substr(a,8),2).toString(16);1===u.length&&(u="0"+u),c+=u}return c.toLowerCase()},B=new RegExp("^-?(0*)\\d{1,10}$"),Y=function(e){if(B.test(e)){var t=Number(e);if(t>=-2147483648&&t<=2147483647)return t}return null},j=function(e){try{e()}catch(e){setTimeout((function(){var t=e.stack||"";throw M("Exception was thrown by user callback.",t),e}),Math.floor(0))}},F=function(e,t){var n=setTimeout(e,t);return"object"==typeof n&&n.unref&&n.unref(),n},H=function(){function e(e,t){if(void 0===t){this.pieces_=e.split("/");for(var n=0,r=0;r<this.pieces_.length;r++)this.pieces_[r].length>0&&(this.pieces_[n]=this.pieces_[r],n++);this.pieces_.length=n,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}return Object.defineProperty(e,"Empty",{get:function(){return new e("")},enumerable:!0,configurable:!0}),e.prototype.getFront=function(){return this.pieceNum_>=this.pieces_.length?null:this.pieces_[this.pieceNum_]},e.prototype.getLength=function(){return this.pieces_.length-this.pieceNum_},e.prototype.popFront=function(){var t=this.pieceNum_;return t<this.pieces_.length&&t++,new e(this.pieces_,t)},e.prototype.getBack=function(){return this.pieceNum_<this.pieces_.length?this.pieces_[this.pieces_.length-1]:null},e.prototype.toString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+this.pieces_[t]);return e||"/"},e.prototype.toUrlEncodedString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+encodeURIComponent(String(this.pieces_[t])));return e||"/"},e.prototype.slice=function(e){return void 0===e&&(e=0),this.pieces_.slice(this.pieceNum_+e)},e.prototype.parent=function(){if(this.pieceNum_>=this.pieces_.length)return null;for(var t=[],n=this.pieceNum_;n<this.pieces_.length-1;n++)t.push(this.pieces_[n]);return new e(t,0)},e.prototype.child=function(t){for(var n=[],r=this.pieceNum_;r<this.pieces_.length;r++)n.push(this.pieces_[r]);if(t instanceof e)for(r=t.pieceNum_;r<t.pieces_.length;r++)n.push(t.pieces_[r]);else{var i=t.split("/");for(r=0;r<i.length;r++)i[r].length>0&&n.push(i[r])}return new e(n,0)},e.prototype.isEmpty=function(){return this.pieceNum_>=this.pieces_.length},e.relativePath=function(t,n){var r=t.getFront(),i=n.getFront();if(null===r)return n;if(r===i)return e.relativePath(t.popFront(),n.popFront());throw new Error("INTERNAL ERROR: innerPath ("+n+") is not within outerPath ("+t+")")},e.comparePaths=function(e,t){for(var n=e.slice(),r=t.slice(),i=0;i<n.length&&i<r.length;i++){var a=P(n[i],r[i]);if(0!==a)return a}return n.length===r.length?0:n.length<r.length?-1:1},e.prototype.equals=function(e){if(this.getLength()!==e.getLength())return!1;for(var t=this.pieceNum_,n=e.pieceNum_;t<=this.pieces_.length;t++,n++)if(this.pieces_[t]!==e.pieces_[n])return!1;return!0},e.prototype.contains=function(e){var t=this.pieceNum_,n=e.pieceNum_;if(this.getLength()>e.getLength())return!1;for(;t<this.pieces_.length;){if(this.pieces_[t]!==e.pieces_[n])return!1;++t,++n}return!0},e}(),U=function(){function e(e,t){this.errorPrefix_=t,this.parts_=e.slice(),this.byteLength_=Math.max(1,this.parts_.length);for(var n=0;n<this.parts_.length;n++)this.byteLength_+=l.stringLength(this.parts_[n]);this.checkValid_()}return Object.defineProperty(e,"MAX_PATH_DEPTH",{get:function(){return 32},enumerable:!0,configurable:!0}),Object.defineProperty(e,"MAX_PATH_LENGTH_BYTES",{get:function(){return 768},enumerable:!0,configurable:!0}),e.prototype.push=function(e){this.parts_.length>0&&(this.byteLength_+=1),this.parts_.push(e),this.byteLength_+=l.stringLength(e),this.checkValid_()},e.prototype.pop=function(){var e=this.parts_.pop();this.byteLength_-=l.stringLength(e),this.parts_.length>0&&(this.byteLength_-=1)},e.prototype.checkValid_=function(){if(this.byteLength_>e.MAX_PATH_LENGTH_BYTES)throw new Error(this.errorPrefix_+"has a key path longer than "+e.MAX_PATH_LENGTH_BYTES+" bytes ("+this.byteLength_+").");if(this.parts_.length>e.MAX_PATH_DEPTH)throw new Error(this.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+e.MAX_PATH_DEPTH+") or object contains a cycle "+this.toErrorString())},e.prototype.toErrorString=function(){return 0===this.parts_.length?"":"in property '"+this.parts_.join(".")+"'"},e}(),z=function(){function e(e,t,n,r,i,a){void 0===i&&(i=""),void 0===a&&(a=!1),this.secure=t,this.namespace=n,this.webSocketOnly=r,this.persistenceKey=i,this.includeNamespaceInQueryParams=a,this.host=e.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.internalHost=p.get("host:"+e)||this.host}return e.prototype.needsQueryParam=function(){return this.host!==this.internalHost||this.isCustomHost()||this.includeNamespaceInQueryParams},e.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},e.prototype.isDemoHost=function(){return"firebaseio-demo.com"===this.domain},e.prototype.isCustomHost=function(){return"firebaseio.com"!==this.domain&&"firebaseio-demo.com"!==this.domain},e.prototype.updateHost=function(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&p.set("host:"+this.host,this.internalHost))},e.prototype.connectionURL=function(e,t){var n;if(l.assert("string"==typeof e,"typeof type must == string"),l.assert("object"==typeof t,"typeof params must == object"),"websocket"===e)n=(this.secure?"wss://":"ws://")+this.internalHost+"/.ws?";else{if("long_polling"!==e)throw new Error("Unknown connection type: "+e);n=(this.secure?"https://":"http://")+this.internalHost+"/.lp?"}this.needsQueryParam()&&(t.ns=this.namespace);var r=[];return N(t,(function(e,t){r.push(e+"="+t)})),n+r.join("&")},e.prototype.toString=function(){var e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e},e.prototype.toURLString=function(){return(this.secure?"https://":"http://")+this.host},e}();var V,q,W,G,K,J=function(e){var t=X(e),n=t.namespace;"firebase"===t.domain&&C(t.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),n&&"undefined"!==n||"localhost"===t.domain||C("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),t.secure||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&M("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().");var r="ws"===t.scheme||"wss"===t.scheme;return{repoInfo:new z(t.host,t.secure,n,r,"",n!==t.subdomain),path:new H(t.pathString)}},X=function(e){var t="",n="",r="",i="",a="",o=!0,l="https",c=443;if("string"==typeof e){var u=e.indexOf("//");u>=0&&(l=e.substring(0,u-1),e=e.substring(u+2));var d=e.indexOf("/");-1===d&&(d=e.length);var h=e.indexOf("?");-1===h&&(h=e.length),t=e.substring(0,Math.min(d,h)),d<h&&(i=function(e){for(var t="",n=e.split("/"),r=0;r<n.length;r++)if(n[r].length>0){var i=n[r];try{i=decodeURIComponent(i.replace(/\+/g," "))}catch(e){}t+="/"+i}return t}(e.substring(d,h)));var f=function(e){var t,n,r={};"?"===e.charAt(0)&&(e=e.substring(1));try{for(var i=s.__values(e.split("&")),a=i.next();!a.done;a=i.next()){var o=a.value;if(0!==o.length){var l=o.split("=");2===l.length?r[decodeURIComponent(l[0])]=decodeURIComponent(l[1]):M("Invalid query segment '"+o+"' in query '"+e+"'")}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(e.substring(Math.min(e.length,h)));(u=t.indexOf(":"))>=0?(o="https"===l||"wss"===l,c=parseInt(t.substring(u+1),10)):u=e.length;var p=t.split(".");3===p.length?(n=p[1],a=r=p[0].toLowerCase()):2===p.length?n=p[0]:"localhost"===p[0].slice(0,u).toLowerCase()&&(n="localhost"),"ns"in f&&(a=f.ns)}return{host:t,port:c,domain:n,subdomain:r,secure:o,scheme:l,pathString:i,namespace:a}},Q=/[\[\].#$\/\u0000-\u001F\u007F]/,Z=/[\[\].#$\u0000-\u001F\u007F]/,ee=function(e){return"string"==typeof e&&0!==e.length&&!Q.test(e)},te=function(e){return"string"==typeof e&&0!==e.length&&!Z.test(e)},ne=function(e){return null===e||"string"==typeof e||"number"==typeof e&&!x(e)||e&&"object"==typeof e&&l.contains(e,".sv")},re=function(e,t,n,r,i){i&&void 0===n||ie(l.errorPrefix(e,t,i),n,r)},ie=function(e,t,n){var r=n instanceof H?new U(n,e):n;if(void 0===t)throw new Error(e+"contains undefined "+r.toErrorString());if("function"==typeof t)throw new Error(e+"contains a function "+r.toErrorString()+" with contents = "+t.toString());if(x(t))throw new Error(e+"contains "+t.toString()+" "+r.toErrorString());if("string"==typeof t&&t.length>10485760/3&&l.stringLength(t)>10485760)throw new Error(e+"contains a string greater than 10485760 utf8 bytes "+r.toErrorString()+" ('"+t.substring(0,50)+"...')");if(t&&"object"==typeof t){var i=!1,a=!1;if(N(t,(function(t,n){if(".value"===t)i=!0;else if(".priority"!==t&&".sv"!==t&&(a=!0,!ee(t)))throw new Error(e+" contains an invalid key ("+t+") "+r.toErrorString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');r.push(t),ie(e,n,r),r.pop()})),i&&a)throw new Error(e+' contains ".value" child '+r.toErrorString()+" in addition to actual children.")}},ae=function(e,t,n,r,i){if(!i||void 0!==n){var a=l.errorPrefix(e,t,i);if(!n||"object"!=typeof n||Array.isArray(n))throw new Error(a+" must be an object containing the children to replace.");var o=[];N(n,(function(e,t){var n=new H(e);if(ie(a,t,r.child(n)),".priority"===n.getBack()&&!ne(t))throw new Error(a+"contains an invalid value for '"+n.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");o.push(n)})),function(e,t){var n,r;for(n=0;n<t.length;n++)for(var i=(r=t[n]).slice(),a=0;a<i.length;a++)if(".priority"===i[a]&&a===i.length-1);else if(!ee(i[a]))throw new Error(e+"contains an invalid key ("+i[a]+") in path "+r.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');t.sort(H.comparePaths);var o=null;for(n=0;n<t.length;n++){if(r=t[n],null!==o&&o.contains(r))throw new Error(e+"contains a path "+o.toString()+" that is ancestor of another path "+r.toString());o=r}}(a,o)}},oe=function(e,t,n,r){if(!r||void 0!==n){if(x(n))throw new Error(l.errorPrefix(e,t,r)+"is "+n.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!ne(n))throw new Error(l.errorPrefix(e,t,r)+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},se=function(e,t,n,r){if(!r||void 0!==n)switch(n){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error(l.errorPrefix(e,t,r)+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},le=function(e,t,n,r){if(!(r&&void 0===n||ee(n)))throw new Error(l.errorPrefix(e,t,r)+'was an invalid key = "'+n+'". Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},ce=function(e,t,n,r){if(!(r&&void 0===n||te(n)))throw new Error(l.errorPrefix(e,t,r)+'was an invalid path = "'+n+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},ue=function(e,t,n,r){n&&(n=n.replace(/^\/*\.info(\/|$)/,"/")),ce(e,t,n,r)},de=function(e,t){if(".info"===t.getFront())throw new Error(e+" failed = Can't modify data under /.info/")},he=function(e,t,n){var r=n.path.toString();if("string"!=typeof n.repoInfo.host||0===n.repoInfo.host.length||!ee(n.repoInfo.namespace)&&"localhost"!==n.repoInfo.host.split(":")[0]||0!==r.length&&!function(e){return e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),te(e)}(r))throw new Error(l.errorPrefix(e,t,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')},fe=function(e,t,n,r){if((!r||void 0!==n)&&"boolean"!=typeof n)throw new Error(l.errorPrefix(e,t,r)+"must be a boolean.")},pe=function(){function e(e,t){this.repo_=e,this.path_=t}return e.prototype.cancel=function(e){l.validateArgCount("OnDisconnect.cancel",0,1,arguments.length),l.validateCallback("OnDisconnect.cancel",1,e,!0);var t=new l.Deferred;return this.repo_.onDisconnectCancel(this.path_,t.wrapCallback(e)),t.promise},e.prototype.remove=function(e){l.validateArgCount("OnDisconnect.remove",0,1,arguments.length),de("OnDisconnect.remove",this.path_),l.validateCallback("OnDisconnect.remove",1,e,!0);var t=new l.Deferred;return this.repo_.onDisconnectSet(this.path_,null,t.wrapCallback(e)),t.promise},e.prototype.set=function(e,t){l.validateArgCount("OnDisconnect.set",1,2,arguments.length),de("OnDisconnect.set",this.path_),re("OnDisconnect.set",1,e,this.path_,!1),l.validateCallback("OnDisconnect.set",2,t,!0);var n=new l.Deferred;return this.repo_.onDisconnectSet(this.path_,e,n.wrapCallback(t)),n.promise},e.prototype.setWithPriority=function(e,t,n){l.validateArgCount("OnDisconnect.setWithPriority",2,3,arguments.length),de("OnDisconnect.setWithPriority",this.path_),re("OnDisconnect.setWithPriority",1,e,this.path_,!1),oe("OnDisconnect.setWithPriority",2,t,!1),l.validateCallback("OnDisconnect.setWithPriority",3,n,!0);var r=new l.Deferred;return this.repo_.onDisconnectSetWithPriority(this.path_,e,t,r.wrapCallback(n)),r.promise},e.prototype.update=function(e,t){if(l.validateArgCount("OnDisconnect.update",1,2,arguments.length),de("OnDisconnect.update",this.path_),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];e=n,M("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}ae("OnDisconnect.update",1,e,this.path_,!1),l.validateCallback("OnDisconnect.update",2,t,!0);var i=new l.Deferred;return this.repo_.onDisconnectUpdate(this.path_,e,i.wrapCallback(t)),i.promise},e}(),me=function(){function e(e,t){this.committed=e,this.snapshot=t}return e.prototype.toJSON=function(){return l.validateArgCount("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}},e}(),ve=(V="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",q=0,W=[],function(e){var t,n=e===q;q=e;var r=new Array(8);for(t=7;t>=0;t--)r[t]=V.charAt(e%64),e=Math.floor(e/64);l.assert(0===e,"Cannot push at time == 0");var i=r.join("");if(n){for(t=11;t>=0&&63===W[t];t--)W[t]=0;W[t]++}else for(t=0;t<12;t++)W[t]=Math.floor(64*Math.random());for(t=0;t<12;t++)i+=V.charAt(W[t]);return l.assert(20===i.length,"nextPushId: Length should be 20."),i}),ge=function(){function e(e,t){this.name=e,this.node=t}return e.Wrap=function(t,n){return new e(t,n)},e}(),ye=function(){function e(){}return e.prototype.getCompare=function(){return this.compare.bind(this)},e.prototype.indexedValueChanged=function(e,t){var n=new ge($,e),r=new ge($,t);return 0!==this.compare(n,r)},e.prototype.minPost=function(){return ge.MIN},e}(),be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(t,e),Object.defineProperty(t,"__EMPTY_NODE",{get:function(){return G},set:function(e){G=e},enumerable:!0,configurable:!0}),t.prototype.compare=function(e,t){return P(e.name,t.name)},t.prototype.isDefinedOn=function(e){throw l.assertionError("KeyIndex.isDefinedOn not expected to be called.")},t.prototype.indexedValueChanged=function(e,t){return!1},t.prototype.minPost=function(){return ge.MIN},t.prototype.maxPost=function(){return new ge(L,G)},t.prototype.makePost=function(e,t){return l.assert("string"==typeof e,"KeyIndex indexValue must always be a string."),new ge(e,G)},t.prototype.toString=function(){return".key"},t}(ye),_e=new be;var we,ke,Ee,Se=function(e){return"number"==typeof e?"number:"+R(e):"string:"+e},Te=function(e){if(e.isLeafNode()){var t=e.val();l.assert("string"==typeof t||"number"==typeof t||"object"==typeof t&&l.contains(t,".sv"),"Priority must be a string or number.")}else l.assert(e===K||e.isEmpty(),"priority of unexpected type.");l.assert(e===K||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},Ce=function(){function e(t,n){void 0===n&&(n=e.__childrenNodeConstructor.EMPTY_NODE),this.value_=t,this.priorityNode_=n,this.lazyHash_=null,l.assert(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),Te(this.priorityNode_)}return Object.defineProperty(e,"__childrenNodeConstructor",{get:function(){return we},set:function(e){we=e},enumerable:!0,configurable:!0}),e.prototype.isLeafNode=function(){return!0},e.prototype.getPriority=function(){return this.priorityNode_},e.prototype.updatePriority=function(t){return new e(this.value_,t)},e.prototype.getImmediateChild=function(t){return".priority"===t?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.getChild=function(t){return t.isEmpty()?this:".priority"===t.getFront()?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.hasChild=function(){return!1},e.prototype.getPredecessorChildName=function(e,t){return null},e.prototype.updateImmediateChild=function(t,n){return".priority"===t?this.updatePriority(n):n.isEmpty()&&".priority"!==t?this:e.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(t,n).updatePriority(this.priorityNode_)},e.prototype.updateChild=function(t,n){var r=t.getFront();return null===r?n:n.isEmpty()&&".priority"!==r?this:(l.assert(".priority"!==r||1===t.getLength(),".priority must be the last token in a path"),this.updateImmediateChild(r,e.__childrenNodeConstructor.EMPTY_NODE.updateChild(t.popFront(),n)))},e.prototype.isEmpty=function(){return!1},e.prototype.numChildren=function(){return 0},e.prototype.forEachChild=function(e,t){return!1},e.prototype.val=function(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.priorityNode_.isEmpty()||(e+="priority:"+Se(this.priorityNode_.val())+":");var t=typeof this.value_;e+=t+":",e+="number"===t?R(this.value_):this.value_,this.lazyHash_=y(e)}return this.lazyHash_},e.prototype.getValue=function(){return this.value_},e.prototype.compareTo=function(t){return t===e.__childrenNodeConstructor.EMPTY_NODE?1:t instanceof e.__childrenNodeConstructor?-1:(l.assert(t.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(t))},e.prototype.compareToLeafNode_=function(t){var n=typeof t.value_,r=typeof this.value_,i=e.VALUE_TYPE_ORDER.indexOf(n),a=e.VALUE_TYPE_ORDER.indexOf(r);return l.assert(i>=0,"Unknown leaf type: "+n),l.assert(a>=0,"Unknown leaf type: "+r),i===a?"object"===r?0:this.value_<t.value_?-1:this.value_===t.value_?0:1:a-i},e.prototype.withIndex=function(){return this},e.prototype.isIndexed=function(){return!0},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode()){var t=e;return this.value_===t.value_&&this.priorityNode_.equals(t.priorityNode_)}return!1},e.VALUE_TYPE_ORDER=["object","boolean","number","string"],e}();var Me,xe,$e=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(t,e),t.prototype.compare=function(e,t){var n=e.node.getPriority(),r=t.node.getPriority(),i=n.compareTo(r);return 0===i?P(e.name,t.name):i},t.prototype.isDefinedOn=function(e){return!e.getPriority().isEmpty()},t.prototype.indexedValueChanged=function(e,t){return!e.getPriority().equals(t.getPriority())},t.prototype.minPost=function(){return ge.MIN},t.prototype.maxPost=function(){return new ge(L,new Ce("[PRIORITY-POST]",Ee))},t.prototype.makePost=function(e,t){var n=ke(e);return new ge(t,new Ce("[PRIORITY-POST]",n))},t.prototype.toString=function(){return".priority"},t}(ye)),Le=function(){function e(e,t,n,r,i){void 0===i&&(i=null),this.isReverse_=r,this.resultGenerator_=i,this.nodeStack_=[];for(var a=1;!e.isEmpty();)if(e=e,a=t?n(e.key,t):1,r&&(a*=-1),a<0)e=this.isReverse_?e.left:e.right;else{if(0===a){this.nodeStack_.push(e);break}this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}}return e.prototype.getNext=function(){if(0===this.nodeStack_.length)return null;var e,t=this.nodeStack_.pop();if(e=this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value},this.isReverse_)for(t=t.left;!t.isEmpty();)this.nodeStack_.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack_.push(t),t=t.left;return e},e.prototype.hasNext=function(){return this.nodeStack_.length>0},e.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}},e}(),Pe=function(){function e(t,n,r,i,a){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:Ie.EMPTY_NODE,this.right=null!=a?a:Ie.EMPTY_NODE}return e.prototype.copy=function(t,n,r,i,a){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=a?a:this.right)},e.prototype.count=function(){return this.left.count()+1+this.right.count()},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||!!e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},e.prototype.minKey=function(){return this.min_().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var r=this,i=n(e,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n))).fixUp_()},e.prototype.removeMin_=function(){if(this.left.isEmpty())return Ie.EMPTY_NODE;var e=this;return e.left.isRed_()||e.left.left.isRed_()||(e=e.moveRedLeft_()),(e=e.copy(null,null,null,e.left.removeMin_(),null)).fixUp_()},e.prototype.remove=function(e,t){var n,r;if(t(e,(n=this).key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return Ie.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp_()},e.prototype.isRed_=function(){return this.color},e.prototype.fixUp_=function(){var e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e},e.prototype.moveRedLeft_=function(){var e=this.colorFlip_();return e.right.left.isRed_()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight_())).rotateLeft_()).colorFlip_()),e},e.prototype.moveRedRight_=function(){var e=this.colorFlip_();return e.left.left.isRed_()&&(e=(e=e.rotateRight_()).colorFlip_()),e},e.prototype.rotateLeft_=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight_=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip_=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth_=function(){var e=this.check_();return Math.pow(2,e)<=this.count()+1},e.prototype.check_=function(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");var e=this.left.check_();if(e!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)},e.RED=!0,e.BLACK=!1,e}(),Oe=function(){function e(){}return e.prototype.copy=function(e,t,n,r,i){return this},e.prototype.insert=function(e,t,n){return new Pe(e,t,null)},e.prototype.remove=function(e,t){return this},e.prototype.count=function(){return 0},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.check_=function(){return 0},e.prototype.isRed_=function(){return!1},e}(),Ie=function(){function e(t,n){void 0===n&&(n=e.EMPTY_NODE),this.comparator_=t,this.root_=n}return e.prototype.insert=function(t,n){return new e(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,Pe.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,Pe.BLACK,null,null))},e.prototype.get=function(e){for(var t,n=this.root_;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key)))return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null},e.prototype.getPredecessorKey=function(e){for(var t,n=this.root_,r=null;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key))){if(n.left.isEmpty())return r?r.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}t<0?n=n.left:t>0&&(r=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")},e.prototype.isEmpty=function(){return this.root_.isEmpty()},e.prototype.count=function(){return this.root_.count()},e.prototype.minKey=function(){return this.root_.minKey()},e.prototype.maxKey=function(){return this.root_.maxKey()},e.prototype.inorderTraversal=function(e){return this.root_.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.root_.reverseTraversal(e)},e.prototype.getIterator=function(e){return new Le(this.root_,null,this.comparator_,!1,e)},e.prototype.getIteratorFrom=function(e,t){return new Le(this.root_,e,this.comparator_,!1,t)},e.prototype.getReverseIteratorFrom=function(e,t){return new Le(this.root_,e,this.comparator_,!0,t)},e.prototype.getReverseIterator=function(e){return new Le(this.root_,null,this.comparator_,!0,e)},e.EMPTY_NODE=new Oe,e}(),Ae=Math.log(2),De=function(){function e(e){var t;this.count=(t=e+1,parseInt(Math.log(t)/Ae,10)),this.current_=this.count-1;var n,r=(n=this.count,parseInt(Array(n+1).join("1"),2));this.bits_=e+1&r}return e.prototype.nextBitIsOne=function(){var e=!(this.bits_&1<<this.current_);return this.current_--,e},e}(),Ne=function(e,t,n,r){e.sort(t);var i=function(t,r){var a,o,s=r-t;if(0===s)return null;if(1===s)return a=e[t],o=n?n(a):a,new Pe(o,a.node,Pe.BLACK,null,null);var l=parseInt(s/2,10)+t,c=i(t,l),u=i(l+1,r);return a=e[l],o=n?n(a):a,new Pe(o,a.node,Pe.BLACK,c,u)},a=function(t){for(var r=null,a=null,o=e.length,s=function(t,r){var a=o-t,s=o;o-=t;var c=i(a+1,s),u=e[a],d=n?n(u):u;l(new Pe(d,u.node,r,null,c))},l=function(e){r?(r.left=e,r=e):(a=e,r=e)},c=0;c<t.count;++c){var u=t.nextBitIsOne(),d=Math.pow(2,t.count-(c+1));u?s(d,Pe.BLACK):(s(d,Pe.BLACK),s(d,Pe.RED))}return a}(new De(e.length));return new Ie(r||t,a)},Re={},Be=function(){function e(e,t){this.indexes_=e,this.indexSet_=t}return Object.defineProperty(e,"Default",{get:function(){return l.assert(Re&&$e,"ChildrenNode.ts has not been loaded"),Me=Me||new e({".priority":Re},{".priority":$e})},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var t=l.safeGet(this.indexes_,e);if(!t)throw new Error("No index defined for "+e);return t instanceof Ie?t:null},e.prototype.hasIndex=function(e){return l.contains(this.indexSet_,e.toString())},e.prototype.addIndex=function(t,n){l.assert(t!==_e,"KeyIndex always exists and isn't meant to be added to the IndexMap.");for(var r,i=[],a=!1,o=n.getIterator(ge.Wrap),c=o.getNext();c;)a=a||t.isDefinedOn(c.node),i.push(c),c=o.getNext();r=a?Ne(i,t.getCompare()):Re;var u=t.toString(),d=s.__assign({},this.indexSet_);d[u]=t;var h=s.__assign({},this.indexes_);return h[u]=r,new e(h,d)},e.prototype.addToIndexes=function(t,n){var r=this;return new e(l.map(this.indexes_,(function(e,i){var a=l.safeGet(r.indexSet_,i);if(l.assert(a,"Missing index implementation for "+i),e===Re){if(a.isDefinedOn(t.node)){for(var o=[],s=n.getIterator(ge.Wrap),c=s.getNext();c;)c.name!==t.name&&o.push(c),c=s.getNext();return o.push(t),Ne(o,a.getCompare())}return Re}var u=n.get(t.name),d=e;return u&&(d=d.remove(new ge(t.name,u))),d.insert(t,t.node)})),this.indexSet_)},e.prototype.removeFromIndexes=function(t,n){return new e(l.map(this.indexes_,(function(e){if(e===Re)return e;var r=n.get(t.name);return r?e.remove(new ge(t.name,r)):e})),this.indexSet_)},e}();function Ye(e,t){return P(e.name,t.name)}function je(e,t){return P(e,t)}var Fe=function(){function e(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&Te(this.priorityNode_),this.children_.isEmpty()&&l.assert(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return Object.defineProperty(e,"EMPTY_NODE",{get:function(){return xe||(xe=new e(new Ie(je),null,Be.Default))},enumerable:!0,configurable:!0}),e.prototype.isLeafNode=function(){return!1},e.prototype.getPriority=function(){return this.priorityNode_||xe},e.prototype.updatePriority=function(t){return this.children_.isEmpty()?this:new e(this.children_,t,this.indexMap_)},e.prototype.getImmediateChild=function(e){if(".priority"===e)return this.getPriority();var t=this.children_.get(e);return null===t?xe:t},e.prototype.getChild=function(e){var t=e.getFront();return null===t?this:this.getImmediateChild(t).getChild(e.popFront())},e.prototype.hasChild=function(e){return null!==this.children_.get(e)},e.prototype.updateImmediateChild=function(t,n){if(l.assert(n,"We should always be passing snapshot nodes"),".priority"===t)return this.updatePriority(n);var r=new ge(t,n),i=void 0,a=void 0;n.isEmpty()?(i=this.children_.remove(t),a=this.indexMap_.removeFromIndexes(r,this.children_)):(i=this.children_.insert(t,n),a=this.indexMap_.addToIndexes(r,this.children_));var o=i.isEmpty()?xe:this.priorityNode_;return new e(i,o,a)},e.prototype.updateChild=function(e,t){var n=e.getFront();if(null===n)return t;l.assert(".priority"!==e.getFront()||1===e.getLength(),".priority must be the last token in a path");var r=this.getImmediateChild(n).updateChild(e.popFront(),t);return this.updateImmediateChild(n,r)},e.prototype.isEmpty=function(){return this.children_.isEmpty()},e.prototype.numChildren=function(){return this.children_.count()},e.prototype.val=function(t){if(this.isEmpty())return null;var n={},r=0,i=0,a=!0;if(this.forEachChild($e,(function(o,s){n[o]=s.val(t),r++,a&&e.INTEGER_REGEXP_.test(o)?i=Math.max(i,Number(o)):a=!1})),!t&&a&&i<2*r){var o=[];for(var s in n)o[s]=n[s];return o}return t&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.getPriority().isEmpty()||(e+="priority:"+Se(this.getPriority().val())+":"),this.forEachChild($e,(function(t,n){var r=n.hash();""!==r&&(e+=":"+t+":"+r)})),this.lazyHash_=""===e?"":y(e)}return this.lazyHash_},e.prototype.getPredecessorChildName=function(e,t,n){var r=this.resolveIndex_(n);if(r){var i=r.getPredecessorKey(new ge(e,t));return i?i.name:null}return this.children_.getPredecessorKey(e)},e.prototype.getFirstChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.minKey();return n&&n.name}return this.children_.minKey()},e.prototype.getFirstChild=function(e){var t=this.getFirstChildName(e);return t?new ge(t,this.children_.get(t)):null},e.prototype.getLastChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.maxKey();return n&&n.name}return this.children_.maxKey()},e.prototype.getLastChild=function(e){var t=this.getLastChildName(e);return t?new ge(t,this.children_.get(t)):null},e.prototype.forEachChild=function(e,t){var n=this.resolveIndex_(e);return n?n.inorderTraversal((function(e){return t(e.name,e.node)})):this.children_.inorderTraversal(t)},e.prototype.getIterator=function(e){return this.getIteratorFrom(e.minPost(),e)},e.prototype.getIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,(function(e){return e}));for(var r=this.children_.getIteratorFrom(e.name,ge.Wrap),i=r.peek();null!=i&&t.compare(i,e)<0;)r.getNext(),i=r.peek();return r},e.prototype.getReverseIterator=function(e){return this.getReverseIteratorFrom(e.maxPost(),e)},e.prototype.getReverseIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,(function(e){return e}));for(var r=this.children_.getReverseIteratorFrom(e.name,ge.Wrap),i=r.peek();null!=i&&t.compare(i,e)>0;)r.getNext(),i=r.peek();return r},e.prototype.compareTo=function(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===He?-1:0},e.prototype.withIndex=function(t){if(t===_e||this.indexMap_.hasIndex(t))return this;var n=this.indexMap_.addIndex(t,this.children_);return new e(this.children_,this.priorityNode_,n)},e.prototype.isIndexed=function(e){return e===_e||this.indexMap_.hasIndex(e)},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode())return!1;var t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){for(var n=this.getIterator($e),r=t.getIterator($e),i=n.getNext(),a=r.getNext();i&&a;){if(i.name!==a.name||!i.node.equals(a.node))return!1;i=n.getNext(),a=r.getNext()}return null===i&&null===a}return!1}return!1},e.prototype.resolveIndex_=function(e){return e===_e?null:this.indexMap_.get(e.toString())},e.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,e}(),He=new(function(e){function t(){return e.call(this,new Ie(je),Fe.EMPTY_NODE,Be.Default)||this}return s.__extends(t,e),t.prototype.compareTo=function(e){return e===this?0:1},t.prototype.equals=function(e){return e===this},t.prototype.getPriority=function(){return this},t.prototype.getImmediateChild=function(e){return Fe.EMPTY_NODE},t.prototype.isEmpty=function(){return!1},t}(Fe));Object.defineProperties(ge,{MIN:{value:new ge($,Fe.EMPTY_NODE)},MAX:{value:new ge(L,He)}}),be.__EMPTY_NODE=Fe.EMPTY_NODE,Ce.__childrenNodeConstructor=Fe,K=He,function(e){Ee=e}(He);function Ue(e,t){if(void 0===t&&(t=null),null===e)return Fe.EMPTY_NODE;if("object"==typeof e&&".priority"in e&&(t=e[".priority"]),l.assert(null===t||"string"==typeof t||"number"==typeof t||"object"==typeof t&&".sv"in t,"Invalid priority type found: "+typeof t),"object"==typeof e&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!=typeof e||".sv"in e)return new Ce(e,Ue(t));if(e instanceof Array){var n=Fe.EMPTY_NODE;return N(e,(function(t,r){if(l.contains(e,t)&&"."!==t.substring(0,1)){var i=Ue(r);!i.isLeafNode()&&i.isEmpty()||(n=n.updateImmediateChild(t,i))}})),n.updatePriority(Ue(t))}var r=[],i=!1;if(N(e,(function(e,t){if("."!==e.substring(0,1)){var n=Ue(t);n.isEmpty()||(i=i||!n.getPriority().isEmpty(),r.push(new ge(e,n)))}})),0===r.length)return Fe.EMPTY_NODE;var a=Ne(r,Ye,(function(e){return e.name}),je);if(i){var o=Ne(r,$e.getCompare());return new Fe(a,Ue(t),new Be({".priority":o},{".priority":$e}))}return new Fe(a,Ue(t),Be.Default)}!function(e){ke=e}(Ue);var ze,Ve=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(t,e),t.prototype.compare=function(e,t){var n=e.node.compareTo(t.node);return 0===n?P(e.name,t.name):n},t.prototype.isDefinedOn=function(e){return!0},t.prototype.indexedValueChanged=function(e,t){return!e.equals(t)},t.prototype.minPost=function(){return ge.MIN},t.prototype.maxPost=function(){return ge.MAX},t.prototype.makePost=function(e,t){var n=Ue(e);return new ge(t,n)},t.prototype.toString=function(){return".value"},t}(ye)),qe=function(e){function t(t){var n=e.call(this)||this;return n.indexPath_=t,l.assert(!t.isEmpty()&&".priority"!==t.getFront(),"Can't create PathIndex with empty path or .priority key"),n}return s.__extends(t,e),t.prototype.extractChild=function(e){return e.getChild(this.indexPath_)},t.prototype.isDefinedOn=function(e){return!e.getChild(this.indexPath_).isEmpty()},t.prototype.compare=function(e,t){var n=this.extractChild(e.node),r=this.extractChild(t.node),i=n.compareTo(r);return 0===i?P(e.name,t.name):i},t.prototype.makePost=function(e,t){var n=Ue(e),r=Fe.EMPTY_NODE.updateChild(this.indexPath_,n);return new ge(t,r)},t.prototype.maxPost=function(){var e=Fe.EMPTY_NODE.updateChild(this.indexPath_,He);return new ge(L,e)},t.prototype.toString=function(){return this.indexPath_.slice().join("/")},t}(ye),We=function(){function e(e,t,n){this.node_=e,this.ref_=t,this.index_=n}return e.prototype.val=function(){return l.validateArgCount("DataSnapshot.val",0,0,arguments.length),this.node_.val()},e.prototype.exportVal=function(){return l.validateArgCount("DataSnapshot.exportVal",0,0,arguments.length),this.node_.val(!0)},e.prototype.toJSON=function(){return l.validateArgCount("DataSnapshot.toJSON",0,1,arguments.length),this.exportVal()},e.prototype.exists=function(){return l.validateArgCount("DataSnapshot.exists",0,0,arguments.length),!this.node_.isEmpty()},e.prototype.child=function(t){l.validateArgCount("DataSnapshot.child",0,1,arguments.length),t=String(t),ce("DataSnapshot.child",1,t,!1);var n=new H(t),r=this.ref_.child(n);return new e(this.node_.getChild(n),r,$e)},e.prototype.hasChild=function(e){l.validateArgCount("DataSnapshot.hasChild",1,1,arguments.length),ce("DataSnapshot.hasChild",1,e,!1);var t=new H(e);return!this.node_.getChild(t).isEmpty()},e.prototype.getPriority=function(){return l.validateArgCount("DataSnapshot.getPriority",0,0,arguments.length),this.node_.getPriority().val()},e.prototype.forEach=function(t){var n=this;if(l.validateArgCount("DataSnapshot.forEach",1,1,arguments.length),l.validateCallback("DataSnapshot.forEach",1,t,!1),this.node_.isLeafNode())return!1;var r=this.node_;return!!r.forEachChild(this.index_,(function(r,i){return t(new e(i,n.ref_.child(r),$e))}))},e.prototype.hasChildren=function(){return l.validateArgCount("DataSnapshot.hasChildren",0,0,arguments.length),!this.node_.isLeafNode()&&!this.node_.isEmpty()},Object.defineProperty(e.prototype,"key",{get:function(){return this.ref_.getKey()},enumerable:!0,configurable:!0}),e.prototype.numChildren=function(){return l.validateArgCount("DataSnapshot.numChildren",0,0,arguments.length),this.node_.numChildren()},e.prototype.getRef=function(){return l.validateArgCount("DataSnapshot.ref",0,0,arguments.length),this.ref_},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),e}(),Ge=function(){function e(e,t,n,r){this.eventType=e,this.eventRegistration=t,this.snapshot=n,this.prevName=r}return e.prototype.getPath=function(){var e=this.snapshot.getRef();return"value"===this.eventType?e.path:e.getParent().path},e.prototype.getEventType=function(){return this.eventType},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+l.stringify(this.snapshot.exportVal())},e}(),Ke=function(){function e(e,t,n){this.eventRegistration=e,this.error=t,this.path=n}return e.prototype.getPath=function(){return this.path},e.prototype.getEventType=function(){return"cancel"},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.path.toString()+":cancel"},e}(),Je=function(){function e(e,t,n){this.callback_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){return"value"===e},e.prototype.createEvent=function(e,t){var n=t.getQueryParams().getIndex();return new Ge("value",this,new We(e.snapshotNode,t.getRef(),n))},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){l.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callback_;return function(){r.call(t,e.snapshot)}},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new Ke(this,e,t):null},e.prototype.matches=function(t){return t instanceof e&&(!t.callback_||!this.callback_||t.callback_===this.callback_&&t.context_===this.context_)},e.prototype.hasAnyCallback=function(){return null!==this.callback_},e}(),Xe=function(){function e(e,t,n){this.callbacks_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){var t="children_added"===e?"child_added":e;return t="children_removed"===t?"child_removed":t,l.contains(this.callbacks_,t)},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new Ke(this,e,t):null},e.prototype.createEvent=function(e,t){l.assert(null!=e.childName,"Child events should have a childName.");var n=t.getRef().child(e.childName),r=t.getQueryParams().getIndex();return new Ge(e.type,this,new We(e.snapshotNode,n,r),e.prevName)},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){l.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callbacks_[e.eventType];return function(){r.call(t,e.snapshot,e.prevName)}},e.prototype.matches=function(t){var n=this;if(t instanceof e){if(!this.callbacks_||!t.callbacks_)return!0;if(this.context_===t.context_){var r=Object.keys(t.callbacks_),i=Object.keys(this.callbacks_),a=r.length;if(a===i.length){if(1===a){var o=r[0],s=i[0];return!(s!==o||t.callbacks_[o]&&this.callbacks_[s]&&t.callbacks_[o]!==this.callbacks_[s])}return i.every((function(e){return t.callbacks_[e]===n.callbacks_[e]}))}}}return!1},e.prototype.hasAnyCallback=function(){return null!==this.callbacks_},e}(),Qe=function(){function e(e,t,n,r){this.repo=e,this.path=t,this.queryParams_=n,this.orderByCalled_=r}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return l.assert(ze,"Reference.ts has not been loaded"),ze},set:function(e){ze=e},enumerable:!0,configurable:!0}),e.validateQueryEndpoints_=function(e){var t=null,n=null;if(e.hasStart()&&(t=e.getIndexStartValue()),e.hasEnd()&&(n=e.getIndexEndValue()),e.getIndex()===_e){var r="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",i="Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.";if(e.hasStart()){if(e.getIndexStartName()!==$)throw new Error(r);if("string"!=typeof t)throw new Error(i)}if(e.hasEnd()){if(e.getIndexEndName()!==L)throw new Error(r);if("string"!=typeof n)throw new Error(i)}}else if(e.getIndex()===$e){if(null!=t&&!ne(t)||null!=n&&!ne(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), endAt(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(l.assert(e.getIndex()instanceof qe||e.getIndex()===Ve,"unknown index type."),null!=t&&"object"==typeof t||null!=n&&"object"==typeof n)throw new Error("Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.")},e.validateLimit_=function(e){if(e.hasStart()&&e.hasEnd()&&e.hasLimit()&&!e.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.")},e.prototype.validateNoPreviousOrderByCall_=function(e){if(!0===this.orderByCalled_)throw new Error(e+": You can't combine multiple orderBy calls.")},e.prototype.getQueryParams=function(){return this.queryParams_},e.prototype.getRef=function(){return l.validateArgCount("Query.ref",0,0,arguments.length),new e.__referenceConstructor(this.repo,this.path)},e.prototype.on=function(t,n,r,i){l.validateArgCount("Query.on",2,4,arguments.length),se("Query.on",1,t,!1),l.validateCallback("Query.on",2,n,!1);var a=e.getCancelAndContextArgs_("Query.on",r,i);if("value"===t)this.onValueEvent(n,a.cancel,a.context);else{var o={};o[t]=n,this.onChildEvent(o,a.cancel,a.context)}return n},e.prototype.onValueEvent=function(e,t,n){var r=new Je(e,t||null,n||null);this.repo.addEventCallbackForQuery(this,r)},e.prototype.onChildEvent=function(e,t,n){var r=new Xe(e,t,n);this.repo.addEventCallbackForQuery(this,r)},e.prototype.off=function(e,t,n){l.validateArgCount("Query.off",0,3,arguments.length),se("Query.off",1,e,!0),l.validateCallback("Query.off",2,t,!0),l.validateContextObject("Query.off",3,n,!0);var r=null,i=null;if("value"===e){var a=t||null;r=new Je(a,null,n||null)}else e&&(t&&((i={})[e]=t),r=new Xe(i,null,n||null));this.repo.removeEventCallbackForQuery(this,r)},e.prototype.once=function(t,n,r,i){var a=this;l.validateArgCount("Query.once",1,4,arguments.length),se("Query.once",1,t,!1),l.validateCallback("Query.once",2,n,!0);var o=e.getCancelAndContextArgs_("Query.once",r,i),s=!0,c=new l.Deferred;c.promise.catch((function(){}));var u=function(e){s&&(s=!1,a.off(t,u),n&&n.bind(o.context)(e),c.resolve(e))};return this.on(t,u,(function(e){a.off(t,u),o.cancel&&o.cancel.bind(o.context)(e),c.reject(e)})),c.promise},e.prototype.limitToFirst=function(t){if(l.validateArgCount("Query.limitToFirst",1,1,arguments.length),"number"!=typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToFirst: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToFirst(t),this.orderByCalled_)},e.prototype.limitToLast=function(t){if(l.validateArgCount("Query.limitToLast",1,1,arguments.length),"number"!=typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToLast: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToLast(t),this.orderByCalled_)},e.prototype.orderByChild=function(t){if(l.validateArgCount("Query.orderByChild",1,1,arguments.length),"$key"===t)throw new Error('Query.orderByChild: "$key" is invalid. Use Query.orderByKey() instead.');if("$priority"===t)throw new Error('Query.orderByChild: "$priority" is invalid. Use Query.orderByPriority() instead.');if("$value"===t)throw new Error('Query.orderByChild: "$value" is invalid. Use Query.orderByValue() instead.');ce("Query.orderByChild",1,t,!1),this.validateNoPreviousOrderByCall_("Query.orderByChild");var n=new H(t);if(n.isEmpty())throw new Error("Query.orderByChild: cannot pass in empty path. Use Query.orderByValue() instead.");var r=new qe(n),i=this.queryParams_.orderBy(r);return e.validateQueryEndpoints_(i),new e(this.repo,this.path,i,!0)},e.prototype.orderByKey=function(){l.validateArgCount("Query.orderByKey",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByKey");var t=this.queryParams_.orderBy(_e);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByPriority=function(){l.validateArgCount("Query.orderByPriority",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByPriority");var t=this.queryParams_.orderBy($e);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByValue=function(){l.validateArgCount("Query.orderByValue",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByValue");var t=this.queryParams_.orderBy(Ve);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.startAt=function(t,n){void 0===t&&(t=null),l.validateArgCount("Query.startAt",0,2,arguments.length),re("Query.startAt",1,t,this.path,!0),le("Query.startAt",2,n,!0);var r=this.queryParams_.startAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasStart())throw new Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return void 0===t&&(t=null,n=null),new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.endAt=function(t,n){void 0===t&&(t=null),l.validateArgCount("Query.endAt",0,2,arguments.length),re("Query.endAt",1,t,this.path,!0),le("Query.endAt",2,n,!0);var r=this.queryParams_.endAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasEnd())throw new Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.equalTo=function(e,t){if(l.validateArgCount("Query.equalTo",1,2,arguments.length),re("Query.equalTo",1,e,this.path,!1),le("Query.equalTo",2,t,!0),this.queryParams_.hasStart())throw new Error("Query.equalTo: Starting point was already set (by another call to startAt or equalTo).");if(this.queryParams_.hasEnd())throw new Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.startAt(e,t).endAt(e,t)},e.prototype.toString=function(){return l.validateArgCount("Query.toString",0,0,arguments.length),this.repo.toString()+this.path.toUrlEncodedString()},e.prototype.toJSON=function(){return l.validateArgCount("Query.toJSON",0,1,arguments.length),this.toString()},e.prototype.queryObject=function(){return this.queryParams_.getQueryObject()},e.prototype.queryIdentifier=function(){var e=this.queryObject(),t=A(e);return"{}"===t?"default":t},e.prototype.isEqual=function(t){if(l.validateArgCount("Query.isEqual",1,1,arguments.length),!(t instanceof e)){var n="Query.isEqual failed: First argument must be an instance of firebase.database.Query.";throw new Error(n)}var r=this.repo===t.repo,i=this.path.equals(t.path),a=this.queryIdentifier()===t.queryIdentifier();return r&&i&&a},e.getCancelAndContextArgs_=function(e,t,n){var r={cancel:null,context:null};if(t&&n)r.cancel=t,l.validateCallback(e,3,r.cancel,!0),r.context=n,l.validateContextObject(e,4,r.context,!0);else if(t)if("object"==typeof t&&null!==t)r.context=t;else{if("function"!=typeof t)throw new Error(l.errorPrefix(e,3,!0)+" must either be a cancel callback or a context object.");r.cancel=t}return r},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),e}(),Ze=function(){function e(e){this.node_=e}return e.prototype.getImmediateChild=function(t){return new e(this.node_.getImmediateChild(t))},e.prototype.node=function(){return this.node_},e}(),et=function(){function e(e,t){this.syncTree_=e,this.path_=t}return e.prototype.getImmediateChild=function(t){var n=this.path_.child(t);return new e(this.syncTree_,n)},e.prototype.node=function(){return this.syncTree_.calcCompleteEventCache(this.path_)},e}(),tt=function(e,t,n){return e&&"object"==typeof e?(l.assert(".sv"in e,"Unexpected leaf node or priority contents"),"string"==typeof e[".sv"]?nt(e[".sv"],t,n):"object"==typeof e[".sv"]?rt(e[".sv"],t):void l.assert(!1,"Unexpected server value: "+JSON.stringify(e,null,2))):e},nt=function(e,t,n){switch(e){case"timestamp":return n.timestamp;default:l.assert(!1,"Unexpected server value: "+e)}},rt=function(e,t,n){e.hasOwnProperty("increment")||l.assert(!1,"Unexpected server value: "+JSON.stringify(e,null,2));var r=e.increment;"number"!=typeof r&&l.assert(!1,"Unexpected increment value: "+r);var i=t.node();if(l.assert(null!=i,"Expected ChildrenNode.EMPTY_NODE for nulls"),!i.isLeafNode())return r;var a=i.getValue();return"number"!=typeof a?r:a+r},it=function(e,t,n,r){return ot(t,new et(n,e),r)},at=function(e,t,n){return ot(e,new Ze(t),n)};function ot(e,t,n){var r,i=e.getPriority().val(),a=tt(i,t.getImmediateChild(".priority"),n);if(e.isLeafNode()){var o=e,s=tt(o.getValue(),t,n);return s!==o.getValue()||a!==o.getPriority().val()?new Ce(s,Ue(a)):e}var l=e;return r=l,a!==l.getPriority().val()&&(r=r.updatePriority(new Ce(a))),l.forEachChild($e,(function(e,i){var a=ot(i,t.getImmediateChild(e),n);a!==i&&(r=r.updateImmediateChild(e,a))})),r}var st,lt=function(){function e(){this.value=null,this.children=new Map}return e.prototype.find=function(e){if(null!=this.value)return this.value.getChild(e);if(!e.isEmpty()&&this.children.size>0){var t=e.getFront();return e=e.popFront(),this.children.has(t)?this.children.get(t).find(e):null}return null},e.prototype.remember=function(t,n){if(t.isEmpty())this.value=n,this.children.clear();else if(null!==this.value)this.value=this.value.updateChild(t,n);else{var r=t.getFront();this.children.has(r)||this.children.set(r,new e);var i=this.children.get(r);t=t.popFront(),i.remember(t,n)}},e.prototype.forget=function(e){if(e.isEmpty())return this.value=null,this.children.clear(),!0;if(null!==this.value){if(this.value.isLeafNode())return!1;var t=this.value;this.value=null;var n=this;return t.forEachChild($e,(function(e,t){n.remember(new H(e),t)})),this.forget(e)}if(this.children.size>0){var r=e.getFront();if(e=e.popFront(),this.children.has(r))this.children.get(r).forget(e)&&this.children.delete(r);return 0===this.children.size}return!0},e.prototype.forEachTree=function(e,t){null!==this.value?t(e,this.value):this.forEachChild((function(n,r){var i=new H(e.toString()+"/"+n);r.forEachTree(i,t)}))},e.prototype.forEachChild=function(e){this.children.forEach((function(t,n){e(n,t)}))},e}();!function(e){e[e.OVERWRITE=0]="OVERWRITE",e[e.MERGE=1]="MERGE",e[e.ACK_USER_WRITE=2]="ACK_USER_WRITE",e[e.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"}(st||(st={}));var ct,ut,dt=function(){function e(e,t,n,r){this.fromUser=e,this.fromServer=t,this.queryId=n,this.tagged=r,l.assert(!r||t,"Tagged queries must be from server.")}return e.User=new e(!0,!1,null,!1),e.Server=new e(!1,!0,null,!1),e.forServerTaggedQuery=function(t){return new e(!1,!0,t,!0)},e}(),ht=function(){function e(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=st.ACK_USER_WRITE,this.source=dt.User}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){if(null!=this.affectedTree.value)return l.assert(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var n=this.affectedTree.subtree(new H(t));return new e(H.Empty,n,this.revert)}return l.assert(this.path.getFront()===t,"operationForChild called for unrelated child."),new e(this.path.popFront(),this.affectedTree,this.revert)},e}(),ft=function(){function e(e,t){void 0===t&&(ct||(ct=new Ie(O)),t=ct),this.value=e,this.children=t}return e.fromObject=function(t){var n=e.Empty;return N(t,(function(e,t){n=n.set(new H(e),t)})),n},e.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},e.prototype.findRootMostMatchingPathAndValue=function(e,t){if(null!=this.value&&t(this.value))return{path:H.Empty,value:this.value};if(e.isEmpty())return null;var n=e.getFront(),r=this.children.get(n);if(null!==r){var i=r.findRootMostMatchingPathAndValue(e.popFront(),t);return null!=i?{path:new H(n).child(i.path),value:i.value}:null}return null},e.prototype.findRootMostValueAndPath=function(e){return this.findRootMostMatchingPathAndValue(e,(function(){return!0}))},e.prototype.subtree=function(t){if(t.isEmpty())return this;var n=t.getFront(),r=this.children.get(n);return null!==r?r.subtree(t.popFront()):e.Empty},e.prototype.set=function(t,n){if(t.isEmpty())return new e(n,this.children);var r=t.getFront(),i=(this.children.get(r)||e.Empty).set(t.popFront(),n),a=this.children.insert(r,i);return new e(this.value,a)},e.prototype.remove=function(t){if(t.isEmpty())return this.children.isEmpty()?e.Empty:new e(null,this.children);var n=t.getFront(),r=this.children.get(n);if(r){var i=r.remove(t.popFront()),a=void 0;return a=i.isEmpty()?this.children.remove(n):this.children.insert(n,i),null===this.value&&a.isEmpty()?e.Empty:new e(this.value,a)}return this},e.prototype.get=function(e){if(e.isEmpty())return this.value;var t=e.getFront(),n=this.children.get(t);return n?n.get(e.popFront()):null},e.prototype.setTree=function(t,n){if(t.isEmpty())return n;var r=t.getFront(),i=(this.children.get(r)||e.Empty).setTree(t.popFront(),n),a=void 0;return a=i.isEmpty()?this.children.remove(r):this.children.insert(r,i),new e(this.value,a)},e.prototype.fold=function(e){return this.fold_(H.Empty,e)},e.prototype.fold_=function(e,t){var n={};return this.children.inorderTraversal((function(r,i){n[r]=i.fold_(e.child(r),t)})),t(e,this.value,n)},e.prototype.findOnPath=function(e,t){return this.findOnPath_(e,H.Empty,t)},e.prototype.findOnPath_=function(e,t,n){var r=!!this.value&&n(t,this.value);if(r)return r;if(e.isEmpty())return null;var i=e.getFront(),a=this.children.get(i);return a?a.findOnPath_(e.popFront(),t.child(i),n):null},e.prototype.foreachOnPath=function(e,t){return this.foreachOnPath_(e,H.Empty,t)},e.prototype.foreachOnPath_=function(t,n,r){if(t.isEmpty())return this;this.value&&r(n,this.value);var i=t.getFront(),a=this.children.get(i);return a?a.foreachOnPath_(t.popFront(),n.child(i),r):e.Empty},e.prototype.foreach=function(e){this.foreach_(H.Empty,e)},e.prototype.foreach_=function(e,t){this.children.inorderTraversal((function(n,r){r.foreach_(e.child(n),t)})),this.value&&t(e,this.value)},e.prototype.foreachChild=function(e){this.children.inorderTraversal((function(t,n){n.value&&e(t,n.value)}))},e.Empty=new e(null),e}(),pt=function(){function e(e,t){this.source=e,this.path=t,this.type=st.LISTEN_COMPLETE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,H.Empty):new e(this.source,this.path.popFront())},e}(),mt=function(){function e(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=st.OVERWRITE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,H.Empty,this.snap.getImmediateChild(t)):new e(this.source,this.path.popFront(),this.snap)},e}(),vt=function(){function e(e,t,n){this.source=e,this.path=t,this.children=n,this.type=st.MERGE}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){var n=this.children.subtree(new H(t));return n.isEmpty()?null:n.value?new mt(this.source,H.Empty,n.value):new e(this.source,H.Empty,n)}return l.assert(this.path.getFront()===t,"Can't get a merge for a child not on the path of the operation"),new e(this.source,this.path.popFront(),this.children)},e.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},e}(),gt=function(){function e(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}return e.prototype.isFullyInitialized=function(){return this.fullyInitialized_},e.prototype.isFiltered=function(){return this.filtered_},e.prototype.isCompleteForPath=function(e){if(e.isEmpty())return this.isFullyInitialized()&&!this.filtered_;var t=e.getFront();return this.isCompleteForChild(t)},e.prototype.isCompleteForChild=function(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)},e.prototype.getNode=function(){return this.node_},e}(),yt=function(){function e(e,t){this.eventCache_=e,this.serverCache_=t}return e.prototype.updateEventSnap=function(t,n,r){return new e(new gt(t,n,r),this.serverCache_)},e.prototype.updateServerSnap=function(t,n,r){return new e(this.eventCache_,new gt(t,n,r))},e.prototype.getEventCache=function(){return this.eventCache_},e.prototype.getCompleteEventSnap=function(){return this.eventCache_.isFullyInitialized()?this.eventCache_.getNode():null},e.prototype.getServerCache=function(){return this.serverCache_},e.prototype.getCompleteServerSnap=function(){return this.serverCache_.isFullyInitialized()?this.serverCache_.getNode():null},e.Empty=new e(new gt(Fe.EMPTY_NODE,!1,!1),new gt(Fe.EMPTY_NODE,!1,!1)),e}(),bt=function(){function e(e,t,n,r,i){this.type=e,this.snapshotNode=t,this.childName=n,this.oldSnap=r,this.prevName=i}return e.valueChange=function(t){return new e(e.VALUE,t)},e.childAddedChange=function(t,n){return new e(e.CHILD_ADDED,n,t)},e.childRemovedChange=function(t,n){return new e(e.CHILD_REMOVED,n,t)},e.childChangedChange=function(t,n,r){return new e(e.CHILD_CHANGED,n,t,r)},e.childMovedChange=function(t,n){return new e(e.CHILD_MOVED,n,t)},e.CHILD_ADDED="child_added",e.CHILD_REMOVED="child_removed",e.CHILD_CHANGED="child_changed",e.CHILD_MOVED="child_moved",e.VALUE="value",e}(),_t=function(){function e(e){this.index_=e}return e.prototype.updateChild=function(e,t,n,r,i,a){l.assert(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");var o=e.getImmediateChild(t);return o.getChild(r).equals(n.getChild(r))&&o.isEmpty()===n.isEmpty()?e:(null!=a&&(n.isEmpty()?e.hasChild(t)?a.trackChildChange(bt.childRemovedChange(t,o)):l.assert(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):o.isEmpty()?a.trackChildChange(bt.childAddedChange(t,n)):a.trackChildChange(bt.childChangedChange(t,n,o))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))},e.prototype.updateFullNode=function(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild($e,(function(e,r){t.hasChild(e)||n.trackChildChange(bt.childRemovedChange(e,r))})),t.isLeafNode()||t.forEachChild($e,(function(t,r){if(e.hasChild(t)){var i=e.getImmediateChild(t);i.equals(r)||n.trackChildChange(bt.childChangedChange(t,r,i))}else n.trackChildChange(bt.childAddedChange(t,r))}))),t.withIndex(this.index_)},e.prototype.updatePriority=function(e,t){return e.isEmpty()?Fe.EMPTY_NODE:e.updatePriority(t)},e.prototype.filtersNodes=function(){return!1},e.prototype.getIndexedFilter=function(){return this},e.prototype.getIndex=function(){return this.index_},e}(),wt=function(){function e(){this.changeMap=new Map}return e.prototype.trackChildChange=function(e){var t=e.type,n=e.childName;l.assert(t===bt.CHILD_ADDED||t===bt.CHILD_CHANGED||t===bt.CHILD_REMOVED,"Only child changes supported for tracking"),l.assert(".priority"!==n,"Only non-priority child changes can be tracked.");var r=this.changeMap.get(n);if(r){var i=r.type;if(t===bt.CHILD_ADDED&&i===bt.CHILD_REMOVED)this.changeMap.set(n,bt.childChangedChange(n,e.snapshotNode,r.snapshotNode));else if(t===bt.CHILD_REMOVED&&i===bt.CHILD_ADDED)this.changeMap.delete(n);else if(t===bt.CHILD_REMOVED&&i===bt.CHILD_CHANGED)this.changeMap.set(n,bt.childRemovedChange(n,r.oldSnap));else if(t===bt.CHILD_CHANGED&&i===bt.CHILD_ADDED)this.changeMap.set(n,bt.childAddedChange(n,e.snapshotNode));else{if(t!==bt.CHILD_CHANGED||i!==bt.CHILD_CHANGED)throw l.assertionError("Illegal combination of changes: "+e+" occurred after "+r);this.changeMap.set(n,bt.childChangedChange(n,e.snapshotNode,r.oldSnap))}}else this.changeMap.set(n,e)},e.prototype.getChanges=function(){return Array.from(this.changeMap.values())},e}(),kt=new(function(){function e(){}return e.prototype.getCompleteChild=function(e){return null},e.prototype.getChildAfterChild=function(e,t,n){return null},e}()),Et=function(){function e(e,t,n){void 0===n&&(n=null),this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=n}return e.prototype.getCompleteChild=function(e){var t=this.viewCache_.getEventCache();if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);var n=null!=this.optCompleteServerCache_?new gt(this.optCompleteServerCache_,!0,!1):this.viewCache_.getServerCache();return this.writes_.calcCompleteChild(e,n)},e.prototype.getChildAfterChild=function(e,t,n){var r=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:this.viewCache_.getCompleteServerSnap(),i=this.writes_.calcIndexedSlice(r,t,1,n,e);return 0===i.length?null:i[0]},e}(),St=function(e,t){this.viewCache=e,this.changes=t},Tt=function(){function e(e){this.filter_=e}return e.prototype.assertIndexed=function(e){l.assert(e.getEventCache().getNode().isIndexed(this.filter_.getIndex()),"Event snap not indexed"),l.assert(e.getServerCache().getNode().isIndexed(this.filter_.getIndex()),"Server snap not indexed")},e.prototype.applyOperation=function(t,n,r,i){var a,o,s=new wt;if(n.type===st.OVERWRITE){var c=n;c.source.fromUser?a=this.applyUserOverwrite_(t,c.path,c.snap,r,i,s):(l.assert(c.source.fromServer,"Unknown source."),o=c.source.tagged||t.getServerCache().isFiltered()&&!c.path.isEmpty(),a=this.applyServerOverwrite_(t,c.path,c.snap,r,i,o,s))}else if(n.type===st.MERGE){var u=n;u.source.fromUser?a=this.applyUserMerge_(t,u.path,u.children,r,i,s):(l.assert(u.source.fromServer,"Unknown source."),o=u.source.tagged||t.getServerCache().isFiltered(),a=this.applyServerMerge_(t,u.path,u.children,r,i,o,s))}else if(n.type===st.ACK_USER_WRITE){var d=n;a=d.revert?this.revertUserWrite_(t,d.path,r,i,s):this.ackUserWrite_(t,d.path,d.affectedTree,r,i,s)}else{if(n.type!==st.LISTEN_COMPLETE)throw l.assertionError("Unknown operation type: "+n.type);a=this.listenComplete_(t,n.path,r,s)}var h=s.getChanges();return e.maybeAddValueEvent_(t,a,h),new St(a,h)},e.maybeAddValueEvent_=function(e,t,n){var r=t.getEventCache();if(r.isFullyInitialized()){var i=r.getNode().isLeafNode()||r.getNode().isEmpty(),a=e.getCompleteEventSnap();(n.length>0||!e.getEventCache().isFullyInitialized()||i&&!r.getNode().equals(a)||!r.getNode().getPriority().equals(a.getPriority()))&&n.push(bt.valueChange(t.getCompleteEventSnap()))}},e.prototype.generateEventCacheAfterServerEvent_=function(e,t,n,r,i){var a=e.getEventCache();if(null!=n.shadowingWrite(t))return e;var o=void 0,s=void 0;if(t.isEmpty())if(l.assert(e.getServerCache().isFullyInitialized(),"If change path is empty, we must have complete server data"),e.getServerCache().isFiltered()){var c=e.getCompleteServerSnap(),u=c instanceof Fe?c:Fe.EMPTY_NODE,d=n.calcCompleteEventChildren(u);o=this.filter_.updateFullNode(e.getEventCache().getNode(),d,i)}else{var h=n.calcCompleteEventCache(e.getCompleteServerSnap());o=this.filter_.updateFullNode(e.getEventCache().getNode(),h,i)}else{var f=t.getFront();if(".priority"===f){l.assert(1===t.getLength(),"Can't have a priority with additional path components");var p=a.getNode();s=e.getServerCache().getNode();var m=n.calcEventCacheAfterServerOverwrite(t,p,s);o=null!=m?this.filter_.updatePriority(p,m):a.getNode()}else{var v=t.popFront(),g=void 0;if(a.isCompleteForChild(f)){s=e.getServerCache().getNode();var y=n.calcEventCacheAfterServerOverwrite(t,a.getNode(),s);g=null!=y?a.getNode().getImmediateChild(f).updateChild(v,y):a.getNode().getImmediateChild(f)}else g=n.calcCompleteChild(f,e.getServerCache());o=null!=g?this.filter_.updateChild(a.getNode(),f,g,v,r,i):a.getNode()}}return e.updateEventSnap(o,a.isFullyInitialized()||t.isEmpty(),this.filter_.filtersNodes())},e.prototype.applyServerOverwrite_=function(e,t,n,r,i,a,o){var s,l=e.getServerCache(),c=a?this.filter_:this.filter_.getIndexedFilter();if(t.isEmpty())s=c.updateFullNode(l.getNode(),n,null);else if(c.filtersNodes()&&!l.isFiltered()){var u=l.getNode().updateChild(t,n);s=c.updateFullNode(l.getNode(),u,null)}else{var d=t.getFront();if(!l.isCompleteForPath(t)&&t.getLength()>1)return e;var h=t.popFront(),f=l.getNode().getImmediateChild(d).updateChild(h,n);s=".priority"===d?c.updatePriority(l.getNode(),f):c.updateChild(l.getNode(),d,f,h,kt,null)}var p=e.updateServerSnap(s,l.isFullyInitialized()||t.isEmpty(),c.filtersNodes()),m=new Et(r,p,i);return this.generateEventCacheAfterServerEvent_(p,t,r,m,o)},e.prototype.applyUserOverwrite_=function(e,t,n,r,i,a){var o,s,l=e.getEventCache(),c=new Et(r,e,i);if(t.isEmpty())s=this.filter_.updateFullNode(e.getEventCache().getNode(),n,a),o=e.updateEventSnap(s,!0,this.filter_.filtersNodes());else{var u=t.getFront();if(".priority"===u)s=this.filter_.updatePriority(e.getEventCache().getNode(),n),o=e.updateEventSnap(s,l.isFullyInitialized(),l.isFiltered());else{var d=t.popFront(),h=l.getNode().getImmediateChild(u),f=void 0;if(d.isEmpty())f=n;else{var p=c.getCompleteChild(u);f=null!=p?".priority"===d.getBack()&&p.getChild(d.parent()).isEmpty()?p:p.updateChild(d,n):Fe.EMPTY_NODE}if(h.equals(f))o=e;else{var m=this.filter_.updateChild(l.getNode(),u,f,d,c,a);o=e.updateEventSnap(m,l.isFullyInitialized(),this.filter_.filtersNodes())}}}return o},e.cacheHasChild_=function(e,t){return e.getEventCache().isCompleteForChild(t)},e.prototype.applyUserMerge_=function(t,n,r,i,a,o){var s=this,l=t;return r.foreach((function(r,c){var u=n.child(r);e.cacheHasChild_(t,u.getFront())&&(l=s.applyUserOverwrite_(l,u,c,i,a,o))})),r.foreach((function(r,c){var u=n.child(r);e.cacheHasChild_(t,u.getFront())||(l=s.applyUserOverwrite_(l,u,c,i,a,o))})),l},e.prototype.applyMerge_=function(e,t){return t.foreach((function(t,n){e=e.updateChild(t,n)})),e},e.prototype.applyServerMerge_=function(e,t,n,r,i,a,o){var s=this;if(e.getServerCache().getNode().isEmpty()&&!e.getServerCache().isFullyInitialized())return e;var l,c=e;l=t.isEmpty()?n:ft.Empty.setTree(t,n);var u=e.getServerCache().getNode();return l.children.inorderTraversal((function(t,n){if(u.hasChild(t)){var l=e.getServerCache().getNode().getImmediateChild(t),d=s.applyMerge_(l,n);c=s.applyServerOverwrite_(c,new H(t),d,r,i,a,o)}})),l.children.inorderTraversal((function(t,n){var l=!e.getServerCache().isCompleteForChild(t)&&null==n.value;if(!u.hasChild(t)&&!l){var d=e.getServerCache().getNode().getImmediateChild(t),h=s.applyMerge_(d,n);c=s.applyServerOverwrite_(c,new H(t),h,r,i,a,o)}})),c},e.prototype.ackUserWrite_=function(e,t,n,r,i,a){if(null!=r.shadowingWrite(t))return e;var o=e.getServerCache().isFiltered(),s=e.getServerCache();if(null!=n.value){if(t.isEmpty()&&s.isFullyInitialized()||s.isCompleteForPath(t))return this.applyServerOverwrite_(e,t,s.getNode().getChild(t),r,i,o,a);if(t.isEmpty()){var l=ft.Empty;return s.getNode().forEachChild(_e,(function(e,t){l=l.set(new H(e),t)})),this.applyServerMerge_(e,t,l,r,i,o,a)}return e}var c=ft.Empty;return n.foreach((function(e,n){var r=t.child(e);s.isCompleteForPath(r)&&(c=c.set(e,s.getNode().getChild(r)))})),this.applyServerMerge_(e,t,c,r,i,o,a)},e.prototype.listenComplete_=function(e,t,n,r){var i=e.getServerCache(),a=e.updateServerSnap(i.getNode(),i.isFullyInitialized()||t.isEmpty(),i.isFiltered());return this.generateEventCacheAfterServerEvent_(a,t,n,kt,r)},e.prototype.revertUserWrite_=function(e,t,n,r,i){var a;if(null!=n.shadowingWrite(t))return e;var o=new Et(n,e,r),s=e.getEventCache().getNode(),c=void 0;if(t.isEmpty()||".priority"===t.getFront()){var u=void 0;if(e.getServerCache().isFullyInitialized())u=n.calcCompleteEventCache(e.getCompleteServerSnap());else{var d=e.getServerCache().getNode();l.assert(d instanceof Fe,"serverChildren would be complete if leaf node"),u=n.calcCompleteEventChildren(d)}u=u,c=this.filter_.updateFullNode(s,u,i)}else{var h=t.getFront(),f=n.calcCompleteChild(h,e.getServerCache());null==f&&e.getServerCache().isCompleteForChild(h)&&(f=s.getImmediateChild(h)),(c=null!=f?this.filter_.updateChild(s,h,f,t.popFront(),o,i):e.getEventCache().getNode().hasChild(h)?this.filter_.updateChild(s,h,Fe.EMPTY_NODE,t.popFront(),o,i):s).isEmpty()&&e.getServerCache().isFullyInitialized()&&(a=n.calcCompleteEventCache(e.getCompleteServerSnap())).isLeafNode()&&(c=this.filter_.updateFullNode(c,a,i))}return a=e.getServerCache().isFullyInitialized()||null!=n.shadowingWrite(H.Empty),e.updateEventSnap(c,a,this.filter_.filtersNodes())},e}(),Ct=function(){function e(e){this.query_=e,this.index_=this.query_.getQueryParams().getIndex()}return e.prototype.generateEventsForChanges=function(e,t,n){var r=this,i=[],a=[];return e.forEach((function(e){e.type===bt.CHILD_CHANGED&&r.index_.indexedValueChanged(e.oldSnap,e.snapshotNode)&&a.push(bt.childMovedChange(e.childName,e.snapshotNode))})),this.generateEventsForType_(i,bt.CHILD_REMOVED,e,n,t),this.generateEventsForType_(i,bt.CHILD_ADDED,e,n,t),this.generateEventsForType_(i,bt.CHILD_MOVED,a,n,t),this.generateEventsForType_(i,bt.CHILD_CHANGED,e,n,t),this.generateEventsForType_(i,bt.VALUE,e,n,t),i},e.prototype.generateEventsForType_=function(e,t,n,r,i){var a=this,o=n.filter((function(e){return e.type===t}));o.sort(this.compareChanges_.bind(this)),o.forEach((function(t){var n=a.materializeSingleChange_(t,i);r.forEach((function(r){r.respondsTo(t.type)&&e.push(r.createEvent(n,a.query_))}))}))},e.prototype.materializeSingleChange_=function(e,t){return"value"===e.type||"child_removed"===e.type||(e.prevName=t.getPredecessorChildName(e.childName,e.snapshotNode,this.index_)),e},e.prototype.compareChanges_=function(e,t){if(null==e.childName||null==t.childName)throw l.assertionError("Should only compare child_ events.");var n=new ge(e.childName,e.snapshotNode),r=new ge(t.childName,t.snapshotNode);return this.index_.compare(n,r)},e}(),Mt=function(){function e(e,t){this.query_=e,this.eventRegistrations_=[];var n=this.query_.getQueryParams(),r=new _t(n.getIndex()),i=n.getNodeFilter();this.processor_=new Tt(i);var a=t.getServerCache(),o=t.getEventCache(),s=r.updateFullNode(Fe.EMPTY_NODE,a.getNode(),null),l=i.updateFullNode(Fe.EMPTY_NODE,o.getNode(),null),c=new gt(s,a.isFullyInitialized(),r.filtersNodes()),u=new gt(l,o.isFullyInitialized(),i.filtersNodes());this.viewCache_=new yt(u,c),this.eventGenerator_=new Ct(this.query_)}return e.prototype.getQuery=function(){return this.query_},e.prototype.getServerCache=function(){return this.viewCache_.getServerCache().getNode()},e.prototype.getCompleteServerCache=function(e){var t=this.viewCache_.getCompleteServerSnap();return t&&(this.query_.getQueryParams().loadsAllData()||!e.isEmpty()&&!t.getImmediateChild(e.getFront()).isEmpty())?t.getChild(e):null},e.prototype.isEmpty=function(){return 0===this.eventRegistrations_.length},e.prototype.addEventRegistration=function(e){this.eventRegistrations_.push(e)},e.prototype.removeEventRegistration=function(e,t){var n=[];if(t){l.assert(null==e,"A cancel should cancel all event registrations.");var r=this.query_.path;this.eventRegistrations_.forEach((function(e){t=t;var i=e.createCancelEvent(t,r);i&&n.push(i)}))}if(e){for(var i=[],a=0;a<this.eventRegistrations_.length;++a){var o=this.eventRegistrations_[a];if(o.matches(e)){if(e.hasAnyCallback()){i=i.concat(this.eventRegistrations_.slice(a+1));break}}else i.push(o)}this.eventRegistrations_=i}else this.eventRegistrations_=[];return n},e.prototype.applyOperation=function(e,t,n){e.type===st.MERGE&&null!==e.source.queryId&&(l.assert(this.viewCache_.getCompleteServerSnap(),"We should always have a full cache before handling merges"),l.assert(this.viewCache_.getCompleteEventSnap(),"Missing event cache, even though we have a server cache"));var r=this.viewCache_,i=this.processor_.applyOperation(r,e,t,n);return this.processor_.assertIndexed(i.viewCache),l.assert(i.viewCache.getServerCache().isFullyInitialized()||!r.getServerCache().isFullyInitialized(),"Once a server snap is complete, it should never go back"),this.viewCache_=i.viewCache,this.generateEventsForChanges_(i.changes,i.viewCache.getEventCache().getNode(),null)},e.prototype.getInitialEvents=function(e){var t=this.viewCache_.getEventCache(),n=[];t.getNode().isLeafNode()||t.getNode().forEachChild($e,(function(e,t){n.push(bt.childAddedChange(e,t))}));return t.isFullyInitialized()&&n.push(bt.valueChange(t.getNode())),this.generateEventsForChanges_(n,t.getNode(),e)},e.prototype.generateEventsForChanges_=function(e,t,n){var r=n?[n]:this.eventRegistrations_;return this.eventGenerator_.generateEventsForChanges(e,t,r)},e}(),xt=function(){function e(){this.views=new Map}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return l.assert(ut,"Reference.ts has not been loaded"),ut},set:function(e){l.assert(!ut,"__referenceConstructor has already been defined"),ut=e},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return 0===this.views.size},e.prototype.applyOperation=function(e,t,n){var r,i,a=e.source.queryId;if(null!==a){var o=this.views.get(a);return l.assert(null!=o,"SyncTree gave us an op for an invalid query."),o.applyOperation(e,t,n)}var c=[];try{for(var u=s.__values(this.views.values()),d=u.next();!d.done;d=u.next()){o=d.value;c=c.concat(o.applyOperation(e,t,n))}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return c},e.prototype.addEventRegistration=function(e,t,n,r,i){var a=e.queryIdentifier(),o=this.views.get(a);if(!o){var s=n.calcCompleteEventCache(i?r:null),l=!1;s?l=!0:r instanceof Fe?(s=n.calcCompleteEventChildren(r),l=!1):(s=Fe.EMPTY_NODE,l=!1);var c=new yt(new gt(s,l,!1),new gt(r,i,!1));o=new Mt(e,c),this.views.set(a,o)}return o.addEventRegistration(t),o.getInitialEvents(t)},e.prototype.removeEventRegistration=function(t,n,r){var i,a,o=t.queryIdentifier(),l=[],c=[],u=this.hasCompleteView();if("default"===o)try{for(var d=s.__values(this.views.entries()),h=d.next();!h.done;h=d.next()){var f=s.__read(h.value,2),p=f[0],m=f[1];c=c.concat(m.removeEventRegistration(n,r)),m.isEmpty()&&(this.views.delete(p),m.getQuery().getQueryParams().loadsAllData()||l.push(m.getQuery()))}}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}else(m=this.views.get(o))&&(c=c.concat(m.removeEventRegistration(n,r)),m.isEmpty()&&(this.views.delete(o),m.getQuery().getQueryParams().loadsAllData()||l.push(m.getQuery())));return u&&!this.hasCompleteView()&&l.push(new e.__referenceConstructor(t.repo,t.path)),{removed:l,events:c}},e.prototype.getQueryViews=function(){var e,t,n=[];try{for(var r=s.__values(this.views.values()),i=r.next();!i.done;i=r.next()){var a=i.value;a.getQuery().getQueryParams().loadsAllData()||n.push(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},e.prototype.getCompleteServerCache=function(e){var t,n,r=null;try{for(var i=s.__values(this.views.values()),a=i.next();!a.done;a=i.next()){var o=a.value;r=r||o.getCompleteServerCache(e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},e.prototype.viewForQuery=function(e){if(e.getQueryParams().loadsAllData())return this.getCompleteView();var t=e.queryIdentifier();return this.views.get(t)},e.prototype.viewExistsForQuery=function(e){return null!=this.viewForQuery(e)},e.prototype.hasCompleteView=function(){return null!=this.getCompleteView()},e.prototype.getCompleteView=function(){var e,t;try{for(var n=s.__values(this.views.values()),r=n.next();!r.done;r=n.next()){var i=r.value;if(i.getQuery().getQueryParams().loadsAllData())return i}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return null},e}(),$t=function(){function e(e){this.writeTree_=e}return e.prototype.addWrite=function(t,n){if(t.isEmpty())return new e(new ft(n));var r=this.writeTree_.findRootMostValueAndPath(t);if(null!=r){var i=r.path,a=r.value,o=H.relativePath(i,t);return a=a.updateChild(o,n),new e(this.writeTree_.set(i,a))}var s=new ft(n);return new e(this.writeTree_.setTree(t,s))},e.prototype.addWrites=function(e,t){var n=this;return N(t,(function(t,r){n=n.addWrite(e.child(t),r)})),n},e.prototype.removeWrite=function(t){return t.isEmpty()?e.Empty:new e(this.writeTree_.setTree(t,ft.Empty))},e.prototype.hasCompleteWrite=function(e){return null!=this.getCompleteNode(e)},e.prototype.getCompleteNode=function(e){var t=this.writeTree_.findRootMostValueAndPath(e);return null!=t?this.writeTree_.get(t.path).getChild(H.relativePath(t.path,e)):null},e.prototype.getCompleteChildren=function(){var e=[],t=this.writeTree_.value;return null!=t?t.isLeafNode()||t.forEachChild($e,(function(t,n){e.push(new ge(t,n))})):this.writeTree_.children.inorderTraversal((function(t,n){null!=n.value&&e.push(new ge(t,n.value))})),e},e.prototype.childCompoundWrite=function(t){if(t.isEmpty())return this;var n=this.getCompleteNode(t);return new e(null!=n?new ft(n):this.writeTree_.subtree(t))},e.prototype.isEmpty=function(){return this.writeTree_.isEmpty()},e.prototype.apply=function(e){return function e(t,n,r){if(null!=n.value)return r.updateChild(t,n.value);var i=null;return n.children.inorderTraversal((function(n,a){".priority"===n?(l.assert(null!==a.value,"Priority writes must always be leaf nodes"),i=a.value):r=e(t.child(n),a,r)})),r.getChild(t).isEmpty()||null===i||(r=r.updateChild(t.child(".priority"),i)),r}(H.Empty,this.writeTree_,e)},e.Empty=new e(new ft(null)),e}();var Lt=function(){function e(){this.visibleWrites_=$t.Empty,this.allWrites_=[],this.lastWriteId_=-1}return e.prototype.childWrites=function(e){return new Pt(e,this)},e.prototype.addOverwrite=function(e,t,n,r){l.assert(n>this.lastWriteId_,"Stacking an older write on top of newer ones"),void 0===r&&(r=!0),this.allWrites_.push({path:e,snap:t,writeId:n,visible:r}),r&&(this.visibleWrites_=this.visibleWrites_.addWrite(e,t)),this.lastWriteId_=n},e.prototype.addMerge=function(e,t,n){l.assert(n>this.lastWriteId_,"Stacking an older merge on top of newer ones"),this.allWrites_.push({path:e,children:t,writeId:n,visible:!0}),this.visibleWrites_=this.visibleWrites_.addWrites(e,t),this.lastWriteId_=n},e.prototype.getWrite=function(e){for(var t=0;t<this.allWrites_.length;t++){var n=this.allWrites_[t];if(n.writeId===e)return n}return null},e.prototype.removeWrite=function(e){var t=this,n=this.allWrites_.findIndex((function(t){return t.writeId===e}));l.assert(n>=0,"removeWrite called with nonexistent writeId.");var r=this.allWrites_[n];this.allWrites_.splice(n,1);for(var i=r.visible,a=!1,o=this.allWrites_.length-1;i&&o>=0;){var s=this.allWrites_[o];s.visible&&(o>=n&&this.recordContainsPath_(s,r.path)?i=!1:r.path.contains(s.path)&&(a=!0)),o--}if(i){if(a)return this.resetTree_(),!0;r.snap?this.visibleWrites_=this.visibleWrites_.removeWrite(r.path):N(r.children,(function(e){t.visibleWrites_=t.visibleWrites_.removeWrite(r.path.child(e))}));return!0}return!1},e.prototype.getCompleteWriteData=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcCompleteEventCache=function(t,n,r,i){if(r||i){var a=this.visibleWrites_.childCompoundWrite(t);if(!i&&a.isEmpty())return n;if(i||null!=n||a.hasCompleteWrite(H.Empty)){var o=e.layerTree_(this.allWrites_,(function(e){return(e.visible||i)&&(!r||!~r.indexOf(e.writeId))&&(e.path.contains(t)||t.contains(e.path))}),t);c=n||Fe.EMPTY_NODE;return o.apply(c)}return null}var s=this.visibleWrites_.getCompleteNode(t);if(null!=s)return s;var l=this.visibleWrites_.childCompoundWrite(t);if(l.isEmpty())return n;if(null!=n||l.hasCompleteWrite(H.Empty)){var c=n||Fe.EMPTY_NODE;return l.apply(c)}return null},e.prototype.calcCompleteEventChildren=function(e,t){var n=Fe.EMPTY_NODE,r=this.visibleWrites_.getCompleteNode(e);if(r)return r.isLeafNode()||r.forEachChild($e,(function(e,t){n=n.updateImmediateChild(e,t)})),n;if(t){var i=this.visibleWrites_.childCompoundWrite(e);return t.forEachChild($e,(function(e,t){var r=i.childCompoundWrite(new H(e)).apply(t);n=n.updateImmediateChild(e,r)})),i.getCompleteChildren().forEach((function(e){n=n.updateImmediateChild(e.name,e.node)})),n}return this.visibleWrites_.childCompoundWrite(e).getCompleteChildren().forEach((function(e){n=n.updateImmediateChild(e.name,e.node)})),n},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n,r){l.assert(n||r,"Either existingEventSnap or existingServerSnap must exist");var i=e.child(t);if(this.visibleWrites_.hasCompleteWrite(i))return null;var a=this.visibleWrites_.childCompoundWrite(i);return a.isEmpty()?r.getChild(t):a.apply(r.getChild(t))},e.prototype.calcCompleteChild=function(e,t,n){var r=e.child(t),i=this.visibleWrites_.getCompleteNode(r);return null!=i?i:n.isCompleteForChild(t)?this.visibleWrites_.childCompoundWrite(r).apply(n.getNode().getImmediateChild(t)):null},e.prototype.shadowingWrite=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcIndexedSlice=function(e,t,n,r,i,a){var o,s=this.visibleWrites_.childCompoundWrite(e),l=s.getCompleteNode(H.Empty);if(null!=l)o=l;else{if(null==t)return[];o=s.apply(t)}if((o=o.withIndex(a)).isEmpty()||o.isLeafNode())return[];for(var c=[],u=a.getCompare(),d=i?o.getReverseIteratorFrom(n,a):o.getIteratorFrom(n,a),h=d.getNext();h&&c.length<r;)0!==u(h,n)&&c.push(h),h=d.getNext();return c},e.prototype.recordContainsPath_=function(e,t){if(e.snap)return e.path.contains(t);for(var n in e.children)if(e.children.hasOwnProperty(n)&&e.path.child(n).contains(t))return!0;return!1},e.prototype.resetTree_=function(){this.visibleWrites_=e.layerTree_(this.allWrites_,e.DefaultFilter_,H.Empty),this.allWrites_.length>0?this.lastWriteId_=this.allWrites_[this.allWrites_.length-1].writeId:this.lastWriteId_=-1},e.DefaultFilter_=function(e){return e.visible},e.layerTree_=function(e,t,n){for(var r=$t.Empty,i=0;i<e.length;++i){var a=e[i];if(t(a)){var o=a.path,s=void 0;if(a.snap)n.contains(o)?(s=H.relativePath(n,o),r=r.addWrite(s,a.snap)):o.contains(n)&&(s=H.relativePath(o,n),r=r.addWrite(H.Empty,a.snap.getChild(s)));else{if(!a.children)throw l.assertionError("WriteRecord should have .snap or .children");if(n.contains(o))s=H.relativePath(n,o),r=r.addWrites(s,a.children);else if(o.contains(n))if((s=H.relativePath(o,n)).isEmpty())r=r.addWrites(H.Empty,a.children);else{var c=l.safeGet(a.children,s.getFront());if(c){var u=c.getChild(s.popFront());r=r.addWrite(H.Empty,u)}}}}}return r},e}(),Pt=function(){function e(e,t){this.treePath_=e,this.writeTree_=t}return e.prototype.calcCompleteEventCache=function(e,t,n){return this.writeTree_.calcCompleteEventCache(this.treePath_,e,t,n)},e.prototype.calcCompleteEventChildren=function(e){return this.writeTree_.calcCompleteEventChildren(this.treePath_,e)},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n){return this.writeTree_.calcEventCacheAfterServerOverwrite(this.treePath_,e,t,n)},e.prototype.shadowingWrite=function(e){return this.writeTree_.shadowingWrite(this.treePath_.child(e))},e.prototype.calcIndexedSlice=function(e,t,n,r,i){return this.writeTree_.calcIndexedSlice(this.treePath_,e,t,n,r,i)},e.prototype.calcCompleteChild=function(e,t){return this.writeTree_.calcCompleteChild(this.treePath_,e,t)},e.prototype.child=function(t){return new e(this.treePath_.child(t),this.writeTree_)},e}(),Ot=function(){function e(e){this.listenProvider_=e,this.syncPointTree_=ft.Empty,this.pendingWriteTree_=new Lt,this.tagToQueryMap=new Map,this.queryToTagMap=new Map}return e.prototype.applyUserOverwrite=function(e,t,n,r){return this.pendingWriteTree_.addOverwrite(e,t,n,r),r?this.applyOperationToSyncPoints_(new mt(dt.User,e,t)):[]},e.prototype.applyUserMerge=function(e,t,n){this.pendingWriteTree_.addMerge(e,t,n);var r=ft.fromObject(t);return this.applyOperationToSyncPoints_(new vt(dt.User,e,r))},e.prototype.ackUserWrite=function(e,t){void 0===t&&(t=!1);var n=this.pendingWriteTree_.getWrite(e);if(this.pendingWriteTree_.removeWrite(e)){var r=ft.Empty;return null!=n.snap?r=r.set(H.Empty,!0):N(n.children,(function(e,t){r=r.set(new H(e),t)})),this.applyOperationToSyncPoints_(new ht(n.path,r,t))}return[]},e.prototype.applyServerOverwrite=function(e,t){return this.applyOperationToSyncPoints_(new mt(dt.Server,e,t))},e.prototype.applyServerMerge=function(e,t){var n=ft.fromObject(t);return this.applyOperationToSyncPoints_(new vt(dt.Server,e,n))},e.prototype.applyListenComplete=function(e){return this.applyOperationToSyncPoints_(new pt(dt.Server,e))},e.prototype.applyTaggedQueryOverwrite=function(t,n,r){var i=this.queryKeyForTag_(r);if(null!=i){var a=e.parseQueryKey_(i),o=a.path,s=a.queryId,l=H.relativePath(o,t),c=new mt(dt.forServerTaggedQuery(s),l,n);return this.applyTaggedOperation_(o,c)}return[]},e.prototype.applyTaggedQueryMerge=function(t,n,r){var i=this.queryKeyForTag_(r);if(i){var a=e.parseQueryKey_(i),o=a.path,s=a.queryId,l=H.relativePath(o,t),c=ft.fromObject(n),u=new vt(dt.forServerTaggedQuery(s),l,c);return this.applyTaggedOperation_(o,u)}return[]},e.prototype.applyTaggedListenComplete=function(t,n){var r=this.queryKeyForTag_(n);if(r){var i=e.parseQueryKey_(r),a=i.path,o=i.queryId,s=H.relativePath(a,t),l=new pt(dt.forServerTaggedQuery(o),s);return this.applyTaggedOperation_(a,l)}return[]},e.prototype.addEventRegistration=function(t,n){var r=t.path,i=null,a=!1;this.syncPointTree_.foreachOnPath(r,(function(e,t){var n=H.relativePath(e,r);i=i||t.getCompleteServerCache(n),a=a||t.hasCompleteView()}));var o,s=this.syncPointTree_.get(r);(s?(a=a||s.hasCompleteView(),i=i||s.getCompleteServerCache(H.Empty)):(s=new xt,this.syncPointTree_=this.syncPointTree_.set(r,s)),null!=i)?o=!0:(o=!1,i=Fe.EMPTY_NODE,this.syncPointTree_.subtree(r).foreachChild((function(e,t){var n=t.getCompleteServerCache(H.Empty);n&&(i=i.updateImmediateChild(e,n))})));var c=s.viewExistsForQuery(t);if(!c&&!t.getQueryParams().loadsAllData()){var u=e.makeQueryKey_(t);l.assert(!this.queryToTagMap.has(u),"View does not exist, but we have a tag");var d=e.getNextQueryTag_();this.queryToTagMap.set(u,d),this.tagToQueryMap.set(d,u)}var h=this.pendingWriteTree_.childWrites(r),f=s.addEventRegistration(t,n,h,i,o);if(!c&&!a){var p=s.viewForQuery(t);f=f.concat(this.setupListener_(t,p))}return f},e.prototype.removeEventRegistration=function(t,n,r){var i=this,a=t.path,o=this.syncPointTree_.get(a),s=[];if(o&&("default"===t.queryIdentifier()||o.viewExistsForQuery(t))){var l=o.removeEventRegistration(t,n,r);o.isEmpty()&&(this.syncPointTree_=this.syncPointTree_.remove(a));var c=l.removed;s=l.events;var u=-1!==c.findIndex((function(e){return e.getQueryParams().loadsAllData()})),d=this.syncPointTree_.findOnPath(a,(function(e,t){return t.hasCompleteView()}));if(u&&!d){var h=this.syncPointTree_.subtree(a);if(!h.isEmpty())for(var f=this.collectDistinctViewsForSubTree_(h),p=0;p<f.length;++p){var m=f[p],v=m.getQuery(),g=this.createListenerForView_(m);this.listenProvider_.startListening(e.queryForListening_(v),this.tagForQuery_(v),g.hashFn,g.onComplete)}}if(!d&&c.length>0&&!r)if(u){this.listenProvider_.stopListening(e.queryForListening_(t),null)}else c.forEach((function(t){var n=i.queryToTagMap.get(e.makeQueryKey_(t));i.listenProvider_.stopListening(e.queryForListening_(t),n)}));this.removeTags_(c)}return s},e.prototype.calcCompleteEventCache=function(e,t){var n=this.pendingWriteTree_,r=this.syncPointTree_.findOnPath(e,(function(t,n){var r=H.relativePath(t,e),i=n.getCompleteServerCache(r);if(i)return i}));return n.calcCompleteEventCache(e,r,t,!0)},e.prototype.collectDistinctViewsForSubTree_=function(e){return e.fold((function(e,t,n){if(t&&t.hasCompleteView())return[t.getCompleteView()];var r=[];return t&&(r=t.getQueryViews()),N(n,(function(e,t){r=r.concat(t)})),r}))},e.prototype.removeTags_=function(t){for(var n=0;n<t.length;++n){var r=t[n];if(!r.getQueryParams().loadsAllData()){var i=e.makeQueryKey_(r),a=this.queryToTagMap.get(i);this.queryToTagMap.delete(i),this.tagToQueryMap.delete(a)}}},e.queryForListening_=function(e){return e.getQueryParams().loadsAllData()&&!e.getQueryParams().isDefault()?e.getRef():e},e.prototype.setupListener_=function(t,n){var r=t.path,i=this.tagForQuery_(t),a=this.createListenerForView_(n),o=this.listenProvider_.startListening(e.queryForListening_(t),i,a.hashFn,a.onComplete),s=this.syncPointTree_.subtree(r);if(i)l.assert(!s.value.hasCompleteView(),"If we're adding a query, it shouldn't be shadowed");else for(var c=s.fold((function(e,t,n){if(!e.isEmpty()&&t&&t.hasCompleteView())return[t.getCompleteView().getQuery()];var r=[];return t&&(r=r.concat(t.getQueryViews().map((function(e){return e.getQuery()})))),N(n,(function(e,t){r=r.concat(t)})),r})),u=0;u<c.length;++u){var d=c[u];this.listenProvider_.stopListening(e.queryForListening_(d),this.tagForQuery_(d))}return o},e.prototype.createListenerForView_=function(e){var t=this,n=e.getQuery(),r=this.tagForQuery_(n);return{hashFn:function(){return(e.getServerCache()||Fe.EMPTY_NODE).hash()},onComplete:function(e){if("ok"===e)return r?t.applyTaggedListenComplete(n.path,r):t.applyListenComplete(n.path);var i=function(e,t){var n="Unknown Error";"too_big"===e?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===e?n="Client doesn't have permission to access the desired data.":"unavailable"===e&&(n="The service is unavailable");var r=new Error(e+" at "+t.path.toString()+": "+n);return r.code=e.toUpperCase(),r}(e,n);return t.removeEventRegistration(n,null,i)}}},e.makeQueryKey_=function(e){return e.path.toString()+"$"+e.queryIdentifier()},e.parseQueryKey_=function(e){var t=e.indexOf("$");return l.assert(-1!==t&&t<e.length-1,"Bad queryKey."),{queryId:e.substr(t+1),path:new H(e.substr(0,t))}},e.prototype.queryKeyForTag_=function(e){return this.tagToQueryMap.get(e)},e.prototype.tagForQuery_=function(t){var n=e.makeQueryKey_(t);return this.queryToTagMap.get(n)},e.getNextQueryTag_=function(){return e.nextQueryTag_++},e.prototype.applyTaggedOperation_=function(e,t){var n=this.syncPointTree_.get(e);l.assert(n,"Missing sync point for query tag that we're tracking");var r=this.pendingWriteTree_.childWrites(e);return n.applyOperation(t,r,null)},e.prototype.applyOperationToSyncPoints_=function(e){return this.applyOperationHelper_(e,this.syncPointTree_,null,this.pendingWriteTree_.childWrites(H.Empty))},e.prototype.applyOperationHelper_=function(e,t,n,r){if(e.path.isEmpty())return this.applyOperationDescendantsHelper_(e,t,n,r);var i=t.get(H.Empty);null==n&&null!=i&&(n=i.getCompleteServerCache(H.Empty));var a=[],o=e.path.getFront(),s=e.operationForChild(o),l=t.children.get(o);if(l&&s){var c=n?n.getImmediateChild(o):null,u=r.child(o);a=a.concat(this.applyOperationHelper_(s,l,c,u))}return i&&(a=a.concat(i.applyOperation(e,r,n))),a},e.prototype.applyOperationDescendantsHelper_=function(e,t,n,r){var i=this,a=t.get(H.Empty);null==n&&null!=a&&(n=a.getCompleteServerCache(H.Empty));var o=[];return t.children.inorderTraversal((function(t,a){var s=n?n.getImmediateChild(t):null,l=r.child(t),c=e.operationForChild(t);c&&(o=o.concat(i.applyOperationDescendantsHelper_(c,a,s,l)))})),a&&(o=o.concat(a.applyOperation(e,r,n))),o},e.nextQueryTag_=1,e}(),It=function(){function e(){this.rootNode_=Fe.EMPTY_NODE}return e.prototype.getNode=function(e){return this.rootNode_.getChild(e)},e.prototype.updateSnapshot=function(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)},e}(),At=function(){function e(e,t){var n=this;this.app_=e,this.authProvider_=t,this.auth_=null,this.auth_=t.getImmediate({optional:!0}),this.auth_||t.get().then((function(e){return n.auth_=e}))}return e.prototype.getToken=function(e){return this.auth_?this.auth_.getToken(e).catch((function(e){return e&&"auth/token-not-initialized"===e.code?(E("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(e)})):Promise.resolve(null)},e.prototype.addTokenChangeListener=function(e){this.auth_?this.auth_.addAuthTokenListener(e):(setTimeout((function(){return e(null)}),0),this.authProvider_.get().then((function(t){return t.addAuthTokenListener(e)})))},e.prototype.removeTokenChangeListener=function(e){this.authProvider_.get().then((function(t){return t.removeAuthTokenListener(e)}))},e.prototype.notifyForInvalidToken=function(){var e='Provided authentication credentials for the app named "'+this.app_.name+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.app_.options?e+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.app_.options?e+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',M(e)},e}(),Dt=function(){function e(){this.counters_={}}return e.prototype.incrementCounter=function(e,t){void 0===t&&(t=1),l.contains(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t},e.prototype.get=function(){return l.deepCopy(this.counters_)},e}(),Nt=function(){function e(){}return e.getCollection=function(e){var t=e.toString();return this.collections_[t]||(this.collections_[t]=new Dt),this.collections_[t]},e.getOrCreateReporter=function(e,t){var n=e.toString();return this.reporters_[n]||(this.reporters_[n]=t()),this.reporters_[n]},e.collections_={},e.reporters_={},e}(),Rt=function(){function e(e){this.collection_=e,this.last_=null}return e.prototype.get=function(){var e=this.collection_.get(),t=s.__assign({},e);return this.last_&&N(this.last_,(function(e,n){t[e]=t[e]-n})),this.last_=e,t},e}(),Bt=function(){function e(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new Rt(e);var n=1e4+2e4*Math.random();F(this.reportStats_.bind(this),Math.floor(n))}return e.prototype.includeStat=function(e){this.statsToReport_[e]=!0},e.prototype.reportStats_=function(){var e=this,t=this.statsListener_.get(),n={},r=!1;N(t,(function(t,i){i>0&&l.contains(e.statsToReport_,t)&&(n[t]=i,r=!0)})),r&&this.server_.reportStats(n),F(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},e}(),Yt=function(){function e(){this.eventLists_=[],this.recursionDepth_=0}return e.prototype.queueEvents=function(e){for(var t=null,n=0;n<e.length;n++){var r=e[n],i=r.getPath();null===t||i.equals(t.getPath())||(this.eventLists_.push(t),t=null),null===t&&(t=new jt(i)),t.add(r)}t&&this.eventLists_.push(t)},e.prototype.raiseEventsAtPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_((function(t){return t.equals(e)}))},e.prototype.raiseEventsForChangedPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_((function(t){return t.contains(e)||e.contains(t)}))},e.prototype.raiseQueuedEventsMatchingPredicate_=function(e){this.recursionDepth_++;for(var t=!0,n=0;n<this.eventLists_.length;n++){var r=this.eventLists_[n];if(r)e(r.getPath())?(this.eventLists_[n].raise(),this.eventLists_[n]=null):t=!1}t&&(this.eventLists_=[]),this.recursionDepth_--},e}(),jt=function(){function e(e){this.path_=e,this.events_=[]}return e.prototype.add=function(e){this.events_.push(e)},e.prototype.raise=function(){for(var e=0;e<this.events_.length;e++){var t=this.events_[e];if(null!==t){this.events_[e]=null;var n=t.getEventRunner();_&&E("event: "+t.toString()),j(n)}}},e.prototype.getPath=function(){return this.path_},e}(),Ft=function(){function e(e){this.allowedEvents_=e,this.listeners_={},l.assert(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}return e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Array.isArray(this.listeners_[e]))for(var r=s.__spread(this.listeners_[e]),i=0;i<r.length;i++)r[i].callback.apply(r[i].context,t)},e.prototype.on=function(e,t,n){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:n});var r=this.getInitialEvent(e);r&&t.apply(n,r)},e.prototype.off=function(e,t,n){this.validateEventType_(e);for(var r=this.listeners_[e]||[],i=0;i<r.length;i++)if(r[i].callback===t&&(!n||n===r[i].context))return void r.splice(i,1)},e.prototype.validateEventType_=function(e){l.assert(this.allowedEvents_.find((function(t){return t===e})),"Unknown event: "+e)},e}(),Ht=function(e){function t(){var t,n,r=e.call(this,["visible"])||this;return"undefined"!=typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(n="visibilitychange",t="hidden"):void 0!==document.mozHidden?(n="mozvisibilitychange",t="mozHidden"):void 0!==document.msHidden?(n="msvisibilitychange",t="msHidden"):void 0!==document.webkitHidden&&(n="webkitvisibilitychange",t="webkitHidden")),r.visible_=!0,n&&document.addEventListener(n,(function(){var e=!document[t];e!==r.visible_&&(r.visible_=e,r.trigger("visible",e))}),!1),r}return s.__extends(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return l.assert("visible"===e,"Unknown event type: "+e),[this.visible_]},t}(Ft),Ut=function(e){function t(){var t=e.call(this,["online"])||this;return t.online_=!0,"undefined"==typeof window||void 0===window.addEventListener||l.isMobileCordova()||(window.addEventListener("online",(function(){t.online_||(t.online_=!0,t.trigger("online",!0))}),!1),window.addEventListener("offline",(function(){t.online_&&(t.online_=!1,t.trigger("online",!1))}),!1)),t}return s.__extends(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return l.assert("online"===e,"Unknown event type: "+e),[this.online_]},t.prototype.currentlyOnline=function(){return this.online_},t}(Ft),zt=function(){function e(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return e.prototype.closeAfter=function(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)},e.prototype.handleResponse=function(e,t){var n=this;this.pendingResponses[e]=t;for(var r=function(){var e=i.pendingResponses[i.currentResponseNum];delete i.pendingResponses[i.currentResponseNum];for(var t=function(t){e[t]&&j((function(){n.onMessage_(e[t])}))},r=0;r<e.length;++r)t(r);if(i.currentResponseNum===i.closeAfterResponse)return i.onClose&&(i.onClose(),i.onClose=null),"break";i.currentResponseNum++},i=this;this.pendingResponses[this.currentResponseNum];){if("break"===r())break}},e}(),Vt=function(){function e(e,t,n,r){this.connId=e,this.repoInfo=t,this.transportSessionId=n,this.lastSessionId=r,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=S(e),this.stats_=Nt.getCollection(t),this.urlFn=function(e){return t.connectionURL("long_polling",e)}}return e.prototype.open=function(e,t){var n=this;this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new zt(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout((function(){n.log_("Timed out trying to connect."),n.onClosed_(),n.connectTimeoutTimer_=null}),Math.floor(3e4)),function(e){if(l.isNodeSdk()||"complete"===document.readyState)e();else{var t=!1,n=function(){document.body?t||(t=!0,e()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&n()})),window.attachEvent("onload",n))}}((function(){if(!n.isClosed_){n.scriptTagHolder=new qt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.__read(e,5),i=r[0],a=r[1],o=r[2];r[3],r[4];if(n.incrementIncomingBytes_(e),n.scriptTagHolder)if(n.connectTimeoutTimer_&&(clearTimeout(n.connectTimeoutTimer_),n.connectTimeoutTimer_=null),n.everConnected_=!0,"start"===i)n.id=a,n.password=o;else{if("close"!==i)throw new Error("Unrecognized command received: "+i);a?(n.scriptTagHolder.sendNewPolls=!1,n.myPacketOrderer.closeAfter(a,(function(){n.onClosed_()}))):n.onClosed_()}}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.__read(e,2),i=r[0],a=r[1];n.incrementIncomingBytes_(e),n.myPacketOrderer.handleResponse(i,a)}),(function(){n.onClosed_()}),n.urlFn);var e={start:"t"};e.ser=Math.floor(1e8*Math.random()),n.scriptTagHolder.uniqueCallbackIdentifier&&(e.cb=n.scriptTagHolder.uniqueCallbackIdentifier),e.v="5",n.transportSessionId&&(e.s=n.transportSessionId),n.lastSessionId&&(e.ls=n.lastSessionId),"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(e.r="f");var t=n.urlFn(e);n.log_("Connecting via long-poll to "+t),n.scriptTagHolder.addTag(t,(function(){}))}}))},e.prototype.start=function(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)},e.forceAllow=function(){e.forceAllow_=!0},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){return!l.isNodeSdk()&&(!!e.forceAllow_||!(e.forceDisallow_||"undefined"==typeof document||null==document.createElement||"object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href)||"object"==typeof Windows&&"object"==typeof Windows.UI))},e.prototype.markConnectionHealthy=function(){},e.prototype.shutdown_=function(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))},e.prototype.close=function(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())},e.prototype.send=function(e){var t=l.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);for(var n=l.base64Encode(t),r=D(n,1840),i=0;i<r.length;i++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,r.length,r[i]),this.curSegmentNum++},e.prototype.addDisconnectPingFrame=function(e,t){if(!l.isNodeSdk()){this.myDisconnFrame=document.createElement("iframe");var n={dframe:"t"};n.id=e,n.pw=t,this.myDisconnFrame.src=this.urlFn(n),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}},e.prototype.incrementIncomingBytes_=function(e){var t=l.stringify(e).length;this.bytesReceived+=t,this.stats_.incrementCounter("bytes_received",t)},e}(),qt=function(){function e(t,n,r,i){if(this.onDisconnect=r,this.urlFn=i,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,l.isNodeSdk())this.commandCB=t,this.onMessageCB=n;else{this.uniqueCallbackIdentifier=g(),window["pLPCommand"+this.uniqueCallbackIdentifier]=t,window["pRTLPCB"+this.uniqueCallbackIdentifier]=n,this.myIFrame=e.createIFrame_();var a="";if(this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,"javascript:".length))a='<script>document.domain="'+document.domain+'";<\/script>';var o="<html><body>"+a+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(o),this.myIFrame.doc.close()}catch(e){E("frame writing exception"),e.stack&&E(e.stack),E(e)}}}return e.createIFrame_=function(){var e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||E("No IE domain setting required")}catch(n){var t=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+t+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e},e.prototype.close=function(){var e=this;this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout((function(){null!==e.myIFrame&&(document.body.removeChild(e.myIFrame),e.myIFrame=null)}),Math.floor(0)));var t=this.onDisconnect;t&&(this.onDisconnect=null,t())},e.prototype.startLongPoll=function(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););},e.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var e={};e.id=this.myID,e.pw=this.myPW,e.ser=this.currentSerial;for(var t=this.urlFn(e),n="",r=0;this.pendingSegs.length>0;){if(!(this.pendingSegs[0].d.length+30+n.length<=1870))break;var i=this.pendingSegs.shift();n=n+"&seg"+r+"="+i.seg+"&ts"+r+"="+i.ts+"&d"+r+"="+i.d,r++}return t+=n,this.addLongPollTag_(t,this.currentSerial),!0}return!1},e.prototype.enqueueSegment=function(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()},e.prototype.addLongPollTag_=function(e,t){var n=this;this.outstandingRequests.add(t);var r=function(){n.outstandingRequests.delete(t),n.newRequest_()},i=setTimeout(r,Math.floor(25e3));this.addTag(e,(function(){clearTimeout(i),r()}))},e.prototype.addTag=function(e,t){var n=this;l.isNodeSdk()?this.doNodeLongPoll(e,t):setTimeout((function(){try{if(!n.sendNewPolls)return;var r=n.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=e,r.onload=r.onreadystatechange=function(){var e=r.readyState;e&&"loaded"!==e&&"complete"!==e||(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),t())},r.onerror=function(){E("Long-poll script failed to load: "+e),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(r)}catch(e){}}),Math.floor(1))},e}(),Wt="";var Gt=null;"undefined"!=typeof MozWebSocket?Gt=MozWebSocket:"undefined"!=typeof WebSocket&&(Gt=WebSocket);var Kt=function(){function e(t,n,r,i){this.connId=t,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=S(this.connId),this.stats_=Nt.getCollection(n),this.connURL=e.connectionURL_(n,r,i)}return e.connectionURL_=function(e,t,n){var r={v:"5"};return!l.isNodeSdk()&&"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(r.r="f"),t&&(r.s=t),n&&(r.ls=n),e.connectionURL("websocket",r)},e.prototype.open=function(e,t){var n=this;this.onDisconnect=t,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,p.set("previous_websocket_failure",!0);try{if(l.isNodeSdk()){var i=l.CONSTANTS.NODE_ADMIN?"AdminNode":"Node",a={headers:{"User-Agent":"Firebase/5/"+Wt+"/"+r.platform+"/"+i}},o=r.env,s=0===this.connURL.indexOf("wss://")?o.HTTPS_PROXY||o.https_proxy:o.HTTP_PROXY||o.http_proxy;s&&(a.proxy={origin:s}),this.mySock=new Gt(this.connURL,[],a)}else this.mySock=new Gt(this.connURL)}catch(e){this.log_("Error instantiating WebSocket.");var c=e.message||e.data;return c&&this.log_(c),void this.onClosed_()}this.mySock.onopen=function(){n.log_("Websocket connected."),n.everConnected_=!0},this.mySock.onclose=function(){n.log_("Websocket connection was disconnected."),n.mySock=null,n.onClosed_()},this.mySock.onmessage=function(e){n.handleIncomingFrame(e)},this.mySock.onerror=function(e){n.log_("WebSocket error. Closing connection.");var t=e.message||e.data;t&&n.log_(t),n.onClosed_()}},e.prototype.start=function(){},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){var t=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var n=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);n&&n.length>1&&parseFloat(n[1])<4.4&&(t=!0)}return!t&&null!==Gt&&!e.forceDisallow_},e.previouslyFailed=function(){return p.isInMemoryStorage||!0===p.get("previous_websocket_failure")},e.prototype.markConnectionHealthy=function(){p.remove("previous_websocket_failure")},e.prototype.appendFrame_=function(e){if(this.frames.push(e),this.frames.length===this.totalFrames){var t=this.frames.join("");this.frames=null;var n=l.jsonEval(t);this.onMessage(n)}},e.prototype.handleNewFrameCount_=function(e){this.totalFrames=e,this.frames=[]},e.prototype.extractFrameCount_=function(e){if(l.assert(null===this.frames,"We already have a frame buffer"),e.length<=6){var t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e},e.prototype.handleIncomingFrame=function(e){if(null!==this.mySock){var t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{var n=this.extractFrameCount_(t);null!==n&&this.appendFrame_(n)}}},e.prototype.send=function(e){this.resetKeepAlive();var t=l.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);var n=D(t,16384);n.length>1&&this.sendString_(String(n.length));for(var r=0;r<n.length;r++)this.sendString_(n[r])},e.prototype.shutdown_=function(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))},e.prototype.close=function(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())},e.prototype.resetKeepAlive=function(){var e=this;clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval((function(){e.mySock&&e.sendString_("0"),e.resetKeepAlive()}),Math.floor(45e3))},e.prototype.sendString_=function(e){try{this.mySock.send(e)}catch(e){this.log_("Exception thrown from WebSocket.send():",e.message||e.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}},e.responsesRequiredToBeHealthy=2,e.healthyTimeout=3e4,e}(),Jt=function(){function e(e){this.initTransports_(e)}return Object.defineProperty(e,"ALL_TRANSPORTS",{get:function(){return[Vt,Kt]},enumerable:!0,configurable:!0}),e.prototype.initTransports_=function(t){var n,r,i=Kt&&Kt.isAvailable(),a=i&&!Kt.previouslyFailed();if(t.webSocketOnly&&(i||M("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),a=!0),a)this.transports_=[Kt];else{var o=this.transports_=[];try{for(var l=s.__values(e.ALL_TRANSPORTS),c=l.next();!c.done;c=l.next()){var u=c.value;u&&u.isAvailable()&&o.push(u)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}},e.prototype.initialTransport=function(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")},e.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},e}(),Xt=function(){function e(e,t,n,r,i,a,o){this.id=e,this.repoInfo_=t,this.onMessage_=n,this.onReady_=r,this.onDisconnect_=i,this.onKill_=a,this.lastSessionId=o,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=S("c:"+this.id+":"),this.transportManager_=new Jt(t),this.log_("Connection created"),this.start_()}return e.prototype.start_=function(){var e=this,t=this.transportManager_.initialTransport();this.conn_=new t(this.nextTransportId_(),this.repoInfo_,void 0,this.lastSessionId),this.primaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout((function(){e.conn_&&e.conn_.open(n,r)}),Math.floor(0));var i=t.healthyTimeout||0;i>0&&(this.healthyTimeout_=F((function(){e.healthyTimeout_=null,e.isHealthy_||(e.conn_&&e.conn_.bytesReceived>102400?(e.log_("Connection exceeded healthy timeout but has received "+e.conn_.bytesReceived+" bytes. Marking connection healthy."),e.isHealthy_=!0,e.conn_.markConnectionHealthy()):e.conn_&&e.conn_.bytesSent>10240?e.log_("Connection exceeded healthy timeout but has sent "+e.conn_.bytesSent+" bytes. Leaving connection alive."):(e.log_("Closing unhealthy connection after timeout."),e.close()))}),Math.floor(i)))},e.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},e.prototype.disconnReceiver_=function(e){var t=this;return function(n){e===t.conn_?t.onConnectionLost_(n):e===t.secondaryConn_?(t.log_("Secondary connection lost."),t.onSecondaryConnectionLost_()):t.log_("closing an old connection")}},e.prototype.connReceiver_=function(e){var t=this;return function(n){2!==t.state_&&(e===t.rx_?t.onPrimaryMessageReceived_(n):e===t.secondaryConn_?t.onSecondaryMessageReceived_(n):t.log_("message on old connection"))}},e.prototype.sendRequest=function(e){var t={t:"d",d:e};this.sendData_(t)},e.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},e.prototype.onSecondaryControl_=function(e){if("t"in e){var t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},e.prototype.onSecondaryMessageReceived_=function(e){var t=I("t",e),n=I("d",e);if("c"===t)this.onSecondaryControl_(n);else{if("d"!==t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}},e.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))},e.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},e.prototype.onPrimaryMessageReceived_=function(e){var t=I("t",e),n=I("d",e);"c"===t?this.onControl_(n):"d"===t&&this.onDataMessage_(n)},e.prototype.onDataMessage_=function(e){this.onPrimaryResponse_(),this.onMessage_(e)},e.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},e.prototype.onControl_=function(e){var t=I("t",e);if("d"in e){var n=e.d;if("h"===t)this.onHandshake_(n);else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var r=0;r<this.pendingDataMessages.length;++r)this.onDataMessage_(this.pendingDataMessages[r]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===t?this.onConnectionShutdown_(n):"r"===t?this.onReset_(n):"e"===t?T("Server Error: "+n):"o"===t?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):T("Unknown control packet command: "+t)}},e.prototype.onHandshake_=function(e){var t=e.ts,n=e.v,r=e.h;this.sessionId=e.s,this.repoInfo_.updateHost(r),0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,t),"5"!==n&&M("Protocol version mismatch detected"),this.tryStartUpgrade_())},e.prototype.tryStartUpgrade_=function(){var e=this.transportManager_.upgradeTransport();e&&this.startUpgrade_(e)},e.prototype.startUpgrade_=function(e){var t=this;this.secondaryConn_=new e(this.nextTransportId_(),this.repoInfo_,this.sessionId),this.secondaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.secondaryConn_),r=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,r),F((function(){t.secondaryConn_&&(t.log_("Timed out trying to upgrade."),t.secondaryConn_.close())}),Math.floor(6e4))},e.prototype.onReset_=function(e){this.log_("Reset packet received. New host: "+e),this.repoInfo_.updateHost(e),1===this.state_?this.close():(this.closeConnections_(),this.start_())},e.prototype.onConnectionEstablished_=function(e,t){var n=this;this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(t,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):F((function(){n.sendPingOnPrimaryIfNecessary_()}),Math.floor(5e3))},e.prototype.sendPingOnPrimaryIfNecessary_=function(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))},e.prototype.onSecondaryConnectionLost_=function(){var e=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==e&&this.rx_!==e||this.close()},e.prototype.onConnectionLost_=function(e){this.conn_=null,e||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(p.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()},e.prototype.onConnectionShutdown_=function(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()},e.prototype.sendData_=function(e){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(e)},e.prototype.close=function(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))},e.prototype.closeConnections_=function(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)},e}(),Qt=function(){function e(){}return e.prototype.put=function(e,t,n,r){},e.prototype.merge=function(e,t,n,r){},e.prototype.refreshAuthToken=function(e){},e.prototype.onDisconnectPut=function(e,t,n){},e.prototype.onDisconnectMerge=function(e,t,n){},e.prototype.onDisconnectCancel=function(e,t){},e.prototype.reportStats=function(e){},e}(),Zt=function(e){function t(n,r,i,a,o,s){var c=e.call(this)||this;if(c.repoInfo_=n,c.onDataUpdate_=r,c.onConnectStatus_=i,c.onServerInfoUpdate_=a,c.authTokenProvider_=o,c.authOverride_=s,c.id=t.nextPersistentConnectionId_++,c.log_=S("p:"+c.id+":"),c.interruptReasons_={},c.listens=new Map,c.outstandingPuts_=[],c.outstandingPutCount_=0,c.onDisconnectRequestQueue_=[],c.connected_=!1,c.reconnectDelay_=1e3,c.maxReconnectDelay_=3e5,c.securityDebugCallback_=null,c.lastSessionId=null,c.establishConnectionTimer_=null,c.visible_=!1,c.requestCBHash_={},c.requestNumber_=0,c.realtime_=null,c.authToken_=null,c.forceTokenRefresh_=!1,c.invalidAuthTokenCount_=0,c.firstConnection_=!0,c.lastConnectionAttemptTime_=null,c.lastConnectionEstablishedTime_=null,s&&!l.isNodeSdk())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return c.scheduleConnect_(0),Ht.getInstance().on("visible",c.onVisible_,c),-1===n.host.indexOf("fblocal")&&Ut.getInstance().on("online",c.onOnline_,c),c}return s.__extends(t,e),t.prototype.sendRequest=function(e,t,n){var r=++this.requestNumber_,i={r:r,a:e,b:t};this.log_(l.stringify(i)),l.assert(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(i),n&&(this.requestCBHash_[r]=n)},t.prototype.listen=function(e,t,n,r){var i=e.queryIdentifier(),a=e.path.toString();this.log_("Listen called for "+a+" "+i),this.listens.has(a)||this.listens.set(a,new Map),l.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"listen() called for non-default but complete query"),l.assert(!this.listens.get(a).has(i),"listen() called twice for same path/queryId.");var o={onComplete:r,hashFn:t,query:e,tag:n};this.listens.get(a).set(i,o),this.connected_&&this.sendListen_(o)},t.prototype.sendListen_=function(e){var n=this,r=e.query,i=r.path.toString(),a=r.queryIdentifier();this.log_("Listen on "+i+" for "+a);var o={p:i};e.tag&&(o.q=r.queryObject(),o.t=e.tag),o.h=e.hashFn(),this.sendRequest("q",o,(function(o){var s=o.d,l=o.s;t.warnOnListenWarnings_(s,r),(n.listens.get(i)&&n.listens.get(i).get(a))===e&&(n.log_("listen response",o),"ok"!==l&&n.removeListen_(i,a),e.onComplete&&e.onComplete(l,s))}))},t.warnOnListenWarnings_=function(e,t){if(e&&"object"==typeof e&&l.contains(e,"w")){var n=l.safeGet(e,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){var r='".indexOn": "'+t.getQueryParams().getIndex().toString()+'"',i=t.path.toString();M("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding "+r+" at "+i+" to your security rules for better performance.")}}},t.prototype.refreshAuthToken=function(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},(function(){})),this.reduceReconnectDelayIfAdminCredential_(e)},t.prototype.reduceReconnectDelayIfAdminCredential_=function(e){(e&&40===e.length||l.isAdmin(e))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=3e4)},t.prototype.tryAuth=function(){var e=this;if(this.connected_&&this.authToken_){var t=this.authToken_,n=l.isValidFormat(t)?"auth":"gauth",r={cred:t};null===this.authOverride_?r.noauth=!0:"object"==typeof this.authOverride_&&(r.authvar=this.authOverride_),this.sendRequest(n,r,(function(n){var r=n.s,i=n.d||"error";e.authToken_===t&&("ok"===r?e.invalidAuthTokenCount_=0:e.onAuthRevoked_(r,i))}))}},t.prototype.unlisten=function(e,t){var n=e.path.toString(),r=e.queryIdentifier();this.log_("Unlisten called for "+n+" "+r),l.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(n,r)&&this.connected_&&this.sendUnlisten_(n,r,e.queryObject(),t)},t.prototype.sendUnlisten_=function(e,t,n,r){this.log_("Unlisten on "+e+" for "+t);var i={p:e};r&&(i.q=n,i.t=r),this.sendRequest("n",i)},t.prototype.onDisconnectPut=function(e,t,n){this.connected_?this.sendOnDisconnect_("o",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:t,onComplete:n})},t.prototype.onDisconnectMerge=function(e,t,n){this.connected_?this.sendOnDisconnect_("om",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:t,onComplete:n})},t.prototype.onDisconnectCancel=function(e,t){this.connected_?this.sendOnDisconnect_("oc",e,null,t):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:t})},t.prototype.sendOnDisconnect_=function(e,t,n,r){var i={p:t,d:n};this.log_("onDisconnect "+e,i),this.sendRequest(e,i,(function(e){r&&setTimeout((function(){r(e.s,e.d)}),Math.floor(0))}))},t.prototype.put=function(e,t,n,r){this.putInternal("p",e,t,n,r)},t.prototype.merge=function(e,t,n,r){this.putInternal("m",e,t,n,r)},t.prototype.putInternal=function(e,t,n,r,i){var a={p:t,d:n};void 0!==i&&(a.h=i),this.outstandingPuts_.push({action:e,request:a,onComplete:r}),this.outstandingPutCount_++;var o=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(o):this.log_("Buffering put: "+t)},t.prototype.sendPut_=function(e){var t=this,n=this.outstandingPuts_[e].action,r=this.outstandingPuts_[e].request,i=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(n,r,(function(r){t.log_(n+" response",r),delete t.outstandingPuts_[e],t.outstandingPutCount_--,0===t.outstandingPutCount_&&(t.outstandingPuts_=[]),i&&i(r.s,r.d)}))},t.prototype.reportStats=function(e){var t=this;if(this.connected_){var n={c:e};this.log_("reportStats",n),this.sendRequest("s",n,(function(e){if("ok"!==e.s){var n=e.d;t.log_("reportStats","Error sending stats: "+n)}}))}},t.prototype.onDataMessage_=function(e){if("r"in e){this.log_("from server: "+l.stringify(e));var t=e.r,n=this.requestCBHash_[t];n&&(delete this.requestCBHash_[t],n(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}},t.prototype.onDataPush_=function(e,t){this.log_("handleServerMessage",e,t),"d"===e?this.onDataUpdate_(t.p,t.d,!1,t.t):"m"===e?this.onDataUpdate_(t.p,t.d,!0,t.t):"c"===e?this.onListenRevoked_(t.p,t.q):"ac"===e?this.onAuthRevoked_(t.s,t.d):"sd"===e?this.onSecurityDebugPacket_(t):T("Unrecognized action received from server: "+l.stringify(e)+"\nAre you using the latest client?")},t.prototype.onReady_=function(e,t){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(e),this.lastSessionId=t,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)},t.prototype.scheduleConnect_=function(e){var t=this;l.assert(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout((function(){t.establishConnectionTimer_=null,t.establishConnection_()}),Math.floor(e))},t.prototype.onVisible_=function(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0)),this.visible_=e},t.prototype.onOnline_=function(e){e?(this.log_("Browser went online."),this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline. Killing connection."),this.realtime_&&this.realtime_.close())},t.prototype.onRealtimeDisconnect_=function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){(new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=1e3),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();var e=(new Date).getTime()-this.lastConnectionAttemptTime_,t=Math.max(0,this.reconnectDelay_-e);t=Math.random()*t,this.log_("Trying to reconnect in "+t+"ms"),this.scheduleConnect_(t),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},t.prototype.establishConnection_=function(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;var e=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),i=this.id+":"+t.nextConnectionId_++,a=this,o=this.lastSessionId,s=!1,c=null,u=function(){c?c.close():(s=!0,r())};this.realtime_={close:u,sendRequest:function(e){l.assert(c,"sendRequest call when we're not connected not allowed."),c.sendRequest(e)}};var d=this.forceTokenRefresh_;this.forceTokenRefresh_=!1,this.authTokenProvider_.getToken(d).then((function(t){s?E("getToken() completed but was canceled"):(E("getToken() completed. Creating connection."),a.authToken_=t&&t.accessToken,c=new Xt(i,a.repoInfo_,e,n,r,(function(e){M(e+" ("+a.repoInfo_.toString()+")"),a.interrupt("server_kill")}),o))})).then(null,(function(e){a.log_("Failed to get token: "+e),s||(l.CONSTANTS.NODE_ADMIN&&M(e),u())}))}},t.prototype.interrupt=function(e){E("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},t.prototype.resume=function(e){E("Resuming connection for reason: "+e),delete this.interruptReasons_[e],l.isEmpty(this.interruptReasons_)&&(this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0))},t.prototype.handleTimestamp_=function(e){var t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})},t.prototype.cancelSentTransactions_=function(){for(var e=0;e<this.outstandingPuts_.length;e++){var t=this.outstandingPuts_[e];t&&"h"in t.request&&t.queued&&(t.onComplete&&t.onComplete("disconnect"),delete this.outstandingPuts_[e],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])},t.prototype.onListenRevoked_=function(e,t){var n;n=t?t.map((function(e){return A(e)})).join("$"):"default";var r=this.removeListen_(e,n);r&&r.onComplete&&r.onComplete("permission_denied")},t.prototype.removeListen_=function(e,t){var n,r=new H(e).toString();if(this.listens.has(r)){var i=this.listens.get(r);n=i.get(t),i.delete(t),0===i.size&&this.listens.delete(r)}else n=void 0;return n},t.prototype.onAuthRevoked_=function(e,t){E("Auth token revoked: "+e+"/"+t),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))},t.prototype.onSecurityDebugPacket_=function(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace("\n","\nFIREBASE: "))},t.prototype.restoreState_=function(){var e,t,n,r;this.tryAuth();try{for(var i=s.__values(this.listens.values()),a=i.next();!a.done;a=i.next()){var o=a.value;try{for(var l=(n=void 0,s.__values(o.values())),c=l.next();!c.done;c=l.next()){var u=c.value;this.sendListen_(u)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}for(var d=0;d<this.outstandingPuts_.length;d++)this.outstandingPuts_[d]&&this.sendPut_(d);for(;this.onDisconnectRequestQueue_.length;){var h=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(h.action,h.pathString,h.data,h.onComplete)}},t.prototype.sendConnectStats_=function(){var e={},t="js";l.CONSTANTS.NODE_ADMIN?t="admin_node":l.CONSTANTS.NODE_CLIENT&&(t="node"),e["sdk."+t+"."+Wt.replace(/\./g,"-")]=1,l.isMobileCordova()?e["framework.cordova"]=1:l.isReactNative()&&(e["framework.reactnative"]=1),this.reportStats(e)},t.prototype.shouldReconnect_=function(){var e=Ut.getInstance().currentlyOnline();return l.isEmpty(this.interruptReasons_)&&e},t.nextPersistentConnectionId_=0,t.nextConnectionId_=0,t}(Qt),en=function(e){function t(t,n,r){var i=e.call(this)||this;return i.repoInfo_=t,i.onDataUpdate_=n,i.authTokenProvider_=r,i.log_=S("p:rest:"),i.listens_={},i}return s.__extends(t,e),t.prototype.reportStats=function(e){throw new Error("Method not implemented.")},t.getListenId_=function(e,t){return void 0!==t?"tag$"+t:(l.assert(e.getQueryParams().isDefault(),"should have a tag if it's not a default query."),e.path.toString())},t.prototype.listen=function(e,n,r,i){var a=this,o=e.path.toString();this.log_("Listen called for "+o+" "+e.queryIdentifier());var s=t.getListenId_(e,r),c={};this.listens_[s]=c;var u=e.getQueryParams().toRestQueryStringParameters();this.restRequest_(o+".json",u,(function(e,t){var n=t;(404===e&&(n=null,e=null),null===e&&a.onDataUpdate_(o,n,!1,r),l.safeGet(a.listens_,s)===c)&&i(e?401===e?"permission_denied":"rest_error:"+e:"ok",null)}))},t.prototype.unlisten=function(e,n){var r=t.getListenId_(e,n);delete this.listens_[r]},t.prototype.refreshAuthToken=function(e){},t.prototype.restRequest_=function(e,t,n){var r=this;void 0===t&&(t={}),t.format="export",this.authTokenProvider_.getToken(!1).then((function(i){var a=i&&i.accessToken;a&&(t.auth=a);var o=(r.repoInfo_.secure?"https://":"http://")+r.repoInfo_.host+e+"?ns="+r.repoInfo_.namespace+l.querystring(t);r.log_("Sending REST request for "+o);var s=new XMLHttpRequest;s.onreadystatechange=function(){if(n&&4===s.readyState){r.log_("REST Response for "+o+" received. status:",s.status,"response:",s.responseText);var e=null;if(s.status>=200&&s.status<300){try{e=l.jsonEval(s.responseText)}catch(e){M("Failed to parse JSON response for "+o+": "+s.responseText)}n(null,e)}else 401!==s.status&&404!==s.status&&M("Got unsuccessful REST response for "+o+" Status: "+s.status),n(s.status);n=null}},s.open("GET",o,!0),s.send()}))},t}(Qt),tn=function(){function e(e,t,n,r){var i=this;this.repoInfo_=e,this.app=n,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new Yt,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=new lt,this.persistentConnection_=null;var a=new At(n,r);if(this.stats_=Nt.getCollection(e),t||("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)this.server_=new en(this.repoInfo_,this.onDataUpdate_.bind(this),a),setTimeout(this.onConnectStatus_.bind(this,!0),0);else{var o=n.options.databaseAuthVariableOverride;if(null!=o){if("object"!=typeof o)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{l.stringify(o)}catch(e){throw new Error("Invalid authOverride provided: "+e)}}this.persistentConnection_=new Zt(this.repoInfo_,this.onDataUpdate_.bind(this),this.onConnectStatus_.bind(this),this.onServerInfoUpdate_.bind(this),a,o),this.server_=this.persistentConnection_}a.addTokenChangeListener((function(e){i.server_.refreshAuthToken(e)})),this.statsReporter_=Nt.getOrCreateReporter(e,(function(){return new Bt(i.stats_,i.server_)})),this.transactionsInit_(),this.infoData_=new It,this.infoSyncTree_=new Ot({startListening:function(e,t,n,r){var a=[],o=i.infoData_.getNode(e.path);return o.isEmpty()||(a=i.infoSyncTree_.applyServerOverwrite(e.path,o),setTimeout((function(){r("ok")}),0)),a},stopListening:function(){}}),this.updateInfo_("connected",!1),this.serverSyncTree_=new Ot({startListening:function(e,t,n,r){return i.server_.listen(e,n,t,(function(t,n){var a=r(t,n);i.eventQueue_.raiseEventsForChangedPath(e.path,a)})),[]},stopListening:function(e,t){i.server_.unlisten(e,t)}})}return e.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},e.prototype.name=function(){return this.repoInfo_.namespace},e.prototype.serverTime=function(){var e=this.infoData_.getNode(new H(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+e},e.prototype.generateServerValues=function(){return(e=(e={timestamp:this.serverTime()})||{}).timestamp=e.timestamp||(new Date).getTime(),e;var e},e.prototype.onDataUpdate_=function(e,t,n,r){this.dataUpdateCount++;var i=new H(e);t=this.interceptServerDataCallback_?this.interceptServerDataCallback_(e,t):t;var a=[];if(r)if(n){var o=l.map(t,(function(e){return Ue(e)}));a=this.serverSyncTree_.applyTaggedQueryMerge(i,o,r)}else{var s=Ue(t);a=this.serverSyncTree_.applyTaggedQueryOverwrite(i,s,r)}else if(n){var c=l.map(t,(function(e){return Ue(e)}));a=this.serverSyncTree_.applyServerMerge(i,c)}else{var u=Ue(t);a=this.serverSyncTree_.applyServerOverwrite(i,u)}var d=i;a.length>0&&(d=this.rerunTransactions_(i)),this.eventQueue_.raiseEventsForChangedPath(d,a)},e.prototype.interceptServerData_=function(e){this.interceptServerDataCallback_=e},e.prototype.onConnectStatus_=function(e){this.updateInfo_("connected",e),!1===e&&this.runOnDisconnectEvents_()},e.prototype.onServerInfoUpdate_=function(e){var t=this;N(e,(function(e,n){t.updateInfo_(e,n)}))},e.prototype.updateInfo_=function(e,t){var n=new H("/.info/"+e),r=Ue(t);this.infoData_.updateSnapshot(n,r);var i=this.infoSyncTree_.applyServerOverwrite(n,r);this.eventQueue_.raiseEventsForChangedPath(n,i)},e.prototype.getNextWriteId_=function(){return this.nextWriteId_++},e.prototype.setWithPriority=function(e,t,n,r){var i=this;this.log_("set",{path:e.toString(),value:t,priority:n});var a=this.generateServerValues(),o=Ue(t,n),s=this.serverSyncTree_.calcCompleteEventCache(e),l=at(o,s,a),c=this.getNextWriteId_(),u=this.serverSyncTree_.applyUserOverwrite(e,l,c,!0);this.eventQueue_.queueEvents(u),this.server_.put(e.toString(),o.val(!0),(function(t,n){var a="ok"===t;a||M("set at "+e+" failed: "+t);var o=i.serverSyncTree_.ackUserWrite(c,!a);i.eventQueue_.raiseEventsForChangedPath(e,o),i.callOnCompleteCallback(r,t,n)}));var d=this.abortTransactions_(e);this.rerunTransactions_(d),this.eventQueue_.raiseEventsForChangedPath(d,[])},e.prototype.update=function(e,t,n){var r=this;this.log_("update",{path:e.toString(),value:t});var i=!0,a=this.generateServerValues(),o={};if(N(t,(function(t,n){i=!1,o[t]=it(e.child(t),Ue(n),r.serverSyncTree_,a)})),i)E("update() called with empty data. Don't do anything."),this.callOnCompleteCallback(n,"ok");else{var s=this.getNextWriteId_(),l=this.serverSyncTree_.applyUserMerge(e,o,s);this.eventQueue_.queueEvents(l),this.server_.merge(e.toString(),t,(function(t,i){var a="ok"===t;a||M("update at "+e+" failed: "+t);var o=r.serverSyncTree_.ackUserWrite(s,!a),l=o.length>0?r.rerunTransactions_(e):e;r.eventQueue_.raiseEventsForChangedPath(l,o),r.callOnCompleteCallback(n,t,i)})),N(t,(function(t){var n=r.abortTransactions_(e.child(t));r.rerunTransactions_(n)})),this.eventQueue_.raiseEventsForChangedPath(e,[])}},e.prototype.runOnDisconnectEvents_=function(){var e=this;this.log_("onDisconnectEvents");var t=this.generateServerValues(),n=new lt;this.onDisconnect_.forEachTree(H.Empty,(function(r,i){var a=it(r,i,e.serverSyncTree_,t);n.remember(r,a)}));var r=[];n.forEachTree(H.Empty,(function(t,n){r=r.concat(e.serverSyncTree_.applyServerOverwrite(t,n));var i=e.abortTransactions_(t);e.rerunTransactions_(i)})),this.onDisconnect_=new lt,this.eventQueue_.raiseEventsForChangedPath(H.Empty,r)},e.prototype.onDisconnectCancel=function(e,t){var n=this;this.server_.onDisconnectCancel(e.toString(),(function(r,i){"ok"===r&&n.onDisconnect_.forget(e),n.callOnCompleteCallback(t,r,i)}))},e.prototype.onDisconnectSet=function(e,t,n){var r=this,i=Ue(t);this.server_.onDisconnectPut(e.toString(),i.val(!0),(function(t,a){"ok"===t&&r.onDisconnect_.remember(e,i),r.callOnCompleteCallback(n,t,a)}))},e.prototype.onDisconnectSetWithPriority=function(e,t,n,r){var i=this,a=Ue(t,n);this.server_.onDisconnectPut(e.toString(),a.val(!0),(function(t,n){"ok"===t&&i.onDisconnect_.remember(e,a),i.callOnCompleteCallback(r,t,n)}))},e.prototype.onDisconnectUpdate=function(e,t,n){var r=this;if(l.isEmpty(t))return E("onDisconnect().update() called with empty data. Don't do anything."),void this.callOnCompleteCallback(n,"ok");this.server_.onDisconnectMerge(e.toString(),t,(function(i,a){"ok"===i&&N(t,(function(t,n){var i=Ue(n);r.onDisconnect_.remember(e.child(t),i)})),r.callOnCompleteCallback(n,i,a)}))},e.prototype.addEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.addEventRegistration(e,t):this.serverSyncTree_.addEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.removeEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.removeEventRegistration(e,t):this.serverSyncTree_.removeEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.interrupt=function(){this.persistentConnection_&&this.persistentConnection_.interrupt("repo_interrupt")},e.prototype.resume=function(){this.persistentConnection_&&this.persistentConnection_.resume("repo_interrupt")},e.prototype.stats=function(e){if(void 0===e&&(e=!1),"undefined"!=typeof console){var t;e?(this.statsListener_||(this.statsListener_=new Rt(this.stats_)),t=this.statsListener_.get()):t=this.stats_.get();var n=Object.keys(t).reduce((function(e,t){return Math.max(t.length,e)}),0);N(t,(function(e,t){for(var r=e,i=e.length;i<n+2;i++)r+=" ";console.log(r+t)}))}},e.prototype.statsIncrementCounter=function(e){this.stats_.incrementCounter(e),this.statsReporter_.includeStat(e)},e.prototype.log_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="";this.persistentConnection_&&(n=this.persistentConnection_.id+":"),E.apply(void 0,s.__spread([n],e))},e.prototype.callOnCompleteCallback=function(e,t,n){e&&j((function(){if("ok"===t)e(null);else{var r=(t||"error").toUpperCase(),i=r;n&&(i+=": "+n);var a=new Error(i);a.code=r,e(a)}}))},Object.defineProperty(e.prototype,"database",{get:function(){return this.__database||(this.__database=new hn(this))},enumerable:!0,configurable:!0}),e}(),nn=function(){function e(t){this.indexedFilter_=new _t(t.getIndex()),this.index_=t.getIndex(),this.startPost_=e.getStartPost_(t),this.endPost_=e.getEndPost_(t)}return e.prototype.getStartPost=function(){return this.startPost_},e.prototype.getEndPost=function(){return this.endPost_},e.prototype.matches=function(e){return this.index_.compare(this.getStartPost(),e)<=0&&this.index_.compare(e,this.getEndPost())<=0},e.prototype.updateChild=function(e,t,n,r,i,a){return this.matches(new ge(t,n))||(n=Fe.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,r,i,a)},e.prototype.updateFullNode=function(e,t,n){t.isLeafNode()&&(t=Fe.EMPTY_NODE);var r=t.withIndex(this.index_);r=r.updatePriority(Fe.EMPTY_NODE);var i=this;return t.forEachChild($e,(function(e,t){i.matches(new ge(e,t))||(r=r.updateImmediateChild(e,Fe.EMPTY_NODE))})),this.indexedFilter_.updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.indexedFilter_},e.prototype.getIndex=function(){return this.index_},e.getStartPost_=function(e){if(e.hasStart()){var t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()},e.getEndPost_=function(e){if(e.hasEnd()){var t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()},e}(),rn=function(){function e(e){this.rangedFilter_=new nn(e),this.index_=e.getIndex(),this.limit_=e.getLimit(),this.reverse_=!e.isViewFromLeft()}return e.prototype.updateChild=function(e,t,n,r,i,a){return this.rangedFilter_.matches(new ge(t,n))||(n=Fe.EMPTY_NODE),e.getImmediateChild(t).equals(n)?e:e.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(e,t,n,r,i,a):this.fullLimitUpdateChild_(e,t,n,i,a)},e.prototype.updateFullNode=function(e,t,n){var r;if(t.isLeafNode()||t.isEmpty())r=Fe.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<t.numChildren()&&t.isIndexed(this.index_)){r=Fe.EMPTY_NODE.withIndex(this.index_);var i=void 0;i=this.reverse_?t.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):t.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);for(var a=0;i.hasNext()&&a<this.limit_;){var o=i.getNext();if(!(this.reverse_?this.index_.compare(this.rangedFilter_.getStartPost(),o)<=0:this.index_.compare(o,this.rangedFilter_.getEndPost())<=0))break;r=r.updateImmediateChild(o.name,o.node),a++}}else{r=(r=t.withIndex(this.index_)).updatePriority(Fe.EMPTY_NODE);var s=void 0,l=void 0,c=void 0;i=void 0;if(this.reverse_){i=r.getReverseIterator(this.index_),s=this.rangedFilter_.getEndPost(),l=this.rangedFilter_.getStartPost();var u=this.index_.getCompare();c=function(e,t){return u(t,e)}}else i=r.getIterator(this.index_),s=this.rangedFilter_.getStartPost(),l=this.rangedFilter_.getEndPost(),c=this.index_.getCompare();a=0;for(var d=!1;i.hasNext();){o=i.getNext();!d&&c(s,o)<=0&&(d=!0),d&&a<this.limit_&&c(o,l)<=0?a++:r=r.updateImmediateChild(o.name,Fe.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.rangedFilter_.getIndexedFilter()},e.prototype.getIndex=function(){return this.index_},e.prototype.fullLimitUpdateChild_=function(e,t,n,r,i){var a;if(this.reverse_){var o=this.index_.getCompare();a=function(e,t){return o(t,e)}}else a=this.index_.getCompare();var s=e;l.assert(s.numChildren()===this.limit_,"");var c=new ge(t,n),u=this.reverse_?s.getFirstChild(this.index_):s.getLastChild(this.index_),d=this.rangedFilter_.matches(c);if(s.hasChild(t)){for(var h=s.getImmediateChild(t),f=r.getChildAfterChild(this.index_,u,this.reverse_);null!=f&&(f.name===t||s.hasChild(f.name));)f=r.getChildAfterChild(this.index_,f,this.reverse_);var p=null==f?1:a(f,c);if(d&&!n.isEmpty()&&p>=0)return null!=i&&i.trackChildChange(bt.childChangedChange(t,n,h)),s.updateImmediateChild(t,n);null!=i&&i.trackChildChange(bt.childRemovedChange(t,h));var m=s.updateImmediateChild(t,Fe.EMPTY_NODE);return null!=f&&this.rangedFilter_.matches(f)?(null!=i&&i.trackChildChange(bt.childAddedChange(f.name,f.node)),m.updateImmediateChild(f.name,f.node)):m}return n.isEmpty()?e:d&&a(u,c)>=0?(null!=i&&(i.trackChildChange(bt.childRemovedChange(u.name,u.node)),i.trackChildChange(bt.childAddedChange(t,n))),s.updateImmediateChild(t,n).updateImmediateChild(u.name,Fe.EMPTY_NODE)):e},e}(),an=function(){function e(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=$e}return e.prototype.hasStart=function(){return this.startSet_},e.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:this.viewFrom_===e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT},e.prototype.getIndexStartValue=function(){return l.assert(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},e.prototype.getIndexStartName=function(){return l.assert(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:$},e.prototype.hasEnd=function(){return this.endSet_},e.prototype.getIndexEndValue=function(){return l.assert(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},e.prototype.getIndexEndName=function(){return l.assert(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:L},e.prototype.hasLimit=function(){return this.limitSet_},e.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},e.prototype.getLimit=function(){return l.assert(this.limitSet_,"Only valid if limit has been set"),this.limit_},e.prototype.getIndex=function(){return this.index_},e.prototype.copy_=function(){var t=new e;return t.limitSet_=this.limitSet_,t.limit_=this.limit_,t.startSet_=this.startSet_,t.indexStartValue_=this.indexStartValue_,t.startNameSet_=this.startNameSet_,t.indexStartName_=this.indexStartName_,t.endSet_=this.endSet_,t.indexEndValue_=this.indexEndValue_,t.endNameSet_=this.endNameSet_,t.indexEndName_=this.indexEndName_,t.index_=this.index_,t.viewFrom_=this.viewFrom_,t},e.prototype.limit=function(e){var t=this.copy_();return t.limitSet_=!0,t.limit_=e,t.viewFrom_="",t},e.prototype.limitToFirst=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT,n},e.prototype.limitToLast=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_RIGHT,n},e.prototype.startAt=function(e,t){var n=this.copy_();return n.startSet_=!0,void 0===e&&(e=null),n.indexStartValue_=e,null!=t?(n.startNameSet_=!0,n.indexStartName_=t):(n.startNameSet_=!1,n.indexStartName_=""),n},e.prototype.endAt=function(e,t){var n=this.copy_();return n.endSet_=!0,void 0===e&&(e=null),n.indexEndValue_=e,void 0!==t?(n.endNameSet_=!0,n.indexEndName_=t):(n.endNameSet_=!1,n.indexEndName_=""),n},e.prototype.orderBy=function(e){var t=this.copy_();return t.index_=e,t},e.prototype.getQueryObject=function(){var t=e.WIRE_PROTOCOL_CONSTANTS_,n={};if(this.startSet_&&(n[t.INDEX_START_VALUE]=this.indexStartValue_,this.startNameSet_&&(n[t.INDEX_START_NAME]=this.indexStartName_)),this.endSet_&&(n[t.INDEX_END_VALUE]=this.indexEndValue_,this.endNameSet_&&(n[t.INDEX_END_NAME]=this.indexEndName_)),this.limitSet_){n[t.LIMIT]=this.limit_;var r=this.viewFrom_;""===r&&(r=this.isViewFromLeft()?t.VIEW_FROM_LEFT:t.VIEW_FROM_RIGHT),n[t.VIEW_FROM]=r}return this.index_!==$e&&(n[t.INDEX]=this.index_.toString()),n},e.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},e.prototype.isDefault=function(){return this.loadsAllData()&&this.index_===$e},e.prototype.getNodeFilter=function(){return this.loadsAllData()?new _t(this.getIndex()):this.hasLimit()?new rn(this):new nn(this)},e.prototype.toRestQueryStringParameters=function(){var t,n=e.REST_QUERY_CONSTANTS_,r={};return this.isDefault()||(this.index_===$e?t=n.PRIORITY_INDEX:this.index_===Ve?t=n.VALUE_INDEX:this.index_===_e?t=n.KEY_INDEX:(l.assert(this.index_ instanceof qe,"Unrecognized index type!"),t=this.index_.toString()),r[n.ORDER_BY]=l.stringify(t),this.startSet_&&(r[n.START_AT]=l.stringify(this.indexStartValue_),this.startNameSet_&&(r[n.START_AT]+=","+l.stringify(this.indexStartName_))),this.endSet_&&(r[n.END_AT]=l.stringify(this.indexEndValue_),this.endNameSet_&&(r[n.END_AT]+=","+l.stringify(this.indexEndName_))),this.limitSet_&&(this.isViewFromLeft()?r[n.LIMIT_TO_FIRST]=this.limit_:r[n.LIMIT_TO_LAST]=this.limit_)),r},e.WIRE_PROTOCOL_CONSTANTS_={INDEX_START_VALUE:"sp",INDEX_START_NAME:"sn",INDEX_END_VALUE:"ep",INDEX_END_NAME:"en",LIMIT:"l",VIEW_FROM:"vf",VIEW_FROM_LEFT:"l",VIEW_FROM_RIGHT:"r",INDEX:"i"},e.REST_QUERY_CONSTANTS_={ORDER_BY:"orderBy",PRIORITY_INDEX:"$priority",VALUE_INDEX:"$value",KEY_INDEX:"$key",START_AT:"startAt",END_AT:"endAt",LIMIT_TO_FIRST:"limitToFirst",LIMIT_TO_LAST:"limitToLast"},e.DEFAULT=new e,e}(),on=function(e){function t(t,n){if(!(t instanceof tn))throw new Error("new Reference() no longer supported - use app.database().");return e.call(this,t,n,an.DEFAULT,!1)||this}return s.__extends(t,e),t.prototype.getKey=function(){return l.validateArgCount("Reference.key",0,0,arguments.length),this.path.isEmpty()?null:this.path.getBack()},t.prototype.child=function(e){return l.validateArgCount("Reference.child",1,1,arguments.length),"number"==typeof e?e=String(e):e instanceof H||(null===this.path.getFront()?ue("Reference.child",1,e,!1):ce("Reference.child",1,e,!1)),new t(this.repo,this.path.child(e))},t.prototype.getParent=function(){l.validateArgCount("Reference.parent",0,0,arguments.length);var e=this.path.parent();return null===e?null:new t(this.repo,e)},t.prototype.getRoot=function(){l.validateArgCount("Reference.root",0,0,arguments.length);for(var e=this;null!==e.getParent();)e=e.getParent();return e},t.prototype.databaseProp=function(){return this.repo.database},t.prototype.set=function(e,t){l.validateArgCount("Reference.set",1,2,arguments.length),de("Reference.set",this.path),re("Reference.set",1,e,this.path,!1),l.validateCallback("Reference.set",2,t,!0);var n=new l.Deferred;return this.repo.setWithPriority(this.path,e,null,n.wrapCallback(t)),n.promise},t.prototype.update=function(e,t){if(l.validateArgCount("Reference.update",1,2,arguments.length),de("Reference.update",this.path),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];e=n,M("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}ae("Reference.update",1,e,this.path,!1),l.validateCallback("Reference.update",2,t,!0);var i=new l.Deferred;return this.repo.update(this.path,e,i.wrapCallback(t)),i.promise},t.prototype.setWithPriority=function(e,t,n){if(l.validateArgCount("Reference.setWithPriority",2,3,arguments.length),de("Reference.setWithPriority",this.path),re("Reference.setWithPriority",1,e,this.path,!1),oe("Reference.setWithPriority",2,t,!1),l.validateCallback("Reference.setWithPriority",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.setWithPriority failed: "+this.getKey()+" is a read-only object.";var r=new l.Deferred;return this.repo.setWithPriority(this.path,e,t,r.wrapCallback(n)),r.promise},t.prototype.remove=function(e){return l.validateArgCount("Reference.remove",0,1,arguments.length),de("Reference.remove",this.path),l.validateCallback("Reference.remove",1,e,!0),this.set(null,e)},t.prototype.transaction=function(e,t,n){if(l.validateArgCount("Reference.transaction",1,3,arguments.length),de("Reference.transaction",this.path),l.validateCallback("Reference.transaction",1,e,!1),l.validateCallback("Reference.transaction",2,t,!0),fe("Reference.transaction",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.transaction failed: "+this.getKey()+" is a read-only object.";void 0===n&&(n=!0);var r=new l.Deferred;"function"==typeof t&&r.promise.catch((function(){}));var i=function(e,n,i){e?r.reject(e):r.resolve(new me(n,i)),"function"==typeof t&&t(e,n,i)};return this.repo.startTransaction(this.path,e,i,n),r.promise},t.prototype.setPriority=function(e,t){l.validateArgCount("Reference.setPriority",1,2,arguments.length),de("Reference.setPriority",this.path),oe("Reference.setPriority",1,e,!1),l.validateCallback("Reference.setPriority",2,t,!0);var n=new l.Deferred;return this.repo.setWithPriority(this.path.child(".priority"),e,null,n.wrapCallback(t)),n.promise},t.prototype.push=function(e,t){l.validateArgCount("Reference.push",0,2,arguments.length),de("Reference.push",this.path),re("Reference.push",1,e,this.path,!0),l.validateCallback("Reference.push",2,t,!0);var n,r=this.repo.serverTime(),i=ve(r),a=this.child(i),o=this.child(i);return n=null!=e?a.set(e,t).then((function(){return o})):Promise.resolve(o),a.then=n.then.bind(n),a.catch=n.then.bind(n,void 0),"function"==typeof t&&n.catch((function(){})),a},t.prototype.onDisconnect=function(){return de("Reference.onDisconnect",this.path),new pe(this.repo,this.path)},Object.defineProperty(t.prototype,"database",{get:function(){return this.databaseProp()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return this.getKey()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getParent()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this.getRoot()},enumerable:!0,configurable:!0}),t}(Qe);Qe.__referenceConstructor=on,xt.__referenceConstructor=on;var sn,ln=function(){this.children={},this.childCount=0,this.value=null},cn=function(){function e(e,t,n){void 0===e&&(e=""),void 0===t&&(t=null),void 0===n&&(n=new ln),this.name_=e,this.parent_=t,this.node_=n}return e.prototype.subTree=function(t){for(var n=t instanceof H?t:new H(t),r=this,i=n.getFront();null!==i;){r=new e(i,r,l.safeGet(r.node_.children,i)||new ln),i=(n=n.popFront()).getFront()}return r},e.prototype.getValue=function(){return this.node_.value},e.prototype.setValue=function(e){l.assert(void 0!==e,"Cannot set value to undefined"),this.node_.value=e,this.updateParents_()},e.prototype.clear=function(){this.node_.value=null,this.node_.children={},this.node_.childCount=0,this.updateParents_()},e.prototype.hasChildren=function(){return this.node_.childCount>0},e.prototype.isEmpty=function(){return null===this.getValue()&&!this.hasChildren()},e.prototype.forEachChild=function(t){var n=this;N(this.node_.children,(function(r,i){t(new e(r,n,i))}))},e.prototype.forEachDescendant=function(e,t,n){t&&!n&&e(this),this.forEachChild((function(t){t.forEachDescendant(e,!0,n)})),t&&n&&e(this)},e.prototype.forEachAncestor=function(e,t){for(var n=t?this:this.parent();null!==n;){if(e(n))return!0;n=n.parent()}return!1},e.prototype.forEachImmediateDescendantWithValue=function(e){this.forEachChild((function(t){null!==t.getValue()?e(t):t.forEachImmediateDescendantWithValue(e)}))},e.prototype.path=function(){return new H(null===this.parent_?this.name_:this.parent_.path()+"/"+this.name_)},e.prototype.name=function(){return this.name_},e.prototype.parent=function(){return this.parent_},e.prototype.updateParents_=function(){null!==this.parent_&&this.parent_.updateChild_(this.name_,this)},e.prototype.updateChild_=function(e,t){var n=t.isEmpty(),r=l.contains(this.node_.children,e);n&&r?(delete this.node_.children[e],this.node_.childCount--,this.updateParents_()):n||r||(this.node_.children[e]=t.node_,this.node_.childCount++,this.updateParents_())},e}();!function(e){e[e.RUN=0]="RUN",e[e.SENT=1]="SENT",e[e.COMPLETED=2]="COMPLETED",e[e.SENT_NEEDS_ABORT=3]="SENT_NEEDS_ABORT",e[e.NEEDS_ABORT=4]="NEEDS_ABORT"}(sn||(sn={})),tn.MAX_TRANSACTION_RETRIES_=25,tn.prototype.transactionsInit_=function(){this.transactionQueueTree_=new cn},tn.prototype.startTransaction=function(e,t,n,r){this.log_("transaction on "+e);var i=function(){},a=new on(this,e);a.on("value",i);var o={path:e,update:t,onComplete:n,status:null,order:g(),applyLocally:r,retryCount:0,unwatcher:function(){a.off("value",i)},abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},s=this.getLatestState_(e);o.currentInputSnapshot=s;var c=o.update(s.val());if(void 0===c){if(o.unwatcher(),o.currentOutputSnapshotRaw=null,o.currentOutputSnapshotResolved=null,o.onComplete){var u=new We(o.currentInputSnapshot,new on(this,o.path),$e);o.onComplete(null,!1,u)}}else{ie("transaction failed: Data returned ",c,o.path),o.status=sn.RUN;var d=this.transactionQueueTree_.subTree(e),h=d.getValue()||[];h.push(o),d.setValue(h);var f=void 0;if("object"==typeof c&&null!==c&&l.contains(c,".priority"))f=l.safeGet(c,".priority"),l.assert(ne(f),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.");else f=(this.serverSyncTree_.calcCompleteEventCache(e)||Fe.EMPTY_NODE).getPriority().val();f=f;var p=this.generateServerValues(),m=Ue(c,f),v=at(m,s,p);o.currentOutputSnapshotRaw=m,o.currentOutputSnapshotResolved=v,o.currentWriteId=this.getNextWriteId_();var y=this.serverSyncTree_.applyUserOverwrite(e,v,o.currentWriteId,o.applyLocally);this.eventQueue_.raiseEventsForChangedPath(e,y),this.sendReadyTransactions_()}},tn.prototype.getLatestState_=function(e,t){return this.serverSyncTree_.calcCompleteEventCache(e,t)||Fe.EMPTY_NODE},tn.prototype.sendReadyTransactions_=function(e){var t=this;if(void 0===e&&(e=this.transactionQueueTree_),e||this.pruneCompletedTransactionsBelowNode_(e),null!==e.getValue()){var n=this.buildTransactionQueue_(e);l.assert(n.length>0,"Sending zero length transaction queue"),n.every((function(e){return e.status===sn.RUN}))&&this.sendTransactionQueue_(e.path(),n)}else e.hasChildren()&&e.forEachChild((function(e){t.sendReadyTransactions_(e)}))},tn.prototype.sendTransactionQueue_=function(e,t){for(var n=this,r=t.map((function(e){return e.currentWriteId})),i=this.getLatestState_(e,r),a=i,o=i.hash(),s=0;s<t.length;s++){var c=t[s];l.assert(c.status===sn.RUN,"tryToSendTransactionQueue_: items in queue should all be run."),c.status=sn.SENT,c.retryCount++;var u=H.relativePath(e,c.path);a=a.updateChild(u,c.currentOutputSnapshotRaw)}var d=a.val(!0),h=e;this.server_.put(h.toString(),d,(function(r){n.log_("transaction put response",{path:h.toString(),status:r});var i=[];if("ok"===r){for(var a=[],o=0;o<t.length;o++){if(t[o].status=sn.COMPLETED,i=i.concat(n.serverSyncTree_.ackUserWrite(t[o].currentWriteId)),t[o].onComplete){var s=t[o].currentOutputSnapshotResolved,l=new on(n,t[o].path),c=new We(s,l,$e);a.push(t[o].onComplete.bind(null,null,!0,c))}t[o].unwatcher()}n.pruneCompletedTransactionsBelowNode_(n.transactionQueueTree_.subTree(e)),n.sendReadyTransactions_(),n.eventQueue_.raiseEventsForChangedPath(e,i);for(o=0;o<a.length;o++)j(a[o])}else{if("datastale"===r)for(o=0;o<t.length;o++)t[o].status===sn.SENT_NEEDS_ABORT?t[o].status=sn.NEEDS_ABORT:t[o].status=sn.RUN;else{M("transaction at "+h.toString()+" failed: "+r);for(o=0;o<t.length;o++)t[o].status=sn.NEEDS_ABORT,t[o].abortReason=r}n.rerunTransactions_(e)}}),o)},tn.prototype.rerunTransactions_=function(e){var t=this.getAncestorTransactionNode_(e),n=t.path(),r=this.buildTransactionQueue_(t);return this.rerunTransactionQueue_(r,n),n},tn.prototype.rerunTransactionQueue_=function(e,t){if(0!==e.length){for(var n,r=[],i=[],a=e.filter((function(e){return e.status===sn.RUN})).map((function(e){return e.currentWriteId})),o=0;o<e.length;o++){var s=e[o],c=H.relativePath(t,s.path),u=!1,d=void 0;if(l.assert(null!==c,"rerunTransactionsUnderNode_: relativePath should not be null."),s.status===sn.NEEDS_ABORT)u=!0,d=s.abortReason,i=i.concat(this.serverSyncTree_.ackUserWrite(s.currentWriteId,!0));else if(s.status===sn.RUN)if(s.retryCount>=tn.MAX_TRANSACTION_RETRIES_)u=!0,d="maxretry",i=i.concat(this.serverSyncTree_.ackUserWrite(s.currentWriteId,!0));else{var h=this.getLatestState_(s.path,a);s.currentInputSnapshot=h;var f=e[o].update(h.val());if(void 0!==f){ie("transaction failed: Data returned ",f,s.path);var p=Ue(f);"object"==typeof f&&null!=f&&l.contains(f,".priority")||(p=p.updatePriority(h.getPriority()));var m=s.currentWriteId,v=this.generateServerValues(),g=at(p,h,v);s.currentOutputSnapshotRaw=p,s.currentOutputSnapshotResolved=g,s.currentWriteId=this.getNextWriteId_(),a.splice(a.indexOf(m),1),i=(i=i.concat(this.serverSyncTree_.applyUserOverwrite(s.path,g,s.currentWriteId,s.applyLocally))).concat(this.serverSyncTree_.ackUserWrite(m,!0))}else u=!0,d="nodata",i=i.concat(this.serverSyncTree_.ackUserWrite(s.currentWriteId,!0))}if(this.eventQueue_.raiseEventsForChangedPath(t,i),i=[],u&&(e[o].status=sn.COMPLETED,n=e[o].unwatcher,setTimeout(n,Math.floor(0)),e[o].onComplete))if("nodata"===d){var y=new on(this,e[o].path),b=e[o].currentInputSnapshot,_=new We(b,y,$e);r.push(e[o].onComplete.bind(null,null,!1,_))}else r.push(e[o].onComplete.bind(null,new Error(d),!1,null))}this.pruneCompletedTransactionsBelowNode_(this.transactionQueueTree_);for(o=0;o<r.length;o++)j(r[o]);this.sendReadyTransactions_()}},tn.prototype.getAncestorTransactionNode_=function(e){var t,n=this.transactionQueueTree_;for(t=e.getFront();null!==t&&null===n.getValue();)n=n.subTree(t),t=(e=e.popFront()).getFront();return n},tn.prototype.buildTransactionQueue_=function(e){var t=[];return this.aggregateTransactionQueuesForNode_(e,t),t.sort((function(e,t){return e.order-t.order})),t},tn.prototype.aggregateTransactionQueuesForNode_=function(e,t){var n=this,r=e.getValue();if(null!==r)for(var i=0;i<r.length;i++)t.push(r[i]);e.forEachChild((function(e){n.aggregateTransactionQueuesForNode_(e,t)}))},tn.prototype.pruneCompletedTransactionsBelowNode_=function(e){var t=this,n=e.getValue();if(n){for(var r=0,i=0;i<n.length;i++)n[i].status!==sn.COMPLETED&&(n[r]=n[i],r++);n.length=r,e.setValue(n.length>0?n:null)}e.forEachChild((function(e){t.pruneCompletedTransactionsBelowNode_(e)}))},tn.prototype.abortTransactions_=function(e){var t=this,n=this.getAncestorTransactionNode_(e).path(),r=this.transactionQueueTree_.subTree(e);return r.forEachAncestor((function(e){t.abortTransactionsOnNode_(e)})),this.abortTransactionsOnNode_(r),r.forEachDescendant((function(e){t.abortTransactionsOnNode_(e)})),n},tn.prototype.abortTransactionsOnNode_=function(e){var t=e.getValue();if(null!==t){for(var n=[],r=[],i=-1,a=0;a<t.length;a++)if(t[a].status===sn.SENT_NEEDS_ABORT);else if(t[a].status===sn.SENT)l.assert(i===a-1,"All SENT items should be at beginning of queue."),i=a,t[a].status=sn.SENT_NEEDS_ABORT,t[a].abortReason="set";else if(l.assert(t[a].status===sn.RUN,"Unexpected transaction status in abort"),t[a].unwatcher(),r=r.concat(this.serverSyncTree_.ackUserWrite(t[a].currentWriteId,!0)),t[a].onComplete){n.push(t[a].onComplete.bind(null,new Error("set"),!1,null))}-1===i?e.setValue(null):t.length=i+1,this.eventQueue_.raiseEventsForChangedPath(e.path(),r);for(a=0;a<n.length;a++)j(n[a])}};var un,dn=function(){function e(){this.repos_={},this.useRestClient_=!1}return e.getInstance=function(){return un||(un=new e),un},e.prototype.interrupt=function(){var e,t,n,r;try{for(var i=s.__values(Object.keys(this.repos_)),a=i.next();!a.done;a=i.next()){var o=a.value;try{for(var l=(n=void 0,s.__values(Object.keys(this.repos_[o]))),c=l.next();!c.done;c=l.next()){var u=c.value;this.repos_[o][u].interrupt()}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},e.prototype.resume=function(){var e,t,n,r;try{for(var i=s.__values(Object.keys(this.repos_)),a=i.next();!a.done;a=i.next()){var o=a.value;try{for(var l=(n=void 0,s.__values(Object.keys(this.repos_[o]))),c=l.next();!c.done;c=l.next()){var u=c.value;this.repos_[o][u].resume()}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},e.prototype.databaseFromApp=function(e,t,n){var i=n||e.options.databaseURL;void 0===i&&C("Can't determine Firebase Database URL. Be sure to include databaseURL option when calling firebase.initializeApp().");var a=J(i),o=a.repoInfo,s=void 0;return void 0!==r&&(s=r.env.FIREBASE_DATABASE_EMULATOR_HOST),s&&(i="http://"+s+"?ns="+o.namespace,o=(a=J(i)).repoInfo),he("Invalid Firebase Database URL",1,a),a.path.isEmpty()||C("Database URL must point to the root of a Firebase Database (not including a child path)."),this.createRepo(o,e,t).database},e.prototype.deleteRepo=function(e){var t=l.safeGet(this.repos_,e.app.name);t&&l.safeGet(t,e.repoInfo_.toURLString())===e||C("Database "+e.app.name+"("+e.repoInfo_+") has already been deleted."),e.interrupt(),delete t[e.repoInfo_.toURLString()]},e.prototype.createRepo=function(e,t,n){var r=l.safeGet(this.repos_,t.name);r||(r={},this.repos_[t.name]=r);var i=l.safeGet(r,e.toURLString());return i&&C("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),i=new tn(e,this.useRestClient_,t,n),r[e.toURLString()]=i,i},e.prototype.forceRestClient=function(e){this.useRestClient_=e},e}(),hn=function(){function e(e){this.repo_=e,e instanceof tn||C("Don't call new Database() directly - please use firebase.database()."),this.root_=new on(e,H.Empty),this.INTERNAL=new fn(this)}return Object.defineProperty(e.prototype,"app",{get:function(){return this.repo_.app},enumerable:!0,configurable:!0}),e.prototype.ref=function(e){return this.checkDeleted_("ref"),l.validateArgCount("database.ref",0,1,arguments.length),e instanceof on?this.refFromURL(e.toString()):void 0!==e?this.root_.child(e):this.root_},e.prototype.refFromURL=function(e){var t="database.refFromURL";this.checkDeleted_(t),l.validateArgCount(t,1,1,arguments.length);var n=J(e);he(t,1,n);var r=n.repoInfo;return r.host!==this.repo_.repoInfo_.host&&C(t+": Host name does not match the current database: (found "+r.host+" but expected "+this.repo_.repoInfo_.host+")"),this.ref(n.path.toString())},e.prototype.checkDeleted_=function(e){null===this.repo_&&C("Cannot call "+e+" on a deleted database.")},e.prototype.goOffline=function(){l.validateArgCount("database.goOffline",0,0,arguments.length),this.checkDeleted_("goOffline"),this.repo_.interrupt()},e.prototype.goOnline=function(){l.validateArgCount("database.goOnline",0,0,arguments.length),this.checkDeleted_("goOnline"),this.repo_.resume()},e.ServerValue={TIMESTAMP:{".sv":"timestamp"},increment:function(e){return{".sv":{increment:e}}}},e}(),fn=function(){function e(e){this.database=e}return e.prototype.delete=function(){return s.__awaiter(this,void 0,void 0,(function(){return s.__generator(this,(function(e){return this.database.checkDeleted_("delete"),dn.getInstance().deleteRepo(this.database.repo_),this.database.repo_=null,this.database.root_=null,this.database.INTERNAL=null,this.database=null,[2]}))}))},e}(),pn=Object.freeze({__proto__:null,forceLongPolling:function(){Kt.forceDisallow(),Vt.forceAllow()},forceWebSockets:function(){Vt.forceDisallow()},isWebSocketsAvailable:function(){return Kt.isAvailable()},setSecurityDebugCallback:function(e,t){e.repo.persistentConnection_.securityDebugCallback_=t},stats:function(e,t){e.repo.stats(t)},statsIncrementCounter:function(e,t){e.repo.statsIncrementCounter(t)},dataUpdateCount:function(e){return e.repo.dataUpdateCount},interceptServerData:function(e,t){return e.repo.interceptServerData_(t)}}),mn=Zt;Zt.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},Zt.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)};var vn=Xt,gn=z,yn=Object.freeze({__proto__:null,DataConnection:mn,RealTimeConnection:vn,hijackHash:function(e){var t=Zt.prototype.put;return Zt.prototype.put=function(n,r,i,a){void 0!==a&&(a=e()),t.call(this,n,r,i,a)},function(){Zt.prototype.put=t}},ConnectionTarget:gn,queryIdentifier:function(e){return e.queryIdentifier()},forceRestClient:function(e){dn.getInstance().forceRestClient(e)}}),bn=hn.ServerValue;function _n(t){!function(e){Wt=e}(t.SDK_VERSION);var n=t.INTERNAL.registerComponent(new u.Component("database",(function(e,t){var n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal");return dn.getInstance().databaseFromApp(n,r,t)}),"PUBLIC").setServiceProps({Reference:on,Query:Qe,Database:hn,DataSnapshot:We,enableLogging:k,INTERNAL:pn,ServerValue:bn,TEST_ACCESS:yn}).setMultipleInstances(!0));t.registerVersion("@firebase/database","0.6.1"),l.isNodeSdk()&&(e.exports=n)}_n(o),t.DataSnapshot=We,t.Database=hn,t.OnDisconnect=pe,t.Query=Qe,t.Reference=on,t.ServerValue=bn,t.enableLogging=k,t.registerDatabase=_n}).call(this,n(25))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(5),a=(r=n(17))&&"object"==typeof r&&"default"in r?r.default:r,o=n(37),s=n(28),l=n(26),c=n(305),u=a.SDK_VERSION,d=function(){function e(e){this.uid=e}return e.prototype.t=function(){return null!=this.uid},e.prototype.s=function(){return this.t()?"uid:"+this.uid:"anonymous-user"},e.prototype.isEqual=function(e){return e.uid===this.uid},e}();d.UNAUTHENTICATED=new d(null),d.i=new d("google-credentials-uid"),d.h=new d("first-party-uid");var h={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},f=function(e){function t(t,n){var r=this;return(r=e.call(this,n)||this).code=t,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return i.__extends(t,e),t}(Error),p=function(e,t){this.user=t,this.type="OAuth",this.o={},this.o.Authorization="Bearer "+e},m=function(){function e(){this.u=null}return e.prototype.getToken=function(){return Promise.resolve(null)},e.prototype._=function(){},e.prototype.l=function(e){this.u=e,e(d.UNAUTHENTICATED)},e.prototype.T=function(){this.u=null},e}(),v=function(){function e(e){var t=this;this.I=null,this.currentUser=d.UNAUTHENTICATED,this.R=!1,this.A=0,this.u=null,this.forceRefresh=!1,this.I=function(){t.A++,t.currentUser=t.m(),t.R=!0,t.u&&t.u(t.currentUser)},this.A=0,this.auth=e.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.I):(this.I(null),e.get().then((function(e){t.auth=e,t.I&&t.auth.addAuthTokenListener(t.I)}),(function(){})))}return e.prototype.getToken=function(){var e=this,t=this.A,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){if(e.A!==t)throw new f(h.ABORTED,"getToken aborted due to token change.");return n?(St("string"==typeof n.accessToken),new p(n.accessToken,e.currentUser)):null})):Promise.resolve(null)},e.prototype._=function(){this.forceRefresh=!0},e.prototype.l=function(e){this.u=e,this.R&&e(this.currentUser)},e.prototype.T=function(){this.auth&&this.auth.removeAuthTokenListener(this.I),this.I=null,this.u=null},e.prototype.m=function(){var e=this.auth&&this.auth.getUid();return St(null===e||"string"==typeof e),new d(e)},e}(),g=function(){function e(e,t){this.P=e,this.V=t,this.type="FirstParty",this.user=d.h}return Object.defineProperty(e.prototype,"o",{get:function(){var e={"X-Goog-AuthUser":this.V},t=this.P.auth.g([]);return t&&(e.Authorization=t),e},enumerable:!0,configurable:!0}),e}(),y=function(){function e(e,t){this.P=e,this.V=t}return e.prototype.getToken=function(){return Promise.resolve(new g(this.P,this.V))},e.prototype.l=function(e){e(d.h)},e.prototype.T=function(){},e.prototype._=function(){},e}(),b=function(){function e(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new f(h.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new f(h.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new f(h.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new f(h.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}return e.now=function(){return e.fromMillis(Date.now())},e.fromDate=function(t){return e.fromMillis(t.getTime())},e.fromMillis=function(t){var n=Math.floor(t/1e3);return new e(n,1e6*(t-1e3*n))},e.prototype.toDate=function(){return new Date(this.toMillis())},e.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},e.prototype.p=function(e){return this.seconds===e.seconds?Ct(this.nanoseconds,e.nanoseconds):Ct(this.seconds,e.seconds)},e.prototype.isEqual=function(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds},e.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},e.prototype.valueOf=function(){var e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")},e}(),_=function(){function e(e){this.timestamp=e}return e.v=function(t){return new e(t)},e.S=function(){return e.MIN},e.prototype.D=function(e){return this.timestamp.p(e.timestamp)},e.prototype.isEqual=function(e){return this.timestamp.isEqual(e.timestamp)},e.prototype.C=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},e.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},e.prototype.F=function(){return this.timestamp},e}();_.MIN=new _(new b(0,0));var w=function(){function e(e,t,n){void 0===t?t=0:t>e.length&&Et(),void 0===n?n=e.length-t:n>e.length-t&&Et(),this.segments=e,this.offset=t,this.N=n}return Object.defineProperty(e.prototype,"length",{get:function(){return this.N},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return 0===e.k(this,t)},e.prototype.child=function(t){var n=this.segments.slice(this.offset,this.limit());return t instanceof e?t.forEach((function(e){n.push(e)})):n.push(t),this.$(n)},e.prototype.limit=function(){return this.offset+this.length},e.prototype.M=function(e){return e=void 0===e?1:e,this.$(this.segments,this.offset+e,this.length-e)},e.prototype.L=function(){return this.$(this.segments,this.offset,this.length-1)},e.prototype.O=function(){return this.segments[this.offset]},e.prototype.B=function(){return this.get(this.length-1)},e.prototype.get=function(e){return this.segments[this.offset+e]},e.prototype.q=function(){return 0===this.length},e.prototype.U=function(e){if(e.length<this.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0},e.prototype.W=function(e){if(this.length+1!==e.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0},e.prototype.forEach=function(e){for(var t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])},e.prototype.j=function(){return this.segments.slice(this.offset,this.limit())},e.k=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e.get(r),a=t.get(r);if(i<a)return-1;if(i>a)return 1}return e.length<t.length?-1:e.length>t.length?1:0},e}(),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.$=function(e,n,r){return new t(e,n,r)},t.prototype.K=function(){return this.j().join("/")},t.prototype.toString=function(){return this.K()},t.G=function(e){if(e.indexOf("//")>=0)throw new f(h.INVALID_ARGUMENT,"Invalid path ("+e+"). Paths must not contain // in them.");return new t(e.split("/").filter((function(e){return e.length>0})))},t}(w);k.H=new k([]);var E=/^[_a-zA-Z][_a-zA-Z0-9]*$/,S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.$=function(e,n,r){return new t(e,n,r)},t.Y=function(e){return E.test(e)},t.prototype.K=function(){return this.j().map((function(e){return e=e.replace("\\","\\\\").replace("`","\\`"),t.Y(e)||(e="`"+e+"`"),e})).join(".")},t.prototype.toString=function(){return this.K()},t.prototype.J=function(){return 1===this.length&&"__name__"===this.get(0)},t.X=function(){return new t(["__name__"])},t.Z=function(e){for(var n=[],r="",i=0,a=function(){if(0===r.length)throw new f(h.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},o=!1;i<e.length;){var s=e[i];if("\\"===s){if(i+1===e.length)throw new f(h.INVALID_ARGUMENT,"Path has trailing escape character: "+e);var l=e[i+1];if("\\"!==l&&"."!==l&&"`"!==l)throw new f(h.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=l,i+=2}else"`"===s?(o=!o,i++):"."!==s||o?(r+=s,i++):(a(),i++)}if(a(),o)throw new f(h.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new t(n)},t}(w);S.H=new S([]);var T=function(){function e(e){this.path=e}return e.tt=function(t){return new e(k.G(t).M(5))},e.prototype.et=function(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e},e.prototype.isEqual=function(e){return null!==e&&0===k.k(this.path,e.path)},e.prototype.toString=function(){return this.path.toString()},e.k=function(e,t){return k.k(e.path,t.path)},e.st=function(e){return e.length%2==0},e.it=function(t){return new e(new k(t.slice()))},e}();T.EMPTY=new T(new k([]));var C=function(){function e(e,t){this.k=e,this.root=t||x.EMPTY}return e.prototype.nt=function(t,n){return new e(this.k,this.root.nt(t,n,this.k).rt(null,null,x.ht,null,null))},e.prototype.remove=function(t){return new e(this.k,this.root.remove(t,this.k).rt(null,null,x.ht,null,null))},e.prototype.get=function(e){for(var t=this.root;!t.q();){var n=this.k(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null},e.prototype.indexOf=function(e){for(var t=0,n=this.root;!n.q();){var r=this.k(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1},e.prototype.q=function(){return this.root.q()},Object.defineProperty(e.prototype,"size",{get:function(){return this.root.size},enumerable:!0,configurable:!0}),e.prototype.ot=function(){return this.root.ot()},e.prototype.at=function(){return this.root.at()},e.prototype.ut=function(e){return this.root.ut(e)},e.prototype.forEach=function(e){this.ut((function(t,n){return e(t,n),!1}))},e.prototype.toString=function(){var e=[];return this.ut((function(t,n){return e.push(t+":"+n),!1})),"{"+e.join(", ")+"}"},e.prototype.ct=function(e){return this.root.ct(e)},e.prototype._t=function(){return new M(this.root,null,this.k,!1)},e.prototype.lt=function(e){return new M(this.root,e,this.k,!1)},e.prototype.dt=function(){return new M(this.root,null,this.k,!0)},e.prototype.ft=function(e){return new M(this.root,e,this.k,!0)},e}(),M=function(){function e(e,t,n,r){this.Tt=r,this.Et=[];for(var i=1;!e.q();)if(i=t?n(e.key,t):1,r&&(i*=-1),i<0)e=this.Tt?e.left:e.right;else{if(0===i){this.Et.push(e);break}this.Et.push(e),e=this.Tt?e.right:e.left}}return e.prototype.It=function(){var e=this.Et.pop(),t={key:e.key,value:e.value};if(this.Tt)for(e=e.left;!e.q();)this.Et.push(e),e=e.right;else for(e=e.right;!e.q();)this.Et.push(e),e=e.left;return t},e.prototype.wt=function(){return this.Et.length>0},e.prototype.Rt=function(){if(0===this.Et.length)return null;var e=this.Et[this.Et.length-1];return{key:e.key,value:e.value}},e}(),x=function(){function e(t,n,r,i,a){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:e.EMPTY,this.right=null!=a?a:e.EMPTY,this.size=this.left.size+1+this.right.size}return e.prototype.rt=function(t,n,r,i,a){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=a?a:this.right)},e.prototype.q=function(){return!1},e.prototype.ut=function(e){return this.left.ut(e)||e(this.key,this.value)||this.right.ut(e)},e.prototype.ct=function(e){return this.right.ct(e)||e(this.key,this.value)||this.left.ct(e)},e.prototype.min=function(){return this.left.q()?this:this.left.min()},e.prototype.ot=function(){return this.min().key},e.prototype.at=function(){return this.right.q()?this.key:this.right.at()},e.prototype.nt=function(e,t,n){var r=this,i=n(e,r.key);return(r=i<0?r.rt(null,null,null,r.left.nt(e,t,n),null):0===i?r.rt(null,t,null,null,null):r.rt(null,null,null,null,r.right.nt(e,t,n))).At()},e.prototype.Pt=function(){if(this.left.q())return e.EMPTY;var t=this;return t.left.Vt()||t.left.left.Vt()||(t=t.gt()),(t=t.rt(null,null,null,t.left.Pt(),null)).At()},e.prototype.remove=function(t,n){var r,i=this;if(n(t,i.key)<0)i.left.q()||i.left.Vt()||i.left.left.Vt()||(i=i.gt()),i=i.rt(null,null,null,i.left.remove(t,n),null);else{if(i.left.Vt()&&(i=i.pt()),i.right.q()||i.right.Vt()||i.right.left.Vt()||(i=i.yt()),0===n(t,i.key)){if(i.right.q())return e.EMPTY;r=i.right.min(),i=i.rt(r.key,r.value,null,null,i.right.Pt())}i=i.rt(null,null,null,null,i.right.remove(t,n))}return i.At()},e.prototype.Vt=function(){return this.color},e.prototype.At=function(){var e=this;return e.right.Vt()&&!e.left.Vt()&&(e=e.bt()),e.left.Vt()&&e.left.left.Vt()&&(e=e.pt()),e.left.Vt()&&e.right.Vt()&&(e=e.vt()),e},e.prototype.gt=function(){var e=this.vt();return e.right.left.Vt()&&(e=(e=(e=e.rt(null,null,null,null,e.right.pt())).bt()).vt()),e},e.prototype.yt=function(){var e=this.vt();return e.left.left.Vt()&&(e=(e=e.pt()).vt()),e},e.prototype.bt=function(){var t=this.rt(null,null,e.RED,null,this.right.left);return this.right.rt(null,null,this.color,t,null)},e.prototype.pt=function(){var t=this.rt(null,null,e.RED,this.left.right,null);return this.left.rt(null,null,this.color,null,t)},e.prototype.vt=function(){var e=this.left.rt(null,null,!this.left.color,null,null),t=this.right.rt(null,null,!this.right.color,null,null);return this.rt(null,null,!this.color,e,t)},e.prototype.St=function(){var e=this.Dt();return Math.pow(2,e)<=this.size+1},e.prototype.Dt=function(){if(this.Vt()&&this.left.Vt())throw Et();if(this.right.Vt())throw Et();var e=this.left.Dt();if(e!==this.right.Dt())throw Et();return e+(this.Vt()?0:1)},e}();x.EMPTY=null,x.RED=!0,x.ht=!1,x.EMPTY=new(function(){function e(){this.size=0}return Object.defineProperty(e.prototype,"key",{get:function(){throw Et()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){throw Et()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){throw Et()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){throw Et()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){throw Et()},enumerable:!0,configurable:!0}),e.prototype.rt=function(e,t,n,r,i){return this},e.prototype.nt=function(e,t,n){return new x(e,t)},e.prototype.remove=function(e,t){return this},e.prototype.q=function(){return!0},e.prototype.ut=function(e){return!1},e.prototype.ct=function(e){return!1},e.prototype.ot=function(){return null},e.prototype.at=function(){return null},e.prototype.Vt=function(){return!1},e.prototype.St=function(){return!0},e.prototype.Dt=function(){return 0},e}());var $=function(){function e(e){this.k=e,this.data=new C(this.k)}return e.prototype.has=function(e){return null!==this.data.get(e)},e.prototype.first=function(){return this.data.ot()},e.prototype.last=function(){return this.data.at()},Object.defineProperty(e.prototype,"size",{get:function(){return this.data.size},enumerable:!0,configurable:!0}),e.prototype.indexOf=function(e){return this.data.indexOf(e)},e.prototype.forEach=function(e){this.data.ut((function(t,n){return e(t),!1}))},e.prototype.Ct=function(e,t){for(var n=this.data.lt(e[0]);n.wt();){var r=n.It();if(this.k(r.key,e[1])>=0)return;t(r.key)}},e.prototype.Ft=function(e,t){var n;for(n=void 0!==t?this.data.lt(t):this.data._t();n.wt();)if(!e(n.It().key))return},e.prototype.Nt=function(e){var t=this.data.lt(e);return t.wt()?t.It().key:null},e.prototype._t=function(){return new L(this.data._t())},e.prototype.lt=function(e){return new L(this.data.lt(e))},e.prototype.add=function(e){return this.rt(this.data.remove(e).nt(e,!0))},e.prototype.delete=function(e){return this.has(e)?this.rt(this.data.remove(e)):this},e.prototype.q=function(){return this.data.q()},e.prototype.kt=function(e){var t=this;return t.size<e.size&&(t=e,e=this),e.forEach((function(e){t=t.add(e)})),t},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.data._t(),r=t.data._t();n.wt();){var i=n.It().key,a=r.It().key;if(0!==this.k(i,a))return!1}return!0},e.prototype.j=function(){var e=[];return this.forEach((function(t){e.push(t)})),e},e.prototype.toString=function(){var e=[];return this.forEach((function(t){return e.push(t)})),"SortedSet("+e.toString()+")"},e.prototype.rt=function(t){var n=new e(this.k);return n.data=t,n},e}(),L=function(){function e(e){this.$t=e}return e.prototype.It=function(){return this.$t.It().key},e.prototype.wt=function(){return this.$t.wt()},e}();function P(e){var t=0;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function O(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function I(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}var A=function(){function e(e){this.Mt=e}return e.fromBase64String=function(t){return new e(vt.Lt().atob(t))},e.fromUint8Array=function(t){return new e(function(e){for(var t="",n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(t))},e.prototype.toBase64=function(){return vt.Lt().btoa(this.Mt)},e.prototype.toUint8Array=function(){return function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.Mt)},e.prototype.Ot=function(){return 2*this.Mt.length},e.prototype.D=function(e){return Ct(this.Mt,e.Mt)},e.prototype.isEqual=function(e){return this.Mt===e.Mt},e}();function D(e){return null==e}function N(e){return-0===e&&1/e==-1/0}function R(e){return"number"==typeof e&&Number.isInteger(e)&&!N(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}function B(e){var t,n;return"server_timestamp"===(null===(n=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function Y(e){var t=W(e.mapValue.fields.__local_write_time__.timestampValue);return new b(t.seconds,t.nanos)}A.xt=new A("");var j=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function F(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?B(e)?4:10:Et()}function H(e,t){var n=F(e);if(n!==F(t))return!1;switch(n){case 0:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return Y(e).isEqual(Y(t));case 3:return function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;var n=W(e.timestampValue),r=W(t.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(e,t);case 5:return e.stringValue===t.stringValue;case 6:return function(e,t){return K(e.bytesValue).isEqual(K(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return G(e.geoPointValue.latitude)===G(t.geoPointValue.latitude)&&G(e.geoPointValue.longitude)===G(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return G(e.integerValue)===G(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){var n=G(e.doubleValue),r=G(t.doubleValue);return n===r?N(n)===N(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return Mt(e.arrayValue.values||[],t.arrayValue.values||[],H);case 10:return function(e,t){var n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(P(n)!==P(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!H(n[i],r[i])))return!1;return!0}(e,t);default:return Et()}}function U(e,t){return void 0!==(e.values||[]).find((function(e){return H(e,t)}))}function z(e,t){var n=F(e),r=F(t);if(n!==r)return Ct(n,r);switch(n){case 0:return 0;case 1:return Ct(e.booleanValue,t.booleanValue);case 2:return function(e,t){var n=G(e.integerValue||e.doubleValue),r=G(t.integerValue||t.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(e,t);case 3:return V(e.timestampValue,t.timestampValue);case 4:return V(Y(e),Y(t));case 5:return Ct(e.stringValue,t.stringValue);case 6:return function(e,t){var n=K(e),r=K(t);return n.D(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){for(var n=e.split("/"),r=t.split("/"),i=0;i<n.length&&i<r.length;i++){var a=Ct(n[i],r[i]);if(0!==a)return a}return Ct(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){var n=Ct(G(e.latitude),G(t.latitude));return 0!==n?n:Ct(G(e.longitude),G(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return function(e,t){for(var n=e.values||[],r=t.values||[],i=0;i<n.length&&i<r.length;++i){var a=z(n[i],r[i]);if(a)return a}return Ct(n.length,r.length)}(e.arrayValue,t.arrayValue);case 10:return function(e,t){var n=e.fields||{},r=Object.keys(n),i=t.fields||{},a=Object.keys(i);r.sort(),a.sort();for(var o=0;o<r.length&&o<a.length;++o){var s=Ct(r[o],a[o]);if(0!==s)return s;var l=z(n[r[o]],i[a[o]]);if(0!==l)return l}return Ct(r.length,a.length)}(e.mapValue,t.mapValue);default:throw Et()}}function V(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return Ct(e,t);var n=W(e),r=W(t),i=Ct(n.seconds,r.seconds);return 0!==i?i:Ct(n.nanos,r.nanos)}function q(e){return function e(t){return"nullValue"in t?"null":"booleanValue"in t?""+t.booleanValue:"integerValue"in t?""+t.integerValue:"doubleValue"in t?""+t.doubleValue:"timestampValue"in t?function(e){var t=W(e);return"time("+t.seconds+","+t.nanos+")"}(t.timestampValue):"stringValue"in t?t.stringValue:"bytesValue"in t?K(t.bytesValue).toBase64():"referenceValue"in t?(r=t.referenceValue,T.tt(r).toString()):"geoPointValue"in t?"geo("+(n=t.geoPointValue).latitude+","+n.longitude+")":"arrayValue"in t?function(t){for(var n="[",r=!0,i=0,a=t.values||[];i<a.length;i++){var o=a[i];r?r=!1:n+=",",n+=e(o)}return n+"]"}(t.arrayValue):"mapValue"in t?function(t){for(var n="{",r=!0,i=0,a=Object.keys(t.fields||{}).sort();i<a.length;i++){var o=a[i];r?r=!1:n+=",",n+=o+":"+e(t.fields[o])}return n+"}"}(t.mapValue):Et();var n,r}(e)}function W(e){if(St(!!e),"string"==typeof e){var t=0,n=j.exec(e);if(St(!!n),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),t=Number(r)}var i=new Date(e);return{seconds:Math.floor(i.getTime()/1e3),nanos:t}}return{seconds:G(e.seconds),nanos:G(e.nanos)}}function G(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function K(e){return"string"==typeof e?A.fromBase64String(e):A.fromUint8Array(e)}function J(e,t){return{referenceValue:"projects/"+e.projectId+"/databases/"+e.database+"/documents/"+t.path.K()}}function X(e){return!!e&&"integerValue"in e}function Q(e){return!!e&&"arrayValue"in e}function Z(e){return!!e&&"nullValue"in e}function ee(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function te(e){return!!e&&"mapValue"in e}var ne=function(){function e(){}return e.prototype.Bt=function(e,t){return function(e,t){var n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&(n.fields.__previous_value__=t),{mapValue:n}}(t,e)},e.prototype.qt=function(e,t){return t},e.prototype.Ut=function(e){return null},e.prototype.isEqual=function(t){return t instanceof e},e}();ne.instance=new ne;var re=function(){function e(e){this.elements=e}return e.prototype.Bt=function(e,t){return this.apply(e)},e.prototype.qt=function(e,t){return this.apply(e)},e.prototype.apply=function(e){for(var t=oe(e),n=function(e){t.some((function(t){return H(t,e)}))||t.push(e)},r=0,i=this.elements;r<i.length;r++)n(i[r]);return{arrayValue:{values:t}}},e.prototype.Ut=function(e){return null},e.prototype.isEqual=function(t){return t instanceof e&&Mt(this.elements,t.elements,H)},e}(),ie=function(){function e(e){this.elements=e}return e.prototype.Bt=function(e,t){return this.apply(e)},e.prototype.qt=function(e,t){return this.apply(e)},e.prototype.apply=function(e){for(var t=oe(e),n=function(e){t=t.filter((function(t){return!H(t,e)}))},r=0,i=this.elements;r<i.length;r++)n(i[r]);return{arrayValue:{values:t}}},e.prototype.Ut=function(e){return null},e.prototype.isEqual=function(t){return t instanceof e&&Mt(this.elements,t.elements,H)},e}(),ae=function(){function e(e,t){this.serializer=e,this.Qt=t}return e.prototype.Bt=function(e,t){var n=this.Ut(e),r=this.asNumber(n)+this.asNumber(this.Qt);return X(n)&&X(this.Qt)?this.serializer.Wt(r):this.serializer.jt(r)},e.prototype.qt=function(e,t){return t},e.prototype.Ut=function(e){return X(t=e)||function(e){return!!e&&"doubleValue"in e}(t)?e:{integerValue:0};var t},e.prototype.isEqual=function(t){return t instanceof e&&H(this.Qt,t.Qt)},e.prototype.asNumber=function(e){return G(e.integerValue||e.doubleValue)},e}();function oe(e){return Q(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}var se=function(){function e(e){this.fields=e}return e.Kt=function(t){return new e(t)},e.Gt=function(t){var n=new $(S.k);return t.forEach((function(e){return n=n.add(e)})),new e(n)},e.prototype.zt=function(e){var t=!1;return this.fields.forEach((function(n){n.U(e)&&(t=!0)})),t},e.prototype.isEqual=function(e){return this.fields.isEqual(e.fields)},e}(),le=function(){function e(e,t){this.field=e,this.transform=t}return e.prototype.isEqual=function(e){return this.field.isEqual(e.field)&&this.transform.isEqual(e.transform)},e}(),ce=function(e,t){this.version=e,this.transformResults=t},ue=function(){function e(e,t){this.updateTime=e,this.exists=t}return e.exists=function(t){return new e(void 0,t)},e.updateTime=function(t){return new e(t)},Object.defineProperty(e.prototype,"Ht",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!0,configurable:!0}),e.prototype.Yt=function(e){return void 0!==this.updateTime?e instanceof _e&&e.version.isEqual(this.updateTime):void 0===this.exists||this.exists===e instanceof _e},e.prototype.isEqual=function(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)},e}();ue.NONE=new ue;var de=function(){function e(){}return e.prototype.Jt=function(e){},e.Xt=function(e){return e instanceof _e?e.version:_.MIN},e}(),he=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).key=t,i.value=n,i.Zt=r,i.type=0,i}return i.__extends(t,e),t.prototype.qt=function(e,t){this.Jt(e);var n=t.version;return new _e(this.key,n,this.value,{hasCommittedMutations:!0})},t.prototype.Bt=function(e,t,n){if(this.Jt(e),!this.Zt.Yt(e))return e;var r=de.Xt(e);return new _e(this.key,r,this.value,{te:!0})},t.prototype.ee=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.value.isEqual(e.value)&&this.Zt.isEqual(e.Zt)},t}(de),fe=function(e){function t(t,n,r,i){var a=this;return(a=e.call(this)||this).key=t,a.data=n,a.se=r,a.Zt=i,a.type=1,a}return i.__extends(t,e),t.prototype.qt=function(e,t){if(this.Jt(e),!this.Zt.Yt(e))return new ke(this.key,t.version);var n=this.ie(e);return new _e(this.key,t.version,n,{hasCommittedMutations:!0})},t.prototype.Bt=function(e,t,n){if(this.Jt(e),!this.Zt.Yt(e))return e;var r=de.Xt(e),i=this.ie(e);return new _e(this.key,r,i,{te:!0})},t.prototype.ee=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.se.isEqual(e.se)&&this.Zt.isEqual(e.Zt)},t.prototype.ie=function(e){var t;return t=e instanceof _e?e.data():ge.EMPTY,this.ne(t)},t.prototype.ne=function(e){var t=this,n=e.re();return this.se.fields.forEach((function(e){if(!e.q()){var r=t.data.field(e);null!==r?n.set(e,r):n.delete(e)}})),n.he()},t}(de),pe=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).key=t,r.fieldTransforms=n,r.type=2,r.Zt=ue.exists(!0),r}return i.__extends(t,e),t.prototype.qt=function(e,t){if(this.Jt(e),St(null!=t.transformResults),!this.Zt.Yt(e))return new ke(this.key,t.version);var n=this.oe(e),r=this.ae(e,t.transformResults),i=t.version,a=this.ue(n.data(),r);return new _e(this.key,i,a,{hasCommittedMutations:!0})},t.prototype.Bt=function(e,t,n){if(this.Jt(e),!this.Zt.Yt(e))return e;var r=this.oe(e),i=this.ce(n,e,t),a=this.ue(r.data(),i);return new _e(this.key,r.version,a,{te:!0})},t.prototype.ee=function(e){for(var t=null,n=0,r=this.fieldTransforms;n<r.length;n++){var i=r[n],a=e instanceof _e?e.field(i.field):void 0,o=i.transform.Ut(a||null);null!=o&&(t=null==t?ge._e().set(i.field,o):t.set(i.field,o))}return t?t.he():null},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&Mt(this.fieldTransforms,e.fieldTransforms,(function(e,t){return e.isEqual(t)}))&&this.Zt.isEqual(e.Zt)},t.prototype.oe=function(e){return e},t.prototype.ae=function(e,t){var n=[];St(this.fieldTransforms.length===t.length);for(var r=0;r<t.length;r++){var i=this.fieldTransforms[r],a=i.transform,o=null;e instanceof _e&&(o=e.field(i.field)),n.push(a.qt(o,t[r]))}return n},t.prototype.ce=function(e,t,n){for(var r=[],i=0,a=this.fieldTransforms;i<a.length;i++){var o=a[i],s=o.transform,l=null;t instanceof _e&&(l=t.field(o.field)),null===l&&n instanceof _e&&(l=n.field(o.field)),r.push(s.Bt(l,e))}return r},t.prototype.ue=function(e,t){for(var n=e.re(),r=0;r<this.fieldTransforms.length;r++){var i=this.fieldTransforms[r].field;n.set(i,t[r])}return n.he()},t}(de),me=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).key=t,r.Zt=n,r.type=3,r}return i.__extends(t,e),t.prototype.qt=function(e,t){return this.Jt(e),new we(this.key,t.version,{hasCommittedMutations:!0})},t.prototype.Bt=function(e,t,n){return this.Jt(e),this.Zt.Yt(e)?new we(this.key,_.S()):e},t.prototype.ee=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.Zt.isEqual(e.Zt)},t}(de),ve=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).key=t,r.Zt=n,r.type=4,r}return i.__extends(t,e),t.prototype.qt=function(e,t){Et()},t.prototype.Bt=function(e,t,n){Et()},t.prototype.ee=function(e){Et()},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.Zt.isEqual(e.Zt)},t}(de),ge=function(){function e(e){this.proto=e}return e._e=function(){return e.EMPTY.re()},e.prototype.field=function(e){if(e.q())return this.proto;for(var t=this.proto,n=0;n<e.length-1;++n){if(!t.mapValue.fields)return null;if(!te(t=t.mapValue.fields[e.get(n)]))return null}return(t=(t.mapValue.fields||{})[e.B()])||null},e.prototype.se=function(){return this.le(this.proto.mapValue)},e.prototype.le=function(e){var t=this,n=new $(S.k);return O(e.fields||{},(function(e,r){var i=new S([e]);if(10===F(r)){var a=t.le(r.mapValue).fields;a.q()?n=n.add(i):a.forEach((function(e){n=n.add(i.child(e))}))}else n=n.add(i)})),se.Kt(n)},e.prototype.isEqual=function(e){return H(this.proto,e.proto)},e.prototype.re=function(){return new ye(this)},e}();ge.EMPTY=new ge({mapValue:{}});var ye=function(){function e(e){this.de=e,this.fe=new Map}return e.prototype.set=function(e,t){return this.Te(e,t),this},e.prototype.delete=function(e){return this.Te(e,null),this},e.prototype.Te=function(e,t){for(var n=this.fe,r=0;r<e.length-1;++r){var i=e.get(r),a=n.get(i);a instanceof Map?n=a:a&&10===F(a)?(a=new Map(Object.entries(a.mapValue.fields||{})),n.set(i,a),n=a):(a=new Map,n.set(i,a),n=a)}n.set(e.B(),t)},e.prototype.he=function(){var e=this.Ee(S.H,this.fe);return null!=e?new ge(e):this.de},e.prototype.Ee=function(e,t){var n=this,r=!1,i=this.de.field(e),a=te(i)?Object.assign({},i.mapValue.fields):{};return t.forEach((function(t,i){if(t instanceof Map){var o=n.Ee(e.child(i),t);null!=o&&(a[i]=o,r=!0)}else null!==t?(a[i]=t,r=!0):a.hasOwnProperty(i)&&(delete a[i],r=!0)})),r?{mapValue:{fields:a}}:null},e}(),be=function(){function e(e,t){this.key=e,this.version=t}return e.Ie=function(e,t){return T.k(e.key,t.key)},e}(),_e=function(e){function t(t,n,r,i){var a=this;return(a=e.call(this,t,n)||this).we=r,a.te=!!i.te,a.hasCommittedMutations=!!i.hasCommittedMutations,a}return i.__extends(t,e),t.prototype.field=function(e){return this.we.field(e)},t.prototype.data=function(){return this.we},t.prototype.Re=function(){return this.we.proto},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.te===e.te&&this.hasCommittedMutations===e.hasCommittedMutations&&this.we.isEqual(e.we)},t.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.we.toString()+", {hasLocalMutations: "+this.te+"}), {hasCommittedMutations: "+this.hasCommittedMutations+"})"},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return this.te||this.hasCommittedMutations},enumerable:!0,configurable:!0}),t.Ae=function(e,t,n){var r=t.field(e),i=n.field(e);return null!==r&&null!==i?z(r,i):Et()},t}(be),we=function(e){function t(t,n,r){var i=this;return(i=e.call(this,t,n)||this).hasCommittedMutations=!(!r||!r.hasCommittedMutations),i}return i.__extends(t,e),t.prototype.toString=function(){return"NoDocument("+this.key+", "+this.version+")"},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return this.hasCommittedMutations},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.hasCommittedMutations===this.hasCommittedMutations&&e.version.isEqual(this.version)&&e.key.isEqual(this.key)},t}(be),ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.toString=function(){return"UnknownDocument("+this.key+", "+this.version+")"},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.version.isEqual(this.version)&&e.key.isEqual(this.key)},t}(be),Ee=function(){function e(e,t,n,r,i,a,o){void 0===t&&(t=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===a&&(a=null),void 0===o&&(o=null),this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=a,this.endAt=o,this.me=null}return e.prototype.canonicalId=function(){if(null===this.me){var e=this.path.K();null!==this.collectionGroup&&(e+="|cg:"+this.collectionGroup),e+="|f:",e+=this.filters.map((function(e){return e.canonicalId()})).join(","),e+="|ob:",e+=this.orderBy.map((function(e){return e.canonicalId()})).join(","),D(this.limit)||(e+="|l:",e+=this.limit),this.startAt&&(e+="|lb:",e+=this.startAt.canonicalId()),this.endAt&&(e+="|ub:",e+=this.endAt.canonicalId()),this.me=e}return this.me},e.prototype.toString=function(){var e=this.path.K();return null!==this.collectionGroup&&(e+=" collectionGroup="+this.collectionGroup),this.filters.length>0&&(e+=", filters: ["+this.filters.join(", ")+"]"),D(this.limit)||(e+=", limit: "+this.limit),this.orderBy.length>0&&(e+=", orderBy: ["+this.orderBy.join(", ")+"]"),this.startAt&&(e+=", startAt: "+this.startAt.canonicalId()),this.endAt&&(e+=", endAt: "+this.endAt.canonicalId()),"Target("+e+")"},e.prototype.isEqual=function(e){if(this.limit!==e.limit)return!1;if(this.orderBy.length!==e.orderBy.length)return!1;for(var t=0;t<this.orderBy.length;t++)if(!this.orderBy[t].isEqual(e.orderBy[t]))return!1;if(this.filters.length!==e.filters.length)return!1;for(var n=0;n<this.filters.length;n++)if(!this.filters[n].isEqual(e.filters[n]))return!1;return this.collectionGroup===e.collectionGroup&&!!this.path.isEqual(e.path)&&!!(null!==this.startAt?this.startAt.isEqual(e.startAt):null===e.startAt)&&(null!==this.endAt?this.endAt.isEqual(e.endAt):null===e.endAt)},e.prototype.Pe=function(){return T.st(this.path)&&null===this.collectionGroup&&0===this.filters.length},e}(),Se=function(){function e(e,t,n,r,i,a,o,s){void 0===t&&(t=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===a&&(a="F"),void 0===o&&(o=null),void 0===s&&(s=null),this.path=e,this.collectionGroup=t,this.Ve=n,this.filters=r,this.limit=i,this.ge=a,this.startAt=o,this.endAt=s,this.pe=null,this.ye=null,this.startAt&&this.be(this.startAt),this.endAt&&this.be(this.endAt)}return e.ve=function(t){return new e(t)},Object.defineProperty(e.prototype,"orderBy",{get:function(){if(null===this.pe){var e=this.Se(),t=this.De();if(null!==e&&null===t)e.J()?this.pe=[Re]:this.pe=[new Ne(e),Re];else{this.pe=[];for(var n=!1,r=0,i=this.Ve;r<i.length;r++){var a=i[r];this.pe.push(a),a.field.J()&&(n=!0)}if(!n){var o=this.Ve.length>0?this.Ve[this.Ve.length-1].dir:Oe.ASCENDING;this.pe.push(o===Oe.ASCENDING?Re:Be)}}}return this.pe},enumerable:!0,configurable:!0}),e.prototype.Ce=function(t){var n=this.filters.concat([t]);return new e(this.path,this.collectionGroup,this.Ve.slice(),n,this.limit,this.ge,this.startAt,this.endAt)},e.prototype.Fe=function(t){var n=this.Ve.concat([t]);return new e(this.path,this.collectionGroup,n,this.filters.slice(),this.limit,this.ge,this.startAt,this.endAt)},e.prototype.Ne=function(t){return new e(this.path,this.collectionGroup,this.Ve.slice(),this.filters.slice(),t,"F",this.startAt,this.endAt)},e.prototype.ke=function(t){return new e(this.path,this.collectionGroup,this.Ve.slice(),this.filters.slice(),t,"L",this.startAt,this.endAt)},e.prototype.$e=function(t){return new e(this.path,this.collectionGroup,this.Ve.slice(),this.filters.slice(),this.limit,this.ge,t,this.endAt)},e.prototype.Me=function(t){return new e(this.path,this.collectionGroup,this.Ve.slice(),this.filters.slice(),this.limit,this.ge,this.startAt,t)},e.prototype.Le=function(t){return new e(t,null,this.Ve.slice(),this.filters.slice(),this.limit,this.ge,this.startAt,this.endAt)},e.prototype.Oe=function(){return 0===this.filters.length&&null===this.limit&&null==this.startAt&&null==this.endAt&&(0===this.Ve.length||1===this.Ve.length&&this.Ve[0].field.J())},e.prototype.canonicalId=function(){return this.xe().canonicalId()+"|lt:"+this.ge},e.prototype.toString=function(){return"Query(target="+this.xe().toString()+"; limitType="+this.ge+")"},e.prototype.isEqual=function(e){return this.xe().isEqual(e.xe())&&this.ge===e.ge},e.prototype.Be=function(e,t){for(var n=!1,r=0,i=this.orderBy;r<i.length;r++){var a=i[r],o=a.compare(e,t);if(0!==o)return o;n=n||a.field.J()}return 0},e.prototype.matches=function(e){return this.qe(e)&&this.Ue(e)&&this.Qe(e)&&this.We(e)},e.prototype.je=function(){return!D(this.limit)&&"F"===this.ge},e.prototype.Ke=function(){return!D(this.limit)&&"L"===this.ge},e.prototype.De=function(){return this.Ve.length>0?this.Ve[0].field:null},e.prototype.Se=function(){for(var e=0,t=this.filters;e<t.length;e++){var n=t[e];if(n instanceof Ce&&n.Ge())return n.field}return null},e.prototype.ze=function(e){for(var t=0,n=this.filters;t<n.length;t++){var r=n[t];if(r instanceof Ce&&e.indexOf(r.op)>=0)return r.op}return null},e.prototype.Pe=function(){return this.xe().Pe()},e.prototype.He=function(){return null!==this.collectionGroup},e.prototype.xe=function(){if(!this.ye)if("F"===this.ge)this.ye=new Ee(this.path,this.collectionGroup,this.orderBy,this.filters,this.limit,this.startAt,this.endAt);else{for(var e=[],t=0,n=this.orderBy;t<n.length;t++){var r=n[t],i=r.dir===Oe.DESCENDING?Oe.ASCENDING:Oe.DESCENDING;e.push(new Ne(r.field,i))}var a=this.endAt?new De(this.endAt.position,!this.endAt.before):null,o=this.startAt?new De(this.startAt.position,!this.startAt.before):null;this.ye=new Ee(this.path,this.collectionGroup,e,this.filters,this.limit,a,o)}return this.ye},e.prototype.qe=function(e){var t=e.key.path;return null!==this.collectionGroup?e.key.et(this.collectionGroup)&&this.path.U(t):T.st(this.path)?this.path.isEqual(t):this.path.W(t)},e.prototype.Ue=function(e){for(var t=0,n=this.Ve;t<n.length;t++){var r=n[t];if(!r.field.J()&&null===e.field(r.field))return!1}return!0},e.prototype.Qe=function(e){for(var t=0,n=this.filters;t<n.length;t++)if(!n[t].matches(e))return!1;return!0},e.prototype.We=function(e){return!(this.startAt&&!this.startAt.Ye(this.orderBy,e)||this.endAt&&this.endAt.Ye(this.orderBy,e))},e.prototype.be=function(e){},e}(),Te=function(){function e(e){this.name=e}return e.G=function(t){switch(t){case"<":return e.LESS_THAN;case"<=":return e.LESS_THAN_OR_EQUAL;case"==":return e.EQUAL;case">=":return e.GREATER_THAN_OR_EQUAL;case">":return e.GREATER_THAN;case"array-contains":return e.ARRAY_CONTAINS;case"in":return e.IN;case"array-contains-any":return e.ARRAY_CONTAINS_ANY;default:return Et()}},e.prototype.toString=function(){return this.name},e.prototype.isEqual=function(e){return this.name===e.name},e}();Te.LESS_THAN=new Te("<"),Te.LESS_THAN_OR_EQUAL=new Te("<="),Te.EQUAL=new Te("=="),Te.GREATER_THAN=new Te(">"),Te.GREATER_THAN_OR_EQUAL=new Te(">="),Te.ARRAY_CONTAINS=new Te("array-contains"),Te.IN=new Te("in"),Te.ARRAY_CONTAINS_ANY=new Te("array-contains-any");var Ce=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).field=t,i.op=n,i.value=r,i}return i.__extends(t,e),t.create=function(e,n,r){if(e.J())return n===Te.IN?new xe(e,r):new Me(e,n,r);if(Z(r)){if(n!==Te.EQUAL)throw new f(h.INVALID_ARGUMENT,"Invalid query. Null supports only equality comparisons.");return new t(e,n,r)}if(ee(r)){if(n!==Te.EQUAL)throw new f(h.INVALID_ARGUMENT,"Invalid query. NaN supports only equality comparisons.");return new t(e,n,r)}return n===Te.ARRAY_CONTAINS?new $e(e,r):n===Te.IN?new Le(e,r):n===Te.ARRAY_CONTAINS_ANY?new Pe(e,r):new t(e,n,r)},t.prototype.matches=function(e){var t=e.field(this.field);return null!==t&&F(this.value)===F(t)&&this.Je(z(t,this.value))},t.prototype.Je=function(e){switch(this.op){case Te.LESS_THAN:return e<0;case Te.LESS_THAN_OR_EQUAL:return e<=0;case Te.EQUAL:return 0===e;case Te.GREATER_THAN:return e>0;case Te.GREATER_THAN_OR_EQUAL:return e>=0;default:return Et()}},t.prototype.Ge=function(){return[Te.LESS_THAN,Te.LESS_THAN_OR_EQUAL,Te.GREATER_THAN,Te.GREATER_THAN_OR_EQUAL].indexOf(this.op)>=0},t.prototype.canonicalId=function(){return this.field.K()+this.op.toString()+q(this.value)},t.prototype.isEqual=function(e){return e instanceof t&&this.op.isEqual(e.op)&&this.field.isEqual(e.field)&&H(this.value,e.value)},t.prototype.toString=function(){return this.field.K()+" "+this.op+" "+q(this.value)},t}((function(){})),Me=function(e){function t(t,n,r){var i=this;return(i=e.call(this,t,n,r)||this).key=T.tt(r.referenceValue),i}return i.__extends(t,e),t.prototype.matches=function(e){var t=T.k(e.key,this.key);return this.Je(t)},t}(Ce),xe=function(e){function t(t,n){var r=this;return(r=e.call(this,t,Te.IN,n)||this).keys=(n.arrayValue.values||[]).map((function(e){return T.tt(e.referenceValue)})),r}return i.__extends(t,e),t.prototype.matches=function(e){return this.keys.some((function(t){return t.isEqual(e.key)}))},t}(Ce),$e=function(e){function t(t,n){return e.call(this,t,Te.ARRAY_CONTAINS,n)||this}return i.__extends(t,e),t.prototype.matches=function(e){var t=e.field(this.field);return Q(t)&&U(t.arrayValue,this.value)},t}(Ce),Le=function(e){function t(t,n){return e.call(this,t,Te.IN,n)||this}return i.__extends(t,e),t.prototype.matches=function(e){var t=e.field(this.field);return null!==t&&U(this.value.arrayValue,t)},t}(Ce),Pe=function(e){function t(t,n){return e.call(this,t,Te.ARRAY_CONTAINS_ANY,n)||this}return i.__extends(t,e),t.prototype.matches=function(e){var t=this,n=e.field(this.field);return!(!Q(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(e){return U(t.value.arrayValue,e)}))},t}(Ce),Oe=function(){function e(e){this.name=e}return e.prototype.toString=function(){return this.name},e}();Oe.ASCENDING=new Oe("asc"),Oe.DESCENDING=new Oe("desc");var Ie,Ae,De=function(){function e(e,t){this.position=e,this.before=t}return e.prototype.canonicalId=function(){return(this.before?"b":"a")+":"+this.position.map((function(e){return q(e)})).join(",")},e.prototype.Ye=function(e,t){for(var n=0,r=0;r<this.position.length;r++){var i=e[r],a=this.position[r];if(n=i.field.J()?T.k(T.tt(a.referenceValue),t.key):z(a,t.field(i.field)),i.dir===Oe.DESCENDING&&(n*=-1),0!==n)break}return this.before?n<=0:n<0},e.prototype.isEqual=function(e){if(null===e)return!1;if(this.before!==e.before||this.position.length!==e.position.length)return!1;for(var t=0;t<this.position.length;t++)if(!H(this.position[t],e.position[t]))return!1;return!0},e}(),Ne=function(){function e(e,t){this.field=e,void 0===t&&(t=Oe.ASCENDING),this.dir=t,this.Xe=e.J()}return e.prototype.compare=function(e,t){var n=this.Xe?_e.Ie(e,t):_e.Ae(this.field,e,t);switch(this.dir){case Oe.ASCENDING:return n;case Oe.DESCENDING:return-1*n;default:return Et()}},e.prototype.canonicalId=function(){return this.field.K()+this.dir.toString()},e.prototype.toString=function(){return this.field.K()+" ("+this.dir+")"},e.prototype.isEqual=function(e){return this.dir===e.dir&&this.field.isEqual(e.field)},e}(),Re=new Ne(S.X(),Oe.ASCENDING),Be=new Ne(S.X(),Oe.DESCENDING),Ye=function(){function e(e,t,n,r,i,a,o){void 0===i&&(i=_.MIN),void 0===a&&(a=_.MIN),void 0===o&&(o=A.xt),this.target=e,this.targetId=t,this.Ze=n,this.sequenceNumber=r,this.ts=i,this.lastLimboFreeSnapshotVersion=a,this.resumeToken=o}return e.prototype.es=function(t){return new e(this.target,this.targetId,this.Ze,t,this.ts,this.lastLimboFreeSnapshotVersion,this.resumeToken)},e.prototype.ss=function(t,n){return new e(this.target,this.targetId,this.Ze,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,t)},e.prototype.ns=function(t){return new e(this.target,this.targetId,this.Ze,this.sequenceNumber,this.ts,t,this.resumeToken)},e}(),je=function(e){this.count=e};function Fe(e){switch(e){case h.OK:return Et();case h.CANCELLED:case h.UNKNOWN:case h.DEADLINE_EXCEEDED:case h.RESOURCE_EXHAUSTED:case h.INTERNAL:case h.UNAVAILABLE:case h.UNAUTHENTICATED:return!1;case h.INVALID_ARGUMENT:case h.NOT_FOUND:case h.ALREADY_EXISTS:case h.PERMISSION_DENIED:case h.FAILED_PRECONDITION:case h.ABORTED:case h.OUT_OF_RANGE:case h.UNIMPLEMENTED:case h.DATA_LOSS:return!0;default:return Et()}}function He(e){if(void 0===e)return wt("GRPC error has no .code"),h.UNKNOWN;switch(e){case Ie.OK:return h.OK;case Ie.CANCELLED:return h.CANCELLED;case Ie.UNKNOWN:return h.UNKNOWN;case Ie.DEADLINE_EXCEEDED:return h.DEADLINE_EXCEEDED;case Ie.RESOURCE_EXHAUSTED:return h.RESOURCE_EXHAUSTED;case Ie.INTERNAL:return h.INTERNAL;case Ie.UNAVAILABLE:return h.UNAVAILABLE;case Ie.UNAUTHENTICATED:return h.UNAUTHENTICATED;case Ie.INVALID_ARGUMENT:return h.INVALID_ARGUMENT;case Ie.NOT_FOUND:return h.NOT_FOUND;case Ie.ALREADY_EXISTS:return h.ALREADY_EXISTS;case Ie.PERMISSION_DENIED:return h.PERMISSION_DENIED;case Ie.FAILED_PRECONDITION:return h.FAILED_PRECONDITION;case Ie.ABORTED:return h.ABORTED;case Ie.OUT_OF_RANGE:return h.OUT_OF_RANGE;case Ie.UNIMPLEMENTED:return h.UNIMPLEMENTED;case Ie.DATA_LOSS:return h.DATA_LOSS;default:return Et()}}(Ae=Ie||(Ie={}))[Ae.OK=0]="OK",Ae[Ae.CANCELLED=1]="CANCELLED",Ae[Ae.UNKNOWN=2]="UNKNOWN",Ae[Ae.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Ae[Ae.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Ae[Ae.NOT_FOUND=5]="NOT_FOUND",Ae[Ae.ALREADY_EXISTS=6]="ALREADY_EXISTS",Ae[Ae.PERMISSION_DENIED=7]="PERMISSION_DENIED",Ae[Ae.UNAUTHENTICATED=16]="UNAUTHENTICATED",Ae[Ae.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Ae[Ae.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Ae[Ae.ABORTED=10]="ABORTED",Ae[Ae.OUT_OF_RANGE=11]="OUT_OF_RANGE",Ae[Ae.UNIMPLEMENTED=12]="UNIMPLEMENTED",Ae[Ae.INTERNAL=13]="INTERNAL",Ae[Ae.UNAVAILABLE=14]="UNAVAILABLE",Ae[Ae.DATA_LOSS=15]="DATA_LOSS";var Ue=new C(T.k);function ze(){return Ue}function Ve(){return ze()}var qe=new C(T.k);function We(){return qe}var Ge=new C(T.k);function Ke(){return Ge}var Je=new $(T.k);function Xe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=Je,r=0,i=e;r<i.length;r++){var a=i[r];n=n.add(a)}return n}var Qe=new $(Ct);function Ze(){return Qe}var et=function(){function e(e){this.k=e?function(t,n){return e(t,n)||T.k(t.key,n.key)}:function(e,t){return T.k(e.key,t.key)},this.rs=We(),this.hs=new C(this.k)}return e.os=function(t){return new e(t.k)},e.prototype.has=function(e){return null!=this.rs.get(e)},e.prototype.get=function(e){return this.rs.get(e)},e.prototype.first=function(){return this.hs.ot()},e.prototype.last=function(){return this.hs.at()},e.prototype.q=function(){return this.hs.q()},e.prototype.indexOf=function(e){var t=this.rs.get(e);return t?this.hs.indexOf(t):-1},Object.defineProperty(e.prototype,"size",{get:function(){return this.hs.size},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e){this.hs.ut((function(t,n){return e(t),!1}))},e.prototype.add=function(e){var t=this.delete(e.key);return t.rt(t.rs.nt(e.key,e),t.hs.nt(e,null))},e.prototype.delete=function(e){var t=this.get(e);return t?this.rt(this.rs.remove(e),this.hs.remove(t)):this},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.hs._t(),r=t.hs._t();n.wt();){var i=n.It().key,a=r.It().key;if(!i.isEqual(a))return!1}return!0},e.prototype.toString=function(){var e=[];return this.forEach((function(t){e.push(t.toString())})),0===e.length?"DocumentSet ()":"DocumentSet (\n "+e.join(" \n")+"\n)"},e.prototype.rt=function(t,n){var r=new e;return r.k=this.k,r.rs=t,r.hs=n,r},e}(),tt=function(){function e(){this.as=new C(T.k)}return e.prototype.track=function(e){var t=e.doc.key,n=this.as.get(t);n?0!==e.type&&3===n.type?this.as=this.as.nt(t,e):3===e.type&&1!==n.type?this.as=this.as.nt(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.as=this.as.nt(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.as=this.as.nt(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.as=this.as.remove(t):1===e.type&&2===n.type?this.as=this.as.nt(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.as=this.as.nt(t,{type:2,doc:e.doc}):Et():this.as=this.as.nt(t,e)},e.prototype.us=function(){var e=[];return this.as.ut((function(t,n){e.push(n)})),e},e}(),nt=function(){function e(e,t,n,r,i,a,o,s){this.query=e,this.docs=t,this.cs=n,this.docChanges=r,this._s=i,this.fromCache=a,this.ls=o,this.ds=s}return e.fs=function(t,n,r,i){var a=[];return n.forEach((function(e){a.push({type:0,doc:e})})),new e(t,n,et.os(n),a,r,i,!0,!1)},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return!this._s.q()},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(e){if(!(this.fromCache===e.fromCache&&this.ls===e.ls&&this._s.isEqual(e._s)&&this.query.isEqual(e.query)&&this.docs.isEqual(e.docs)&&this.cs.isEqual(e.cs)))return!1;var t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++)if(t[r].type!==n[r].type||!t[r].doc.isEqual(n[r].doc))return!1;return!0},e}(),rt=function(){function e(e,t,n,r,i){this.ts=e,this.Ts=t,this.Es=n,this.Is=r,this.ws=i}return e.Rs=function(t,n){var r=new Map;return r.set(t,it.As(t,n)),new e(_.MIN,r,Ze(),ze(),Xe())},e}(),it=function(){function e(e,t,n,r,i){this.resumeToken=e,this.ms=t,this.Ps=n,this.Vs=r,this.gs=i}return e.As=function(t,n){return new e(A.xt,n,Xe(),Xe(),Xe())},e}(),at=function(e,t,n,r){this.ps=e,this.removedTargetIds=t,this.key=n,this.ys=r},ot=function(e,t){this.targetId=e,this.bs=t},st=function(e,t,n,r){void 0===n&&(n=A.xt),void 0===r&&(r=null),this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r},lt=function(){function e(){this.vs=0,this.Ss=dt(),this.Ds=A.xt,this.Cs=!1,this.Fs=!0}return Object.defineProperty(e.prototype,"ms",{get:function(){return this.Cs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resumeToken",{get:function(){return this.Ds},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Ns",{get:function(){return 0!==this.vs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ks",{get:function(){return this.Fs},enumerable:!0,configurable:!0}),e.prototype.$s=function(e){e.Ot()>0&&(this.Fs=!0,this.Ds=e)},e.prototype.Ms=function(){var e=Xe(),t=Xe(),n=Xe();return this.Ss.forEach((function(r,i){switch(i){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:Et()}})),new it(this.Ds,this.Cs,e,t,n)},e.prototype.Ls=function(){this.Fs=!1,this.Ss=dt()},e.prototype.Os=function(e,t){this.Fs=!0,this.Ss=this.Ss.nt(e,t)},e.prototype.xs=function(e){this.Fs=!0,this.Ss=this.Ss.remove(e)},e.prototype.Bs=function(){this.vs+=1},e.prototype.qs=function(){this.vs-=1},e.prototype.Us=function(){this.Fs=!0,this.Cs=!0},e}(),ct=function(){function e(e){this.Qs=e,this.Ws=new Map,this.js=ze(),this.Ks=ut(),this.Gs=new $(Ct)}return e.prototype.zs=function(e){for(var t=0,n=e.ps;t<n.length;t++){var r=n[t];e.ys instanceof _e?this.Hs(r,e.ys):e.ys instanceof we&&this.Ys(r,e.key,e.ys)}for(var i=0,a=e.removedTargetIds;i<a.length;i++){var o=a[i];this.Ys(o,e.key,e.ys)}},e.prototype.Js=function(e){var t=this;this.Xs(e,(function(n){var r=t.Zs(n);switch(e.state){case 0:t.ti(n)&&r.$s(e.resumeToken);break;case 1:r.qs(),r.Ns||r.Ls(),r.$s(e.resumeToken);break;case 2:r.qs(),r.Ns||t.removeTarget(n);break;case 3:t.ti(n)&&(r.Us(),r.$s(e.resumeToken));break;case 4:t.ti(n)&&(t.ei(n),r.$s(e.resumeToken));break;default:Et()}}))},e.prototype.Xs=function(e,t){var n=this;e.targetIds.length>0?e.targetIds.forEach(t):this.Ws.forEach((function(e,r){n.ti(r)&&t(r)}))},e.prototype.si=function(e){var t=e.targetId,n=e.bs.count,r=this.ii(t);if(r){var i=r.target;if(i.Pe())if(0===n){var a=new T(i.path);this.Ys(t,a,new we(a,_.S()))}else St(1===n);else this.ni(t)!==n&&(this.ei(t),this.Gs=this.Gs.add(t))}},e.prototype.ri=function(e){var t=this,n=new Map;this.Ws.forEach((function(r,i){var a=t.ii(i);if(a){if(r.ms&&a.target.Pe()){var o=new T(a.target.path);null!==t.js.get(o)||t.hi(i,o)||t.Ys(i,o,new we(o,e))}r.ks&&(n.set(i,r.Ms()),r.Ls())}}));var r=Xe();this.Ks.forEach((function(e,n){var i=!0;n.Ft((function(e){var n=t.ii(e);return!n||2===n.Ze||(i=!1,!1)})),i&&(r=r.add(e))}));var i=new rt(e,n,this.Gs,this.js,r);return this.js=ze(),this.Ks=ut(),this.Gs=new $(Ct),i},e.prototype.Hs=function(e,t){if(this.ti(e)){var n=this.hi(e,t.key)?2:0;this.Zs(e).Os(t.key,n),this.js=this.js.nt(t.key,t),this.Ks=this.Ks.nt(t.key,this.oi(t.key).add(e))}},e.prototype.Ys=function(e,t,n){if(this.ti(e)){var r=this.Zs(e);this.hi(e,t)?r.Os(t,1):r.xs(t),this.Ks=this.Ks.nt(t,this.oi(t).delete(e)),n&&(this.js=this.js.nt(t,n))}},e.prototype.removeTarget=function(e){this.Ws.delete(e)},e.prototype.ni=function(e){var t=this.Zs(e).Ms();return this.Qs.ai(e).size+t.Ps.size-t.gs.size},e.prototype.Bs=function(e){this.Zs(e).Bs()},e.prototype.Zs=function(e){var t=this.Ws.get(e);return t||(t=new lt,this.Ws.set(e,t)),t},e.prototype.oi=function(e){var t=this.Ks.get(e);return t||(t=new $(Ct),this.Ks=this.Ks.nt(e,t)),t},e.prototype.ti=function(e){var t=null!==this.ii(e);return t||_t("WatchChangeAggregator","Detected inactive target",e),t},e.prototype.ii=function(e){var t=this.Ws.get(e);return t&&t.Ns?null:this.Qs.ui(e)},e.prototype.ei=function(e){var t=this;this.Ws.set(e,new lt),this.Qs.ai(e).forEach((function(n){t.Ys(e,n,null)}))},e.prototype.hi=function(e,t){return this.Qs.ai(e).has(t)},e}();function ut(){return new C(T.k)}function dt(){return new C(T.k)}var ht=function(){var e={};return e[Oe.ASCENDING.name]="ASCENDING",e[Oe.DESCENDING.name]="DESCENDING",e}(),ft=function(){var e={};return e[Te.LESS_THAN.name]="LESS_THAN",e[Te.LESS_THAN_OR_EQUAL.name]="LESS_THAN_OR_EQUAL",e[Te.GREATER_THAN.name]="GREATER_THAN",e[Te.GREATER_THAN_OR_EQUAL.name]="GREATER_THAN_OR_EQUAL",e[Te.EQUAL.name]="EQUAL",e[Te.ARRAY_CONTAINS.name]="ARRAY_CONTAINS",e[Te.IN.name]="IN",e[Te.ARRAY_CONTAINS_ANY.name]="ARRAY_CONTAINS_ANY",e}(),pt=function(){function e(e,t){this.ci=e,this.options=t}return e.prototype._i=function(e){var t=void 0===e.code?h.UNKNOWN:He(e.code);return new f(t,e.message||"")},e.prototype.li=function(e){return this.options.di||D(e)?e:{value:e}},e.prototype.fi=function(e){var t;return D(t="object"==typeof e?e.value:e)?null:t},e.prototype.Wt=function(e){return{integerValue:""+e}},e.prototype.jt=function(e){if(this.options.di){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:N(e)?"-0":e}},e.prototype.Ti=function(e){return R(e)?this.Wt(e):this.jt(e)},e.prototype.F=function(e){return this.options.di?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}},e.prototype.v=function(e){var t=W(e);return new b(t.seconds,t.nanos)},e.prototype.Ei=function(e){return this.options.di?e.toBase64():e.toUint8Array()},e.prototype.Ii=function(e){return this.options.di?(St(void 0===e||"string"==typeof e),A.fromBase64String(e||"")):(St(void 0===e||e instanceof Uint8Array),A.fromUint8Array(e||new Uint8Array))},e.prototype.toVersion=function(e){return this.F(e.F())},e.prototype.fromVersion=function(e){return St(!!e),_.v(this.v(e))},e.prototype.wi=function(e,t){return this.Ri(t||this.ci).child("documents").child(e).K()},e.prototype.Ai=function(e){var t=k.G(e);return St(mt(t)),t},e.prototype.mi=function(e){return this.wi(e.path)},e.prototype.tt=function(e){var t=this.Ai(e);return St(t.get(1)===this.ci.projectId),St(!t.get(3)&&!this.ci.database||t.get(3)===this.ci.database),new T(this.Pi(t))},e.prototype.Vi=function(e){return this.wi(e)},e.prototype.gi=function(e){var t=this.Ai(e);return 4===t.length?k.H:this.Pi(t)},Object.defineProperty(e.prototype,"pi",{get:function(){return new k(["projects",this.ci.projectId,"databases",this.ci.database]).K()},enumerable:!0,configurable:!0}),e.prototype.Ri=function(e){return new k(["projects",e.projectId,"databases",e.database])},e.prototype.Pi=function(e){return St(e.length>4&&"documents"===e.get(4)),e.M(5)},e.prototype.yi=function(e,t){return{name:this.mi(e),fields:t.proto.mapValue.fields}},e.prototype.bi=function(e){return{name:this.mi(e.key),fields:e.Re().mapValue.fields,updateTime:this.F(e.version.F())}},e.prototype.vi=function(e,t){var n=this.tt(e.name),r=this.fromVersion(e.updateTime),i=new ge({mapValue:{fields:e.fields}});return new _e(n,r,i,{hasCommittedMutations:!!t})},e.prototype.Si=function(e){St(!!e.found),e.found.name,e.found.updateTime;var t=this.tt(e.found.name),n=this.fromVersion(e.found.updateTime),r=new ge({mapValue:{fields:e.found.fields}});return new _e(t,n,r,{})},e.prototype.Di=function(e){St(!!e.missing),St(!!e.readTime);var t=this.tt(e.missing),n=this.fromVersion(e.readTime);return new we(t,n)},e.prototype.Ci=function(e){return"found"in e?this.Si(e):"missing"in e?this.Di(e):Et()},e.prototype.Fi=function(e){var t;if("targetChange"in e){e.targetChange;var n=this.Ni(e.targetChange.targetChangeType||"NO_CHANGE"),r=e.targetChange.targetIds||[],i=this.Ii(e.targetChange.resumeToken),a=e.targetChange.cause,o=a&&this._i(a);t=new st(n,r,i,o||null)}else if("documentChange"in e){e.documentChange;var s=e.documentChange;s.document,s.document.name,s.document.updateTime;var l=this.tt(s.document.name),c=this.fromVersion(s.document.updateTime),u=new ge({mapValue:{fields:s.document.fields}}),d=new _e(l,c,u,{}),h=s.targetIds||[],f=s.removedTargetIds||[];t=new at(h,f,d.key,d)}else if("documentDelete"in e){e.documentDelete;var p=e.documentDelete;p.document;var m=this.tt(p.document),v=p.readTime?this.fromVersion(p.readTime):_.S(),g=new we(m,v),y=p.removedTargetIds||[];t=new at([],y,g.key,g)}else if("documentRemove"in e){e.documentRemove;var b=e.documentRemove;b.document;var w=this.tt(b.document),k=b.removedTargetIds||[];t=new at([],k,w,null)}else{if(!("filter"in e))return Et();e.filter;var E=e.filter;E.targetId;var S=E.count||0,T=new je(S),C=E.targetId;t=new ot(C,T)}return t},e.prototype.Ni=function(e){return"NO_CHANGE"===e?0:"ADD"===e?1:"REMOVE"===e?2:"CURRENT"===e?3:"RESET"===e?4:Et()},e.prototype.ki=function(e){if(!("targetChange"in e))return _.MIN;var t=e.targetChange;return t.targetIds&&t.targetIds.length?_.MIN:t.readTime?this.fromVersion(t.readTime):_.MIN},e.prototype.$i=function(e){var t,n=this;if(e instanceof he)t={update:this.yi(e.key,e.value)};else if(e instanceof me)t={delete:this.mi(e.key)};else if(e instanceof fe)t={update:this.yi(e.key,e.data),updateMask:this.Mi(e.se)};else if(e instanceof pe)t={transform:{document:this.mi(e.key),fieldTransforms:e.fieldTransforms.map((function(e){return n.Li(e)}))}};else{if(!(e instanceof ve))return Et();t={verify:this.mi(e.key)}}return e.Zt.Ht||(t.currentDocument=this.Oi(e.Zt)),t},e.prototype.xi=function(e){var t=this,n=e.currentDocument?this.Bi(e.currentDocument):ue.NONE;if(e.update){e.update.name;var r=this.tt(e.update.name),i=new ge({mapValue:{fields:e.update.fields}});if(e.updateMask){var a=this.qi(e.updateMask);return new fe(r,i,a,n)}return new he(r,i,n)}if(e.delete){var o=this.tt(e.delete);return new me(o,n)}if(e.transform){var s=this.tt(e.transform.document),l=e.transform.fieldTransforms.map((function(e){return t.Ui(e)}));return St(!0===n.exists),new pe(s,l)}if(e.verify){var c=this.tt(e.verify);return new ve(c,n)}return Et()},e.prototype.Oi=function(e){return void 0!==e.updateTime?{updateTime:this.toVersion(e.updateTime)}:void 0!==e.exists?{exists:e.exists}:Et()},e.prototype.Bi=function(e){return void 0!==e.updateTime?ue.updateTime(this.fromVersion(e.updateTime)):void 0!==e.exists?ue.exists(e.exists):ue.NONE},e.prototype.Qi=function(e,t){var n=e.updateTime?this.fromVersion(e.updateTime):this.fromVersion(t);n.isEqual(_.MIN)&&(n=this.fromVersion(t));var r=null;return e.transformResults&&e.transformResults.length>0&&(r=e.transformResults),new ce(n,r)},e.prototype.Wi=function(e,t){var n=this;return e&&e.length>0?(St(void 0!==t),e.map((function(e){return n.Qi(e,t)}))):[]},e.prototype.Li=function(e){var t=e.transform;if(t instanceof ne)return{fieldPath:e.field.K(),setToServerValue:"REQUEST_TIME"};if(t instanceof re)return{fieldPath:e.field.K(),appendMissingElements:{values:t.elements}};if(t instanceof ie)return{fieldPath:e.field.K(),removeAllFromArray:{values:t.elements}};if(t instanceof ae)return{fieldPath:e.field.K(),increment:t.Qt};throw Et()},e.prototype.Ui=function(e){var t=null;if("setToServerValue"in e)St("REQUEST_TIME"===e.setToServerValue),t=ne.instance;else if("appendMissingElements"in e){var n=e.appendMissingElements.values||[];t=new re(n)}else if("removeAllFromArray"in e){var r=e.removeAllFromArray.values||[];t=new ie(r)}else"increment"in e?t=new ae(this,e.increment):Et();var i=S.Z(e.fieldPath);return new le(i,t)},e.prototype.ji=function(e){return{documents:[this.Vi(e.path)]}},e.prototype.Ki=function(e){St(1===e.documents.length);var t=e.documents[0];return Se.ve(this.gi(t)).xe()},e.prototype.Gi=function(e){var t={structuredQuery:{}},n=e.path;null!==e.collectionGroup?(t.parent=this.Vi(n),t.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(t.parent=this.Vi(n.L()),t.structuredQuery.from=[{collectionId:n.B()}]);var r=this.zi(e.filters);r&&(t.structuredQuery.where=r);var i=this.Hi(e.orderBy);i&&(t.structuredQuery.orderBy=i);var a=this.li(e.limit);return null!==a&&(t.structuredQuery.limit=a),e.startAt&&(t.structuredQuery.startAt=this.Yi(e.startAt)),e.endAt&&(t.structuredQuery.endAt=this.Yi(e.endAt)),t},e.prototype.Ji=function(e){var t=this.gi(e.parent),n=e.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){St(1===r);var a=n.from[0];a.allDescendants?i=a.collectionId:t=t.child(a.collectionId)}var o=[];n.where&&(o=this.Xi(n.where));var s=[];n.orderBy&&(s=this.Zi(n.orderBy));var l=null;n.limit&&(l=this.fi(n.limit));var c=null;n.startAt&&(c=this.tn(n.startAt));var u=null;return n.endAt&&(u=this.tn(n.endAt)),new Se(t,i,s,o,l,"F",c,u).xe()},e.prototype.en=function(e){var t=this.sn(e.Ze);return null==t?null:{"goog-listen-tags":t}},e.prototype.sn=function(e){switch(e){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return Et()}},e.prototype.xe=function(e){var t,n=e.target;return(t=n.Pe()?{documents:this.ji(n)}:{query:this.Gi(n)}).targetId=e.targetId,e.resumeToken.Ot()>0&&(t.resumeToken=this.Ei(e.resumeToken)),t},e.prototype.zi=function(e){var t=this;if(0!==e.length){var n=e.map((function(e){return e instanceof Ce?t.in(e):Et()}));return 1===n.length?n[0]:{compositeFilter:{op:"AND",filters:n}}}},e.prototype.Xi=function(e){var t=this;return e?void 0!==e.unaryFilter?[this.nn(e)]:void 0!==e.fieldFilter?[this.rn(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map((function(e){return t.Xi(e)})).reduce((function(e,t){return e.concat(t)})):Et():[]},e.prototype.Hi=function(e){var t=this;if(0!==e.length)return e.map((function(e){return t.hn(e)}))},e.prototype.Zi=function(e){var t=this;return e.map((function(e){return t.on(e)}))},e.prototype.Yi=function(e){return{before:e.before,values:e.position}},e.prototype.tn=function(e){var t=!!e.before,n=e.values||[];return new De(n,t)},e.prototype.an=function(e){return ht[e.name]},e.prototype.un=function(e){switch(e){case"ASCENDING":return Oe.ASCENDING;case"DESCENDING":return Oe.DESCENDING;default:return}},e.prototype.cn=function(e){return ft[e.name]},e.prototype._n=function(e){switch(e){case"EQUAL":return Te.EQUAL;case"GREATER_THAN":return Te.GREATER_THAN;case"GREATER_THAN_OR_EQUAL":return Te.GREATER_THAN_OR_EQUAL;case"LESS_THAN":return Te.LESS_THAN;case"LESS_THAN_OR_EQUAL":return Te.LESS_THAN_OR_EQUAL;case"ARRAY_CONTAINS":return Te.ARRAY_CONTAINS;case"IN":return Te.IN;case"ARRAY_CONTAINS_ANY":return Te.ARRAY_CONTAINS_ANY;case"OPERATOR_UNSPECIFIED":default:return Et()}},e.prototype.ln=function(e){return{fieldPath:e.K()}},e.prototype.dn=function(e){return S.Z(e.fieldPath)},e.prototype.hn=function(e){return{field:this.ln(e.field),direction:this.an(e.dir)}},e.prototype.on=function(e){return new Ne(this.dn(e.field),this.un(e.direction))},e.prototype.rn=function(e){return Ce.create(this.dn(e.fieldFilter.field),this._n(e.fieldFilter.op),e.fieldFilter.value)},e.prototype.in=function(e){if(e.op===Te.EQUAL){if(ee(e.value))return{unaryFilter:{field:this.ln(e.field),op:"IS_NAN"}};if(Z(e.value))return{unaryFilter:{field:this.ln(e.field),op:"IS_NULL"}}}return{fieldFilter:{field:this.ln(e.field),op:this.cn(e.op),value:e.value}}},e.prototype.nn=function(e){switch(e.unaryFilter.op){case"IS_NAN":var t=this.dn(e.unaryFilter.field);return Ce.create(t,Te.EQUAL,{doubleValue:NaN});case"IS_NULL":var n=this.dn(e.unaryFilter.field);return Ce.create(n,Te.EQUAL,{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return Et()}},e.prototype.Mi=function(e){var t=[];return e.fields.forEach((function(e){return t.push(e.K())})),{fieldPaths:t}},e.prototype.qi=function(e){var t=(e.fieldPaths||[]).map((function(e){return S.Z(e)}));return se.Gt(t)},e}();function mt(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}var vt=function(){function e(){}return e.fn=function(t){e.platform&&Et(),e.platform=t},e.Lt=function(){return e.platform||Et(),e.platform},e}(),gt=new o.Logger("@firebase/firestore");function yt(){return gt.logLevel}function bt(e){gt.logLevel=e}function _t(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(gt.logLevel<=o.LogLevel.DEBUG){var r=t.map(kt);gt.debug.apply(gt,i.__spreadArrays(["Firestore ("+u+"): "+e],r))}}function wt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(gt.logLevel<=o.LogLevel.ERROR){var r=t.map(kt);gt.error.apply(gt,i.__spreadArrays(["Firestore ("+u+"): "+e],r))}}function kt(e){if("string"==typeof e)return e;var t=vt.Lt();try{return t.Tn(e)}catch(t){return e}}function Et(e){void 0===e&&(e="Unexpected state");var t="FIRESTORE ("+u+") INTERNAL ASSERTION FAILED: "+e;throw wt(t),new Error(t)}function St(e,t){e||Et()}var Tt=function(){function e(){}return e.En=function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="",n=0;n<20;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t},e}();function Ct(e,t){return e<t?-1:e>t?1:0}function Mt(e,t,n){return e.length===t.length&&e.every((function(e,r){return n(e,t[r])}))}function xt(e){return e+"\0"}var $t=function(e,t,n,r,i){this.ci=e,this.persistenceKey=t,this.host=n,this.ssl=r,this.forceLongPolling=i},Lt=function(){function e(e,t){this.projectId=e,this.database=t||"(default)"}return Object.defineProperty(e.prototype,"In",{get:function(){return"(default)"===this.database},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.projectId===this.projectId&&t.database===this.database},e.prototype.D=function(e){return Ct(this.projectId,e.projectId)||Ct(this.database,e.database)},e}(),Pt=function(){function e(e){this.wn=e,this.Rn={}}return e.prototype.get=function(e){var t=this.wn(e),n=this.Rn[t];if(void 0!==n)for(var r=0,i=n;r<i.length;r++){var a=i[r],o=a[0],s=a[1];if(o.isEqual(e))return s}},e.prototype.has=function(e){return void 0!==this.get(e)},e.prototype.set=function(e,t){var n=this.wn(e),r=this.Rn[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(r[i][0].isEqual(e))return void(r[i]=[e,t]);r.push([e,t])}else this.Rn[n]=[[e,t]]},e.prototype.delete=function(e){var t=this.wn(e),n=this.Rn[t];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(n[r][0].isEqual(e))return 1===n.length?delete this.Rn[t]:n.splice(r,1),!0;return!1},e.prototype.forEach=function(e){O(this.Rn,(function(t,n){for(var r=0,i=n;r<i.length;r++){var a=i[r],o=a[0],s=a[1];e(o,s)}}))},e.prototype.q=function(){return I(this.Rn)},e}(),Ot=function(){function e(e,t,n,r){this.batchId=e,this.An=t,this.baseMutations=n,this.mutations=r}return e.prototype.qt=function(e,t,n){for(var r=n.mn,i=0;i<this.mutations.length;i++){var a=this.mutations[i];if(a.key.isEqual(e)){var o=r[i];t=a.qt(t,o)}}return t},e.prototype.Bt=function(e,t){for(var n=0,r=this.baseMutations;n<r.length;n++){var i=r[n];i.key.isEqual(e)&&(t=i.Bt(t,t,this.An))}for(var a=t,o=0,s=this.mutations;o<s.length;o++){var l=s[o];l.key.isEqual(e)&&(t=l.Bt(t,a,this.An))}return t},e.prototype.Pn=function(e){var t=this,n=e;return this.mutations.forEach((function(r){var i=t.Bt(r.key,e.get(r.key));i&&(n=n.nt(r.key,i))})),n},e.prototype.keys=function(){return this.mutations.reduce((function(e,t){return e.add(t.key)}),Xe())},e.prototype.isEqual=function(e){return this.batchId===e.batchId&&Mt(this.mutations,e.mutations,(function(e,t){return e.isEqual(t)}))&&Mt(this.baseMutations,e.baseMutations,(function(e,t){return e.isEqual(t)}))},e}(),It=function(){function e(e,t,n,r,i){this.batch=e,this.Vn=t,this.mn=n,this.streamToken=r,this.gn=i}return e.from=function(t,n,r,i){St(t.mutations.length===r.length);for(var a=Ke(),o=t.mutations,s=0;s<o.length;s++)a=a.nt(o[s].key,r[s].version);return new e(t,n,r,i,a)},e}(),At=function(){function e(){this.pn=new $(Dt.Ie),this.yn=new $(Dt.bn)}return e.prototype.q=function(){return this.pn.q()},e.prototype.vn=function(e,t){var n=new Dt(e,t);this.pn=this.pn.add(n),this.yn=this.yn.add(n)},e.prototype.Sn=function(e,t){var n=this;e.forEach((function(e){return n.vn(e,t)}))},e.prototype.Dn=function(e,t){this.Cn(new Dt(e,t))},e.prototype.Fn=function(e,t){var n=this;e.forEach((function(e){return n.Dn(e,t)}))},e.prototype.Nn=function(e){var t=this,n=T.EMPTY,r=new Dt(n,e),i=new Dt(n,e+1),a=[];return this.yn.Ct([r,i],(function(e){t.Cn(e),a.push(e.key)})),a},e.prototype.kn=function(){var e=this;this.pn.forEach((function(t){return e.Cn(t)}))},e.prototype.Cn=function(e){this.pn=this.pn.delete(e),this.yn=this.yn.delete(e)},e.prototype.$n=function(e){var t=T.EMPTY,n=new Dt(t,e),r=new Dt(t,e+1),i=Xe();return this.yn.Ct([n,r],(function(e){i=i.add(e.key)})),i},e.prototype.Mn=function(e){var t=new Dt(e,0),n=this.pn.Nt(t);return null!==n&&e.isEqual(n.key)},e}(),Dt=function(){function e(e,t){this.key=e,this.Ln=t}return e.Ie=function(e,t){return T.k(e.key,t.key)||Ct(e.Ln,t.Ln)},e.bn=function(e,t){return Ct(e.Ln,t.Ln)||T.k(e.key,t.key)},e}(),Nt=function(){function e(e){var t=this;this.On=null,this.xn=null,this.result=void 0,this.error=void 0,this.Bn=!1,this.qn=!1,e((function(e){t.Bn=!0,t.result=e,t.On&&t.On(e)}),(function(e){t.Bn=!0,t.error=e,t.xn&&t.xn(e)}))}return e.prototype.catch=function(e){return this.next(void 0,e)},e.prototype.next=function(t,n){var r=this;return this.qn&&Et(),this.qn=!0,this.Bn?this.error?this.Un(n,this.error):this.Qn(t,this.result):new e((function(e,i){r.On=function(n){r.Qn(t,n).next(e,i)},r.xn=function(t){r.Un(n,t).next(e,i)}}))},e.prototype.Wn=function(){var e=this;return new Promise((function(t,n){e.next(t,n)}))},e.prototype.jn=function(t){try{var n=t();return n instanceof e?n:e.resolve(n)}catch(t){return e.reject(t)}},e.prototype.Qn=function(t,n){return t?this.jn((function(){return t(n)})):e.resolve(n)},e.prototype.Un=function(t,n){return t?this.jn((function(){return t(n)})):e.reject(n)},e.resolve=function(t){return new e((function(e,n){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.Kn=function(t){return new e((function(e,n){var r=0,i=0,a=!1;t.forEach((function(t){++r,t.next((function(){++i,a&&i===r&&e()}),(function(e){return n(e)}))})),a=!0,i===r&&e()}))},e.Gn=function(t){for(var n=e.resolve(!1),r=function(t){n=n.next((function(n){return n?e.resolve(n):t()}))},i=0,a=t;i<a.length;i++)r(a[i]);return n},e.forEach=function(e,t){var n=this,r=[];return e.forEach((function(e,i){r.push(t.call(n,e,i))})),this.Kn(r)},e}(),Rt=function(){function e(){this.zn=new Pt((function(e){return e.toString()})),this.Hn=!1}return Object.defineProperty(e.prototype,"readTime",{get:function(){return this.Yn},set:function(e){this.Yn=e},enumerable:!0,configurable:!0}),e.prototype.Jn=function(e,t){this.Xn(),this.readTime=t,this.zn.set(e.key,e)},e.prototype.Zn=function(e,t){this.Xn(),t&&(this.readTime=t),this.zn.set(e,null)},e.prototype.tr=function(e,t){this.Xn();var n=this.zn.get(t);return void 0!==n?Nt.resolve(n):this.er(e,t)},e.prototype.getEntries=function(e,t){return this.sr(e,t)},e.prototype.apply=function(e){return this.Xn(),this.Hn=!0,this.ir(e)},e.prototype.Xn=function(){},e}(),Bt="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Yt=function(){function e(){this.nr=[]}return e.prototype.rr=function(e){this.nr.push(e)},e.prototype.hr=function(){this.nr.forEach((function(e){return e()}))},e}(),jt=function(){function e(e,t,n){this.or=e,this.ar=t,this.ur=n}return e.prototype.cr=function(e,t){var n=this;return this.ar._r(e,t).next((function(r){return n.lr(e,t,r)}))},e.prototype.lr=function(e,t,n){return this.or.tr(e,t).next((function(e){for(var r=0,i=n;r<i.length;r++)e=i[r].Bt(t,e);return e}))},e.prototype.dr=function(e,t,n){var r=Ve();return t.forEach((function(e,t){for(var i=0,a=n;i<a.length;i++)t=a[i].Bt(e,t);r=r.nt(e,t)})),r},e.prototype.Tr=function(e,t){var n=this;return this.or.getEntries(e,t).next((function(t){return n.Er(e,t)}))},e.prototype.Er=function(e,t){var n=this;return this.ar.Ir(e,t).next((function(r){var i=n.dr(e,t,r),a=ze();return i.forEach((function(e,t){t||(t=new we(e,_.S())),a=a.nt(e,t)})),a}))},e.prototype.wr=function(e,t,n){return t.Pe()?this.Rr(e,t.path):t.He()?this.Ar(e,t,n):this.mr(e,t,n)},e.prototype.Rr=function(e,t){return this.cr(e,new T(t)).next((function(e){var t=We();return e instanceof _e&&(t=t.nt(e.key,e)),t}))},e.prototype.Ar=function(e,t,n){var r=this,i=t.collectionGroup,a=We();return this.ur.Pr(e,i).next((function(o){return Nt.forEach(o,(function(o){var s=t.Le(o.child(i));return r.mr(e,s,n).next((function(e){e.forEach((function(e,t){a=a.nt(e,t)}))}))})).next((function(){return a}))}))},e.prototype.mr=function(e,t,n){var r,i,a=this;return this.or.wr(e,t,n).next((function(n){return r=n,a.ar.Vr(e,t)})).next((function(t){return i=t,a.gr(e,i,r).next((function(e){r=e;for(var t=0,n=i;t<n.length;t++)for(var a=n[t],o=0,s=a.mutations;o<s.length;o++){var l=s[o],c=l.key,u=r.get(c),d=l.Bt(u,u,a.An);r=d instanceof _e?r.nt(c,d):r.remove(c)}}))})).next((function(){return r.forEach((function(e,n){t.matches(n)||(r=r.remove(e))})),r}))},e.prototype.gr=function(e,t,n){for(var r=Xe(),i=0,a=t;i<a.length;i++)for(var o=0,s=a[i].mutations;o<s.length;o++){var l=s[o];l instanceof fe&&null===n.get(l.key)&&(r=r.add(l.key))}var c=n;return this.or.getEntries(e,r).next((function(e){return e.forEach((function(e,t){null!==t&&t instanceof _e&&(c=c.nt(e,t))})),c}))},e}(),Ft=function(){function e(e,t,n,r){this.targetId=e,this.fromCache=t,this.pr=n,this.yr=r}return e.br=function(t,n){for(var r=Xe(),i=Xe(),a=0,o=n.docChanges;a<o.length;a++){var s=o[a];switch(s.type){case 0:r=r.add(s.doc.key);break;case 1:i=i.add(s.doc.key)}}return new e(t,n.fromCache,r,i)},e}(),Ht=function(){function e(e,t){var n=this;this.previousValue=e,t&&(t.vr=function(e){return n.Sr(e)},this.Dr=function(e){return t.Cr(e)})}return e.prototype.Sr=function(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue},e.prototype.next=function(){var e=++this.previousValue;return this.Dr&&this.Dr(e),e},e}();Ht.Fr=-1;var Ut=function(){var e=this;this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))},zt=function(){function e(e,t,n,r,i){void 0===n&&(n=1e3),void 0===r&&(r=1.5),void 0===i&&(i=6e4),this.Nr=e,this.kr=t,this.$r=n,this.Mr=r,this.Lr=i,this.Or=0,this.xr=null,this.Br=Date.now(),this.reset()}return e.prototype.reset=function(){this.Or=0},e.prototype.qr=function(){this.Or=this.Lr},e.prototype.Ur=function(e){var t=this;this.cancel();var n=Math.floor(this.Or+this.Qr()),r=Math.max(0,Date.now()-this.Br),i=Math.max(0,n-r);i>0&&_t("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.Or+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.xr=this.Nr.Wr(this.kr,i,(function(){return t.Br=Date.now(),e()})),this.Or*=this.Mr,this.Or<this.$r&&(this.Or=this.$r),this.Or>this.Lr&&(this.Or=this.Lr)},e.prototype.cancel=function(){null!==this.xr&&(this.xr.cancel(),this.xr=null)},e.prototype.Qr=function(){return(Math.random()-.5)*this.Or},e}(),Vt=function(){function e(e,t,n,r,i){this.jr=e,this.kr=t,this.Kr=n,this.op=r,this.Gr=i,this.zr=new Ut,this.then=this.zr.promise.then.bind(this.zr.promise),this.catch=this.zr.promise.catch.bind(this.zr.promise),this.zr.promise.catch((function(e){}))}return e.Hr=function(t,n,r,i,a){var o=new e(t,n,Date.now()+r,i,a);return o.start(r),o},e.prototype.start=function(e){var t=this;this.Yr=setTimeout((function(){return t.Jr()}),e)},e.prototype.Xr=function(){return this.Jr()},e.prototype.cancel=function(e){null!==this.Yr&&(this.clearTimeout(),this.zr.reject(new f(h.CANCELLED,"Operation cancelled"+(e?": "+e:""))))},e.prototype.Jr=function(){var e=this;this.jr.Zr((function(){return null!==e.Yr?(e.clearTimeout(),e.op().then((function(t){return e.zr.resolve(t)}))):Promise.resolve()}))},e.prototype.clearTimeout=function(){null!==this.Yr&&(this.Gr(this),clearTimeout(this.Yr),this.Yr=null)},e}(),qt=function(){function e(){var e=this;this.th=Promise.resolve(),this.eh=Promise.resolve(),this.sh=!1,this.ih=[],this.nh=null,this.rh=!1,this.hh=[],this.oh=new zt(this,"async_queue_retry"),this.ah=function(){e.uh("async_queue_retry")};var t=vt.Lt().window;t&&t.addEventListener("visibilitychange",this.ah)}return Object.defineProperty(e.prototype,"_h",{get:function(){return this.sh},enumerable:!0,configurable:!0}),e.prototype.Zr=function(e){this.enqueue(e)},e.prototype.lh=function(e){this.dh(),this.fh(e)},e.prototype.Th=function(e){return this.dh(),this.fh(e)},e.prototype.Eh=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){switch(n.label){case 0:return this.dh(),this.sh?[3,2]:(this.sh=!0,(t=vt.Lt().window)&&t.removeEventListener("visibilitychange",this.ah),[4,this.Th(e)]);case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},e.prototype.enqueue=function(e){return this.dh(),this.sh?new Promise((function(e){})):this.fh(e)},e.prototype.Ih=function(e){var t=this;this.dh(),this.sh||(this.eh=this.eh.then((function(){var n=new Ut,r=function(){return i.__awaiter(t,void 0,void 0,(function(){var t;return i.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e()];case 1:return i.sent(),n.resolve(),this.oh.reset(),[3,3];case 2:if("IndexedDbTransactionError"!==(t=i.sent()).name)throw n.resolve(),t;return _t("AsyncQueue","Operation failed with retryable error: "+t),this.oh.Ur(r),[3,3];case 3:return[2]}}))}))};return t.Zr(r),n.promise})))},e.prototype.fh=function(e){var t=this,n=this.th.then((function(){return t.rh=!0,e().catch((function(e){throw t.nh=e,t.rh=!1,wt("INTERNAL UNHANDLED ERROR: ",e.stack||e.message||""),e})).then((function(e){return t.rh=!1,e}))}));return this.th=n,n},e.prototype.Wr=function(e,t,n){var r=this;this.dh(),this.hh.indexOf(e)>-1&&(t=0);var i=Vt.Hr(this,e,t,n,(function(e){return r.wh(e)}));return this.ih.push(i),i},e.prototype.dh=function(){this.nh&&Et()},e.prototype.Rh=function(){},e.prototype.Ah=function(){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(t){switch(t.label){case 0:return[4,e=this.th];case 1:t.sent(),t.label=2;case 2:if(e!==this.th)return[3,0];t.label=3;case 3:return[2]}}))}))},e.prototype.mh=function(e){for(var t=0,n=this.ih;t<n.length;t++)if(n[t].kr===e)return!0;return!1},e.prototype.uh=function(e){var t=this;return this.Ah().then((function(){t.ih.sort((function(e,t){return e.Kr-t.Kr}));for(var n=0,r=t.ih;n<r.length;n++){var i=r[n];if(i.Xr(),"all"!==e&&i.kr===e)break}return t.Ah()}))},e.prototype.Ph=function(e){this.hh.push(e)},e.prototype.wh=function(e){var t=this.ih.indexOf(e);this.ih.splice(t,1)},e}();function Wt(e,t){var n=e[0],r=e[1],i=t[0],a=t[1],o=Ct(n,i);return 0===o?Ct(r,a):o}var Gt=function(){function e(e){this.Vh=e,this.buffer=new $(Wt),this.gh=0}return e.prototype.ph=function(){return++this.gh},e.prototype.yh=function(e){var t=[e,this.ph()];if(this.buffer.size<this.Vh)this.buffer=this.buffer.add(t);else{var n=this.buffer.last();Wt(t,n)<0&&(this.buffer=this.buffer.delete(n).add(t))}},Object.defineProperty(e.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!0,configurable:!0}),e}(),Kt={bh:!1,vh:0,Sh:0,Dh:0},Jt=function(){function e(e,t,n){this.Ch=e,this.Fh=t,this.Nh=n}return e.kh=function(t){return new e(t,e.$h,e.Mh)},e}();Jt.Lh=-1,Jt.Oh=1048576,Jt.xh=41943040,Jt.$h=10,Jt.Mh=1e3,Jt.Bh=new Jt(Jt.xh,Jt.$h,Jt.Mh),Jt.DISABLED=new Jt(Jt.Lh,0,0);var Xt=function(){function e(e,t){this.qh=e,this.jr=t,this.Uh=!1,this.Qh=null}return e.prototype.start=function(e){this.qh.Wh.Ch!==Jt.Lh&&this.jh(e)},e.prototype.stop=function(){this.Qh&&(this.Qh.cancel(),this.Qh=null)},Object.defineProperty(e.prototype,"Kh",{get:function(){return null!==this.Qh},enumerable:!0,configurable:!0}),e.prototype.jh=function(e){var t=this,n=this.Uh?3e5:6e4;_t("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.Qh=this.jr.Wr("lru_garbage_collection",n,(function(){return t.Qh=null,t.Uh=!0,e.Gh(t.qh).then((function(){return t.jh(e)})).catch(sr)}))},e}(),Qt=function(){function e(e,t){this.zh=e,this.Wh=t}return e.prototype.Hh=function(e,t){return this.zh.Yh(e).next((function(e){return Math.floor(t/100*e)}))},e.prototype.Jh=function(e,t){var n=this;if(0===t)return Nt.resolve(Ht.Fr);var r=new Gt(t);return this.zh.Xs(e,(function(e){return r.yh(e.sequenceNumber)})).next((function(){return n.zh.Xh(e,(function(e){return r.yh(e)}))})).next((function(){return r.maxValue}))},e.prototype.Zh=function(e,t,n){return this.zh.Zh(e,t,n)},e.prototype.to=function(e,t){return this.zh.to(e,t)},e.prototype.eo=function(e,t){var n=this;return this.Wh.Ch===Jt.Lh?(_t("LruGarbageCollector","Garbage collection skipped; disabled"),Nt.resolve(Kt)):this.so(e).next((function(r){return r<n.Wh.Ch?(_t("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.Wh.Ch),Kt):n.io(e,t)}))},e.prototype.so=function(e){return this.zh.so(e)},e.prototype.io=function(e,t){var n,r,i,a,s,l,c,u=this,d=Date.now();return this.Hh(e,this.Wh.Fh).next((function(t){return t>u.Wh.Nh?(_t("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+u.Wh.Nh+" from "+t),r=u.Wh.Nh):r=t,a=Date.now(),u.Jh(e,r)})).next((function(r){return n=r,s=Date.now(),u.Zh(e,n,t)})).next((function(t){return i=t,l=Date.now(),u.to(e,n)})).next((function(e){return c=Date.now(),yt()<=o.LogLevel.DEBUG&&_t("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(a-d)+"ms\n\tDetermined least recently used "+r+" in "+(s-a)+"ms\n\tRemoved "+i+" targets in "+(l-s)+"ms\n\tRemoved "+e+" documents in "+(c-l)+"ms\nTotal Duration: "+(c-d)+"ms"),Nt.resolve({bh:!0,vh:r,Sh:i,Dh:e})}))},e}();function Zt(e){for(var t="",n=0;n<e.length;n++)t.length>0&&(t=tn(t)),t=en(e.get(n),t);return tn(t)}function en(e,t){for(var n=t,r=e.length,i=0;i<r;i++){var a=e.charAt(i);switch(a){case"\0":n+="";break;case"":n+="";break;default:n+=a}}return n}function tn(e){return e+""}function nn(e){var t=e.length;if(St(t>=2),2===t)return St(""===e.charAt(0)&&""===e.charAt(1)),k.H;for(var n=t-2,r=[],i="",a=0;a<t;){var o=e.indexOf("",a);switch((o<0||o>n)&&Et(),e.charAt(o+1)){case"":var s=e.substring(a,o),l=void 0;0===i.length?l=s:(l=i+=s,i=""),r.push(l);break;case"":i+=e.substring(a,o),i+="\0";break;case"":i+=e.substring(a,o+1);break;default:Et()}a=o+2}return new k(r)}var rn=function(){function e(t){this.db=t,12.2===e.no(s.getUA())&&wt("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return e.ro=function(t,n,r){return _t("SimpleDb","Opening database:",t),new Nt((function(i,a){var o=window.indexedDB.open(t,n);o.onsuccess=function(t){var n=t.target.result;i(new e(n))},o.onblocked=function(){a(new f(h.FAILED_PRECONDITION,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},o.onerror=function(e){var t=e.target.error;"VersionError"===t.name?a(new f(h.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")):a(t)},o.onupgradeneeded=function(e){_t("SimpleDb",'Database "'+t+'" requires upgrade from version:',e.oldVersion);var n=e.target.result;r.createOrUpgrade(n,o.transaction,e.oldVersion,Pn).next((function(){_t("SimpleDb","Database upgrade to version "+Pn+" complete")}))}})).Wn()},e.delete=function(e){return _t("SimpleDb","Removing database:",e),cn(window.indexedDB.deleteDatabase(e)).Wn()},e.ho=function(){if("undefined"==typeof window||null==window.indexedDB)return!1;if(e.oo())return!0;if(void 0===window.navigator)return!1;var t=s.getUA(),n=e.no(t),r=0<n&&n<10,i=e.ao(t),a=0<i&&i<4.5;return!(t.indexOf("MSIE ")>0||t.indexOf("Trident/")>0||t.indexOf("Edge/")>0||r||a)},e.oo=function(){var e;return"undefined"!=typeof __PRIVATE_process&&"YES"===(null===(e=__PRIVATE_process.__PRIVATE_env)||void 0===e?void 0:e.uo)},e.co=function(e,t){return e.store(t)},e.no=function(e){var t=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=t?t[1].split("_").slice(0,2).join("."):"-1";return Number(n)},e.ao=function(e){var t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)},e.prototype._o=function(e){this.db.onversionchange=function(t){return e(t)}},e.prototype.runTransaction=function(e,t,n){return i.__awaiter(this,void 0,void 0,(function(){var r,a,o,s,l;return i.__generator(this,(function(c){switch(c.label){case 0:r="readonly"===e,a=0,o=function(){var e,o,l,c,u;return i.__generator(this,(function(i){switch(i.label){case 0:++a,e=sn.open(s.db,r?"readonly":"readwrite",t),i.label=1;case 1:return i.trys.push([1,3,,4]),o=n(e).catch((function(t){return e.abort(t),Nt.reject(t)})).Wn(),l={},o.catch((function(){})),[4,e.lo];case 2:return[2,(l.value=(i.sent(),o),l)];case 3:return c=i.sent(),u="FirebaseError"!==c.name&&a<3,_t("SimpleDb","Transaction failed with error: %s. Retrying: %s.",c.message,u),u?[3,4]:[2,{value:Promise.reject(c)}];case 4:return[2]}}))},s=this,c.label=1;case 1:return[5,o()];case 2:if("object"==typeof(l=c.sent()))return[2,l.value];c.label=3;case 3:return[3,1];case 4:return[2]}}))}))},e.prototype.close=function(){this.db.close()},e}(),an=function(){function e(e){this.do=e,this.fo=!1,this.To=null}return Object.defineProperty(e.prototype,"Bn",{get:function(){return this.fo},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Eo",{get:function(){return this.To},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursor",{set:function(e){this.do=e},enumerable:!0,configurable:!0}),e.prototype.done=function(){this.fo=!0},e.prototype.Io=function(e){this.To=e},e.prototype.delete=function(){return cn(this.do.delete())},e}(),on=function(e){function t(t){var n=this;return(n=e.call(this,h.UNAVAILABLE,"IndexedDB transaction failed: "+t)||this).name="IndexedDbTransactionError",n}return i.__extends(t,e),t}(f),sn=function(){function e(e){var t=this;this.transaction=e,this.aborted=!1,this.wo=new Ut,this.transaction.oncomplete=function(){t.wo.resolve()},this.transaction.onabort=function(){e.error?t.wo.reject(new on(e.error)):t.wo.resolve()},this.transaction.onerror=function(e){var n=dn(e.target.error);t.wo.reject(new on(n))}}return e.open=function(t,n,r){return new e(t.transaction(r,n))},Object.defineProperty(e.prototype,"lo",{get:function(){return this.wo.promise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){e&&this.wo.reject(e),this.aborted||(_t("SimpleDb","Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},e.prototype.store=function(e){var t=this.transaction.objectStore(e);return new ln(t)},e}(),ln=function(){function e(e){this.store=e}return e.prototype.put=function(e,t){var n;return void 0!==t?(_t("SimpleDb","PUT",this.store.name,e,t),n=this.store.put(t,e)):(_t("SimpleDb","PUT",this.store.name,"<auto-key>",e),n=this.store.put(e)),cn(n)},e.prototype.add=function(e){return _t("SimpleDb","ADD",this.store.name,e,e),cn(this.store.add(e))},e.prototype.get=function(e){var t=this;return cn(this.store.get(e)).next((function(n){return void 0===n&&(n=null),_t("SimpleDb","GET",t.store.name,e,n),n}))},e.prototype.delete=function(e){return _t("SimpleDb","DELETE",this.store.name,e),cn(this.store.delete(e))},e.prototype.count=function(){return _t("SimpleDb","COUNT",this.store.name),cn(this.store.count())},e.prototype.Ro=function(e,t){var n=this.cursor(this.options(e,t)),r=[];return this.Ao(n,(function(e,t){r.push(t)})).next((function(){return r}))},e.prototype.mo=function(e,t){_t("SimpleDb","DELETE ALL",this.store.name);var n=this.options(e,t);n.Po=!1;var r=this.cursor(n);return this.Ao(r,(function(e,t,n){return n.delete()}))},e.prototype.Vo=function(e,t){var n;t?n=e:(n={},t=e);var r=this.cursor(n);return this.Ao(r,t)},e.prototype.po=function(e){var t=this.cursor({});return new Nt((function(n,r){t.onerror=function(e){var t=dn(e.target.error);r(t)},t.onsuccess=function(t){var r=t.target.result;r?e(r.primaryKey,r.value).next((function(e){e?r.continue():n()})):n()}}))},e.prototype.Ao=function(e,t){var n=[];return new Nt((function(r,i){e.onerror=function(e){i(e.target.error)},e.onsuccess=function(e){var i=e.target.result;if(i){var a=new an(i),o=t(i.primaryKey,i.value,a);if(o instanceof Nt){var s=o.catch((function(e){return a.done(),Nt.reject(e)}));n.push(s)}a.Bn?r():null===a.Eo?i.continue():i.continue(a.Eo)}else r()}})).next((function(){return Nt.Kn(n)}))},e.prototype.options=function(e,t){var n=void 0;return void 0!==e&&("string"==typeof e?n=e:t=e),{index:n,range:t}},e.prototype.cursor=function(e){var t="next";if(e.reverse&&(t="prev"),e.index){var n=this.store.index(e.index);return e.Po?n.openKeyCursor(e.range,t):n.openCursor(e.range,t)}return this.store.openCursor(e.range,t)},e}();function cn(e){return new Nt((function(t,n){e.onsuccess=function(e){var n=e.target.result;t(n)},e.onerror=function(e){var t=dn(e.target.error);n(t)}}))}var un=!1;function dn(e){var t=rn.no(s.getUA());if(t>=12.2&&t<13){var n="An internal error was encountered in the Indexed Database server";if(e.message.indexOf(n)>=0){var r=new f("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return un||(un=!0,setTimeout((function(){throw r}),0)),r}}return e}var hn=function(){function e(e,t,n,r){this.userId=e,this.serializer=t,this.ur=n,this.yo=r,this.bo={}}return e.vo=function(t,n,r,i){return St(""!==t.uid),new e(t.t()?t.uid:"",n,r,i)},e.prototype.So=function(e){var t=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return mn(e).Vo({index:Nn.userMutationsIndex,range:n},(function(e,n,r){t=!1,r.done()})).next((function(){return t}))},e.prototype.Do=function(e,t,n){return this.Co(e).next((function(t){return t.lastStreamToken=n.toBase64(),gn(e).put(t)}))},e.prototype.Fo=function(e){return this.Co(e).next((function(e){return A.fromBase64String(e.lastStreamToken)}))},e.prototype.No=function(e,t){return this.Co(e).next((function(n){return n.lastStreamToken=t.toBase64(),gn(e).put(n)}))},e.prototype.ko=function(e,t,n,r){var i=this,a=vn(e),o=mn(e);return o.add({}).next((function(s){St("number"==typeof s);for(var l=new Ot(s,t,n,r),c=i.serializer.$o(i.userId,l),u=[],d=new $((function(e,t){return Ct(e.K(),t.K())})),h=0,f=r;h<f.length;h++){var p=f[h],m=Rn.key(i.userId,p.key.path,s);d=d.add(p.key.path.L()),u.push(o.put(c)),u.push(a.put(m,Rn.PLACEHOLDER))}return d.forEach((function(t){u.push(i.ur.Mo(e,t))})),e.rr((function(){i.bo[s]=l.keys()})),Nt.Kn(u).next((function(){return l}))}))},e.prototype.Lo=function(e,t){var n=this;return mn(e).get(t).next((function(e){return e?(St(e.userId===n.userId),n.serializer.Oo(e)):null}))},e.prototype.xo=function(e,t){var n=this;return this.bo[t]?Nt.resolve(this.bo[t]):this.Lo(e,t).next((function(e){if(e){var r=e.keys();return n.bo[t]=r,r}return null}))},e.prototype.Bo=function(e,t){var n=this,r=t+1,i=IDBKeyRange.lowerBound([this.userId,r]),a=null;return mn(e).Vo({index:Nn.userMutationsIndex,range:i},(function(e,t,i){t.userId===n.userId&&(St(t.batchId>=r),a=n.serializer.Oo(t)),i.done()})).next((function(){return a}))},e.prototype.qo=function(e){var t=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return mn(e).Vo({index:Nn.userMutationsIndex,range:t,reverse:!0},(function(e,t,r){n=t.batchId,r.done()})).next((function(){return n}))},e.prototype.Uo=function(e){var t=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return mn(e).Ro(Nn.userMutationsIndex,n).next((function(e){return e.map((function(e){return t.serializer.Oo(e)}))}))},e.prototype._r=function(e,t){var n=this,r=Rn.prefixForPath(this.userId,t.path),i=IDBKeyRange.lowerBound(r),a=[];return vn(e).Vo({range:i},(function(r,i,o){var s=r[0],l=r[1],c=r[2],u=nn(l);if(s===n.userId&&t.path.isEqual(u))return mn(e).get(c).next((function(e){if(!e)throw Et();St(e.userId===n.userId),a.push(n.serializer.Oo(e))}));o.done()})).next((function(){return a}))},e.prototype.Ir=function(e,t){var n=this,r=new $(Ct),i=[];return t.forEach((function(t){var a=Rn.prefixForPath(n.userId,t.path),o=IDBKeyRange.lowerBound(a),s=vn(e).Vo({range:o},(function(e,i,a){var o=e[0],s=e[1],l=e[2],c=nn(s);o===n.userId&&t.path.isEqual(c)?r=r.add(l):a.done()}));i.push(s)})),Nt.Kn(i).next((function(){return n.Qo(e,r)}))},e.prototype.Vr=function(e,t){var n=this,r=t.path,i=r.length+1,a=Rn.prefixForPath(this.userId,r),o=IDBKeyRange.lowerBound(a),s=new $(Ct);return vn(e).Vo({range:o},(function(e,t,a){var o=e[0],l=e[1],c=e[2],u=nn(l);o===n.userId&&r.U(u)?u.length===i&&(s=s.add(c)):a.done()})).next((function(){return n.Qo(e,s)}))},e.prototype.Qo=function(e,t){var n=this,r=[],i=[];return t.forEach((function(t){i.push(mn(e).get(t).next((function(e){if(null===e)throw Et();St(e.userId===n.userId),r.push(n.serializer.Oo(e))})))})),Nt.Kn(i).next((function(){return r}))},e.prototype.Wo=function(e,t){var n=this;return pn(e.jo,this.userId,t).next((function(r){return e.rr((function(){n.Ko(t.batchId)})),Nt.forEach(r,(function(t){return n.yo.Go(e,t)}))}))},e.prototype.Ko=function(e){delete this.bo[e]},e.prototype.zo=function(e){var t=this;return this.So(e).next((function(n){if(!n)return Nt.resolve();var r=IDBKeyRange.lowerBound(Rn.prefixForUser(t.userId)),i=[];return vn(e).Vo({range:r},(function(e,n,r){if(e[0]===t.userId){var a=nn(e[1]);i.push(a)}else r.done()})).next((function(){St(0===i.length)}))}))},e.prototype.Mn=function(e,t){return fn(e,this.userId,t)},e.prototype.Co=function(e){var t=this;return gn(e).get(this.userId).next((function(e){return e||new Dn(t.userId,-1,"")}))},e}();function fn(e,t,n){var r=Rn.prefixForPath(t,n.path),i=r[1],a=IDBKeyRange.lowerBound(r),o=!1;return vn(e).Vo({range:a,Po:!0},(function(e,n,r){var a=e[0],s=e[1];e[2],a===t&&s===i&&(o=!0),r.done()})).next((function(){return o}))}function pn(e,t,n){var r=e.store(Nn.store),i=e.store(Rn.store),a=[],o=IDBKeyRange.only(n.batchId),s=0,l=r.Vo({range:o},(function(e,t,n){return s++,n.delete()}));a.push(l.next((function(){St(1===s)})));for(var c=[],u=0,d=n.mutations;u<d.length;u++){var h=d[u],f=Rn.key(t,h.key.path,n.batchId);a.push(i.delete(f)),c.push(h.key)}return Nt.Kn(a).next((function(){return c}))}function mn(e){return er.co(e,Nn.store)}function vn(e){return er.co(e,Rn.store)}function gn(e){return er.co(e,Dn.store)}var yn=function(){function e(e){this.Ho=e}return e.prototype.next=function(){return this.Ho+=2,this.Ho},e.Yo=function(){return new e(0)},e.Jo=function(){return new e(-1)},e}(),bn=function(){function e(e,t){this.yo=e,this.serializer=t}return e.prototype.Xo=function(e){var t=this;return this.Zo(e).next((function(n){var r=new yn(n.highestTargetId);return n.highestTargetId=r.next(),t.ta(e,n).next((function(){return n.highestTargetId}))}))},e.prototype.ea=function(e){return this.Zo(e).next((function(e){return _.v(new b(e.lastRemoteSnapshotVersion.seconds,e.lastRemoteSnapshotVersion.nanoseconds))}))},e.prototype.sa=function(e){return kn(e.jo)},e.prototype.ia=function(e,t,n){var r=this;return this.Zo(e).next((function(i){return i.highestListenSequenceNumber=t,n&&(i.lastRemoteSnapshotVersion=n.F()),t>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=t),r.ta(e,i)}))},e.prototype.na=function(e,t){var n=this;return this.ra(e,t).next((function(){return n.Zo(e).next((function(r){return r.targetCount+=1,n.ha(t,r),n.ta(e,r)}))}))},e.prototype.oa=function(e,t){return this.ra(e,t)},e.prototype.aa=function(e,t){var n=this;return this.ua(e,t.targetId).next((function(){return _n(e).delete(t.targetId)})).next((function(){return n.Zo(e)})).next((function(t){return St(t.targetCount>0),t.targetCount-=1,n.ta(e,t)}))},e.prototype.Zh=function(e,t,n){var r=this,i=0,a=[];return _n(e).Vo((function(o,s){var l=r.serializer.ca(s);l.sequenceNumber<=t&&null===n.get(l.targetId)&&(i++,a.push(r.aa(e,l)))})).next((function(){return Nt.Kn(a)})).next((function(){return i}))},e.prototype.Xs=function(e,t){var n=this;return _n(e).Vo((function(e,r){var i=n.serializer.ca(r);t(i)}))},e.prototype.Zo=function(e){return wn(e.jo)},e.prototype.ta=function(e,t){return(n=e,er.co(n,zn.store)).put(zn.key,t);var n},e.prototype.ra=function(e,t){return _n(e).put(this.serializer._a(t))},e.prototype.ha=function(e,t){var n=!1;return e.targetId>t.highestTargetId&&(t.highestTargetId=e.targetId,n=!0),e.sequenceNumber>t.highestListenSequenceNumber&&(t.highestListenSequenceNumber=e.sequenceNumber,n=!0),n},e.prototype.la=function(e){return this.Zo(e).next((function(e){return e.targetCount}))},e.prototype.da=function(e,t){var n=this,r=t.canonicalId(),i=IDBKeyRange.bound([r,Number.NEGATIVE_INFINITY],[r,Number.POSITIVE_INFINITY]),a=null;return _n(e).Vo({range:i,index:Hn.queryTargetsIndexName},(function(e,r,i){var o=n.serializer.ca(r);t.isEqual(o.target)&&(a=o,i.done())})).next((function(){return a}))},e.prototype.fa=function(e,t,n){var r=this,i=[],a=En(e);return t.forEach((function(t){var o=Zt(t.path);i.push(a.put(new Un(n,o))),i.push(r.yo.vn(e,t))})),Nt.Kn(i)},e.prototype.Ta=function(e,t,n){var r=this,i=En(e);return Nt.forEach(t,(function(t){var a=Zt(t.path);return Nt.Kn([i.delete([n,a]),r.yo.Dn(e,t)])}))},e.prototype.ua=function(e,t){var n=En(e),r=IDBKeyRange.bound([t],[t+1],!1,!0);return n.delete(r)},e.prototype.Ea=function(e,t){var n=IDBKeyRange.bound([t],[t+1],!1,!0),r=En(e),i=Xe();return r.Vo({range:n,Po:!0},(function(e,t,n){var r=nn(e[1]),a=new T(r);i=i.add(a)})).next((function(){return i}))},e.prototype.Mn=function(e,t){var n=Zt(t.path),r=IDBKeyRange.bound([n],[xt(n)],!1,!0),i=0;return En(e).Vo({index:Un.documentTargetsIndex,Po:!0,range:r},(function(e,t,n){var r=e[0];e[1],0!==r&&(i++,n.done())})).next((function(){return i>0}))},e.prototype.ui=function(e,t){var n=this;return _n(e).get(t).next((function(e){return e?n.serializer.ca(e):null}))},e}();function _n(e){return er.co(e,Hn.store)}function wn(e){return rn.co(e,zn.store).get(zn.key).next((function(e){return St(null!==e),e}))}function kn(e){return wn(e).next((function(e){return e.highestListenSequenceNumber}))}function En(e){return er.co(e,Un.store)}var Sn=function(){function e(e,t){this.serializer=e,this.ur=t}return e.prototype.Jn=function(e,t,n){return Cn(e).put(Mn(t),n)},e.prototype.Zn=function(e,t){var n=Cn(e),r=Mn(t);return n.delete(r)},e.prototype.updateMetadata=function(e,t){var n=this;return this.getMetadata(e).next((function(r){return r.byteSize+=t,n.Ia(e,r)}))},e.prototype.tr=function(e,t){var n=this;return Cn(e).get(Mn(t)).next((function(e){return n.wa(e)}))},e.prototype.Ra=function(e,t){var n=this;return Cn(e).get(Mn(t)).next((function(e){var t=n.wa(e);return t?{Aa:t,size:xn(e)}:null}))},e.prototype.getEntries=function(e,t){var n=this,r=Ve();return this.ma(e,t,(function(e,t){var i=n.wa(t);r=r.nt(e,i)})).next((function(){return r}))},e.prototype.Pa=function(e,t){var n=this,r=Ve(),i=new C(T.k);return this.ma(e,t,(function(e,t){var a=n.wa(t);a?(r=r.nt(e,a),i=i.nt(e,xn(t))):(r=r.nt(e,null),i=i.nt(e,0))})).next((function(){return{Va:r,ga:i}}))},e.prototype.ma=function(e,t,n){if(t.q())return Nt.resolve();var r=IDBKeyRange.bound(t.first().path.j(),t.last().path.j()),i=t._t(),a=i.It();return Cn(e).Vo({range:r},(function(e,t,r){for(var o=T.it(e);a&&T.k(a,o)<0;)n(a,null),a=i.It();a&&a.isEqual(o)&&(n(a,t),a=i.wt()?i.It():null),a?r.Io(a.path.j()):r.done()})).next((function(){for(;a;)n(a,null),a=i.wt()?i.It():null}))},e.prototype.wr=function(e,t,n){var r=this,i=We(),a=t.path.length+1,o={};if(n.isEqual(_.MIN)){var s=t.path.j();o.range=IDBKeyRange.lowerBound(s)}else{var l=t.path.j(),c=this.serializer.pa(n);o.range=IDBKeyRange.lowerBound([l,c],!0),o.index=jn.collectionReadTimeIndex}return Cn(e).Vo(o,(function(e,n,o){if(e.length===a){var s=r.serializer.ya(n);t.path.U(s.key.path)?s instanceof _e&&t.matches(s)&&(i=i.nt(s.key,s)):o.done()}})).next((function(){return i}))},e.prototype.ba=function(e,t){var n=this,r=ze(),i=this.serializer.pa(t),a=Cn(e),o=IDBKeyRange.lowerBound(i,!0);return a.Vo({index:jn.readTimeIndex,range:o},(function(e,t){var a=n.serializer.ya(t);r=r.nt(a.key,a),i=t.readTime})).next((function(){return{va:r,readTime:n.serializer.Sa(i)}}))},e.prototype.Da=function(e){var t=this,n=Cn(e),r=_.MIN;return n.Vo({index:jn.readTimeIndex,reverse:!0},(function(e,n,i){n.readTime&&(r=t.serializer.Sa(n.readTime)),i.done()})).next((function(){return r}))},e.prototype.Ca=function(t){return new e.Fa(this,!!t&&t.Na)},e.prototype.ka=function(e){return this.getMetadata(e).next((function(e){return e.byteSize}))},e.prototype.getMetadata=function(e){return Tn(e).get(Fn.key).next((function(e){return St(!!e),e}))},e.prototype.Ia=function(e,t){return Tn(e).put(Fn.key,t)},e.prototype.wa=function(e){if(e){var t=this.serializer.ya(e);return t instanceof we&&t.version.isEqual(_.S())?null:t}return null},e}();function Tn(e){return er.co(e,Fn.store)}function Cn(e){return er.co(e,jn.store)}function Mn(e){return e.path.j()}function xn(e){var t;if(e.document)t=e.document;else if(e.unknownDocument)t=e.unknownDocument;else{if(!e.noDocument)throw Et();t=e.noDocument}return JSON.stringify(t).length}Sn.Fa=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).$a=t,r.Na=n,r.Ma=new Pt((function(e){return e.toString()})),r}return i.__extends(t,e),t.prototype.ir=function(e){var t=this,n=[],r=0,i=new $((function(e,t){return Ct(e.K(),t.K())}));return this.zn.forEach((function(a,o){var s=t.Ma.get(a);if(o){var l=t.$a.serializer.La(o,t.readTime);i=i.add(a.path.L());var c=xn(l);r+=c-s,n.push(t.$a.Jn(e,a,l))}else if(r-=s,t.Na){var u=t.$a.serializer.La(new we(a,_.S()),t.readTime);n.push(t.$a.Jn(e,a,u))}else n.push(t.$a.Zn(e,a))})),i.forEach((function(r){n.push(t.$a.ur.Mo(e,r))})),n.push(this.$a.updateMetadata(e,r)),Nt.Kn(n)},t.prototype.er=function(e,t){var n=this;return this.$a.Ra(e,t).next((function(e){return null===e?(n.Ma.set(t,0),null):(n.Ma.set(t,e.size),e.Aa)}))},t.prototype.sr=function(e,t){var n=this;return this.$a.Pa(e,t).next((function(e){var t=e.Va;return e.ga.forEach((function(e,t){n.Ma.set(e,t)})),t}))},t}(Rt);var $n=function(){function e(){this.Oa=new Ln}return e.prototype.Mo=function(e,t){return this.Oa.add(t),Nt.resolve()},e.prototype.Pr=function(e,t){return Nt.resolve(this.Oa.getEntries(t))},e}(),Ln=function(){function e(){this.index={}}return e.prototype.add=function(e){var t=e.B(),n=e.L(),r=this.index[t]||new $(k.k),i=!r.has(n);return this.index[t]=r.add(n),i},e.prototype.has=function(e){var t=e.B(),n=e.L(),r=this.index[t];return r&&r.has(n)},e.prototype.getEntries=function(e){return(this.index[e]||new $(k.k)).j()},e}(),Pn=10,On=function(){function e(e){this.serializer=e}return e.prototype.createOrUpgrade=function(e,t,n,r){var i=this;St(n<r&&n>=0&&r<=Pn);var a=new sn(t);n<1&&r>=1&&(function(e){e.createObjectStore(An.store)}(e),function(e){e.createObjectStore(Dn.store,{keyPath:Dn.keyPath}),e.createObjectStore(Nn.store,{keyPath:Nn.keyPath,autoIncrement:!0}).createIndex(Nn.userMutationsIndex,Nn.userMutationsKeyPath,{unique:!0}),e.createObjectStore(Rn.store)}(e),qn(e),function(e){e.createObjectStore(jn.store)}(e));var o=Nt.resolve();return n<3&&r>=3&&(0!==n&&(function(e){e.deleteObjectStore(Un.store),e.deleteObjectStore(Hn.store),e.deleteObjectStore(zn.store)}(e),qn(e)),o=o.next((function(){return function(e){var t=e.store(zn.store),n=new zn(0,0,_.MIN.F(),0);return t.put(zn.key,n)}(a)}))),n<4&&r>=4&&(0!==n&&(o=o.next((function(){return function(e,t){return t.store(Nn.store).Ro().next((function(n){e.deleteObjectStore(Nn.store),e.createObjectStore(Nn.store,{keyPath:Nn.keyPath,autoIncrement:!0}).createIndex(Nn.userMutationsIndex,Nn.userMutationsKeyPath,{unique:!0});var r=t.store(Nn.store),i=n.map((function(e){return r.put(e)}));return Nt.Kn(i)}))}(e,a)}))),o=o.next((function(){!function(e){e.createObjectStore(Wn.store,{keyPath:Wn.keyPath})}(e)}))),n<5&&r>=5&&(o=o.next((function(){return i.removeAcknowledgedMutations(a)}))),n<6&&r>=6&&(o=o.next((function(){return function(e){e.createObjectStore(Fn.store)}(e),i.addDocumentGlobal(a)}))),n<7&&r>=7&&(o=o.next((function(){return i.ensureSequenceNumbers(a)}))),n<8&&r>=8&&(o=o.next((function(){return i.createCollectionParentIndex(e,a)}))),n<9&&r>=9&&(o=o.next((function(){!function(e){e.objectStoreNames.contains("remoteDocumentChanges")&&e.deleteObjectStore("remoteDocumentChanges")}(e),function(e){var t=e.objectStore(jn.store);t.createIndex(jn.readTimeIndex,jn.readTimeIndexPath,{unique:!1}),t.createIndex(jn.collectionReadTimeIndex,jn.collectionReadTimeIndexPath,{unique:!1})}(t)}))),n<10&&r>=10&&(o=o.next((function(){return i.rewriteCanonicalIds(a)}))),o},e.prototype.addDocumentGlobal=function(e){var t=0;return e.store(jn.store).Vo((function(e,n){t+=xn(n)})).next((function(){var n=new Fn(t);return e.store(Fn.store).put(Fn.key,n)}))},e.prototype.removeAcknowledgedMutations=function(e){var t=this,n=e.store(Dn.store),r=e.store(Nn.store);return n.Ro().next((function(n){return Nt.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.Ro(Nn.userMutationsIndex,i).next((function(r){return Nt.forEach(r,(function(r){St(r.userId===n.userId);var i=t.serializer.Oo(r);return pn(e,n.userId,i).next((function(){}))}))}))}))}))},e.prototype.ensureSequenceNumbers=function(e){var t=e.store(Un.store),n=e.store(jn.store);return kn(e).next((function(e){var r=[];return n.Vo((function(n,i){var a=new k(n),o=function(e){return[0,Zt(e)]}(a);r.push(t.get(o).next((function(n){return n?Nt.resolve():function(n){return t.put(new Un(0,Zt(n),e))}(a)})))})).next((function(){return Nt.Kn(r)}))}))},e.prototype.createCollectionParentIndex=function(e,t){e.createObjectStore(Vn.store,{keyPath:Vn.keyPath});var n=t.store(Vn.store),r=new Ln,i=function(e){if(r.add(e)){var t=e.B(),i=e.L();return n.put({collectionId:t,parent:Zt(i)})}};return t.store(jn.store).Vo({Po:!0},(function(e,t){var n=new k(e);return i(n.L())})).next((function(){return t.store(Rn.store).Vo({Po:!0},(function(e,t){e[0];var n=e[1],r=(e[2],nn(n));return i(r.L())}))}))},e.prototype.rewriteCanonicalIds=function(e){var t=this,n=e.store(Hn.store);return n.Vo((function(e,r){var i=t.serializer.ca(r),a=t.serializer._a(i);return n.put(a)}))},e}(),In=function(e,t){this.seconds=e,this.nanoseconds=t},An=function(e,t,n){this.ownerId=e,this.allowTabSynchronization=t,this.leaseTimestampMs=n};An.store="owner",An.key="owner";var Dn=function(e,t,n){this.userId=e,this.lastAcknowledgedBatchId=t,this.lastStreamToken=n};Dn.store="mutationQueues",Dn.keyPath="userId";var Nn=function(e,t,n,r,i){this.userId=e,this.batchId=t,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};Nn.store="mutations",Nn.keyPath="batchId",Nn.userMutationsIndex="userMutationsIndex",Nn.userMutationsKeyPath=["userId","batchId"];var Rn=function(){function e(){}return e.prefixForUser=function(e){return[e]},e.prefixForPath=function(e,t){return[e,Zt(t)]},e.key=function(e,t,n){return[e,Zt(t),n]},e}();Rn.store="documentMutations",Rn.PLACEHOLDER=new Rn;var Bn=function(e,t){this.path=e,this.readTime=t},Yn=function(e,t){this.path=e,this.version=t},jn=function(e,t,n,r,i,a){this.unknownDocument=e,this.noDocument=t,this.document=n,this.hasCommittedMutations=r,this.readTime=i,this.parentPath=a};jn.store="remoteDocuments",jn.readTimeIndex="readTimeIndex",jn.readTimeIndexPath="readTime",jn.collectionReadTimeIndex="collectionReadTimeIndex",jn.collectionReadTimeIndexPath=["parentPath","readTime"];var Fn=function(e){this.byteSize=e};Fn.store="remoteDocumentGlobal",Fn.key="remoteDocumentGlobalKey";var Hn=function(e,t,n,r,i,a,o){this.targetId=e,this.canonicalId=t,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=a,this.query=o};Hn.store="targets",Hn.keyPath="targetId",Hn.queryTargetsIndexName="queryTargetsIndex",Hn.queryTargetsKeyPath=["canonicalId","targetId"];var Un=function(e,t,n){this.targetId=e,this.path=t,this.sequenceNumber=n};Un.store="targetDocuments",Un.keyPath=["targetId","path"],Un.documentTargetsIndex="documentTargetsIndex",Un.documentTargetsKeyPath=["path","targetId"];var zn=function(e,t,n,r){this.highestTargetId=e,this.highestListenSequenceNumber=t,this.lastRemoteSnapshotVersion=n,this.targetCount=r};zn.key="targetGlobalKey",zn.store="targetGlobal";var Vn=function(e,t){this.collectionId=e,this.parent=t};function qn(e){e.createObjectStore(Un.store,{keyPath:Un.keyPath}).createIndex(Un.documentTargetsIndex,Un.documentTargetsKeyPath,{unique:!0}),e.createObjectStore(Hn.store,{keyPath:Hn.keyPath}).createIndex(Hn.queryTargetsIndexName,Hn.queryTargetsKeyPath,{unique:!0}),e.createObjectStore(zn.store)}Vn.store="collectionParents",Vn.keyPath=["collectionId","parent"];var Wn=function(e,t,n,r){this.clientId=e,this.updateTimeMs=t,this.networkEnabled=n,this.inForeground=r};Wn.store="clientMetadata",Wn.keyPath="clientId";var Gn=i.__spreadArrays(i.__spreadArrays(i.__spreadArrays([Dn.store,Nn.store,Rn.store,jn.store,Hn.store,An.store,zn.store,Un.store],[Wn.store]),[Fn.store]),[Vn.store]),Kn=function(){function e(){this.xa=new Ln}return e.prototype.Mo=function(e,t){var n=this;if(!this.xa.has(t)){var r=t.B(),i=t.L();e.rr((function(){n.xa.add(t)}));var a={collectionId:r,parent:Zt(i)};return Jn(e).put(a)}return Nt.resolve()},e.prototype.Pr=function(e,t){var n=[],r=IDBKeyRange.bound([t,""],[xt(t),""],!1,!0);return Jn(e).Ro(r).next((function(e){for(var r=0,i=e;r<i.length;r++){var a=i[r];if(a.collectionId!==t)break;n.push(nn(a.parent))}return n}))},e}();function Jn(e){return er.co(e,Vn.store)}var Xn=function(){function e(e){this.Ba=e}return e.prototype.ya=function(e){if(e.document)return this.Ba.vi(e.document,!!e.hasCommittedMutations);if(e.noDocument){var t=T.it(e.noDocument.path),n=this.qa(e.noDocument.readTime);return new we(t,n,{hasCommittedMutations:!!e.hasCommittedMutations})}if(e.unknownDocument){var r=T.it(e.unknownDocument.path),i=this.qa(e.unknownDocument.version);return new ke(r,i)}return Et()},e.prototype.La=function(e,t){var n=this.pa(t),r=e.key.path.L().j();if(e instanceof _e){var i=this.Ba.bi(e),a=e.hasCommittedMutations;return new jn(null,null,i,a,n,r)}if(e instanceof we){var o=e.key.path.j(),s=this.Ua(e.version),l=e.hasCommittedMutations;return new jn(null,new Bn(o,s),null,l,n,r)}if(e instanceof ke){var c=e.key.path.j(),u=this.Ua(e.version);return new jn(new Yn(c,u),null,null,!0,n,r)}return Et()},e.prototype.pa=function(e){var t=e.F();return[t.seconds,t.nanoseconds]},e.prototype.Sa=function(e){var t=new b(e[0],e[1]);return _.v(t)},e.prototype.Ua=function(e){var t=e.F();return new In(t.seconds,t.nanoseconds)},e.prototype.qa=function(e){var t=new b(e.seconds,e.nanoseconds);return _.v(t)},e.prototype.$o=function(e,t){var n=this,r=t.baseMutations.map((function(e){return n.Ba.$i(e)})),i=t.mutations.map((function(e){return n.Ba.$i(e)}));return new Nn(e,t.batchId,t.An.toMillis(),r,i)},e.prototype.Oo=function(e){var t=this,n=(e.baseMutations||[]).map((function(e){return t.Ba.xi(e)})),r=e.mutations.map((function(e){return t.Ba.xi(e)})),i=b.fromMillis(e.localWriteTimeMs);return new Ot(e.batchId,i,n,r)},e.prototype.ca=function(e){var t,n=this.qa(e.readTime),r=void 0!==e.lastLimboFreeSnapshotVersion?this.qa(e.lastLimboFreeSnapshotVersion):_.MIN;return t=void 0!==e.query.documents?this.Ba.Ki(e.query):this.Ba.Ji(e.query),new Ye(t,e.targetId,0,e.lastListenSequenceNumber,n,r,A.fromBase64String(e.resumeToken))},e.prototype._a=function(e){var t,n=this.Ua(e.ts),r=this.Ua(e.lastLimboFreeSnapshotVersion);t=e.target.Pe()?this.Ba.ji(e.target):this.Ba.Gi(e.target);var i=e.resumeToken.toBase64();return new Hn(e.targetId,e.target.canonicalId(),n,i,e.sequenceNumber,r,t)},e}(),Qn="Another tab has exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs.",Zn=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).jo=t,r.Qa=n,r}return i.__extends(t,e),t}(Yt),er=function(){function e(t,n,r,i,a,o,s,l){if(this.allowTabSynchronization=t,this.persistenceKey=n,this.clientId=r,this.Nr=o,this.Wa=l,this.ja=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Ka=null,this.inForeground=!1,this.Ga=null,this.za=null,this.Ha=Number.NEGATIVE_INFINITY,this.Ya=function(e){return Promise.resolve()},!e.ho())throw new f(h.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");if(this.yo=new rr(this,a),this.Ja=n+e.Xa,this.serializer=new Xn(s),this.document=i.document,this.Za=new bn(this.yo,this.serializer),this.ur=new Kn,this.or=new Sn(this.serializer,this.ur),!i.window||!i.window.localStorage)throw new f(h.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");this.window=i.window,this.tu=this.window.localStorage}return e.co=function(e,t){if(e instanceof Zn)return rn.co(e.jo,t);throw Et()},e.prototype.start=function(){var e=this;return rn.ro(this.Ja,Pn,new On(this.serializer)).then((function(t){return e.eu=t,e.su()})).then((function(){return e.iu(),e.nu(),e.ru(),e.eu.runTransaction("readonly",[zn.store],(function(e){return kn(e)}))})).then((function(t){e.hu=new Ht(t,e.Wa)})).then((function(){e.ja=!0})).catch((function(t){return e.eu&&e.eu.close(),Promise.reject(t)}))},e.prototype.ou=function(e){var t=this;return this.Ya=function(n){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.Kh?[2,e(n)]:[2]}))}))},e(this.isPrimary)},e.prototype.au=function(e){var t=this;this.eu._o((function(n){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return null===n.newVersion?[4,e()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}))},e.prototype.uu=function(e){var t=this;this.networkEnabled!==e&&(this.networkEnabled=e,this.Nr.Zr((function(){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.Kh?[4,this.su()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))})))},e.prototype.su=function(){var e=this;return this.eu.runTransaction("readwrite",Gn,(function(t){return nr(t).put(new Wn(e.clientId,Date.now(),e.networkEnabled,e.inForeground)).next((function(){if(e.isPrimary)return e.cu(t).next((function(t){t||(e.isPrimary=!1,e.Nr.Zr((function(){return e.Ya(!1)})))}))})).next((function(){return e._u(t)})).next((function(n){return e.isPrimary&&!n?e.lu(t).next((function(){return!1})):!!n&&e.du(t).next((function(){return!0}))}))})).catch((function(t){if(!e.allowTabSynchronization)throw t;return _t("IndexedDbPersistence","Releasing owner lease after error during lease refresh",t),!1})).then((function(t){e.isPrimary!==t&&e.Nr.Zr((function(){return e.Ya(t)})),e.isPrimary=t}))},e.prototype.cu=function(e){var t=this;return tr(e).get(An.key).next((function(e){return Nt.resolve(t.fu(e))}))},e.prototype.Tu=function(e){return nr(e).delete(this.clientId)},e.prototype.Eu=function(){return i.__awaiter(this,void 0,void 0,(function(){var t=this;return i.__generator(this,(function(n){switch(n.label){case 0:return!this.isPrimary||this.Iu(this.Ha,18e5)?[3,2]:(this.Ha=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(n){var r=e.co(n,Wn.store);return r.Ro().next((function(e){var n=t.wu(e,18e5),i=e.filter((function(e){return-1===n.indexOf(e)}));return Nt.forEach(i,(function(e){return r.delete(e.clientId)})).next((function(){return i}))}))})).catch((function(){return[]}))]);case 1:n.sent().forEach((function(e){t.window.localStorage.removeItem(t.Ru(e.clientId))})),n.label=2;case 2:return[2]}}))}))},e.prototype.ru=function(){var e=this;this.za=this.Nr.Wr("client_metadata_refresh",4e3,(function(){return e.su().then((function(){return e.Eu()})).then((function(){return e.ru()}))}))},e.prototype.fu=function(e){return!!e&&e.ownerId===this.clientId},e.prototype._u=function(e){var t=this;return tr(e).get(An.key).next((function(n){if(null!==n&&t.Iu(n.leaseTimestampMs,5e3)&&!t.Au(n.ownerId)){if(t.fu(n)&&t.networkEnabled)return!0;if(!t.fu(n)){if(!n.allowTabSynchronization)throw new f(h.FAILED_PRECONDITION,Qn);return!1}}return!(!t.networkEnabled||!t.inForeground)||nr(e).Ro().next((function(e){return void 0===t.wu(e,5e3).find((function(e){if(t.clientId!==e.clientId){var n=!t.networkEnabled&&e.networkEnabled,r=!t.inForeground&&e.inForeground,i=t.networkEnabled===e.networkEnabled;if(n||r&&i)return!0}return!1}))}))})).next((function(e){return t.isPrimary!==e&&_t("IndexedDbPersistence","Client "+(e?"is":"is not")+" eligible for a primary lease."),e}))},e.prototype.mu=function(){return i.__awaiter(this,void 0,void 0,(function(){var e=this;return i.__generator(this,(function(t){switch(t.label){case 0:return this.ja=!1,this.Pu(),this.za&&(this.za.cancel(),this.za=null),this.Vu(),this.gu(),[4,this.eu.runTransaction("readwrite",[An.store,Wn.store],(function(t){return e.lu(t).next((function(){return e.Tu(t)}))}))];case 1:return t.sent(),this.eu.close(),this.pu(),[2]}}))}))},e.prototype.wu=function(e,t){var n=this;return e.filter((function(e){return n.Iu(e.updateTimeMs,t)&&!n.Au(e.clientId)}))},e.prototype.yu=function(){var e=this;return this.eu.runTransaction("readonly",[Wn.store],(function(t){return nr(t).Ro().next((function(t){return e.wu(t,18e5).map((function(e){return e.clientId}))}))}))},e.clearPersistence=function(t){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(r){switch(r.label){case 0:return e.ho()?(n=t+e.Xa,[4,rn.delete(n)]):[2,Promise.resolve()];case 1:return r.sent(),[2]}}))}))},Object.defineProperty(e.prototype,"Kh",{get:function(){return this.ja},enumerable:!0,configurable:!0}),e.prototype.bu=function(e){return hn.vo(e,this.serializer,this.ur,this.yo)},e.prototype.vu=function(){return this.Za},e.prototype.Su=function(){return this.or},e.prototype.Du=function(){return this.ur},e.prototype.runTransaction=function(e,t,n){var r=this;_t("IndexedDbPersistence","Starting transaction:",e);var i,a="readonly"===t?"readonly":"readwrite";return this.eu.runTransaction(a,Gn,(function(a){return i=new Zn(a,r.hu.next()),"readwrite-primary"===t?r.cu(a).next((function(e){return!!e||r._u(a)})).next((function(t){if(!t)throw wt("Failed to obtain primary lease for action '"+e+"'."),r.isPrimary=!1,r.Nr.Zr((function(){return r.Ya(!1)})),new f(h.FAILED_PRECONDITION,Bt);return n(i)})).next((function(e){return r.du(a).next((function(){return e}))})):r.Cu(a).next((function(){return n(i)}))})).then((function(e){return i.hr(),e}))},e.prototype.Cu=function(e){var t=this;return tr(e).get(An.key).next((function(e){if(null!==e&&t.Iu(e.leaseTimestampMs,5e3)&&!t.Au(e.ownerId)&&!t.fu(e)&&!e.allowTabSynchronization)throw new f(h.FAILED_PRECONDITION,Qn)}))},e.prototype.du=function(e){var t=new An(this.clientId,this.allowTabSynchronization,Date.now());return tr(e).put(An.key,t)},e.ho=function(){return rn.ho()},e.Fu=function(e){var t=e.ci.projectId;return e.ci.In||(t+="."+e.ci.database),"firestore/"+e.persistenceKey+"/"+t+"/"},e.prototype.lu=function(e){var t=this,n=tr(e);return n.get(An.key).next((function(e){return t.fu(e)?(_t("IndexedDbPersistence","Releasing primary lease."),n.delete(An.key)):Nt.resolve()}))},e.prototype.Iu=function(e,t){var n=Date.now();return!(e<n-t||e>n&&(wt("Detected an update time that is in the future: "+e+" > "+n),1))},e.prototype.iu=function(){var e=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Ga=function(){e.Nr.Zr((function(){return e.inForeground="visible"===e.document.visibilityState,e.su()}))},this.document.addEventListener("visibilitychange",this.Ga),this.inForeground="visible"===this.document.visibilityState)},e.prototype.Vu=function(){this.Ga&&(this.document.removeEventListener("visibilitychange",this.Ga),this.Ga=null)},e.prototype.nu=function(){var e=this;"function"==typeof this.window.addEventListener&&(this.Ka=function(){e.Pu(),e.Nr.Zr((function(){return e.mu()}))},this.window.addEventListener("unload",this.Ka))},e.prototype.gu=function(){this.Ka&&(this.window.removeEventListener("unload",this.Ka),this.Ka=null)},e.prototype.Au=function(e){try{var t=null!==this.tu.getItem(this.Ru(e));return _t("IndexedDbPersistence","Client '"+e+"' "+(t?"is":"is not")+" zombied in LocalStorage"),t}catch(e){return wt("IndexedDbPersistence","Failed to get zombied client id.",e),!1}},e.prototype.Pu=function(){try{this.tu.setItem(this.Ru(this.clientId),String(Date.now()))}catch(e){wt("Failed to set zombie client id.",e)}},e.prototype.pu=function(){try{this.tu.removeItem(this.Ru(this.clientId))}catch(e){}},e.prototype.Ru=function(e){return"firestore_zombie_"+this.persistenceKey+"_"+e},e}();function tr(e){return e.store(An.store)}function nr(e){return e.store(Wn.store)}er.Xa="main";var rr=function(){function e(e,t){this.db=e,this.Nu=null,this.qh=new Qt(this,t)}return e.prototype.Yh=function(e){var t=this.ku(e);return this.db.vu().la(e).next((function(e){return t.next((function(t){return e+t}))}))},e.prototype.ku=function(e){var t=0;return this.Xh(e,(function(e){t++})).next((function(){return t}))},e.prototype.Xs=function(e,t){return this.db.vu().Xs(e,t)},e.prototype.Xh=function(e,t){return this.$u(e,(function(e,n){return t(n)}))},e.prototype.Mu=function(e){this.Nu=e},e.prototype.vn=function(e,t){return ir(e,t)},e.prototype.Dn=function(e,t){return ir(e,t)},e.prototype.Zh=function(e,t,n){return this.db.vu().Zh(e,t,n)},e.prototype.Go=function(e,t){return ir(e,t)},e.prototype.Lu=function(e,t){return this.Nu.Mn(t)?Nt.resolve(!0):function(e,t){var n=!1;return gn(e).po((function(r){return fn(e,r,t).next((function(e){return e&&(n=!0),Nt.resolve(!e)}))})).next((function(){return n}))}(e,t)},e.prototype.to=function(e,t){var n=this,r=this.db.Su().Ca(),i=[],a=0;return this.$u(e,(function(o,s){if(s<=t){var l=n.Lu(e,o).next((function(t){if(!t)return a++,r.tr(e,o).next((function(){return r.Zn(o),En(e).delete([0,Zt(o.path)])}))}));i.push(l)}})).next((function(){return Nt.Kn(i)})).next((function(){return r.apply(e)})).next((function(){return a}))},e.prototype.removeTarget=function(e,t){var n=t.es(e.Qa);return this.db.vu().oa(e,n)},e.prototype.Ou=function(e,t){return ir(e,t)},e.prototype.$u=function(e,t){var n,r=En(e),i=Ht.Fr;return r.Vo({index:Un.documentTargetsIndex},(function(e,r){var a=e[0],o=(e[1],r.path),s=r.sequenceNumber;0===a?(i!==Ht.Fr&&t(new T(nn(n)),i),i=s,n=o):i=Ht.Fr})).next((function(){i!==Ht.Fr&&t(new T(nn(n)),i)}))},e.prototype.so=function(e){return this.db.Su().ka(e)},e}();function ir(e,t){return En(e).put(function(e,t){return new Un(0,Zt(e.path),t)}(t,e.Qa))}var ar=function(){function e(e,t,n){this.persistence=e,this.xu=t,this.Bu=new At,this.qu=new C(Ct),this.Uu=new Pt((function(e){return e.canonicalId()})),this.Qu=_.MIN,this.persistence.yo.Mu(this.Bu),this.ar=e.bu(n),this.Wu=e.Su(),this.Za=e.vu(),this.ju=new jt(this.Wu,this.ar,this.persistence.Du()),this.xu.Ku(this.ju)}return e.prototype.start=function(){return Promise.resolve()},e.prototype.Gu=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,a=this;return i.__generator(this,(function(i){switch(i.label){case 0:return t=this.ar,n=this.ju,[4,this.persistence.runTransaction("Handle user change","readonly",(function(r){var i;return a.ar.Uo(r).next((function(o){return i=o,t=a.persistence.bu(e),n=new jt(a.Wu,t,a.persistence.Du()),t.Uo(r)})).next((function(e){for(var t=[],a=[],o=Xe(),s=0,l=i;s<l.length;s++){var c=l[s];t.push(c.batchId);for(var u=0,d=c.mutations;u<d.length;u++){var h=d[u];o=o.add(h.key)}}for(var f=0,p=e;f<p.length;f++){var m=p[f];a.push(m.batchId);for(var v=0,g=m.mutations;v<g.length;v++){var y=g[v];o=o.add(y.key)}}return n.Tr(r,o).next((function(e){return{zu:e,Hu:t,Yu:a}}))}))}))];case 1:return r=i.sent(),[2,(this.ar=t,this.ju=n,this.xu.Ku(this.ju),r)]}}))}))},e.prototype.Ju=function(e){var t,n=this,r=b.now(),i=e.reduce((function(e,t){return e.add(t.key)}),Xe());return this.persistence.runTransaction("Locally write mutations","readwrite",(function(a){return n.ju.Tr(a,i).next((function(i){t=i;for(var o=[],s=0,l=e;s<l.length;s++){var c=l[s],u=c.ee(t.get(c.key));null!=u&&o.push(new fe(c.key,u,u.se(),ue.exists(!0)))}return n.ar.ko(a,r,o,e)}))})).then((function(e){var n=e.Pn(t);return{batchId:e.batchId,zn:n}}))},e.prototype.Do=function(e){var t=this;return this.persistence.runTransaction("Acknowledge batch","readwrite-primary",(function(n){var r=e.batch.keys(),i=t.Wu.Ca({Na:!0});return t.ar.Do(n,e.batch,e.streamToken).next((function(){return t.Xu(n,e,i)})).next((function(){return i.apply(n)})).next((function(){return t.ar.zo(n)})).next((function(){return t.ju.Tr(n,r)}))}))},e.prototype.Zu=function(e){var t=this;return this.persistence.runTransaction("Reject batch","readwrite-primary",(function(n){var r;return t.ar.Lo(n,e).next((function(e){return St(null!==e),r=e.keys(),t.ar.Wo(n,e)})).next((function(){return t.ar.zo(n)})).next((function(){return t.ju.Tr(n,r)}))}))},e.prototype.qo=function(){var e=this;return this.persistence.runTransaction("Get highest unacknowledged batch id","readonly",(function(t){return e.ar.qo(t)}))},e.prototype.Fo=function(){var e=this;return this.persistence.runTransaction("Get last stream token","readonly",(function(t){return e.ar.Fo(t)}))},e.prototype.No=function(e){var t=this;return this.persistence.runTransaction("Set last stream token","readwrite-primary",(function(n){return t.ar.No(n,e)}))},e.prototype.ea=function(){var e=this;return this.persistence.runTransaction("Get last remote snapshot version","readonly",(function(t){return e.Za.ea(t)}))},e.prototype.tc=function(t){var n=this,r=t.ts,i=this.qu;return this.persistence.runTransaction("Apply remote event","readwrite-primary",(function(a){var o=n.Wu.Ca({Na:!0});i=n.qu;var s=[];t.Ts.forEach((function(t,o){var l=i.get(o);if(l){s.push(n.Za.Ta(a,t.gs,o).next((function(){return n.Za.fa(a,t.Ps,o)})));var c=t.resumeToken;if(c.Ot()>0){var u=l.ss(c,r).es(a.Qa);i=i.nt(o,u),e.ec(l,u,t)&&s.push(n.Za.oa(a,u))}}}));var l=ze(),c=Xe();if(t.Is.forEach((function(e,t){c=c.add(e)})),s.push(o.getEntries(a,c).next((function(e){t.Is.forEach((function(i,c){var u=e.get(i);c instanceof we&&c.version.isEqual(_.MIN)?(o.Zn(i,r),l=l.nt(i,c)):null==u||c.version.D(u.version)>0||0===c.version.D(u.version)&&u.hasPendingWrites?(o.Jn(c,r),l=l.nt(i,c)):_t("LocalStore","Ignoring outdated watch update for ",i,". Current version:",u.version," Watch version:",c.version),t.ws.has(i)&&s.push(n.persistence.yo.Ou(a,i))}))}))),!r.isEqual(_.MIN)){var u=n.Za.ea(a).next((function(e){return n.Za.ia(a,a.Qa,r)}));s.push(u)}return Nt.Kn(s).next((function(){return o.apply(a)})).next((function(){return n.ju.Er(a,l)}))})).then((function(e){return n.qu=i,e}))},e.ec=function(e,t,n){return St(t.resumeToken.Ot()>0),0===e.resumeToken.Ot()||t.ts.C()-e.ts.C()>=this.sc||n.Ps.size+n.Vs.size+n.gs.size>0},e.prototype.ic=function(e){for(var t=this,n=0,r=e;n<r.length;n++){var i=r[n],a=i.targetId;if(this.Bu.Sn(i.pr,a),this.Bu.Fn(i.yr,a),!i.fromCache){var o=this.qu.get(a),s=o.ts,l=o.ns(s);this.qu=this.qu.nt(a,l)}}return this.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(n){return Nt.forEach(e,(function(e){return Nt.forEach(e.yr,(function(e){return t.persistence.yo.Dn(n,e)}))}))}))},e.prototype.nc=function(e){var t=this;return this.persistence.runTransaction("Get next mutation batch","readonly",(function(n){return void 0===e&&(e=-1),t.ar.Bo(n,e)}))},e.prototype.rc=function(e){var t=this;return this.persistence.runTransaction("read document","readonly",(function(n){return t.ju.cr(n,e)}))},e.prototype.hc=function(e){var t=this;return this.persistence.runTransaction("Allocate target","readwrite",(function(n){var r;return t.Za.da(n,e).next((function(i){return i?(r=i,Nt.resolve(r)):t.Za.Xo(n).next((function(i){return r=new Ye(e,i,0,n.Qa),t.Za.na(n,r).next((function(){return r}))}))}))})).then((function(n){return null===t.qu.get(n.targetId)&&(t.qu=t.qu.nt(n.targetId,n),t.Uu.set(e,n.targetId)),n}))},e.prototype.da=function(e,t){var n=this.Uu.get(t);return void 0!==n?Nt.resolve(this.qu.get(n)):this.Za.da(e,t)},e.prototype.oc=function(e,t){var n=this,r=this.qu.get(e),i=t?"readwrite":"readwrite-primary";return this.persistence.runTransaction("Release target",i,(function(i){var a=n.Bu.Nn(e);return t?Nt.resolve():Nt.forEach(a,(function(e){return n.persistence.yo.Dn(i,e)})).next((function(){n.persistence.yo.removeTarget(i,r)}))})).then((function(){n.qu=n.qu.remove(e),n.Uu.delete(r.target)}))},e.prototype.ac=function(e,t){var n=this,r=_.MIN,i=Xe();return this.persistence.runTransaction("Execute query","readonly",(function(a){return n.da(a,e.xe()).next((function(e){if(e)return r=e.lastLimboFreeSnapshotVersion,n.Za.Ea(a,e.targetId).next((function(e){i=e}))})).next((function(){return n.xu.wr(a,e,t?r:_.MIN,t?i:Xe())})).next((function(e){return{documents:e,uc:i}}))}))},e.prototype.cc=function(e){var t=this;return this.persistence.runTransaction("Remote document keys","readonly",(function(n){return t.Za.Ea(n,e)}))},e.prototype.Xu=function(e,t,n){var r=this,i=t.batch,a=i.keys(),o=Nt.resolve();return a.forEach((function(r){o=o.next((function(){return n.tr(e,r)})).next((function(e){var a=e,o=t.gn.get(r);St(null!==o),(!a||a.version.D(o)<0)&&(a=i.qt(r,a,t))&&n.Jn(a,t.Vn)}))})),o.next((function(){return r.ar.Wo(e,i)}))},e.prototype.Gh=function(e){var t=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return e.eo(n,t.qu)}))},e}();ar.sc=3e8;var or=function(e){function t(t,n,r){var i=this;return(i=e.call(this,t,n,r)||this).persistence=t,i.ar=t.bu(r),i.Wu=t.Su(),i.Za=t.vu(),i}return i.__extends(t,e),t.prototype.start=function(){return this._c()},t.prototype.lc=function(e){var t=this;return this.persistence.runTransaction("Lookup mutation documents","readonly",(function(n){return t.ar.xo(n,e).next((function(e){return e?t.ju.Tr(n,e):Nt.resolve(null)}))}))},t.prototype.dc=function(e){this.ar.Ko(e)},t.prototype.uu=function(e){this.persistence.uu(e)},t.prototype.yu=function(){return this.persistence.yu()},t.prototype.fc=function(e){var t=this,n=this.qu.get(e);return n?Promise.resolve(n.target):this.persistence.runTransaction("Get target data","readonly",(function(n){return t.Za.ui(n,e).next((function(e){return e?e.target:null}))}))},t.prototype.ba=function(){var e=this;return this.persistence.runTransaction("Get new document changes","readonly",(function(t){return e.Wu.ba(t,e.Qu)})).then((function(t){var n=t.va,r=t.readTime;return e.Qu=r,n}))},t.prototype._c=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t=this;return i.__generator(this,(function(n){switch(n.label){case 0:return e=this,[4,this.persistence.runTransaction("Synchronize last document change read time","readonly",(function(e){return t.Wu.Da(e)}))];case 1:return e.Qu=n.sent(),[2]}}))}))},t}(ar);function sr(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){if(e.code!==h.FAILED_PRECONDITION||e.message!==Bt)throw e;return _t("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}function lr(e,t){if(0!==t.length)throw new f(h.INVALID_ARGUMENT,"Function "+e+"() does not support arguments, but was called with "+Tr(t.length,"argument")+".")}function cr(e,t,n){if(t.length!==n)throw new f(h.INVALID_ARGUMENT,"Function "+e+"() requires "+Tr(n,"argument")+", but was called with "+Tr(t.length,"argument")+".")}function ur(e,t,n){if(t.length<n)throw new f(h.INVALID_ARGUMENT,"Function "+e+"() requires at least "+Tr(n,"argument")+", but was called with "+Tr(t.length,"argument")+".")}function dr(e,t,n,r){if(t.length<n||t.length>r)throw new f(h.INVALID_ARGUMENT,"Function "+e+"() requires between "+n+" and "+r+" arguments, but was called with "+Tr(t.length,"argument")+".")}function hr(e,t,n,r){gr(e,t,Sr(n)+" argument",r)}function fr(e,t,n,r){void 0!==r&&hr(e,t,n,r)}function pr(e,t,n,r){gr(e,t,n+" option",r)}function mr(e,t,n,r){void 0!==r&&pr(e,t,n,r)}function vr(e,t,n,r,i){void 0!==r&&function(e,t,n,r,i){for(var a=[],o=0,s=i;o<s.length;o++){var l=s[o];if(l===r)return;a.push(br(l))}var c=br(r);throw new f(h.INVALID_ARGUMENT,"Invalid value "+c+" provided to function "+e+'() for option "'+n+'". Acceptable values: '+a.join(", "))}(e,0,n,r,i)}function gr(e,t,n,r){if(!("object"===t?yr(r):"non-empty string"===t?"string"==typeof r&&""!==r:typeof r===t)){var i=br(r);throw new f(h.INVALID_ARGUMENT,"Function "+e+"() requires its "+n+" to be of type "+t+", but it was: "+i)}}function yr(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}function br(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e=e.substring(0,20)+"..."),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";var t=function(e){if(e.constructor){var t=/function\s+([^\s(]+)\s*\(/.exec(e.constructor.toString());if(t&&t.length>1)return t[1]}return null}(e);return t?"a custom "+t+" object":"an object"}return"function"==typeof e?"a function":Et()}function _r(e,t,n){if(void 0===n)throw new f(h.INVALID_ARGUMENT,"Function "+e+"() requires a valid "+Sr(t)+" argument, but it was undefined.")}function wr(e,t,n){O(t,(function(t,r){if(n.indexOf(t)<0)throw new f(h.INVALID_ARGUMENT,"Unknown option '"+t+"' passed to function "+e+"(). Available options: "+n.join(", "))}))}function kr(e,t,n,r){var i=br(r);return new f(h.INVALID_ARGUMENT,"Function "+e+"() requires its "+Sr(n)+" argument to be a "+t+", but it was: "+i)}function Er(e,t,n){if(n<=0)throw new f(h.INVALID_ARGUMENT,'Function "'+e+'()" requires its '+Sr(t)+" argument to be a positive number, but it was: "+n+".")}function Sr(e){switch(e){case 1:return"first";case 2:return"second";case 3:return"third";default:return e+"th"}}function Tr(e,t){return e+" "+t+(1===e?"":"s")}function Cr(e,t){function n(){var e="This constructor is private.";throw t&&(e+=" ",e+=t),new f(h.INVALID_ARGUMENT,e)}return n.prototype=e.prototype,Object.assign(n,e),n}function Mr(){if("undefined"==typeof Uint8Array)throw new f(h.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function xr(){if(!vt.Lt().Tc)throw new f(h.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var $r=function(){function e(e){xr(),this.Ec=e}return e.fromBase64String=function(t){cr("Blob.fromBase64String",arguments,1),hr("Blob.fromBase64String","string",1,t),xr();try{return new e(A.fromBase64String(t))}catch(t){throw new f(h.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+t)}},e.fromUint8Array=function(t){if(cr("Blob.fromUint8Array",arguments,1),Mr(),!(t instanceof Uint8Array))throw kr("Blob.fromUint8Array","Uint8Array",1,t);return new e(A.fromUint8Array(t))},e.prototype.toBase64=function(){return cr("Blob.toBase64",arguments,0),xr(),this.Ec.toBase64()},e.prototype.toUint8Array=function(){return cr("Blob.toUint8Array",arguments,0),Mr(),this.Ec.toUint8Array()},e.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},e.prototype.isEqual=function(e){return this.Ec.isEqual(e.Ec)},e}(),Lr=Cr($r,"Use Blob.fromUint8Array() or Blob.fromBase64String() instead."),Pr=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];!function(e,t,n,r){if(!(t instanceof Array)||t.length<1)throw new f(h.INVALID_ARGUMENT,"Function FieldPath() requires its fieldNames argument to be an array with at least "+Tr(1,"element")+".")}(0,e);for(var n=0;n<e.length;++n)if(hr("FieldPath","string",n,e[n]),0===e[n].length)throw new f(h.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this.Ic=new S(e)}return e.documentId=function(){return e.wc},e.prototype.isEqual=function(t){if(!(t instanceof e))throw kr("isEqual","FieldPath",1,t);return this.Ic.isEqual(t.Ic)},e}();Pr.wc=new Pr(S.X().K());var Or=new RegExp("[~\\*/\\[\\]]"),Ir=function(){function e(e){this.Rc=e}return e.delete=function(){return lr("FieldValue.delete",arguments),Ar.instance},e.serverTimestamp=function(){return lr("FieldValue.serverTimestamp",arguments),Dr.instance},e.arrayUnion=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ur("FieldValue.arrayUnion",arguments,1),new Nr(e)},e.arrayRemove=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ur("FieldValue.arrayRemove",arguments,1),new Rr(e)},e.increment=function(e){return hr("FieldValue.increment","number",1,e),cr("FieldValue.increment",arguments,1),new Br(e)},e.prototype.isEqual=function(e){return this===e},e}(),Ar=function(e){function t(){return e.call(this,"FieldValue.delete")||this}return i.__extends(t,e),t}(Ir);Ar.instance=new Ar;var Dr=function(e){function t(){return e.call(this,"FieldValue.serverTimestamp")||this}return i.__extends(t,e),t}(Ir);Dr.instance=new Dr;var Nr=function(e){function t(t){var n=this;return(n=e.call(this,"FieldValue.arrayUnion")||this).Ac=t,n}return i.__extends(t,e),t}(Ir),Rr=function(e){function t(t){var n=this;return(n=e.call(this,"FieldValue.arrayRemove")||this).Ac=t,n}return i.__extends(t,e),t}(Ir),Br=function(e){function t(t){var n=this;return(n=e.call(this,"FieldValue.increment")||this).mc=t,n}return i.__extends(t,e),t}(Ir),Yr=Cr(Ir,"Use FieldValue.<field>() instead."),jr=function(){function e(e,t){if(cr("GeoPoint",arguments,2),hr("GeoPoint","number",1,e),hr("GeoPoint","number",2,t),!isFinite(e)||e<-90||e>90)throw new f(h.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new f(h.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this.Pc=e,this.Vc=t}return Object.defineProperty(e.prototype,"latitude",{get:function(){return this.Pc},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.Vc},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(e){return this.Pc===e.Pc&&this.Vc===e.Vc},e.prototype.p=function(e){return Ct(this.Pc,e.Pc)||Ct(this.Vc,e.Vc)},e}(),Fr=/^__.*__$/,Hr=function(){function e(e,t,n){this.data=e,this.se=t,this.fieldTransforms=n}return e.prototype.gc=function(e,t){var n=[];return null!==this.se?n.push(new fe(e,this.data,this.se,t)):n.push(new he(e,this.data,t)),this.fieldTransforms.length>0&&n.push(new pe(e,this.fieldTransforms)),n},e}(),Ur=function(){function e(e,t,n){this.data=e,this.se=t,this.fieldTransforms=n}return e.prototype.gc=function(e,t){var n=[new fe(e,this.data,this.se,t)];return this.fieldTransforms.length>0&&n.push(new pe(e,this.fieldTransforms)),n},e}();function zr(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Et()}}var Vr=function(){function e(e,t,n,r,i,a){this.pc=e,this.methodName=t,this.path=n,this.yc=r,void 0===i&&this.bc(),this.yc=void 0!==r&&r,this.fieldTransforms=i||[],this.se=a||[]}return e.prototype.vc=function(t){var n=null==this.path?null:this.path.child(t),r=new e(this.pc,this.methodName,n,!1,this.fieldTransforms,this.se);return r.Sc(t),r},e.prototype.Dc=function(t){var n=null==this.path?null:this.path.child(t),r=new e(this.pc,this.methodName,n,!1,this.fieldTransforms,this.se);return r.bc(),r},e.prototype.Cc=function(t){return new e(this.pc,this.methodName,null,!0,this.fieldTransforms,this.se)},e.prototype.Fc=function(e){var t=null===this.path||this.path.q()?"":" (found in field "+this.path.toString()+")";return new f(h.INVALID_ARGUMENT,"Function "+this.methodName+"() called with invalid data. "+e+t)},e.prototype.contains=function(e){return void 0!==this.se.find((function(t){return e.U(t)}))||void 0!==this.fieldTransforms.find((function(t){return e.U(t.field)}))},e.prototype.bc=function(){if(null!==this.path)for(var e=0;e<this.path.length;e++)this.Sc(this.path.get(e))},e.prototype.Sc=function(e){if(0===e.length)throw this.Fc("Document fields must not be empty");if(zr(this.pc)&&Fr.test(e))throw this.Fc('Document fields cannot begin and end with "__"')},e}(),qr=function(e,t){this.ci=e,this.key=t},Wr=function(){function e(e,t){this.serializer=e,this.Nc=t}return e.prototype.kc=function(e,t){var n=new Vr(0,e,S.H);Kr("Data must be an object, but it was:",n,t);var r=this.$c(t,n);return new Hr(new ge(r),null,n.fieldTransforms)},e.prototype.Mc=function(e,t,n){var r=new Vr(2,e,S.H);Kr("Data must be an object, but it was:",r,t);var i,a,o=this.$c(t,r);if(n){for(var s=new $(S.k),l=0,c=n;l<c.length;l++){var u=c[l],d=void 0;if(u instanceof Pr)d=u.Ic;else{if("string"!=typeof u)throw Et();d=Xr(e,u)}if(!r.contains(d))throw new f(h.INVALID_ARGUMENT,"Field '"+d+"' is specified in your field mask but missing from your input data.");s=s.add(d)}i=se.Kt(s),a=r.fieldTransforms.filter((function(e){return i.zt(e.field)}))}else i=se.Gt(r.se),a=r.fieldTransforms;return new Hr(new ge(o),i,a)},e.prototype.Lc=function(e,t){var n=this,r=new Vr(1,e,S.H);Kr("Data must be an object, but it was:",r,t);var i=new $(S.k),a=ge._e();O(t,(function(t,o){var s=Xr(e,t),l=r.Dc(s);if((o=n.Oc(o,l))instanceof Ar)i=i.add(s);else{var c=n.xc(o,l);null!=c&&(i=i.add(s),a.set(s,c))}}));var o=se.Kt(i);return new Ur(a.he(),o,r.fieldTransforms)},e.prototype.Bc=function(e,t,n,r){var i=new Vr(1,e,S.H),a=[Jr(e,t)],o=[n];if(r.length%2!=0)throw new f(h.INVALID_ARGUMENT,"Function "+e+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var s=0;s<r.length;s+=2)a.push(Jr(e,r[s])),o.push(r[s+1]);for(var l=new $(S.k),c=ge._e(),u=0;u<a.length;++u){var d=a[u],p=i.Dc(d),m=this.Oc(o[u],p);if(m instanceof Ar)l=l.add(d);else{var v=this.xc(m,p);null!=v&&(l=l.add(d),c.set(d,v))}}var g=se.Kt(l);return new Ur(c.he(),g,i.fieldTransforms)},e.prototype.qc=function(e,t,n){void 0===n&&(n=!1);var r=new Vr(n?4:3,e,S.H);return this.xc(t,r)},e.prototype.Oc=function(e,t){try{return this.Nc(e)}catch(e){var n=Qr(e);throw t.Fc(n)}},e.prototype.xc=function(e,t){if(Gr(e=this.Oc(e,t)))return Kr("Unsupported field value:",t,e),this.$c(e,t);if(e instanceof Ir)return this.Uc(e,t),null;if(t.path&&t.se.push(t.path),e instanceof Array){if(t.yc&&4!==t.pc)throw t.Fc("Nested arrays are not supported");return this.Qc(e,t)}return this.Wc(e,t)},e.prototype.$c=function(e,t){var n=this,r={};return I(e)?t.path&&t.path.length>0&&t.se.push(t.path):O(e,(function(e,i){var a=n.xc(i,t.vc(e));null!=a&&(r[e]=a)})),{mapValue:{fields:r}}},e.prototype.Qc=function(e,t){for(var n=[],r=0,i=0,a=e;i<a.length;i++){var o=a[i],s=this.xc(o,t.Cc(r));null==s&&(s={nullValue:"NULL_VALUE"}),n.push(s),r++}return{arrayValue:{values:n}}},e.prototype.Uc=function(e,t){if(!zr(t.pc))throw t.Fc(e.Rc+"() can only be used with update() and set()");if(null===t.path)throw t.Fc(e.Rc+"() is not currently supported inside arrays");if(e instanceof Ar){if(2!==t.pc)throw 1===t.pc?t.Fc("FieldValue.delete() can only appear at the top level of your update data"):t.Fc("FieldValue.delete() cannot be used with set() unless you pass {merge:true}");t.se.push(t.path)}else if(e instanceof Dr)t.fieldTransforms.push(new le(t.path,ne.instance));else if(e instanceof Nr){var n=this.jc(e.Rc,e.Ac),r=new re(n);t.fieldTransforms.push(new le(t.path,r))}else if(e instanceof Rr){var i=this.jc(e.Rc,e.Ac),a=new ie(i);t.fieldTransforms.push(new le(t.path,a))}else if(e instanceof Br){var o=this.qc("FieldValue.increment",e.mc),s=new ae(this.serializer,o);t.fieldTransforms.push(new le(t.path,s))}else Et()},e.prototype.Wc=function(e,t){if(null===e)return{nullValue:"NULL_VALUE"};if("number"==typeof e)return this.serializer.Ti(e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){var n=b.fromDate(e);return{timestampValue:this.serializer.F(n)}}if(e instanceof b){var r=new b(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:this.serializer.F(r)}}if(e instanceof jr)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof $r)return{bytesValue:this.serializer.Ei(e)};if(e instanceof qr)return{referenceValue:this.serializer.wi(e.key.path,e.ci)};throw t.Fc("Unsupported field value: "+br(e))},e.prototype.jc=function(e,t){var n=this;return t.map((function(t,r){var i=new Vr(3,e,S.H);return n.xc(t,i.Cc(r))}))},e}();function Gr(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof b||e instanceof jr||e instanceof $r||e instanceof qr||e instanceof Ir)}function Kr(e,t,n){if(!Gr(n)||!yr(n)){var r=br(n);throw"an object"===r?t.Fc(e+" a custom object"):t.Fc(e+" "+r)}}function Jr(e,t){if(t instanceof Pr)return t.Ic;if("string"==typeof t)return Xr(e,t);throw new f(h.INVALID_ARGUMENT,"Function "+e+"() called with invalid data. Field path arguments must be of type string or FieldPath.")}function Xr(e,t){try{return function(e){if(e.search(Or)>=0)throw new f(h.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(Pr.bind.apply(Pr,i.__spreadArrays([void 0],e.split("."))))}catch(t){throw new f(h.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(t).Ic}catch(t){var n=Qr(t);throw new f(h.INVALID_ARGUMENT,"Function "+e+"() called with invalid data. "+n)}}function Qr(e){return e instanceof Error?e.message:e.toString()}var Zr=function(){function e(e,t,n,r,i,a){this.Nr=e,this.Kc=n,this.Gc=r,this.zc=i,this.listener=a,this.state=0,this.Hc=0,this.Yc=null,this.stream=null,this.oh=new zt(e,t)}return e.prototype.Jc=function(){return 1===this.state||2===this.state||4===this.state},e.prototype.Xc=function(){return 2===this.state},e.prototype.start=function(){3!==this.state?this.auth():this.Zc()},e.prototype.stop=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.Jc()?[4,this.close(0)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.t_=function(){this.state=0,this.oh.reset()},e.prototype.e_=function(){var e=this;this.Xc()&&null===this.Yc&&(this.Yc=this.Nr.Wr(this.Kc,6e4,(function(){return e.s_()})))},e.prototype.i_=function(e){this.n_(),this.stream.send(e)},e.prototype.s_=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.Xc()?[2,this.close(0)]:[2]}))}))},e.prototype.n_=function(){this.Yc&&(this.Yc.cancel(),this.Yc=null)},e.prototype.close=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(n){switch(n.label){case 0:return this.n_(),this.oh.cancel(),this.Hc++,3!==e?this.oh.reset():t&&t.code===h.RESOURCE_EXHAUSTED?(wt(t.toString()),wt("Using maximum backoff delay to prevent overloading the backend."),this.oh.qr()):t&&t.code===h.UNAUTHENTICATED&&this.zc._(),null!==this.stream&&(this.r_(),this.stream.close(),this.stream=null),this.state=e,[4,this.listener.h_(t)];case 1:return n.sent(),[2]}}))}))},e.prototype.r_=function(){},e.prototype.auth=function(){var e=this;this.state=1;var t=this.o_(this.Hc),n=this.Hc;this.zc.getToken().then((function(t){e.Hc===n&&e.a_(t)}),(function(n){t((function(){var t=new f(h.UNKNOWN,"Fetching auth token failed: "+n.message);return e.u_(t)}))}))},e.prototype.a_=function(e){var t=this,n=this.o_(this.Hc);this.stream=this.c_(e),this.stream.__((function(){n((function(){return t.state=2,t.listener.__()}))})),this.stream.h_((function(e){n((function(){return t.u_(e)}))})),this.stream.onMessage((function(e){n((function(){return t.onMessage(e)}))}))},e.prototype.Zc=function(){var e=this;this.state=4,this.oh.Ur((function(){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.state=0,this.start(),[2]}))}))}))},e.prototype.u_=function(e){return _t("PersistentStream","close with error: "+e),this.stream=null,this.close(3,e)},e.prototype.o_=function(e){var t=this;return function(n){t.Nr.Zr((function(){return t.Hc===e?n():(_t("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},e}(),ei=function(e){function t(t,n,r,i,a){var o=this;return(o=e.call(this,t,"listen_stream_connection_backoff","listen_stream_idle",n,r,a)||this).serializer=i,o}return i.__extends(t,e),t.prototype.c_=function(e){return this.Gc.l_("Listen",e)},t.prototype.onMessage=function(e){this.oh.reset();var t=this.serializer.Fi(e),n=this.serializer.ki(e);return this.listener.d_(t,n)},t.prototype.f_=function(e){var t={};t.database=this.serializer.pi,t.addTarget=this.serializer.xe(e);var n=this.serializer.en(e);n&&(t.labels=n),this.i_(t)},t.prototype.T_=function(e){var t={};t.database=this.serializer.pi,t.removeTarget=e,this.i_(t)},t}(Zr),ti=function(e){function t(t,n,r,i,a){var o=this;return(o=e.call(this,t,"write_stream_connection_backoff","write_stream_idle",n,r,a)||this).serializer=i,o.E_=!1,o.lastStreamToken=A.xt,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"I_",{get:function(){return this.E_},enumerable:!0,configurable:!0}),t.prototype.start=function(){this.E_=!1,e.prototype.start.call(this)},t.prototype.r_=function(){this.E_&&this.w_([])},t.prototype.c_=function(e){return this.Gc.l_("Write",e)},t.prototype.onMessage=function(e){if(St(!!e.streamToken),this.lastStreamToken=this.serializer.Ii(e.streamToken),this.E_){this.oh.reset();var t=this.serializer.Wi(e.writeResults,e.commitTime),n=this.serializer.fromVersion(e.commitTime);return this.listener.R_(n,t)}return St(!e.writeResults||0===e.writeResults.length),this.E_=!0,this.listener.A_()},t.prototype.m_=function(){var e={};e.database=this.serializer.pi,this.i_(e)},t.prototype.w_=function(e){var t=this,n={streamToken:this.serializer.Ei(this.lastStreamToken),writes:e.map((function(e){return t.serializer.$i(e)}))};this.i_(n)},t}(Zr),ni=function(){function e(e,t,n,r){this.Nr=e,this.Gc=t,this.credentials=n,this.serializer=r}return e.prototype.P_=function(e){return new ti(this.Nr,this.Gc,this.credentials,this.serializer,e)},e.prototype.V_=function(e){return new ei(this.Nr,this.Gc,this.credentials,this.serializer,e)},e.prototype.commit=function(e){var t=this,n={database:this.serializer.pi,writes:e.map((function(e){return t.serializer.$i(e)}))};return this.g_("Commit",n).then((function(e){return t.serializer.Wi(e.writeResults,e.commitTime)}))},e.prototype.p_=function(e){var t=this,n={database:this.serializer.pi,documents:e.map((function(e){return t.serializer.mi(e)}))};return this.y_("BatchGetDocuments",n).then((function(n){var r=ze();n.forEach((function(e){var n=t.serializer.Ci(e);r=r.nt(n.key,n)}));var i=[];return e.forEach((function(e){var t=r.get(e);St(!!t),i.push(t)})),i}))},e.prototype.g_=function(e,t){var n=this;return this.credentials.getToken().then((function(r){return n.Gc.g_(e,t,r)})).catch((function(e){throw e.code===h.UNAUTHENTICATED&&n.credentials._(),e}))},e.prototype.y_=function(e,t){var n=this;return this.credentials.getToken().then((function(r){return n.Gc.y_(e,t,r)})).catch((function(e){throw e.code===h.UNAUTHENTICATED&&n.credentials._(),e}))},e}(),ri=function(){function e(e){this.b_=e,this.v_=Ke(),this.mutations=[],this.S_=!1,this.D_=null,this.C_=new Set}return e.prototype.p_=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:if(this.F_(),this.mutations.length>0)throw new f(h.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,this.b_.p_(e)];case 1:return[2,((t=r.sent()).forEach((function(e){e instanceof we||e instanceof _e?n.N_(e):Et()})),t)]}}))}))},e.prototype.set=function(e,t){this.write(t.gc(e,this.Zt(e))),this.C_.add(e)},e.prototype.update=function(e,t){try{this.write(t.gc(e,this.k_(e)))}catch(e){this.D_=e}this.C_.add(e)},e.prototype.delete=function(e){this.write([new me(e,this.Zt(e))]),this.C_.add(e)},e.prototype.commit=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t=this;return i.__generator(this,(function(n){switch(n.label){case 0:if(this.F_(),this.D_)throw this.D_;return e=this.v_,this.mutations.forEach((function(t){e=e.remove(t.key)})),e.forEach((function(e,n){t.mutations.push(new ve(e,t.Zt(e)))})),[4,this.b_.commit(this.mutations)];case 1:return n.sent(),this.S_=!0,[2]}}))}))},e.prototype.N_=function(e){var t;if(e instanceof _e)t=e.version;else{if(!(e instanceof we))throw Et();t=_.S()}var n=this.v_.get(e.key);if(null!==n){if(!t.isEqual(n))throw new f(h.ABORTED,"Document version changed between two reads.")}else this.v_=this.v_.nt(e.key,t)},e.prototype.Zt=function(e){var t=this.v_.get(e);return!this.C_.has(e)&&t?ue.updateTime(t):ue.NONE},e.prototype.k_=function(e){var t=this.v_.get(e);if(!this.C_.has(e)&&t){if(t.isEqual(_.S()))throw new f(h.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return ue.updateTime(t)}return ue.exists(!0)},e.prototype.write=function(e){this.F_(),this.mutations=this.mutations.concat(e)},e.prototype.F_=function(){},e}(),ii=function(){function e(e,t){this.jr=e,this.M_=t,this.state="Unknown",this.L_=0,this.O_=null,this.x_=!0}return e.prototype.B_=function(){var e=this;0===this.L_&&(this.q_("Unknown"),this.O_=this.jr.Wr("online_state_timeout",1e4,(function(){return e.O_=null,e.U_("Backend didn't respond within 10 seconds."),e.q_("Offline"),Promise.resolve()})))},e.prototype.Q_=function(e){"Online"===this.state?this.q_("Unknown"):(this.L_++,this.L_>=1&&(this.W_(),this.U_("Connection failed 1 times. Most recent error: "+e.toString()),this.q_("Offline")))},e.prototype.set=function(e){this.W_(),this.L_=0,"Online"===e&&(this.x_=!1),this.q_(e)},e.prototype.q_=function(e){e!==this.state&&(this.state=e,this.M_(e))},e.prototype.U_=function(e){var t="Could not reach Cloud Firestore backend. "+e+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.x_?(wt(t),this.x_=!1):_t("OnlineStateTracker",t)},e.prototype.W_=function(){null!==this.O_&&(this.O_.cancel(),this.O_=null)},e}(),ai=function(){function e(e,t,n,r,a){var o=this;this.j_=e,this.b_=t,this.K_=[],this.G_=new Map,this.z_=null,this.networkEnabled=!1,this.isPrimary=!1,this.H_=a,this.H_.Y_((function(e){n.Zr((function(){return i.__awaiter(o,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.J_()?(_t("RemoteStore","Restarting streams for network reachability change."),[4,this.X_()]):[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))}))})),this.Z_=new ii(n,r),this.tl=this.b_.V_({__:this.el.bind(this),h_:this.sl.bind(this),d_:this.il.bind(this)}),this.nl=this.b_.P_({__:this.rl.bind(this),h_:this.hl.bind(this),A_:this.ol.bind(this),R_:this.R_.bind(this)})}return e.prototype.start=function(){return this.enableNetwork()},e.prototype.enableNetwork=function(){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(t){switch(t.label){case 0:return this.networkEnabled=!0,this.J_()?(e=this.nl,[4,this.j_.Fo()]):[3,3];case 1:return e.lastStreamToken=t.sent(),this.al()?this.ul():this.Z_.set("Unknown"),[4,this.cl()];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},e.prototype.disableNetwork=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.networkEnabled=!1,[4,this._l()];case 1:return e.sent(),this.Z_.set("Offline"),[2]}}))}))},e.prototype._l=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return[4,this.nl.stop()];case 1:return e.sent(),[4,this.tl.stop()];case 2:return e.sent(),this.K_.length>0&&(_t("RemoteStore","Stopping write stream with "+this.K_.length+" pending writes"),this.K_=[]),this.ll(),[2]}}))}))},e.prototype.mu=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return _t("RemoteStore","RemoteStore shutting down."),this.networkEnabled=!1,[4,this._l()];case 1:return e.sent(),this.H_.mu(),this.Z_.set("Unknown"),[2]}}))}))},e.prototype.listen=function(e){this.G_.has(e.targetId)||(this.G_.set(e.targetId,e),this.al()?this.ul():this.tl.Xc()&&this.dl(e))},e.prototype.fl=function(e){this.G_.delete(e),this.tl.Xc()&&this.Tl(e),0===this.G_.size&&(this.tl.Xc()?this.tl.e_():this.J_()&&this.Z_.set("Unknown"))},e.prototype.ui=function(e){return this.G_.get(e)||null},e.prototype.ai=function(e){return this.El.ai(e)},e.prototype.dl=function(e){this.z_.Bs(e.targetId),this.tl.f_(e)},e.prototype.Tl=function(e){this.z_.Bs(e),this.tl.T_(e)},e.prototype.ul=function(){this.z_=new ct(this),this.tl.start(),this.Z_.B_()},e.prototype.al=function(){return this.J_()&&!this.tl.Jc()&&this.G_.size>0},e.prototype.J_=function(){return this.isPrimary&&this.networkEnabled},e.prototype.ll=function(){this.z_=null},e.prototype.el=function(){return i.__awaiter(this,void 0,void 0,(function(){var e=this;return i.__generator(this,(function(t){return this.G_.forEach((function(t,n){e.dl(t)})),[2]}))}))},e.prototype.sl=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.ll(),this.al()?(this.Z_.Q_(e),this.ul()):this.Z_.set("Unknown"),[2]}))}))},e.prototype.il=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(r){switch(r.label){case 0:return this.Z_.set("Online"),e instanceof st&&2===e.state&&e.cause?[2,this.Il(e)]:(e instanceof at?this.z_.zs(e):e instanceof ot?this.z_.si(e):this.z_.Js(e),t.isEqual(_.MIN)?[3,4]:[4,this.j_.ea()]);case 1:return n=r.sent(),t.D(n)>=0?[4,this.wl(t)]:[3,3];case 2:r.sent(),r.label=3;case 3:r.label=4;case 4:return[2]}}))}))},e.prototype.wl=function(e){var t=this,n=this.z_.ri(e);return n.Ts.forEach((function(n,r){if(n.resumeToken.Ot()>0){var i=t.G_.get(r);i&&t.G_.set(r,i.ss(n.resumeToken,e))}})),n.Es.forEach((function(e){var n=t.G_.get(e);if(n){t.G_.set(e,n.ss(A.xt,n.ts)),t.Tl(e);var r=new Ye(n.target,e,1,n.sequenceNumber);t.dl(r)}})),this.El.tc(n)},e.prototype.Il=function(e){var t=this,n=e.cause,r=Promise.resolve();return e.targetIds.forEach((function(e){r=r.then((function(){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.G_.has(e)?[2,(this.G_.delete(e),this.z_.removeTarget(e),this.El.Rl(e,n))]:[2]}))}))}))})),r},e.prototype.cl=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t;return i.__generator(this,(function(n){switch(n.label){case 0:return this.Al()?(e=this.K_.length>0?this.K_[this.K_.length-1].batchId:-1,[4,this.j_.nc(e)]):[3,5];case 1:return null!==(t=n.sent())?[3,2]:(0===this.K_.length&&this.nl.e_(),[3,4]);case 2:return this.ml(t),[4,this.cl()];case 3:n.sent(),n.label=4;case 4:n.label=5;case 5:return this.Pl()&&this.Vl(),[2]}}))}))},e.prototype.Al=function(){return this.J_()&&this.K_.length<10},e.prototype.gl=function(){return this.K_.length},e.prototype.ml=function(e){this.K_.push(e),this.nl.Xc()&&this.nl.I_&&this.nl.w_(e.mutations)},e.prototype.Pl=function(){return this.J_()&&!this.nl.Jc()&&this.K_.length>0},e.prototype.Vl=function(){this.nl.start()},e.prototype.rl=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.nl.m_(),[2]}))}))},e.prototype.ol=function(){var e=this;return this.j_.No(this.nl.lastStreamToken).then((function(){for(var t=0,n=e.K_;t<n.length;t++){var r=n[t];e.nl.w_(r.mutations)}})).catch(sr)},e.prototype.R_=function(e,t){var n=this,r=this.K_.shift(),i=It.from(r,e,t,this.nl.lastStreamToken);return this.El.pl(i).then((function(){return n.cl()}))},e.prototype.hl=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n=this;return i.__generator(this,(function(r){return e&&this.K_.length>0?[2,(t=this.nl.I_?this.yl(e):this.bl(e),t.then((function(){n.Pl()&&n.Vl()})))]:[2]}))}))},e.prototype.bl=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return Fe(e.code)?[2,(_t("RemoteStore","RemoteStore error before completed handshake; resetting stream token: ",this.nl.lastStreamToken),this.nl.lastStreamToken=A.xt,this.j_.No(A.xt).catch(sr))]:[2]}))}))},e.prototype.yl=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r=this;return i.__generator(this,(function(i){return Fe(n=e.code)&&n!==h.ABORTED?(t=this.K_.shift(),[2,(this.nl.t_(),this.El.vl(t.batchId,e).then((function(){return r.cl()})))]):[2]}))}))},e.prototype.Sl=function(){return new ri(this.b_)},e.prototype.X_=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.networkEnabled=!1,[4,this._l()];case 1:return e.sent(),this.Z_.set("Unknown"),[4,this.enableNetwork()];case 2:return e.sent(),[2]}}))}))},e.prototype.Dl=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.J_()?(_t("RemoteStore","RemoteStore restarting streams for new credential"),[4,this.X_()]):[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.Cl=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.isPrimary=e,e&&this.networkEnabled?[4,this.enableNetwork()]:[3,2];case 1:return t.sent(),[3,5];case 2:return e?[3,4]:[4,this._l()];case 3:t.sent(),this.Z_.set("Unknown"),t.label=4;case 4:t.label=5;case 5:return[2]}}))}))},e}();function oi(e,t){return"firestore_clients_"+e+"_"+t}function si(e,t,n){var r="firestore_mutations_"+e+"_"+n;return t.t()&&(r+="_"+t.uid),r}function li(e,t){return"firestore_targets_"+e+"_"+t}var ci=function(){function e(e,t,n,r){this.user=e,this.batchId=t,this.state=n,this.error=r}return e.Fl=function(t,n,r){var i=JSON.parse(r),a="object"==typeof i&&-1!==["pending","acknowledged","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error),o=void 0;return a&&i.error&&(a="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(o=new f(i.error.code,i.error.message)),a?new e(t,n,i.state,o):(wt("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},e.prototype.Nl=function(){var e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)},e}(),ui=function(){function e(e,t,n){this.targetId=e,this.state=t,this.error=n}return e.Fl=function(t,n){var r=JSON.parse(n),i="object"==typeof r&&-1!==["not-current","current","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error),a=void 0;return i&&r.error&&(i="string"==typeof r.error.message&&"string"==typeof r.error.code)&&(a=new f(r.error.code,r.error.message)),i?new e(t,r.state,a):(wt("SharedClientState","Failed to parse target state for ID '"+t+"': "+n),null)},e.prototype.Nl=function(){var e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)},e}(),di=function(){function e(e,t){this.clientId=e,this.activeTargetIds=t}return e.Fl=function(t,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,a=Ze(),o=0;i&&o<r.activeTargetIds.length;++o)i=R(r.activeTargetIds[o]),a=a.add(r.activeTargetIds[o]);return i?new e(t,a):(wt("SharedClientState","Failed to parse client data for instance '"+t+"': "+n),null)},e}(),hi=function(){function e(e,t){this.clientId=e,this.onlineState=t}return e.Fl=function(t){var n=JSON.parse(t);return"object"==typeof n&&-1!==["Unknown","Online","Offline"].indexOf(n.onlineState)&&"string"==typeof n.clientId?new e(n.clientId,n.onlineState):(wt("SharedClientState","Failed to parse online state: "+t),null)},e}(),fi=function(){function e(){this.activeTargetIds=Ze()}return e.prototype.kl=function(e){this.activeTargetIds=this.activeTargetIds.add(e)},e.prototype.$l=function(e){this.activeTargetIds=this.activeTargetIds.delete(e)},e.prototype.Nl=function(){var e={activeTargetIds:this.activeTargetIds.j(),updateTimeMs:Date.now()};return JSON.stringify(e)},e}(),pi=function(){function e(t,n,r,i,a){if(this.Nr=t,this.platform=n,this.persistenceKey=r,this.Ml=i,this.El=null,this.M_=null,this.vr=null,this.Ll=this.Ol.bind(this),this.xl=new C(Ct),this.Kh=!1,this.Bl=[],!e.ho(this.platform))throw new f(h.UNIMPLEMENTED,"LocalStorage is not available on this platform.");var o=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.platform.window.localStorage,this.currentUser=a,this.ql=oi(this.persistenceKey,this.Ml),this.Ul=function(e){return"firestore_sequence_number_"+e}(this.persistenceKey),this.xl=this.xl.nt(this.Ml,new fi),this.Ql=new RegExp("^firestore_clients_"+o+"_([^_]*)$"),this.Wl=new RegExp("^firestore_mutations_"+o+"_(\\d+)(?:_(.*))?$"),this.jl=new RegExp("^firestore_targets_"+o+"_(\\d+)$"),this.Kl=function(e){return"firestore_online_state_"+e}(this.persistenceKey),this.platform.window.addEventListener("storage",this.Ll)}return e.ho=function(e){return!(!e.window||null==e.window.localStorage)},e.prototype.start=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t,n,r,a,o,s,l,c,u,d,h=this;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.El.yu()];case 1:for(e=i.sent(),t=0,n=e;t<n.length;t++)(r=n[t])!==this.Ml&&(a=this.getItem(oi(this.persistenceKey,r)))&&(o=di.Fl(r,a))&&(this.xl=this.xl.nt(o.clientId,o));for(this.Gl(),(s=this.storage.getItem(this.Kl))&&(l=this.zl(s))&&this.Hl(l),c=0,u=this.Bl;c<u.length;c++)d=u[c],this.Ol(d);return this.Bl=[],this.platform.window.addEventListener("unload",(function(){return h.mu()})),this.Kh=!0,[2]}}))}))},e.prototype.Cr=function(e){this.setItem(this.Ul,JSON.stringify(e))},e.prototype.Yl=function(){return this.Jl(this.xl)},e.prototype.Xl=function(e){var t=!1;return this.xl.forEach((function(n,r){r.activeTargetIds.has(e)&&(t=!0)})),t},e.prototype.Zl=function(e){this.td(e,"pending")},e.prototype.ed=function(e,t,n){this.td(e,t,n),this.sd(e)},e.prototype.nd=function(e){var t="not-current";if(this.Xl(e)){var n=this.storage.getItem(li(this.persistenceKey,e));if(n){var r=ui.Fl(e,n);r&&(t=r.state)}}return this.rd.kl(e),this.Gl(),t},e.prototype.hd=function(e){this.rd.$l(e),this.Gl()},e.prototype.od=function(e){return this.rd.activeTargetIds.has(e)},e.prototype.ad=function(e){this.removeItem(li(this.persistenceKey,e))},e.prototype.ud=function(e,t,n){this._d(e,t,n)},e.prototype.Gu=function(e,t,n){var r=this;t.forEach((function(e){r.sd(e)})),this.currentUser=e,n.forEach((function(e){r.Zl(e)}))},e.prototype.ld=function(e){this.dd(e)},e.prototype.mu=function(){this.Kh&&(this.platform.window.removeEventListener("storage",this.Ll),this.removeItem(this.ql),this.Kh=!1)},e.prototype.getItem=function(e){var t=this.storage.getItem(e);return _t("SharedClientState","READ",e,t),t},e.prototype.setItem=function(e,t){_t("SharedClientState","SET",e,t),this.storage.setItem(e,t)},e.prototype.removeItem=function(e){_t("SharedClientState","REMOVE",e),this.storage.removeItem(e)},e.prototype.Ol=function(e){var t=this;if(e.storageArea===this.storage){if(_t("SharedClientState","EVENT",e.key,e.newValue),e.key===this.ql)return void wt("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Nr.Ih((function(){return i.__awaiter(t,void 0,void 0,(function(){var t,n,r,a,o,s;return i.__generator(this,(function(i){if(this.Kh){if(null!==e.key)if(this.Ql.test(e.key)){if(null==e.newValue)return t=this.fd(e.key),[2,this.Td(t,null)];if(n=this.Ed(e.key,e.newValue))return[2,this.Td(n.clientId,n)]}else if(this.Wl.test(e.key)){if(null!==e.newValue&&(r=this.Id(e.key,e.newValue)))return[2,this.wd(r)]}else if(this.jl.test(e.key)){if(null!==e.newValue&&(a=this.Rd(e.key,e.newValue)))return[2,this.Ad(a)]}else if(e.key===this.Kl){if(null!==e.newValue&&(o=this.zl(e.newValue)))return[2,this.Hl(o)]}else e.key===this.Ul&&(s=function(e){var t=Ht.Fr;if(null!=e)try{var n=JSON.parse(e);St("number"==typeof n),t=n}catch(e){wt("SharedClientState","Failed to read sequence number from WebStorage",e)}return t}(e.newValue))!==Ht.Fr&&this.vr(s)}else this.Bl.push(e);return[2]}))}))}))}},Object.defineProperty(e.prototype,"rd",{get:function(){return this.xl.get(this.Ml)},enumerable:!0,configurable:!0}),e.prototype.Gl=function(){this.setItem(this.ql,this.rd.Nl())},e.prototype.td=function(e,t,n){var r=new ci(this.currentUser,e,t,n),i=si(this.persistenceKey,this.currentUser,e);this.setItem(i,r.Nl())},e.prototype.sd=function(e){var t=si(this.persistenceKey,this.currentUser,e);this.removeItem(t)},e.prototype.dd=function(e){var t={clientId:this.Ml,onlineState:e};this.storage.setItem(this.Kl,JSON.stringify(t))},e.prototype._d=function(e,t,n){var r=li(this.persistenceKey,e),i=new ui(e,t,n);this.setItem(r,i.Nl())},e.prototype.fd=function(e){var t=this.Ql.exec(e);return t?t[1]:null},e.prototype.Ed=function(e,t){var n=this.fd(e);return di.Fl(n,t)},e.prototype.Id=function(e,t){var n=this.Wl.exec(e),r=Number(n[1]),i=void 0!==n[2]?n[2]:null;return ci.Fl(new d(i),r,t)},e.prototype.Rd=function(e,t){var n=this.jl.exec(e),r=Number(n[1]);return ui.Fl(r,t)},e.prototype.zl=function(e){return hi.Fl(e)},e.prototype.wd=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return e.user.uid===this.currentUser.uid?[2,this.El.md(e.batchId,e.state,e.error)]:(_t("SharedClientState","Ignoring mutation for non-active user "+e.user.uid),[2])}))}))},e.prototype.Ad=function(e){return this.El.Pd(e.targetId,e.state,e.error)},e.prototype.Td=function(e,t){var n=this,r=t?this.xl.nt(e,t):this.xl.remove(e),i=this.Jl(this.xl),a=this.Jl(r),o=[],s=[];return a.forEach((function(e){i.has(e)||o.push(e)})),i.forEach((function(e){a.has(e)||s.push(e)})),this.El.Vd(o,s).then((function(){n.xl=r}))},e.prototype.Hl=function(e){this.xl.get(e.clientId)&&this.M_(e.onlineState)},e.prototype.Jl=function(e){var t=Ze();return e.forEach((function(e,n){t=t.kt(n.activeTargetIds)})),t},e}(),mi=function(){function e(){this.gd=new fi,this.pd={},this.El=null,this.M_=null,this.vr=null}return e.prototype.Zl=function(e){},e.prototype.ed=function(e,t,n){},e.prototype.nd=function(e){return this.gd.kl(e),this.pd[e]||"not-current"},e.prototype.ud=function(e,t,n){this.pd[e]=t},e.prototype.hd=function(e){this.gd.$l(e)},e.prototype.od=function(e){return this.gd.activeTargetIds.has(e)},e.prototype.ad=function(e){delete this.pd[e]},e.prototype.Yl=function(){return this.gd.activeTargetIds},e.prototype.Xl=function(e){return this.gd.activeTargetIds.has(e)},e.prototype.start=function(){return this.gd=new fi,Promise.resolve()},e.prototype.Gu=function(e,t,n){},e.prototype.ld=function(e){},e.prototype.mu=function(){},e.prototype.Cr=function(e){},e}(),vi=function(e){this.key=e},gi=function(e){this.key=e},yi=function(){function e(e,t){this.query=e,this.yd=t,this.bd=null,this.ms=!1,this.vd=Xe(),this._s=Xe(),this.Sd=new et(e.Be.bind(e))}return Object.defineProperty(e.prototype,"Dd",{get:function(){return this.yd},enumerable:!0,configurable:!0}),e.prototype.Cd=function(e,t){var n=this,r=t?t.Fd:new tt,i=t?t.Sd:this.Sd,a=t?t._s:this._s,o=i,s=!1,l=this.query.je()&&i.size===this.query.limit?i.last():null,c=this.query.Ke()&&i.size===this.query.limit?i.first():null;if(e.ut((function(e,t){var u=i.get(e),d=t instanceof _e?t:null;d&&(d=n.query.matches(d)?d:null);var h=!!u&&n._s.has(u.key),f=!!d&&(d.te||n._s.has(d.key)&&d.hasCommittedMutations),p=!1;u&&d?u.data().isEqual(d.data())?h!==f&&(r.track({type:3,doc:d}),p=!0):n.Nd(u,d)||(r.track({type:2,doc:d}),p=!0,(l&&n.query.Be(d,l)>0||c&&n.query.Be(d,c)<0)&&(s=!0)):!u&&d?(r.track({type:0,doc:d}),p=!0):u&&!d&&(r.track({type:1,doc:u}),p=!0,(l||c)&&(s=!0)),p&&(d?(o=o.add(d),a=f?a.add(e):a.delete(e)):(o=o.delete(e),a=a.delete(e)))})),this.query.je()||this.query.Ke())for(;o.size>this.query.limit;){var u=this.query.je()?o.last():o.first();o=o.delete(u.key),a=a.delete(u.key),r.track({type:1,doc:u})}return{Sd:o,Fd:r,kd:s,_s:a}},e.prototype.Nd=function(e,t){return e.te&&t.hasCommittedMutations&&!t.te},e.prototype.ir=function(e,t,n){var r=this,i=this.Sd;this.Sd=e.Sd,this._s=e._s;var a=e.Fd.us();a.sort((function(e,t){return function(e,t){var n=function(e){switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Et()}};return n(e)-n(t)}(e.type,t.type)||r.query.Be(e.doc,t.doc)})),this.$d(n);var o=t?this.Md():[],s=0===this.vd.size&&this.ms?1:0,l=s!==this.bd;return this.bd=s,0!==a.length||l?{snapshot:new nt(this.query,e.Sd,i,a,e._s,0===s,l,!1),Ld:o}:{Ld:o}},e.prototype.Od=function(e){return this.ms&&"Offline"===e?(this.ms=!1,this.ir({Sd:this.Sd,Fd:new tt,_s:this._s,kd:!1},!1)):{Ld:[]}},e.prototype.xd=function(e){return!this.yd.has(e)&&!!this.Sd.has(e)&&!this.Sd.get(e).te},e.prototype.$d=function(e){var t=this;e&&(e.Ps.forEach((function(e){return t.yd=t.yd.add(e)})),e.Vs.forEach((function(e){})),e.gs.forEach((function(e){return t.yd=t.yd.delete(e)})),this.ms=e.ms)},e.prototype.Md=function(){var e=this;if(!this.ms)return[];var t=this.vd;this.vd=Xe(),this.Sd.forEach((function(t){e.xd(t.key)&&(e.vd=e.vd.add(t.key))}));var n=[];return t.forEach((function(t){e.vd.has(t)||n.push(new gi(t))})),this.vd.forEach((function(e){t.has(e)||n.push(new vi(e))})),n},e.prototype.Bd=function(e){this.yd=e.uc,this.vd=Xe();var t=this.Cd(e.documents);return this.ir(t,!0)},e.prototype.qd=function(){return nt.fs(this.query,this.Sd,this._s,0===this.bd)},e}(),bi=function(){function e(e,t,n,r){this.jr=e,this.Ud=t,this.updateFunction=n,this.zr=r,this.Qd=5,this.oh=new zt(this.jr,"transaction_retry")}return e.prototype.Wd=function(){this.jd()},e.prototype.jd=function(){var e=this;this.oh.Ur((function(){return i.__awaiter(e,void 0,void 0,(function(){var e,t,n=this;return i.__generator(this,(function(r){return e=this.Ud.Sl(),(t=this.Kd(e))&&t.then((function(t){n.jr.Zr((function(){return e.commit().then((function(){n.zr.resolve(t)})).catch((function(e){n.Gd(e)}))}))})).catch((function(e){n.Gd(e)})),[2]}))}))}))},e.prototype.Kd=function(e){try{var t=this.updateFunction(e);return!D(t)&&t.catch&&t.then?t:(this.zr.reject(Error("Transaction callback must return a Promise")),null)}catch(e){return this.zr.reject(e),null}},e.prototype.Gd=function(e){var t=this;this.Qd>0&&this.zd(e)?(this.Qd-=1,this.jr.Zr((function(){return t.jd(),Promise.resolve()}))):this.zr.reject(e)},e.prototype.zd=function(e){if("FirebaseError"===e.name){var t=e.code;return"aborted"===t||"failed-precondition"===t||!Fe(t)}return!1},e}(),_i=function(e,t,n){this.query=e,this.targetId=t,this.view=n},wi=function(e){this.key=e,this.Hd=!1},ki=function(){function e(e,t,n,r,i){this.j_=e,this.Ud=t,this.Yd=n,this.currentUser=r,this.Jd=i,this.Xd=null,this.Zd=new Pt((function(e){return e.canonicalId()})),this.tf=new Map,this.ef=[],this.sf=new C(T.k),this.if=new Map,this.nf=new At,this.rf={},this.hf=new Map,this.af=yn.Jo(),this.onlineState="Unknown"}return Object.defineProperty(e.prototype,"uf",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.subscribe=function(e){this.Xd=e},e.prototype.listen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,a,o;return i.__generator(this,(function(i){switch(i.label){case 0:return this.cf("listen()"),(r=this.Zd.get(e))?(t=r.targetId,this.Yd.nd(t),n=r.view.qd(),[3,4]):[3,1];case 1:return[4,this.j_.hc(e.xe())];case 2:return a=i.sent(),o=this.Yd.nd(a.targetId),t=a.targetId,[4,this._f(e,t,"current"===o)];case 3:n=i.sent(),this.uf&&this.Ud.listen(a),i.label=4;case 4:return[2,(this.Xd.d_([n]),t)]}}))}))},e.prototype._f=function(e,t,n){return i.__awaiter(this,void 0,void 0,(function(){var r,a,o,s,l,c;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.j_.ac(e,!0)];case 1:return r=i.sent(),a=new yi(e,r.uc),o=a.Cd(r.documents),s=it.As(t,n&&"Offline"!==this.onlineState),l=a.ir(o,this.uf,s),this.lf(t,l.Ld),c=new _i(e,t,a),[2,(this.Zd.set(e,c),this.tf.has(t)?this.tf.get(t).push(e):this.tf.set(t,[e]),l.snapshot)]}}))}))},e.prototype.fl=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r=this;return i.__generator(this,(function(i){switch(i.label){case 0:return this.cf("unlisten()"),t=this.Zd.get(e),(n=this.tf.get(t.targetId)).length>1?[2,(this.tf.set(t.targetId,n.filter((function(t){return!t.isEqual(e)}))),void this.Zd.delete(e))]:this.uf?(this.Yd.hd(t.targetId),this.Yd.Xl(t.targetId)?[3,2]:[4,this.j_.oc(t.targetId,!1).then((function(){r.Yd.ad(t.targetId),r.Ud.fl(t.targetId),r.df(t.targetId)})).catch(sr)]):[3,3];case 1:i.sent(),i.label=2;case 2:return[3,5];case 3:return this.df(t.targetId),[4,this.j_.oc(t.targetId,!0)];case 4:i.sent(),i.label=5;case 5:return[2]}}))}))},e.prototype.write=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n,r;return i.__generator(this,(function(i){switch(i.label){case 0:this.cf("write()"),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.j_.Ju(e)];case 2:return n=i.sent(),[3,4];case 3:if("IndexedDbTransactionError"===(r=i.sent()).name)return[2,(wt("SyncEngine","Dropping write that cannot be persisted: "+r),void t.reject(new f(h.UNAVAILABLE,"Failed to persist write: "+r)))];throw r;case 4:return this.Yd.Zl(n.batchId),this.ff(n.batchId,t),[4,this.Tf(n.zn)];case 5:return i.sent(),[4,this.Ud.cl()];case 6:return i.sent(),[2]}}))}))},e.prototype.runTransaction=function(e,t,n){new bi(e,this.Ud,t,n).Wd()},e.prototype.tc=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:this.cf("applyRemoteEvent()"),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.j_.tc(e)];case 2:return t=r.sent(),e.Ts.forEach((function(e,t){var r=n.if.get(t);r&&(St(e.Ps.size+e.Vs.size+e.gs.size<=1),e.Ps.size>0?r.Hd=!0:e.Vs.size>0?St(r.Hd):e.gs.size>0&&(St(r.Hd),r.Hd=!1))})),[4,this.Tf(t,e)];case 3:return r.sent(),[3,6];case 4:return[4,sr(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},e.prototype.Od=function(e,t){this.cf("applyOnlineStateChange()");var n=[];this.Zd.forEach((function(t,r){var i=r.view.Od(e);i.snapshot&&n.push(i.snapshot)})),this.Xd.Ef(e),this.Xd.d_(n),this.onlineState=e},e.prototype.Rl=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n,r,a,o,s,l=this;return i.__generator(this,(function(i){switch(i.label){case 0:return this.cf("rejectListens()"),this.Yd.ud(e,"rejected",t),n=this.if.get(e),(r=n&&n.key)?(this.sf=this.sf.remove(r),this.if.delete(e),this.If(),a=(a=new C(T.k)).nt(r,new we(r,_.S())),o=Xe().add(r),s=new rt(_.MIN,new Map,new $(Ct),a,o),[2,this.tc(s)]):[4,this.j_.oc(e,!1).then((function(){return l.df(e,t)})).catch(sr)];case 1:return i.sent(),[2]}}))}))},e.prototype.pl=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(r){switch(r.label){case 0:this.cf("applySuccessfulWrite()"),t=e.batch.batchId,this.wf(t,null),this.Rf(t),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.j_.Do(e)];case 2:return n=r.sent(),this.Yd.ed(t,"acknowledged"),[4,this.Tf(n)];case 3:return r.sent(),[3,6];case 4:return[4,sr(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},e.prototype.vl=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(r){switch(r.label){case 0:this.cf("rejectFailedWrite()"),this.wf(e,t),this.Rf(e),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.j_.Zu(e)];case 2:return n=r.sent(),this.Yd.ed(e,"rejected",t),[4,this.Tf(n)];case 3:return r.sent(),[3,6];case 4:return[4,sr(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},e.prototype.Af=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(r){switch(r.label){case 0:return this.Ud.J_()||_t("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),[4,this.j_.qo()];case 1:return-1===(t=r.sent())?[2,void e.resolve()]:((n=this.hf.get(t)||[]).push(e),this.hf.set(t,n),[2])}}))}))},e.prototype.Rf=function(e){(this.hf.get(e)||[]).forEach((function(e){e.resolve()})),this.hf.delete(e)},e.prototype.mf=function(e){this.hf.forEach((function(t){t.forEach((function(t){t.reject(new f(h.CANCELLED,e))}))})),this.hf.clear()},e.prototype.ff=function(e,t){var n=this.rf[this.currentUser.s()];n||(n=new C(Ct)),n=n.nt(e,t),this.rf[this.currentUser.s()]=n},e.prototype.wf=function(e,t){var n=this.rf[this.currentUser.s()];if(n){var r=n.get(e);r&&(t?r.reject(t):r.resolve(),n=n.remove(e)),this.rf[this.currentUser.s()]=n}},e.prototype.df=function(e,t){var n=this;void 0===t&&(t=null),this.Yd.hd(e);for(var r=0,i=this.tf.get(e);r<i.length;r++){var a=i[r];this.Zd.delete(a),t&&this.Xd.Pf(a,t)}if(this.tf.delete(e),this.uf){var o=this.nf.$n(e);this.nf.Nn(e),o.forEach((function(e){n.nf.Mn(e)||n.Vf(e)}))}},e.prototype.Vf=function(e){var t=this.sf.get(e);null!==t&&(this.Ud.fl(t),this.sf=this.sf.remove(e),this.if.delete(t),this.If())},e.prototype.lf=function(e,t){for(var n=0,r=t;n<r.length;n++){var i=r[n];i instanceof vi?(this.nf.vn(i.key,e),this.gf(i)):i instanceof gi?(_t("SyncEngine","Document no longer in limbo: "+i.key),this.nf.Dn(i.key,e),this.nf.Mn(i.key)||this.Vf(i.key)):Et()}},e.prototype.gf=function(e){var t=e.key;this.sf.get(t)||(_t("SyncEngine","New document in limbo: "+t),this.ef.push(t),this.If())},e.prototype.If=function(){for(;this.ef.length>0&&this.sf.size<this.Jd;){var e=this.ef.shift(),t=this.af.next();this.if.set(t,new wi(e)),this.sf=this.sf.nt(e,t),this.Ud.listen(new Ye(Se.ve(e.path).xe(),t,2,Ht.Fr))}},e.prototype.pf=function(){return this.sf},e.prototype.yf=function(){return this.ef},e.prototype.Tf=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n,r,a,o=this;return i.__generator(this,(function(i){switch(i.label){case 0:return n=[],r=[],a=[],this.Zd.forEach((function(i,s){a.push(Promise.resolve().then((function(){var t=s.view.Cd(e);return t.kd?o.j_.ac(s.query,!1).then((function(e){var n=e.documents;return s.view.Cd(n,t)})):t})).then((function(e){var i=t&&t.Ts.get(s.targetId),a=s.view.ir(e,o.uf,i);if(o.lf(s.targetId,a.Ld),a.snapshot){o.uf&&o.Yd.ud(s.targetId,a.snapshot.fromCache?"not-current":"current"),n.push(a.snapshot);var l=Ft.br(s.targetId,a.snapshot);r.push(l)}})))})),[4,Promise.all(a)];case 1:return i.sent(),this.Xd.d_(n),[4,this.j_.ic(r)];case 2:return i.sent(),[2]}}))}))},e.prototype.cf=function(e){},e.prototype.Dl=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(r){switch(r.label){case 0:return t=!this.currentUser.isEqual(e),this.currentUser=e,t?(this.mf("'waitForPendingWrites' promise is rejected due to a user change."),[4,this.j_.Gu(e)]):[3,3];case 1:return n=r.sent(),this.Yd.Gu(e,n.Hu,n.Yu),[4,this.Tf(n.zu)];case 2:r.sent(),r.label=3;case 3:return[4,this.Ud.Dl()];case 4:return r.sent(),[2]}}))}))},e.prototype.enableNetwork=function(){return this.Ud.enableNetwork()},e.prototype.disableNetwork=function(){return this.Ud.disableNetwork()},e.prototype.ai=function(e){var t=this.if.get(e);if(t&&t.Hd)return Xe().add(t.key);var n=Xe(),r=this.tf.get(e);if(!r)return n;for(var i=0,a=r;i<a.length;i++){var o=a[i],s=this.Zd.get(o);n=n.kt(s.view.Dd)}return n},e}(),Ei=function(e){function t(t,n,r,i,a){var o=this;return(o=e.call(this,t,n,r,i,a)||this).j_=t,o.isPrimary=void 0,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"uf",{get:function(){return!0===this.isPrimary},enumerable:!0,configurable:!0}),t.prototype.enableNetwork=function(){return this.j_.uu(!0),e.prototype.enableNetwork.call(this)},t.prototype.disableNetwork=function(){return this.j_.uu(!1),e.prototype.disableNetwork.call(this)},t.prototype.bf=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(r){switch(r.label){case 0:return[4,this.j_.ac(e.query,!0)];case 1:return t=r.sent(),n=e.view.Bd(t),[2,(this.isPrimary&&this.lf(e.targetId,n.Ld),n)]}}))}))},t.prototype.Od=function(t,n){this.uf&&0===n&&(e.prototype.Od.call(this,t,n),this.Yd.ld(t)),this.uf||1!==n||e.prototype.Od.call(this,t,n)},t.prototype.md=function(e,t,n){return i.__awaiter(this,void 0,void 0,(function(){var r;return i.__generator(this,(function(i){switch(i.label){case 0:return this.cf("applyBatchState()"),[4,this.j_.lc(e)];case 1:return null===(r=i.sent())?[3,6]:"pending"!==t?[3,3]:[4,this.Ud.cl()];case 2:return i.sent(),[3,4];case 3:"acknowledged"===t||"rejected"===t?(this.wf(e,n||null),this.j_.dc(e)):Et(),i.label=4;case 4:return[4,this.Tf(r)];case 5:return i.sent(),[3,7];case 6:_t("SyncEngine","Cannot apply mutation batch with id: "+e),i.label=7;case 7:return[2]}}))}))},t.prototype.Cl=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,a,o,s,l,c=this;return i.__generator(this,(function(i){switch(i.label){case 0:return!0!==e||!0===this.isPrimary?[3,3]:(this.isPrimary=!0,[4,this.Ud.Cl(!0)]);case 1:return i.sent(),t=this.Yd.Yl(),[4,this.vf(t.j())];case 2:for(n=i.sent(),r=0,a=n;r<a.length;r++)o=a[r],this.Ud.listen(o);return[3,7];case 3:return!1!==e||!1===this.isPrimary?[3,7]:(this.isPrimary=!1,s=[],l=Promise.resolve(),this.tf.forEach((function(e,t){c.Yd.od(t)?s.push(t):l=l.then((function(){return c.df(t),c.j_.oc(t,!0)})),c.Ud.fl(t)})),[4,l]);case 4:return i.sent(),[4,this.vf(s)];case 5:return i.sent(),this.Sf(),[4,this.Ud.Cl(!1)];case 6:i.sent(),i.label=7;case 7:return[2]}}))}))},t.prototype.Sf=function(){var e=this;this.if.forEach((function(t,n){e.Ud.fl(n)})),this.nf.kn(),this.if=new Map,this.sf=new C(T.k)},t.prototype.vf=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,a,o,s,l,c,u,d,h,f,p;return i.__generator(this,(function(i){switch(i.label){case 0:t=[],n=[],r=0,a=e,i.label=1;case 1:return r<a.length?(o=a[r],s=void 0,(l=this.tf.get(o))&&0!==l.length?[4,this.j_.oc(o,!0)]:[3,8]):[3,14];case 2:return i.sent(),[4,this.j_.hc(l[0].xe())];case 3:s=i.sent(),c=0,u=l,i.label=4;case 4:return c<u.length?(d=u[c],h=this.Zd.get(d),[4,this.bf(h)]):[3,7];case 5:(f=i.sent()).snapshot&&n.push(f.snapshot),i.label=6;case 6:return c++,[3,4];case 7:return[3,12];case 8:return[4,this.j_.fc(o)];case 9:return p=i.sent(),[4,this.j_.hc(p)];case 10:return s=i.sent(),[4,this._f(this.Df(p),o,!1)];case 11:i.sent(),i.label=12;case 12:t.push(s),i.label=13;case 13:return r++,[3,1];case 14:return[2,(this.Xd.d_(n),t)]}}))}))},t.prototype.Df=function(e){return new Se(e.path,e.collectionGroup,e.orderBy,e.filters,e.limit,"F",e.startAt,e.endAt)},t.prototype.yu=function(){return this.j_.yu()},t.prototype.Pd=function(e,t,n){return i.__awaiter(this,void 0,void 0,(function(){var r,a;return i.__generator(this,(function(i){switch(i.label){case 0:return this.isPrimary?(_t("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!this.tf.has(e))return[3,8];switch(t){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,this.j_.ba()];case 3:return r=i.sent(),a=rt.Rs(e,"current"===t),[4,this.Tf(r,a)];case 4:return i.sent(),[3,8];case 5:return[4,this.j_.oc(e,!0)];case 6:return i.sent(),this.df(e,n),[3,8];case 7:Et(),i.label=8;case 8:return[2]}}))}))},t.prototype.Vd=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n,r,a,o,s,l,c,u,d,h,f=this;return i.__generator(this,(function(p){switch(p.label){case 0:if(!this.isPrimary)return[3,10];n=0,r=e,p.label=1;case 1:return n<r.length?(a=r[n],this.tf.has(a)?(_t("SyncEngine","Adding an already active target "+a),[3,5]):[4,this.j_.fc(a)]):[3,6];case 2:return o=p.sent(),[4,this.j_.hc(o)];case 3:return s=p.sent(),[4,this._f(this.Df(o),s.targetId,!1)];case 4:p.sent(),this.Ud.listen(s),p.label=5;case 5:return n++,[3,1];case 6:l=function(e){return i.__generator(this,(function(t){switch(t.label){case 0:return c.tf.has(e)?[4,c.j_.oc(e,!1).then((function(){f.Ud.fl(e),f.df(e)})).catch(sr)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))},c=this,u=0,d=t,p.label=7;case 7:return u<d.length?(h=d[u],[5,l(h)]):[3,10];case 8:p.sent(),p.label=9;case 9:return u++,[3,7];case 10:return[2]}}))}))},t}(ki),Si=function(){this.Cf=null,this.targetId=0,this.Ff=[]},Ti=function(){function e(e){this.El=e,this.Nf=new Pt((function(e){return e.canonicalId()})),this.onlineState="Unknown",this.kf=new Set,this.El.subscribe(this)}return e.prototype.listen=function(e){var t=e.query,n=!1,r=this.Nf.get(t);return r||(n=!0,r=new Si,this.Nf.set(t,r)),r.Ff.push(e),e.Od(this.onlineState),r.Cf&&e.$f(r.Cf)&&this.Mf(),n?this.El.listen(t).then((function(e){return r.targetId=e,e})):Promise.resolve(r.targetId)},e.prototype.fl=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,a;return i.__generator(this,(function(i){return t=e.query,n=!1,(r=this.Nf.get(t))&&(a=r.Ff.indexOf(e))>=0&&(r.Ff.splice(a,1),n=0===r.Ff.length),n?[2,(this.Nf.delete(t),this.El.fl(t))]:[2]}))}))},e.prototype.d_=function(e){for(var t=!1,n=0,r=e;n<r.length;n++){var i=r[n],a=i.query,o=this.Nf.get(a);if(o){for(var s=0,l=o.Ff;s<l.length;s++)l[s].$f(i)&&(t=!0);o.Cf=i}}t&&this.Mf()},e.prototype.Pf=function(e,t){var n=this.Nf.get(e);if(n)for(var r=0,i=n.Ff;r<i.length;r++)i[r].onError(t);this.Nf.delete(e)},e.prototype.Ef=function(e){this.onlineState=e;var t=!1;this.Nf.forEach((function(n,r){for(var i=0,a=r.Ff;i<a.length;i++)a[i].Od(e)&&(t=!0)})),t&&this.Mf()},e.prototype.Lf=function(e){this.kf.add(e),e.next()},e.prototype.Of=function(e){this.kf.delete(e)},e.prototype.Mf=function(){this.kf.forEach((function(e){e.next()}))},e}(),Ci=function(){function e(e,t,n){this.query=e,this.xf=t,this.Bf=!1,this.qf=null,this.onlineState="Unknown",this.options=n||{}}return e.prototype.$f=function(e){if(!this.options.includeMetadataChanges){for(var t=[],n=0,r=e.docChanges;n<r.length;n++){var i=r[n];3!==i.type&&t.push(i)}e=new nt(e.query,e.docs,e.cs,t,e._s,e.fromCache,e.ls,!0)}var a=!1;return this.Bf?this.Uf(e)&&(this.xf.next(e),a=!0):this.Qf(e,this.onlineState)&&(this.Wf(e),a=!0),this.qf=e,a},e.prototype.onError=function(e){this.xf.error(e)},e.prototype.Od=function(e){this.onlineState=e;var t=!1;return this.qf&&!this.Bf&&this.Qf(this.qf,e)&&(this.Wf(this.qf),t=!0),t},e.prototype.Qf=function(e,t){if(!e.fromCache)return!0;var n="Offline"!==t;return!(this.options.jf&&n||e.docs.q()&&"Offline"!==t)},e.prototype.Uf=function(e){if(e.docChanges.length>0)return!0;var t=this.qf&&this.qf.hasPendingWrites!==e.hasPendingWrites;return!(!e.ls&&!t)&&!0===this.options.includeMetadataChanges},e.prototype.Wf=function(e){e=nt.fs(e.query,e.docs,e._s,e.fromCache),this.Bf=!0,this.xf.next(e)},e}(),Mi=function(){function e(){}return e.prototype.Ku=function(e){this.Kf=e},e.prototype.wr=function(e,t,n,r){var i=this;return t.Oe()||n.isEqual(_.MIN)?this.Gf(e,t):this.Kf.Tr(e,r).next((function(a){var s=i.zf(t,a);return(t.je()||t.Ke())&&i.kd(t.ge,s,r,n)?i.Gf(e,t):(yt()<=o.LogLevel.DEBUG&&_t("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),t.toString()),i.Kf.wr(e,t,n).next((function(e){return s.forEach((function(t){e=e.nt(t.key,t)})),e})))}))},e.prototype.zf=function(e,t){var n=new $((function(t,n){return e.Be(t,n)}));return t.forEach((function(t,r){r instanceof _e&&e.matches(r)&&(n=n.add(r))})),n},e.prototype.kd=function(e,t,n,r){if(n.size!==t.size)return!0;var i="F"===e?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.D(r)>0)},e.prototype.Gf=function(e,t){return yt()<=o.LogLevel.DEBUG&&_t("IndexFreeQueryEngine","Using full collection scan to execute query: %s",t.toString()),this.Kf.wr(e,t,_.MIN)},e}(),xi=function(){function e(e,t){this.ur=e,this.yo=t,this.ar=[],this.Hf=1,this.lastStreamToken=A.xt,this.Yf=new $(Dt.Ie)}return e.prototype.So=function(e){return Nt.resolve(0===this.ar.length)},e.prototype.Do=function(e,t,n){var r=t.batchId,i=this.Jf(r,"acknowledged");return St(0===i),this.ar[i],this.lastStreamToken=n,Nt.resolve()},e.prototype.Fo=function(e){return Nt.resolve(this.lastStreamToken)},e.prototype.No=function(e,t){return this.lastStreamToken=t,Nt.resolve()},e.prototype.ko=function(e,t,n,r){var i=this.Hf;this.Hf++,this.ar.length>0&&this.ar[this.ar.length-1];var a=new Ot(i,t,n,r);this.ar.push(a);for(var o=0,s=r;o<s.length;o++){var l=s[o];this.Yf=this.Yf.add(new Dt(l.key,i)),this.ur.Mo(e,l.key.path.L())}return Nt.resolve(a)},e.prototype.Lo=function(e,t){return Nt.resolve(this.Xf(t))},e.prototype.Bo=function(e,t){var n=t+1,r=this.Zf(n),i=r<0?0:r;return Nt.resolve(this.ar.length>i?this.ar[i]:null)},e.prototype.qo=function(){return Nt.resolve(0===this.ar.length?-1:this.Hf-1)},e.prototype.Uo=function(e){return Nt.resolve(this.ar.slice())},e.prototype._r=function(e,t){var n=this,r=new Dt(t,0),i=new Dt(t,Number.POSITIVE_INFINITY),a=[];return this.Yf.Ct([r,i],(function(e){var t=n.Xf(e.Ln);a.push(t)})),Nt.resolve(a)},e.prototype.Ir=function(e,t){var n=this,r=new $(Ct);return t.forEach((function(e){var t=new Dt(e,0),i=new Dt(e,Number.POSITIVE_INFINITY);n.Yf.Ct([t,i],(function(e){r=r.add(e.Ln)}))})),Nt.resolve(this.tT(r))},e.prototype.Vr=function(e,t){var n=t.path,r=n.length+1,i=n;T.st(i)||(i=i.child(""));var a=new Dt(new T(i),0),o=new $(Ct);return this.Yf.Ft((function(e){var t=e.key.path;return!!n.U(t)&&(t.length===r&&(o=o.add(e.Ln)),!0)}),a),Nt.resolve(this.tT(o))},e.prototype.tT=function(e){var t=this,n=[];return e.forEach((function(e){var r=t.Xf(e);null!==r&&n.push(r)})),n},e.prototype.Wo=function(e,t){var n=this;St(0===this.Jf(t.batchId,"removed")),this.ar.shift();var r=this.Yf;return Nt.forEach(t.mutations,(function(i){var a=new Dt(i.key,t.batchId);return r=r.delete(a),n.yo.Go(e,i.key)})).next((function(){n.Yf=r}))},e.prototype.Ko=function(e){},e.prototype.Mn=function(e,t){var n=new Dt(t,0),r=this.Yf.Nt(n);return Nt.resolve(t.isEqual(r&&r.key))},e.prototype.zo=function(e){return this.ar.length,Nt.resolve()},e.prototype.Jf=function(e,t){return this.Zf(e)},e.prototype.Zf=function(e){return 0===this.ar.length?0:e-this.ar[0].batchId},e.prototype.Xf=function(e){var t=this.Zf(e);return t<0||t>=this.ar.length?null:this.ar[t]},e}(),$i=function(){function e(e,t){this.ur=e,this.eT=t,this.docs=new C(T.k),this.size=0}return e.prototype.Jn=function(e,t,n){var r=t.key,i=this.docs.get(r),a=i?i.size:0,o=this.eT(t);return this.docs=this.docs.nt(r,{Aa:t,size:o,readTime:n}),this.size+=o-a,this.ur.Mo(e,r.path.L())},e.prototype.Zn=function(e){var t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)},e.prototype.tr=function(e,t){var n=this.docs.get(t);return Nt.resolve(n?n.Aa:null)},e.prototype.getEntries=function(e,t){var n=this,r=Ve();return t.forEach((function(e){var t=n.docs.get(e);r=r.nt(e,t?t.Aa:null)})),Nt.resolve(r)},e.prototype.wr=function(e,t,n){for(var r=We(),i=new T(t.path.child("")),a=this.docs.lt(i);a.wt();){var o=a.It(),s=o.key,l=o.value,c=l.Aa,u=l.readTime;if(!t.path.U(s.path))break;u.D(n)<=0||c instanceof _e&&t.matches(c)&&(r=r.nt(c.key,c))}return Nt.resolve(r)},e.prototype.sT=function(e,t){return Nt.forEach(this.docs,(function(e){return t(e)}))},e.prototype.Ca=function(t){return new e.Fa(this)},e.prototype.ka=function(e){return Nt.resolve(this.size)},e}();$i.Fa=function(e){function t(t){var n=this;return(n=e.call(this)||this).$a=t,n}return i.__extends(t,e),t.prototype.ir=function(e){var t=this,n=[];return this.zn.forEach((function(r,i){i?n.push(t.$a.Jn(e,i,t.readTime)):t.$a.Zn(r)})),Nt.Kn(n)},t.prototype.er=function(e,t){return this.$a.tr(e,t)},t.prototype.sr=function(e,t){return this.$a.getEntries(e,t)},t}(Rt);var Li=function(){function e(e){this.persistence=e,this.iT=new Pt((function(e){return e.canonicalId()})),this.lastRemoteSnapshotVersion=_.MIN,this.highestTargetId=0,this.nT=0,this.rT=new At,this.targetCount=0,this.hT=yn.Yo()}return e.prototype.Xs=function(e,t){return this.iT.forEach((function(e,n){return t(n)})),Nt.resolve()},e.prototype.ea=function(e){return Nt.resolve(this.lastRemoteSnapshotVersion)},e.prototype.sa=function(e){return Nt.resolve(this.nT)},e.prototype.Xo=function(e){return this.highestTargetId=this.hT.next(),Nt.resolve(this.highestTargetId)},e.prototype.ia=function(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.nT&&(this.nT=t),Nt.resolve()},e.prototype.ra=function(e){this.iT.set(e.target,e);var t=e.targetId;t>this.highestTargetId&&(this.hT=new yn(t),this.highestTargetId=t),e.sequenceNumber>this.nT&&(this.nT=e.sequenceNumber)},e.prototype.na=function(e,t){return this.ra(t),this.targetCount+=1,Nt.resolve()},e.prototype.oa=function(e,t){return this.ra(t),Nt.resolve()},e.prototype.aa=function(e,t){return this.iT.delete(t.target),this.rT.Nn(t.targetId),this.targetCount-=1,Nt.resolve()},e.prototype.Zh=function(e,t,n){var r=this,i=0,a=[];return this.iT.forEach((function(o,s){s.sequenceNumber<=t&&null===n.get(s.targetId)&&(r.iT.delete(o),a.push(r.ua(e,s.targetId)),i++)})),Nt.Kn(a).next((function(){return i}))},e.prototype.la=function(e){return Nt.resolve(this.targetCount)},e.prototype.da=function(e,t){var n=this.iT.get(t)||null;return Nt.resolve(n)},e.prototype.fa=function(e,t,n){this.rT.Sn(t,n);var r=this.persistence.yo,i=[];return r&&t.forEach((function(t){i.push(r.vn(e,t))})),Nt.Kn(i)},e.prototype.Ta=function(e,t,n){this.rT.Fn(t,n);var r=this.persistence.yo,i=[];return r&&t.forEach((function(t){i.push(r.Dn(e,t))})),Nt.Kn(i)},e.prototype.ua=function(e,t){return this.rT.Nn(t),Nt.resolve()},e.prototype.Ea=function(e,t){var n=this.rT.$n(t);return Nt.resolve(n)},e.prototype.Mn=function(e,t){return Nt.resolve(this.rT.Mn(t))},e}(),Pi=function(){function e(e){var t=this;this.oT={},this.hu=new Ht(0),this.ja=!1,this.ja=!0,this.yo=e(this),this.Za=new Li(this),this.ur=new $n,this.or=new $i(this.ur,(function(e){return t.yo.aT(e)}))}return e.prototype.start=function(){return Promise.resolve()},e.prototype.mu=function(){return this.ja=!1,Promise.resolve()},Object.defineProperty(e.prototype,"Kh",{get:function(){return this.ja},enumerable:!0,configurable:!0}),e.prototype.au=function(){},e.prototype.Du=function(){return this.ur},e.prototype.bu=function(e){var t=this.oT[e.s()];return t||(t=new xi(this.ur,this.yo),this.oT[e.s()]=t),t},e.prototype.vu=function(){return this.Za},e.prototype.Su=function(){return this.or},e.prototype.runTransaction=function(e,t,n){var r=this;_t("MemoryPersistence","Starting transaction:",e);var i=new Oi(this.hu.next());return this.yo.uT(),n(i).next((function(e){return r.yo.cT(i).next((function(){return e}))})).Wn().then((function(e){return i.hr(),e}))},e.prototype._T=function(e,t){return Nt.Gn(Object.values(this.oT).map((function(n){return function(){return n.Mn(e,t)}})))},e}(),Oi=function(e){function t(t){var n=this;return(n=e.call(this)||this).Qa=t,n}return i.__extends(t,e),t}(Yt),Ii=function(){function e(e){this.persistence=e,this.Nu=null,this.lT=null}return e.dT=function(t){return new e(t)},Object.defineProperty(e.prototype,"fT",{get:function(){if(this.lT)return this.lT;throw Et()},enumerable:!0,configurable:!0}),e.prototype.Mu=function(e){this.Nu=e},e.prototype.vn=function(e,t){return this.fT.delete(t),Nt.resolve()},e.prototype.Dn=function(e,t){return this.fT.add(t),Nt.resolve()},e.prototype.Go=function(e,t){return this.fT.add(t),Nt.resolve()},e.prototype.removeTarget=function(e,t){var n=this,r=this.persistence.vu();return r.Ea(e,t.targetId).next((function(e){e.forEach((function(e){return n.fT.add(e)}))})).next((function(){return r.aa(e,t)}))},e.prototype.uT=function(){this.lT=new Set},e.prototype.cT=function(e){var t=this,n=this.persistence.Su().Ca();return Nt.forEach(this.fT,(function(r){return t.TT(e,r).next((function(e){e||n.Zn(r)}))})).next((function(){return t.lT=null,n.apply(e)}))},e.prototype.Ou=function(e,t){var n=this;return this.TT(e,t).next((function(e){e?n.fT.delete(t):n.fT.add(t)}))},e.prototype.aT=function(e){return 0},e.prototype.TT=function(e,t){var n=this;return Nt.Gn([function(){return n.persistence.vu().Mn(e,t)},function(){return n.persistence._T(e,t)},function(){return Nt.resolve(n.Nu.Mn(t))}])},e}(),Ai=function(){function e(){}return e.prototype.initialize=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t=this;return i.__generator(this,(function(n){switch(n.label){case 0:return this.Yd=this.ET(e),this.persistence=this.IT(e),[4,this.persistence.start()];case 1:return n.sent(),this.wT=this.RT(e),this.j_=this.AT(e),this.Ud=this.mT(e),this.El=this.PT(e),this.VT=this.gT(e),this.Yd.M_=function(e){return t.El.Od(e,1)},this.Ud.El=this.El,[4,this.j_.start()];case 2:return n.sent(),[4,this.Yd.start()];case 3:return n.sent(),[4,this.Ud.start()];case 4:return n.sent(),[4,this.Ud.Cl(this.El.uf)];case 5:return n.sent(),[2]}}))}))},e.prototype.gT=function(e){return new Ti(this.El)},e.prototype.RT=function(e){return null},e.prototype.AT=function(e){return new ar(this.persistence,new Mi,e.pT)},e.prototype.IT=function(e){return new Pi(Ii.dT)},e.prototype.mT=function(e){var t=this;return new ai(this.j_,e.b_,e.jr,(function(e){return t.El.Od(e,0)}),e.platform.yT())},e.prototype.ET=function(e){return new mi},e.prototype.PT=function(e){return new ki(this.j_,this.Ud,this.Yd,e.pT,e.Jd)},e.prototype.clearPersistence=function(e){throw new f(h.FAILED_PRECONDITION,"You are using the memory-only build of Firestore. Persistence support is only available via the @firebase/firestore bundle or the firebase-firestore.js build.")},e}(),Di=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.initialize=function(t){return i.__awaiter(this,void 0,void 0,(function(){var n=this;return i.__generator(this,(function(r){switch(r.label){case 0:return[4,e.prototype.initialize.call(this,t)];case 1:return r.sent(),[4,this.persistence.ou((function(e){return i.__awaiter(n,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return[4,this.El.Cl(e)];case 1:return t.sent(),this.wT&&(e&&!this.wT.Kh?this.wT.start(this.j_):e||this.wT.stop()),[2]}}))}))}))];case 2:return r.sent(),[2]}}))}))},t.prototype.AT=function(e){return new or(this.persistence,new Mi,e.pT)},t.prototype.PT=function(e){var t=new Ei(this.j_,this.Ud,this.Yd,e.pT,e.Jd);return this.Yd instanceof pi&&(this.Yd.El=t),t},t.prototype.RT=function(e){var t=this.persistence.yo.qh;return new Xt(t,e.jr)},t.prototype.IT=function(e){var t=er.Fu(e.bT),n=e.platform.vT(e.bT.ci);return new er(e.ST.synchronizeTabs,t,e.clientId,e.platform,Jt.kh(e.ST.cacheSizeBytes),e.jr,n,this.Yd)},t.prototype.ET=function(e){if(e.ST.DT&&e.ST.synchronizeTabs){if(!pi.ho(e.platform))throw new f(h.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var t=er.Fu(e.bT);return new pi(e.jr,e.platform,t,e.clientId,e.pT)}return new mi},t.prototype.clearPersistence=function(e){var t=er.Fu(e);return er.clearPersistence(t)},t}(Ai),Ni=function(){function e(e,t,n,r){this.platform=e,this.bT=t,this.credentials=n,this.jr=r,this.clientId=Tt.En()}return e.prototype.start=function(e,t){var n=this;this.CT();var r=new Ut,i=new Ut,a=!1;return this.credentials.l((function(o){if(!a)return a=!0,_t("FirestoreClient","Initializing. user=",o.uid),n.FT(e,t,o,i).then(r.resolve,r.reject);n.jr.Zr((function(){return n.Dl(o)}))})),this.jr.Zr((function(){return r.promise})),i.promise},e.prototype.enableNetwork=function(){var e=this;return this.CT(),this.jr.enqueue((function(){return e.El.enableNetwork()}))},e.prototype.FT=function(e,t,n,r){return i.__awaiter(this,void 0,void 0,(function(){var a,o,s,l,c=this;return i.__generator(this,(function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),[4,this.platform.NT(this.bT)];case 1:return a=u.sent(),o=this.platform.vT(this.bT.ci),s=new ni(this.jr,a,this.credentials,o),[4,e.initialize({jr:this.jr,bT:this.bT,platform:this.platform,b_:s,clientId:this.clientId,pT:n,Jd:100,ST:t})];case 2:return u.sent(),this.persistence=e.persistence,this.Yd=e.Yd,this.j_=e.j_,this.Ud=e.Ud,this.El=e.El,this.wT=e.wT,this.kT=e.VT,this.persistence.au((function(){return i.__awaiter(c,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return[4,this.terminate()];case 1:return e.sent(),[2]}}))}))})),r.resolve(),[3,4];case 3:if(l=u.sent(),r.reject(l),!this.$T(l))throw l;return[2,(console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+l),this.FT(new Ai,{DT:!1},n,r))];case 4:return[2]}}))}))},e.prototype.$T=function(e){return"FirebaseError"===e.name?e.code===h.FAILED_PRECONDITION||e.code===h.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||22===e.code||20===e.code||11===e.code},e.prototype.CT=function(){if(this.jr._h)throw new f(h.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.Dl=function(e){return this.jr.Rh(),_t("FirestoreClient","Credential Changed. Current user: "+e.uid),this.El.Dl(e)},e.prototype.disableNetwork=function(){var e=this;return this.CT(),this.jr.enqueue((function(){return e.El.disableNetwork()}))},e.prototype.terminate=function(){var e=this;return this.jr.Eh((function(){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.wT&&this.wT.stop(),[4,this.Ud.mu()];case 1:return e.sent(),[4,this.Yd.mu()];case 2:return e.sent(),[4,this.persistence.mu()];case 3:return e.sent(),this.credentials.T(),[2]}}))}))}))},e.prototype.waitForPendingWrites=function(){var e=this;this.CT();var t=new Ut;return this.jr.Zr((function(){return e.El.Af(t)})),t.promise},e.prototype.listen=function(e,t,n){var r=this;this.CT();var i=new Ci(e,t,n);return this.jr.Zr((function(){return r.kT.listen(i)})),i},e.prototype.fl=function(e){var t=this;this.MT||this.jr.Zr((function(){return t.kT.fl(e)}))},e.prototype.LT=function(e){var t=this;return this.CT(),this.jr.enqueue((function(){return t.j_.rc(e)})).then((function(e){if(e instanceof _e)return e;if(e instanceof we)return null;throw new f(h.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")}))},e.prototype.OT=function(e){var t=this;return this.CT(),this.jr.enqueue((function(){return i.__awaiter(t,void 0,void 0,(function(){var t,n,r;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.j_.ac(e,!0)];case 1:return t=i.sent(),n=new yi(e,t.uc),r=n.Cd(t.documents),[2,n.ir(r,!1).snapshot]}}))}))}))},e.prototype.write=function(e){var t=this;this.CT();var n=new Ut;return this.jr.Zr((function(){return t.El.write(e,n)})),n.promise},e.prototype.ci=function(){return this.bT.ci},e.prototype.Lf=function(e){var t=this;this.CT(),this.jr.Zr((function(){return t.kT.Lf(e),Promise.resolve()}))},e.prototype.Of=function(e){this.MT||this.kT.Of(e)},Object.defineProperty(e.prototype,"MT",{get:function(){return this.jr._h},enumerable:!0,configurable:!0}),e.prototype.transaction=function(e){var t=this;this.CT();var n=new Ut;return this.jr.Zr((function(){return t.El.runTransaction(t.jr,e,n),Promise.resolve()})),n.promise},e}(),Ri=function(){function e(e){this.observer=e,this.muted=!1}return e.prototype.next=function(e){this.xT(this.observer.next,e)},e.prototype.error=function(e){this.xT(this.observer.error,e)},e.prototype.BT=function(){this.muted=!0},e.prototype.xT=function(e,t){var n=this;this.muted||setTimeout((function(){n.muted||e(t)}),0)},e}();function Bi(e){return function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=e,r=0,i=["next","error","complete"];r<i.length;r++){var a=i[r];if(a in n&&"function"==typeof n[a])return!0}return!1}(e)}var Yi=function(){function e(e,t,n,r){this.firestore=e,this.timestampsInSnapshots=t,this.qT=n,this.converter=r}return e.prototype.UT=function(e){switch(F(e)){case 0:return null;case 1:return e.booleanValue;case 2:return G(e.integerValue||e.doubleValue);case 3:return this.QT(e.timestampValue);case 4:return this.WT(e);case 5:return e.stringValue;case 6:return new $r(K(e.bytesValue));case 7:return this.jT(e.referenceValue);case 8:return new jr(e.geoPointValue.latitude,e.geoPointValue.longitude);case 9:return this.KT(e.arrayValue);case 10:return this.GT(e.mapValue);default:throw Et()}},e.prototype.GT=function(e){var t=this,n={};return O(e.fields||{},(function(e,r){n[e]=t.UT(r)})),n},e.prototype.KT=function(e){var t=this;return(e.values||[]).map((function(e){return t.UT(e)}))},e.prototype.WT=function(e){switch(this.qT){case"previous":var t=function e(t){var n=t.mapValue.fields.__previous_value__;return B(n)?e(n):n}(e);return null==t?null:this.UT(t);case"estimate":return this.QT(Y(e));default:return null}},e.prototype.QT=function(e){var t=W(e),n=new b(t.seconds,t.nanos);return this.timestampsInSnapshots?n:n.toDate()},e.prototype.jT=function(e){var t=k.G(e);St(mt(t));var n=new Lt(t.get(1),t.get(3)),r=new T(t.M(5));return n.isEqual(this.firestore.zT)||wt("Document "+r+" contains a document reference within a different database ("+n.projectId+"/"+n.database+") which is not supported. It will be treated as a reference in the current database ("+this.firestore.zT.projectId+"/"+this.firestore.zT.database+") instead."),new Vi(r,this.firestore,this.converter)},e}(),ji=Jt.Lh,Fi=function(){function e(e){var t,n;if(void 0===e.host){if(void 0!==e.ssl)throw new f(h.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else pr("settings","non-empty string","host",e.host),this.host=e.host,mr("settings","boolean","ssl",e.ssl),this.ssl=null===(t=e.ssl)||void 0===t||t;if(wr("settings",e,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling"]),mr("settings","object","credentials",e.credentials),this.credentials=e.credentials,mr("settings","boolean","timestampsInSnapshots",e.timestampsInSnapshots),!0===e.timestampsInSnapshots?wt("The setting 'timestampsInSnapshots: true' is no longer required and should be removed."):!1===e.timestampsInSnapshots&&wt("Support for 'timestampsInSnapshots: false' will be removed soon. You must update your code to handle Timestamp objects."),this.timestampsInSnapshots=null===(n=e.timestampsInSnapshots)||void 0===n||n,mr("settings","number","cacheSizeBytes",e.cacheSizeBytes),void 0===e.cacheSizeBytes)this.cacheSizeBytes=Jt.xh;else{if(e.cacheSizeBytes!==ji&&e.cacheSizeBytes<Jt.Oh)throw new f(h.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+Jt.Oh);this.cacheSizeBytes=e.cacheSizeBytes}mr("settings","boolean","experimentalForceLongPolling",e.experimentalForceLongPolling),this.forceLongPolling=void 0!==e.experimentalForceLongPolling&&e.experimentalForceLongPolling}return e.prototype.isEqual=function(e){return this.host===e.host&&this.ssl===e.ssl&&this.timestampsInSnapshots===e.timestampsInSnapshots&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.forceLongPolling===e.forceLongPolling},e}(),Hi=function(){function e(t,n,r){var a=this;if(void 0===r&&(r=new Ai),this.HT=null,this.YT=new qt,this.INTERNAL={delete:function(){return i.__awaiter(a,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.JT(),[4,this.XT.terminate()];case 1:return e.sent(),[2]}}))}))}},"object"==typeof t.options){var o=t;this.HT=o,this.zT=e.ZT(o),this.tE=o.name,this.eE=new v(n)}else{var s=t;if(!s.projectId)throw new f(h.INVALID_ARGUMENT,"Must provide projectId");this.zT=new Lt(s.projectId,s.database),this.tE="[DEFAULT]",this.eE=new m}this.sE=r,this.iE=new Fi({}),this.nE=this.rE(this.zT)}return e.prototype.settings=function(e){cr("Firestore.settings",arguments,1),hr("Firestore.settings","object",1,e);var t=new Fi(e);if(this.XT&&!this.iE.isEqual(t))throw new f(h.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only call settings() before calling any other methods on a Firestore object.");this.iE=t,void 0!==t.credentials&&(this.eE=function(e){if(!e)return new m;switch(e.type){case"gapi":var t=e.hE;return St(!("object"!=typeof t||null===t||!t.auth||!t.auth.getAuthHeaderValueForFirstParty)),new y(t,e.V||"0");case"provider":return e.hE;default:throw new f(h.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(t.credentials))},e.prototype.enableNetwork=function(){return this.JT(),this.XT.enableNetwork()},e.prototype.disableNetwork=function(){return this.JT(),this.XT.disableNetwork()},e.prototype.enablePersistence=function(e){var t,n;if(this.XT)throw new f(h.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only call enablePersistence() before calling any other methods on a Firestore object.");var r=!1;return e&&(void 0!==e.experimentalTabSynchronization&&wt("The 'experimentalTabSynchronization' setting will be removed. Use 'synchronizeTabs' instead."),r=null!==(n=null!==(t=e.synchronizeTabs)&&void 0!==t?t:e.experimentalTabSynchronization)&&void 0!==n&&n),this.oE(this.sE,{DT:!0,cacheSizeBytes:this.iE.cacheSizeBytes,synchronizeTabs:r})},e.prototype.clearPersistence=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t=this;return i.__generator(this,(function(n){if(void 0!==this.XT&&!this.XT.MT)throw new f(h.FAILED_PRECONDITION,"Persistence cannot be cleared after this Firestore instance is initialized.");return e=new Ut,[2,(this.YT.lh((function(){return i.__awaiter(t,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t=this.aE(),[4,this.sE.clearPersistence(t)];case 1:return r.sent(),e.resolve(),[3,3];case 2:return n=r.sent(),e.reject(n),[3,3];case 3:return[2]}}))}))})),e.promise)]}))}))},e.prototype.terminate=function(){return this.app._removeServiceInstance("firestore"),this.INTERNAL.delete()},Object.defineProperty(e.prototype,"uE",{get:function(){return this.JT(),this.XT.MT},enumerable:!0,configurable:!0}),e.prototype.waitForPendingWrites=function(){return this.JT(),this.XT.waitForPendingWrites()},e.prototype.onSnapshotsInSync=function(e){if(this.JT(),Bi(e))return this.cE(e);hr("Firestore.onSnapshotsInSync","function",1,e);var t={next:e};return this.cE(t)},e.prototype.cE=function(e){var t=this,n=new Ri({next:function(){e.next&&e.next()},error:function(e){throw Et()}});return this.XT.Lf(n),function(){n.BT(),t.XT.Of(n)}},e.prototype.JT=function(){return this.XT||this.oE(new Ai,{DT:!1}),this.XT},e.prototype.aE=function(){return new $t(this.zT,this.tE,this.iE.host,this.iE.ssl,this.iE.forceLongPolling)},e.prototype.oE=function(e,t){var n=this.aE();return this.XT=new Ni(vt.Lt(),n,this.eE,this.YT),this.XT.start(e,t)},e.prototype.rE=function(e){var t=vt.Lt().vT(e);return new Wr(t,(function(t){if(t instanceof Vi){var n=e,r=t.firestore.zT;if(!r.isEqual(n))throw new f(h.INVALID_ARGUMENT,"Document reference is for database "+r.projectId+"/"+r.database+" but should be for database "+n.projectId+"/"+n.database);return new qr(e,t._E)}return t}))},e.ZT=function(e){if(t=e.options,!Object.prototype.hasOwnProperty.call(t,"projectId"))throw new f(h.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');var t,n=e.options.projectId;if(!n||"string"!=typeof n)throw new f(h.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new Lt(n)},Object.defineProperty(e.prototype,"app",{get:function(){if(!this.HT)throw new f(h.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.HT},enumerable:!0,configurable:!0}),e.prototype.collection=function(e){return cr("Firestore.collection",arguments,1),hr("Firestore.collection","non-empty string",1,e),this.JT(),new Xi(k.G(e),this)},e.prototype.doc=function(e){return cr("Firestore.doc",arguments,1),hr("Firestore.doc","non-empty string",1,e),this.JT(),Vi.lE(k.G(e),this)},e.prototype.collectionGroup=function(e){if(cr("Firestore.collectionGroup",arguments,1),hr("Firestore.collectionGroup","non-empty string",1,e),e.indexOf("/")>=0)throw new f(h.INVALID_ARGUMENT,"Invalid collection ID '"+e+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.JT(),new Ki(new Se(k.H,e),this)},e.prototype.runTransaction=function(e){var t=this;return cr("Firestore.runTransaction",arguments,1),hr("Firestore.runTransaction","function",1,e),this.JT().transaction((function(n){return e(new Ui(t,n))}))},e.prototype.batch=function(){return this.JT(),new zi(this)},Object.defineProperty(e,"logLevel",{get:function(){switch(yt()){case o.LogLevel.DEBUG:return"debug";case o.LogLevel.SILENT:return"silent";default:return"error"}},enumerable:!0,configurable:!0}),e.setLogLevel=function(e){switch(cr("Firestore.setLogLevel",arguments,1),hr("Firestore.setLogLevel","non-empty string",1,e),e){case"debug":bt(o.LogLevel.DEBUG);break;case"error":bt(o.LogLevel.ERROR);break;case"silent":bt(o.LogLevel.SILENT);break;default:throw new f(h.INVALID_ARGUMENT,"Invalid log level: "+e)}},e.prototype.dE=function(){return this.iE.timestampsInSnapshots},e}(),Ui=function(){function e(e,t){this.fE=e,this.TE=t}return e.prototype.get=function(e){var t=this;cr("Transaction.get",arguments,1);var n=ta("Transaction.get",e,this.fE);return this.TE.p_([n._E]).then((function(e){if(!e||1!==e.length)return Et();var r=e[0];if(r instanceof we)return new Wi(t.fE,n._E,null,!1,!1,n.EE);if(r instanceof _e)return new Wi(t.fE,n._E,r,!1,!1,n.EE);throw Et()}))},e.prototype.set=function(e,t,n){dr("Transaction.set",arguments,2,3);var r=ta("Transaction.set",e,this.fE);n=Qi("Transaction.set",n);var i=ra(r.EE,t,"Transaction.set"),a=i[0],o=i[1],s=n.merge||n.mergeFields?this.fE.nE.Mc(o,a,n.mergeFields):this.fE.nE.kc(o,a);return this.TE.set(r._E,s),this},e.prototype.update=function(e,t,n){for(var r,i,a=[],o=3;o<arguments.length;o++)a[o-3]=arguments[o];return"string"==typeof t||t instanceof Pr?(ur("Transaction.update",arguments,3),r=ta("Transaction.update",e,this.fE),i=this.fE.nE.Bc("Transaction.update",t,n,a)):(cr("Transaction.update",arguments,2),r=ta("Transaction.update",e,this.fE),i=this.fE.nE.Lc("Transaction.update",t)),this.TE.update(r._E,i),this},e.prototype.delete=function(e){cr("Transaction.delete",arguments,1);var t=ta("Transaction.delete",e,this.fE);return this.TE.delete(t._E),this},e}(),zi=function(){function e(e){this.fE=e,this.IE=[],this.wE=!1}return e.prototype.set=function(e,t,n){dr("WriteBatch.set",arguments,2,3),this.RE();var r=ta("WriteBatch.set",e,this.fE);n=Qi("WriteBatch.set",n);var i=ra(r.EE,t,"WriteBatch.set"),a=i[0],o=i[1],s=n.merge||n.mergeFields?this.fE.nE.Mc(o,a,n.mergeFields):this.fE.nE.kc(o,a);return this.IE=this.IE.concat(s.gc(r._E,ue.NONE)),this},e.prototype.update=function(e,t,n){for(var r,i,a=[],o=3;o<arguments.length;o++)a[o-3]=arguments[o];return this.RE(),"string"==typeof t||t instanceof Pr?(ur("WriteBatch.update",arguments,3),r=ta("WriteBatch.update",e,this.fE),i=this.fE.nE.Bc("WriteBatch.update",t,n,a)):(cr("WriteBatch.update",arguments,2),r=ta("WriteBatch.update",e,this.fE),i=this.fE.nE.Lc("WriteBatch.update",t)),this.IE=this.IE.concat(i.gc(r._E,ue.exists(!0))),this},e.prototype.delete=function(e){cr("WriteBatch.delete",arguments,1),this.RE();var t=ta("WriteBatch.delete",e,this.fE);return this.IE=this.IE.concat(new me(t._E,ue.NONE)),this},e.prototype.commit=function(){return this.RE(),this.wE=!0,this.IE.length>0?this.fE.JT().write(this.IE):Promise.resolve()},e.prototype.RE=function(){if(this.wE)throw new f(h.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},e}(),Vi=function(){function e(e,t,n){this._E=e,this.firestore=t,this.EE=n,this.XT=this.firestore.JT()}return e.lE=function(t,n,r){if(t.length%2!=0)throw new f(h.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.K()+" has "+t.length);return new e(new T(t),n,r)},Object.defineProperty(e.prototype,"id",{get:function(){return this._E.path.B()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new Xi(this._E.path.L(),this.firestore,this.EE)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._E.path.K()},enumerable:!0,configurable:!0}),e.prototype.collection=function(e){if(cr("DocumentReference.collection",arguments,1),hr("DocumentReference.collection","non-empty string",1,e),!e)throw new f(h.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var t=k.G(e);return new Xi(this._E.path.child(t),this.firestore)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw kr("isEqual","DocumentReference",1,t);return this.firestore===t.firestore&&this._E.isEqual(t._E)&&this.EE===t.EE},e.prototype.set=function(e,t){dr("DocumentReference.set",arguments,1,2),t=Qi("DocumentReference.set",t);var n=ra(this.EE,e,"DocumentReference.set"),r=n[0],i=n[1],a=t.merge||t.mergeFields?this.firestore.nE.Mc(i,r,t.mergeFields):this.firestore.nE.kc(i,r);return this.XT.write(a.gc(this._E,ue.NONE))},e.prototype.update=function(e,t){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return"string"==typeof e||e instanceof Pr?(ur("DocumentReference.update",arguments,2),n=this.firestore.nE.Bc("DocumentReference.update",e,t,r)):(cr("DocumentReference.update",arguments,1),n=this.firestore.nE.Lc("DocumentReference.update",e)),this.XT.write(n.gc(this._E,ue.exists(!0)))},e.prototype.delete=function(){return cr("DocumentReference.delete",arguments,0),this.XT.write([new me(this._E,ue.NONE)])},e.prototype.onSnapshot=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];dr("DocumentReference.onSnapshot",arguments,1,4);var n,r={includeMetadataChanges:!1},i=0;"object"!=typeof e[i]||Bi(e[i])||(wr("DocumentReference.onSnapshot",r=e[i],["includeMetadataChanges"]),mr("DocumentReference.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++);var a={includeMetadataChanges:r.includeMetadataChanges};return Bi(e[i])?n=e[i]:(hr("DocumentReference.onSnapshot","function",i,e[i]),fr("DocumentReference.onSnapshot","function",i+1,e[i+1]),fr("DocumentReference.onSnapshot","function",i+2,e[i+2]),n={next:e[i],error:e[i+1],complete:e[i+2]}),this.AE(a,n)},e.prototype.AE=function(e,t){var n=this,r=function(e){console.error("Uncaught Error in onSnapshot:",e)};t.error&&(r=t.error.bind(t));var i=new Ri({next:function(e){if(t.next){var r=e.docs.get(n._E);t.next(new Wi(n.firestore,n._E,r,e.fromCache,e.hasPendingWrites,n.EE))}},error:r}),a=this.XT.listen(Se.ve(this._E.path),i,e);return function(){i.BT(),n.XT.fl(a)}},e.prototype.get=function(e){var t=this;return dr("DocumentReference.get",arguments,0,1),ea("DocumentReference.get",e),new Promise((function(n,r){e&&"cache"===e.source?t.firestore.JT().LT(t._E).then((function(e){n(new Wi(t.firestore,t._E,e,!0,e instanceof _e&&e.te,t.EE))}),r):t.mE(n,r,e)}))},e.prototype.mE=function(e,t,n){var r=this.AE({includeMetadataChanges:!0,jf:!0},{next:function(i){r(),!i.exists&&i.metadata.fromCache?t(new f(h.UNAVAILABLE,"Failed to get document because the client is offline.")):i.exists&&i.metadata.fromCache&&n&&"server"===n.source?t(new f(h.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):e(i)},error:t})},e.prototype.withConverter=function(t){return new e(this._E,this.firestore,t)},e}(),qi=function(){function e(e,t){this.hasPendingWrites=e,this.fromCache=t}return e.prototype.isEqual=function(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache},e}(),Wi=function(){function e(e,t,n,r,i,a){this.fE=e,this._E=t,this.PE=n,this.VE=r,this.gE=i,this.EE=a}return e.prototype.data=function(e){if(dr("DocumentSnapshot.data",arguments,0,1),e=Zi("DocumentSnapshot.data",e),this.PE){if(this.EE){var t=new Gi(this.fE,this._E,this.PE,this.VE,this.gE);return this.EE.fromFirestore(t,e)}return new Yi(this.fE,this.fE.dE(),e.serverTimestamps,void 0).UT(this.PE.Re())}},e.prototype.get=function(e,t){if(dr("DocumentSnapshot.get",arguments,1,2),t=Zi("DocumentSnapshot.get",t),this.PE){var n=this.PE.data().field(Jr("DocumentSnapshot.get",e));if(null!==n)return new Yi(this.fE,this.fE.dE(),t.serverTimestamps,this.EE).UT(n)}},Object.defineProperty(e.prototype,"id",{get:function(){return this._E.path.B()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ref",{get:function(){return new Vi(this._E,this.fE,this.EE)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exists",{get:function(){return null!==this.PE},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return new qi(this.gE,this.VE)},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){if(!(t instanceof e))throw kr("isEqual","DocumentSnapshot",1,t);return this.fE===t.fE&&this.VE===t.VE&&this._E.isEqual(t._E)&&(null===this.PE?null===t.PE:this.PE.isEqual(t.PE))&&this.EE===t.EE},e}(),Gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.data=function(t){return e.prototype.data.call(this,t)},t}(Wi),Ki=function(){function e(e,t,n){this.pE=e,this.firestore=t,this.EE=n}return e.prototype.where=function(t,n,r){var i;cr("Query.where",arguments,3),_r("Query.where",3,r),function(e,t,n,r){if(!t.some((function(e){return e===r})))throw new f(h.INVALID_ARGUMENT,"Invalid value "+br(r)+" provided to function Query.where() for its "+Sr(2)+" argument. Acceptable values: "+t.join(", "))}(0,["<","<=","==",">=",">","array-contains","in","array-contains-any"],0,n);var a=Jr("Query.where",t),o=Te.G(n);if(a.J()){if(o===Te.ARRAY_CONTAINS||o===Te.ARRAY_CONTAINS_ANY)throw new f(h.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o.toString()+"' queries on FieldPath.documentId().");if(o===Te.IN){this.yE(r,o);for(var s=[],l=0,c=r;l<c.length;l++){var u=c[l];s.push(this.bE(u))}i={arrayValue:{values:s}}}else i=this.bE(r)}else o!==Te.IN&&o!==Te.ARRAY_CONTAINS_ANY||this.yE(r,o),i=this.firestore.nE.qc("Query.where",r,o===Te.IN);var d=Ce.create(a,o,i);return this.vE(d),new e(this.pE.Ce(d),this.firestore,this.EE)},e.prototype.orderBy=function(t,n){var r;if(dr("Query.orderBy",arguments,1,2),fr("Query.orderBy","non-empty string",2,n),void 0===n||"asc"===n)r=Oe.ASCENDING;else{if("desc"!==n)throw new f(h.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");r=Oe.DESCENDING}if(null!==this.pE.startAt)throw new f(h.INVALID_ARGUMENT,"Invalid query. You must not call Query.startAt() or Query.startAfter() before calling Query.orderBy().");if(null!==this.pE.endAt)throw new f(h.INVALID_ARGUMENT,"Invalid query. You must not call Query.endAt() or Query.endBefore() before calling Query.orderBy().");var i=Jr("Query.orderBy",t),a=new Ne(i,r);return this.SE(a),new e(this.pE.Fe(a),this.firestore,this.EE)},e.prototype.limit=function(t){return cr("Query.limit",arguments,1),hr("Query.limit","number",1,t),Er("Query.limit",1,t),new e(this.pE.Ne(t),this.firestore,this.EE)},e.prototype.limitToLast=function(t){return cr("Query.limitToLast",arguments,1),hr("Query.limitToLast","number",1,t),Er("Query.limitToLast",1,t),new e(this.pE.ke(t),this.firestore,this.EE)},e.prototype.startAt=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ur("Query.startAt",arguments,1);var i=this.DE("Query.startAt",t,n,!0);return new e(this.pE.$e(i),this.firestore,this.EE)},e.prototype.startAfter=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ur("Query.startAfter",arguments,1);var i=this.DE("Query.startAfter",t,n,!1);return new e(this.pE.$e(i),this.firestore,this.EE)},e.prototype.endBefore=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ur("Query.endBefore",arguments,1);var i=this.DE("Query.endBefore",t,n,!0);return new e(this.pE.Me(i),this.firestore,this.EE)},e.prototype.endAt=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ur("Query.endAt",arguments,1);var i=this.DE("Query.endAt",t,n,!1);return new e(this.pE.Me(i),this.firestore,this.EE)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw kr("isEqual","Query",1,t);return this.firestore===t.firestore&&this.pE.isEqual(t.pE)},e.prototype.withConverter=function(t){return new e(this.pE,this.firestore,t)},e.prototype.DE=function(e,t,n,r){if(_r(e,1,t),t instanceof Wi){if(n.length>0)throw new f(h.INVALID_ARGUMENT,"Too many arguments provided to "+e+"().");var i=t;if(!i.exists)throw new f(h.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+e+"().");return this.CE(i.PE,r)}var a=[t].concat(n);return this.FE(e,a,r)},e.prototype.CE=function(e,t){for(var n=[],r=0,i=this.pE.orderBy;r<i.length;r++){var a=i[r];if(a.field.J())n.push(J(this.firestore.zT,e.key));else{var o=e.field(a.field);if(B(o))throw new f(h.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+a.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===o){var s=a.field.K();throw new f(h.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+s+"' (used as the orderBy) does not exist.")}n.push(o)}}return new De(n,t)},e.prototype.FE=function(e,t,n){var r=this.pE.Ve;if(t.length>r.length)throw new f(h.INVALID_ARGUMENT,"Too many arguments provided to "+e+"(). The number of arguments must be less than or equal to the number of Query.orderBy() clauses");for(var i=[],a=0;a<t.length;a++){var o=t[a];if(r[a].field.J()){if("string"!=typeof o)throw new f(h.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+e+"(), but got a "+typeof o);if(!this.pE.He()&&-1!==o.indexOf("/"))throw new f(h.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+e+"() must be a plain document ID, but '"+o+"' contains a slash.");var s=this.pE.path.child(k.G(o));if(!T.st(s))throw new f(h.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+e+"() must result in a valid document path, but '"+s+"' is not because it contains an odd number of segments.");var l=new T(s);i.push(J(this.firestore.zT,l))}else{var c=this.firestore.nE.qc(e,o);i.push(c)}}return new De(i,n)},e.prototype.onSnapshot=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];dr("Query.onSnapshot",arguments,1,4);var n,r={},i=0;return"object"!=typeof e[i]||Bi(e[i])||(wr("Query.onSnapshot",r=e[i],["includeMetadataChanges"]),mr("Query.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++),Bi(e[i])?n=e[i]:(hr("Query.onSnapshot","function",i,e[i]),fr("Query.onSnapshot","function",i+1,e[i+1]),fr("Query.onSnapshot","function",i+2,e[i+2]),n={next:e[i],error:e[i+1],complete:e[i+2]}),this.NE(this.pE),this.AE(r,n)},e.prototype.AE=function(e,t){var n=this,r=function(e){console.error("Uncaught Error in onSnapshot:",e)};t.error&&(r=t.error.bind(t));var i=new Ri({next:function(e){t.next&&t.next(new Ji(n.firestore,n.pE,e,n.EE))},error:r}),a=this.firestore.JT(),o=a.listen(this.pE,i,e);return function(){i.BT(),a.fl(o)}},e.prototype.NE=function(e){if(e.Ke()&&0===e.Ve.length)throw new f(h.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")},e.prototype.get=function(e){var t=this;return dr("Query.get",arguments,0,1),ea("Query.get",e),this.NE(this.pE),new Promise((function(n,r){e&&"cache"===e.source?t.firestore.JT().OT(t.pE).then((function(e){n(new Ji(t.firestore,t.pE,e,t.EE))}),r):t.mE(n,r,e)}))},e.prototype.mE=function(e,t,n){var r=this.AE({includeMetadataChanges:!0,jf:!0},{next:function(i){r(),i.metadata.fromCache&&n&&"server"===n.source?t(new f(h.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):e(i)},error:t})},e.prototype.bE=function(e){if("string"==typeof e){if(""===e)throw new f(h.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!this.pE.He()&&-1!==e.indexOf("/"))throw new f(h.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+e+"' contains a '/' character.");var t=this.pE.path.child(k.G(e));if(!T.st(t))throw new f(h.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+t+"' is not because it has an odd number of segments ("+t.length+").");return J(this.firestore.zT,new T(t))}if(e instanceof Vi){var n=e;return J(this.firestore.zT,n._E)}throw new f(h.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+br(e)+".")},e.prototype.yE=function(e,t){if(!Array.isArray(e)||0===e.length)throw new f(h.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+t.toString()+"' filters.");if(e.length>10)throw new f(h.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters support a maximum of 10 elements in the value array.");if(e.indexOf(null)>=0)throw new f(h.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters cannot contain 'null' in the value array.");if(e.filter((function(e){return Number.isNaN(e)})).length>0)throw new f(h.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters cannot contain 'NaN' in the value array.")},e.prototype.vE=function(e){if(e instanceof Ce){var t=[Te.ARRAY_CONTAINS,Te.ARRAY_CONTAINS_ANY],n=[Te.IN,Te.ARRAY_CONTAINS_ANY],r=t.indexOf(e.op)>=0,i=n.indexOf(e.op)>=0;if(e.Ge()){var a=this.pE.Se();if(null!==a&&!a.isEqual(e.field))throw new f(h.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+a.toString()+"' and '"+e.field.toString()+"'");var o=this.pE.De();null!==o&&this.kE(e.field,o)}else if(i||r){var s=null;if(i&&(s=this.pE.ze(n)),null===s&&r&&(s=this.pE.ze(t)),null!=s)throw s===e.op?new f(h.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter."):new f(h.INVALID_ARGUMENT,"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+s.toString()+"' filters.")}}},e.prototype.SE=function(e){if(null===this.pE.De()){var t=this.pE.Se();null!==t&&this.kE(t,e.field)}},e.prototype.kE=function(e,t){if(!t.isEqual(e))throw new f(h.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first Query.orderBy(), but your first Query.orderBy() is on field '"+t.toString()+"' instead.")},e}(),Ji=function(){function e(e,t,n,r){this.fE=e,this.$E=t,this.ME=n,this.EE=r,this.LE=null,this.OE=null,this.metadata=new qi(n.hasPendingWrites,n.fromCache)}return Object.defineProperty(e.prototype,"docs",{get:function(){var e=[];return this.forEach((function(t){return e.push(t)})),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return this.ME.docs.q()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.ME.docs.size},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e,t){var n=this;dr("QuerySnapshot.forEach",arguments,1,2),hr("QuerySnapshot.forEach","function",1,e),this.ME.docs.forEach((function(r){e.call(t,n.xE(r))}))},Object.defineProperty(e.prototype,"query",{get:function(){return new Ki(this.$E,this.fE,this.EE)},enumerable:!0,configurable:!0}),e.prototype.docChanges=function(e){e&&(wr("QuerySnapshot.docChanges",e,["includeMetadataChanges"]),mr("QuerySnapshot.docChanges","boolean","includeMetadataChanges",e.includeMetadataChanges));var t=!(!e||!e.includeMetadataChanges);if(t&&this.ME.ds)throw new f(h.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this.LE&&this.OE===t||(this.LE=function(e,t,n,r){if(n.cs.q()){var i=0;return n.docChanges.map((function(t){var a=new Gi(e,t.doc.key,t.doc,n.fromCache,n._s.has(t.doc.key),r);return t.doc,{type:"added",doc:a,oldIndex:-1,newIndex:i++}}))}var a=n.cs;return n.docChanges.filter((function(e){return t||3!==e.type})).map((function(t){var i=new Gi(e,t.doc.key,t.doc,n.fromCache,n._s.has(t.doc.key),r),o=-1,s=-1;return 0!==t.type&&(o=a.indexOf(t.doc.key),a=a.delete(t.doc.key)),1!==t.type&&(s=(a=a.add(t.doc)).indexOf(t.doc.key)),{type:na(t.type),doc:i,oldIndex:o,newIndex:s}}))}(this.fE,t,this.ME,this.EE),this.OE=t),this.LE},e.prototype.isEqual=function(t){if(!(t instanceof e))throw kr("isEqual","QuerySnapshot",1,t);return this.fE===t.fE&&this.$E.isEqual(t.$E)&&this.ME.isEqual(t.ME)&&this.EE===t.EE},e.prototype.xE=function(e){return new Gi(this.fE,e.key,e,this.metadata.fromCache,this.ME._s.has(e.key),this.EE)},e}(),Xi=function(e){function t(t,n,r){var i=this;if((i=e.call(this,Se.ve(t),n,r)||this).BE=t,t.length%2!=1)throw new f(h.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+t.K()+" has "+t.length);return i}return i.__extends(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.pE.path.B()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this.pE.path.L();return e.q()?null:new Vi(new T(e),this.firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.pE.path.K()},enumerable:!0,configurable:!0}),t.prototype.doc=function(e){if(dr("CollectionReference.doc",arguments,0,1),0===arguments.length&&(e=Tt.En()),hr("CollectionReference.doc","non-empty string",1,e),""===e)throw new f(h.INVALID_ARGUMENT,"Document path must be a non-empty string");var t=k.G(e);return Vi.lE(this.pE.path.child(t),this.firestore,this.EE)},t.prototype.add=function(e){cr("CollectionReference.add",arguments,1),hr("CollectionReference.add","object",1,this.EE?this.EE.toFirestore(e):e);var t=this.doc();return t.set(e).then((function(){return t}))},t.prototype.withConverter=function(e){return new t(this.BE,this.firestore,e)},t}(Ki);function Qi(e,t){if(void 0===t)return{merge:!1};if(wr(e,t,["merge","mergeFields"]),mr(e,"boolean","merge",t.merge),function(e,t,n,r,i){void 0!==r&&function(e,t,n,r,i){if(!(r instanceof Array))throw new f(h.INVALID_ARGUMENT,"Function "+e+"() requires its "+t+" option to be an array, but it was: "+br(r));for(var a=0;a<r.length;++a)if(!i(r[a]))throw new f(h.INVALID_ARGUMENT,"Function "+e+"() requires all "+t+" elements to be a string or a FieldPath, but the value at index "+a+" was: "+br(r[a]))}(e,"mergeFields",0,r,(function(e){return"string"==typeof e||e instanceof Pr}))}(e,0,0,t.mergeFields),void 0!==t.mergeFields&&void 0!==t.merge)throw new f(h.INVALID_ARGUMENT,"Invalid options passed to function "+e+'(): You cannot specify both "merge" and "mergeFields".');return t}function Zi(e,t){return void 0===t?{}:(wr(e,t,["serverTimestamps"]),vr(e,0,"serverTimestamps",t.serverTimestamps,["estimate","previous","none"]),t)}function ea(e,t){fr(e,"object",1,t),t&&(wr(e,t,["source"]),vr(e,0,"source",t.source,["default","server","cache"]))}function ta(e,t,n){if(t instanceof Vi){if(t.firestore!==n)throw new f(h.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}throw kr(e,"DocumentReference",1,t)}function na(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Et()}}function ra(e,t,n){var r;return e?(r=e.toFirestore(t),n="toFirestore() in "+n):r=t,[r,n]}var ia=Cr(Hi,"Use firebase.firestore() instead."),aa=Cr(Ui,"Use firebase.firestore().runTransaction() instead."),oa=Cr(zi,"Use firebase.firestore().batch() instead."),sa=Cr(Vi,"Use firebase.firestore().doc() instead."),la=Cr(Wi),ca=Cr(Gi),ua=Cr(Ki),da=Cr(Ji),ha=Cr(Xi,"Use firebase.firestore().collection() instead."),fa={Firestore:ia,GeoPoint:jr,Timestamp:b,Blob:Lr,Transaction:aa,WriteBatch:oa,DocumentReference:sa,DocumentSnapshot:la,Query:ua,QueryDocumentSnapshot:ca,QuerySnapshot:da,CollectionReference:ha,FieldPath:Pr,FieldValue:Yr,setLogLevel:Hi.setLogLevel,CACHE_SIZE_UNLIMITED:ji},pa=function(){function e(){}return e.prototype.Y_=function(e){},e.prototype.mu=function(){},e}(),ma=function(){function e(){var e=this;this.qE=function(){return e.UE()},this.QE=function(){return e.WE()},this.jE=[],this.KE()}return e.prototype.Y_=function(e){this.jE.push(e)},e.prototype.mu=function(){window.removeEventListener("online",this.qE),window.removeEventListener("offline",this.QE)},e.prototype.KE=function(){window.addEventListener("online",this.qE),window.addEventListener("offline",this.QE)},e.prototype.UE=function(){_t("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var e=0,t=this.jE;e<t.length;e++)(0,t[e])(0)},e.prototype.WE=function(){_t("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var e=0,t=this.jE;e<t.length;e++)(0,t[e])(1)},e.ho=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},e}(),va=function(){function e(e){this.GE=e.GE,this.zE=e.zE}return e.prototype.__=function(e){this.HE=e},e.prototype.h_=function(e){this.YE=e},e.prototype.onMessage=function(e){this.JE=e},e.prototype.close=function(){this.zE()},e.prototype.send=function(e){this.GE(e)},e.prototype.XE=function(){this.HE()},e.prototype.ZE=function(e){this.YE(e)},e.prototype.tI=function(e){this.JE(e)},e}(),ga={BatchGetDocuments:"batchGet",Commit:"commit"},ya="gl-js/ fire/"+u,ba=function(){function e(e){this.ci=e.ci;var t=e.ssl?"https":"http";this.eI=t+"://"+e.host,this.forceLongPolling=e.forceLongPolling}return e.prototype.sI=function(e,t){if(t)for(var n in t.o)t.o.hasOwnProperty(n)&&(e[n]=t.o[n]);e["X-Goog-Api-Client"]=ya},e.prototype.g_=function(e,t,n){var r=this,i=this.iI(e);return new Promise((function(a,o){var s=new c.XhrIo;s.listenOnce(c.EventType.COMPLETE,(function(){try{switch(s.getLastErrorCode()){case c.ErrorCode.NO_ERROR:var t=s.getResponseJson();_t("Connection","XHR received:",JSON.stringify(t)),a(t);break;case c.ErrorCode.TIMEOUT:_t("Connection",'RPC "'+e+'" timed out'),o(new f(h.DEADLINE_EXCEEDED,"Request time out"));break;case c.ErrorCode.HTTP_ERROR:var n=s.getStatus();if(_t("Connection",'RPC "'+e+'" failed with status:',n,"response text:",s.getResponseText()),n>0){var r=s.getResponseJson().error;if(r&&r.status&&r.message){var i=function(e){var t=e.toLowerCase().replace("_","-");return Object.values(h).indexOf(t)>=0?t:h.UNKNOWN}(r.status);o(new f(i,r.message))}else o(new f(h.UNKNOWN,"Server responded with status "+s.getStatus()))}else _t("Connection",'RPC "'+e+'" failed'),o(new f(h.UNAVAILABLE,"Connection failed."));break;default:Et()}}finally{_t("Connection",'RPC "'+e+'" completed.')}}));var l=Object.assign({},t);delete l.database;var u=JSON.stringify(l);_t("Connection","XHR sending: ",i+" "+u);var d={"Content-Type":"text/plain"};r.sI(d,n),s.send(i,"POST",u,d,15)}))},e.prototype.y_=function(e,t,n){return this.g_(e,t,n)},e.prototype.l_=function(e,t){var n=[this.eI,"/","google.firestore.v1.Firestore","/",e,"/channel"],r=c.createWebChannelTransport(),i={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.ci.projectId+"/databases/"+this.ci.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling};this.sI(i.initMessageHeaders,t),s.isMobileCordova()||s.isReactNative()||s.isElectron()||s.isIE()||s.isUWP()||s.isBrowserExtension()||(i.httpHeadersOverwriteParam="$httpHeaders");var a=n.join("");_t("Connection","Creating WebChannel: "+a+" "+i);var o=r.createWebChannel(a,i),l=!1,u=!1,d=new va({GE:function(e){u?_t("Connection","Not sending because WebChannel is closed:",e):(l||(_t("Connection","Opening WebChannel transport."),o.open(),l=!0),_t("Connection","WebChannel sending:",e),o.send(e))},zE:function(){return o.close()}}),p=function(e,t){o.listen(e,(function(e){try{t(e)}catch(e){setTimeout((function(){throw e}),0)}}))};return p(c.WebChannel.EventType.OPEN,(function(){u||_t("Connection","WebChannel transport opened.")})),p(c.WebChannel.EventType.CLOSE,(function(){u||(u=!0,_t("Connection","WebChannel transport closed"),d.ZE())})),p(c.WebChannel.EventType.ERROR,(function(e){u||(u=!0,_t("Connection","WebChannel transport errored:",e),d.ZE(new f(h.UNAVAILABLE,"The operation could not be completed")))})),p(c.WebChannel.EventType.MESSAGE,(function(e){var t;if(!u){var n=e.data[0];St(!!n);var r=n,i=r.error||(null===(t=r[0])||void 0===t?void 0:t.error);if(i){_t("Connection","WebChannel received error:",i);var a=i.status,s=function(e){var t=Ie[e];if(void 0!==t)return He(t)}(a),l=i.message;void 0===s&&(s=h.INTERNAL,l="Unknown error status: "+a+" with message "+i.message),u=!0,d.ZE(new f(s,l)),o.close()}else _t("Connection","WebChannel received:",n),d.tI(n)}})),setTimeout((function(){d.XE()}),0),d},e.prototype.iI=function(e){var t=ga[e];return this.eI+"/v1/projects/"+this.ci.projectId+"/databases/"+this.ci.database+"/documents:"+t},e}();function _a(e){!function(e,t){e.INTERNAL.registerComponent(new l.Component("firestore",(function(e){return function(e,t){return new Hi(e,t,new Di)}(e.getProvider("app").getImmediate(),e.getProvider("auth-internal"))}),"PUBLIC").setServiceProps(Object.assign({},fa)))}(e),e.registerVersion("@firebase/firestore","1.14.2")}vt.fn(new(function(){function e(){this.Tc="undefined"!=typeof atob}return Object.defineProperty(e.prototype,"document",{get:function(){return"undefined"!=typeof document?document:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"window",{get:function(){return"undefined"!=typeof window?window:null},enumerable:!0,configurable:!0}),e.prototype.NT=function(e){return Promise.resolve(new ba(e))},e.prototype.yT=function(){return ma.ho()?new ma:new pa},e.prototype.vT=function(e){return new pt(e,{di:!0})},e.prototype.Tn=function(e){return JSON.stringify(e)},e.prototype.atob=function(e){return atob(e)},e.prototype.btoa=function(e){return btoa(e)},e}())),_a(a),t.__PRIVATE_registerFirestore=_a},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"ErrorCode",(function(){return cr})),n.d(t,"EventType",(function(){return ur})),n.d(t,"WebChannel",(function(){return dr})),n.d(t,"XhrIo",(function(){return hr})),n.d(t,"createWebChannelTransport",(function(){return lr}));var r,i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},a=a||{},o=i;function s(e){return"string"==typeof e}function l(e){return"number"==typeof e}function c(e,t){e=e.split("."),t=t||o;for(var n=0;n<e.length;n++)if(null==(t=t[e[n]]))return null;return t}function u(){}function d(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function h(e){return"array"==d(e)}function f(e){var t=d(e);return"array"==t||"object"==t&&"number"==typeof e.length}function p(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var m="closure_uid_"+(1e9*Math.random()>>>0),v=0;function g(e,t,n){return e.call.apply(e.bind,arguments)}function y(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function b(e,t,n){return(b=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g:y).apply(null,arguments)}function _(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}var w=Date.now||function(){return+new Date};function k(e,t){function n(){}n.prototype=t.prototype,e.N=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.yb=function(e,n,r){for(var i=Array(arguments.length-2),a=2;a<arguments.length;a++)i[a-2]=arguments[a];return t.prototype[n].apply(e,i)}}function E(){this.j=this.j,this.i=this.i}E.prototype.j=!1,E.prototype.la=function(){if(!this.j&&(this.j=!0,this.G(),0))this[m]||(this[m]=++v)},E.prototype.G=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var S=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if(s(e))return s(t)&&1==t.length?e.indexOf(t,0):-1;for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},T=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,i=s(e)?e.split(""):e,a=0;a<r;a++)a in i&&t.call(n,i[a],a,e)};function C(e){return Array.prototype.concat.apply([],arguments)}function M(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}function x(e){return/^[\s\xa0]*$/.test(e)}var $,L=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function P(e,t){return-1!=e.indexOf(t)}function O(e,t){return e<t?-1:e>t?1:0}e:{var I=o.navigator;if(I){var A=I.userAgent;if(A){$=A;break e}}$=""}function D(e,t,n){for(var r in e)t.call(n,e[r],r,e)}function N(e){var t,n={};for(t in e)n[t]=e[t];return n}var R="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function B(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var a=0;a<R.length;a++)n=R[a],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function Y(e){return Y[" "](e),e}Y[" "]=u;var j,F,H=P($,"Opera"),U=P($,"Trident")||P($,"MSIE"),z=P($,"Edge"),V=z||U,q=P($,"Gecko")&&!(P($.toLowerCase(),"webkit")&&!P($,"Edge"))&&!(P($,"Trident")||P($,"MSIE"))&&!P($,"Edge"),W=P($.toLowerCase(),"webkit")&&!P($,"Edge");function G(){var e=o.document;return e?e.documentMode:void 0}e:{var K="",J=(F=$,q?/rv:([^\);]+)(\)|;)/.exec(F):z?/Edge\/([\d\.]+)/.exec(F):U?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(F):W?/WebKit\/(\S+)/.exec(F):H?/(?:Version)[ \/]?(\S+)/.exec(F):void 0);if(J&&(K=J?J[1]:""),U){var X=G();if(null!=X&&X>parseFloat(K)){j=String(X);break e}}j=K}var Q,Z={};function ee(e){return function(e,t){var n=Z;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,(function(){for(var t=0,n=L(String(j)).split("."),r=L(String(e)).split("."),i=Math.max(n.length,r.length),a=0;0==t&&a<i;a++){var o=n[a]||"",s=r[a]||"";do{if(o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==o[0].length&&0==s[0].length)break;t=O(0==o[1].length?0:parseInt(o[1],10),0==s[1].length?0:parseInt(s[1],10))||O(0==o[2].length,0==s[2].length)||O(o[2],s[2]),o=o[3],s=s[3]}while(0==t)}return 0<=t}))}var te=o.document;Q=te&&U?G()||("CSS1Compat"==te.compatMode?parseInt(j,10):5):void 0;var ne=!U||9<=Number(Q),re=U&&!ee("9"),ie=function(){if(!o.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{o.addEventListener("test",u,t),o.removeEventListener("test",u,t)}catch(e){}return e}();function ae(e,t){this.type=e,this.a=this.target=t,this.Ia=!0}function oe(e,t){if(ae.call(this,e?e.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.a=t,t=e.relatedTarget){if(q){e:{try{Y(t.nodeName);var i=!0;break e}catch(e){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=s(e.pointerType)?e.pointerType:se[e.pointerType]||"",this.c=e,e.defaultPrevented&&this.b()}}ae.prototype.b=function(){this.Ia=!1},k(oe,ae);var se={2:"touch",3:"pen",4:"mouse"};oe.prototype.b=function(){oe.N.b.call(this);var e=this.c;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,re)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(e){}};var le="closure_listenable_"+(1e6*Math.random()|0),ce=0;function ue(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.da=i,this.key=++ce,this.X=this.Z=!1}function de(e){e.X=!0,e.listener=null,e.proxy=null,e.src=null,e.da=null}function he(e){this.src=e,this.a={},this.b=0}function fe(e,t){var n=t.type;if(n in e.a){var r,i=e.a[n],a=S(i,t);(r=0<=a)&&Array.prototype.splice.call(i,a,1),r&&(de(t),0==e.a[n].length&&(delete e.a[n],e.b--))}}function pe(e,t,n,r){for(var i=0;i<e.length;++i){var a=e[i];if(!a.X&&a.listener==t&&a.capture==!!n&&a.da==r)return i}return-1}he.prototype.add=function(e,t,n,r,i){var a=e.toString();(e=this.a[a])||(e=this.a[a]=[],this.b++);var o=pe(e,t,r,i);return-1<o?(t=e[o],n||(t.Z=!1)):((t=new ue(t,this.src,a,!!r,i)).Z=n,e.push(t)),t};var me="closure_lm_"+(1e6*Math.random()|0),ve={};function ge(e,t,n,r,i){if(r&&r.once)return function e(t,n,r,i,a){if(h(n)){for(var o=0;o<n.length;o++)e(t,n[o],r,i,a);return null}return r=Te(r),t&&t[le]?t.Aa(n,r,p(i)?!!i.capture:!!i,a):ye(t,n,r,!0,i,a)}(e,t,n,r,i);if(h(t)){for(var a=0;a<t.length;a++)ge(e,t[a],n,r,i);return null}return n=Te(n),e&&e[le]?e.za(t,n,p(r)?!!r.capture:!!r,i):ye(e,t,n,!1,r,i)}function ye(e,t,n,r,i,a){if(!t)throw Error("Invalid event type");var o=p(i)?!!i.capture:!!i;if(o&&!ne)return null;var s=Ee(e);if(s||(e[me]=s=new he(e)),(n=s.add(t,n,r,o,a)).proxy)return n;if(r=function(){var e=ke,t=ne?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)ie||(i=o),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(_e(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function be(e){if(!l(e)&&e&&!e.X){var t=e.src;if(t&&t[le])fe(t.c,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(_e(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=Ee(t))?(fe(n,e),0==n.b&&(n.src=null,t[me]=null)):de(e)}}}function _e(e){return e in ve?ve[e]:ve[e]="on"+e}function we(e,t){var n=e.listener,r=e.da||e.src;return e.Z&&be(e),n.call(r,t)}function ke(e,t){return!!e.X||(ne?we(e,new oe(t,this)):we(e,t=new oe(t||c("window.event"),this)))}function Ee(e){return(e=e[me])instanceof he?e:null}var Se="__closure_events_fn_"+(1e9*Math.random()>>>0);function Te(e){return"function"==d(e)?e:(e[Se]||(e[Se]=function(t){return e.handleEvent(t)}),e[Se])}function Ce(){E.call(this),this.c=new he(this),this.J=this,this.B=null}function Me(e,t,n,r){if(!(t=e.c.a[String(t)]))return!0;t=t.concat();for(var i=!0,a=0;a<t.length;++a){var o=t[a];if(o&&!o.X&&o.capture==n){var s=o.listener,l=o.da||o.src;o.Z&&fe(e.c,o),i=!1!==s.call(l,r)&&i}}return i&&0!=r.Ia}k(Ce,E),Ce.prototype[le]=!0,(r=Ce.prototype).addEventListener=function(e,t,n,r){ge(this,e,t,n,r)},r.removeEventListener=function(e,t,n,r){!function e(t,n,r,i,a){if(h(n))for(var o=0;o<n.length;o++)e(t,n[o],r,i,a);else i=p(i)?!!i.capture:!!i,r=Te(r),t&&t[le]?(t=t.c,(n=String(n).toString())in t.a&&(-1<(r=pe(o=t.a[n],r,i,a))&&(de(o[r]),Array.prototype.splice.call(o,r,1),0==o.length&&(delete t.a[n],t.b--)))):t&&(t=Ee(t))&&(n=t.a[n.toString()],t=-1,n&&(t=pe(n,r,i,a)),(r=-1<t?n[t]:null)&&be(r))}(this,e,t,n,r)},r.dispatchEvent=function(e){var t,n=this.B;if(n)for(t=[];n;n=n.B)t.push(n);n=this.J;var r=e.type||e;if(s(e))e=new ae(e,n);else if(e instanceof ae)e.target=e.target||n;else{var i=e;B(e=new ae(r,n),i)}if(i=!0,t)for(var a=t.length-1;0<=a;a--){var o=e.a=t[a];i=Me(o,r,!0,e)&&i}if(i=Me(o=e.a=n,r,!0,e)&&i,i=Me(o,r,!1,e)&&i,t)for(a=0;a<t.length;a++)i=Me(o=e.a=t[a],r,!1,e)&&i;return i},r.G=function(){if(Ce.N.G.call(this),this.c){var e,t=this.c;for(e in t.a){for(var n=t.a[e],r=0;r<n.length;r++)de(n[r]);delete t.a[e],t.b--}}this.B=null},r.za=function(e,t,n,r){return this.c.add(String(e),t,!1,n,r)},r.Aa=function(e,t,n,r){return this.c.add(String(e),t,!0,n,r)};var xe=o.JSON.stringify;function $e(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function Le(){this.b=this.a=null}$e.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var Pe,Oe=new $e((function(){return new Ae}),(function(e){e.reset()}));function Ie(){var e=Be,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function Ae(){this.next=this.b=this.a=null}function De(e){o.setTimeout((function(){throw e}),0)}function Ne(e,t){Pe||function(){var e=o.Promise.resolve(void 0);Pe=function(){e.then(Ye)}}(),Re||(Pe(),Re=!0),Be.add(e,t)}Le.prototype.add=function(e,t){var n=Oe.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},Ae.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},Ae.prototype.reset=function(){this.next=this.b=this.a=null};var Re=!1,Be=new Le;function Ye(){for(var e;e=Ie();){try{e.a.call(e.b)}catch(e){De(e)}var t=Oe;t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}Re=!1}function je(e,t){Ce.call(this),this.b=e||1,this.a=t||o,this.f=b(this.gb,this),this.g=w()}function Fe(e){e.ba=!1,e.L&&(e.a.clearTimeout(e.L),e.L=null)}function He(e,t,n){if("function"==d(e))n&&(e=b(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=b(e.handleEvent,e)}return 2147483647<Number(t)?-1:o.setTimeout(e,t||0)}function Ue(e,t,n){E.call(this),this.f=null!=n?b(e,n):e,this.c=t,this.b=b(this.$a,this),this.a=[]}function ze(e){e.U=He(e.b,e.c),e.f.apply(null,e.a)}function Ve(e){E.call(this),this.b=e,this.a={}}k(je,Ce),(r=je.prototype).ba=!1,r.L=null,r.gb=function(){if(this.ba){var e=w()-this.g;0<e&&e<.8*this.b?this.L=this.a.setTimeout(this.f,this.b-e):(this.L&&(this.a.clearTimeout(this.L),this.L=null),this.dispatchEvent("tick"),this.ba&&(Fe(this),this.start()))}},r.start=function(){this.ba=!0,this.L||(this.L=this.a.setTimeout(this.f,this.b),this.g=w())},r.G=function(){je.N.G.call(this),Fe(this),delete this.a},k(Ue,E),(r=Ue.prototype).ea=!1,r.U=null,r.Ta=function(e){this.a=arguments,this.U?this.ea=!0:ze(this)},r.G=function(){Ue.N.G.call(this),this.U&&(o.clearTimeout(this.U),this.U=null,this.ea=!1,this.a=[])},r.$a=function(){this.U=null,this.ea&&(this.ea=!1,ze(this))},k(Ve,E);var qe=[];function We(e,t,n,r){h(n)||(n&&(qe[0]=n.toString()),n=qe);for(var i=0;i<n.length;i++){var a=ge(t,n[i],r||e.handleEvent,!1,e.b||e);if(!a)break;e.a[a.key]=a}}function Ge(e){D(e.a,(function(e,t){this.a.hasOwnProperty(t)&&be(e)}),e),e.a={}}function Ke(){}Ve.prototype.G=function(){Ve.N.G.call(this),Ge(this)},Ve.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Je=new Ce;function Xe(e){ae.call(this,"serverreachability",e)}function Qe(e){Je.dispatchEvent(new Xe(Je,e))}function Ze(e){ae.call(this,"statevent",e)}function et(e){Je.dispatchEvent(new Ze(Je,e))}function tt(e){ae.call(this,"timingevent",e)}function nt(e,t){if("function"!=d(e))throw Error("Fn must not be null and must be a function");return o.setTimeout((function(){e()}),t)}k(Xe,ae),k(Ze,ae),k(tt,ae);var rt={NO_ERROR:0,hb:1,ob:2,nb:3,kb:4,mb:5,pb:6,La:7,TIMEOUT:8,sb:9},it={jb:"complete",wb:"success",Ma:"error",La:"abort",ub:"ready",vb:"readystatechange",TIMEOUT:"timeout",qb:"incrementaldata",tb:"progress",lb:"downloadprogress",xb:"uploadprogress"};function at(){}function ot(e){var t;return(t=e.a)||(t=e.a={}),t}function st(){}at.prototype.a=null;var lt,ct={OPEN:"a",ib:"b",Ma:"c",rb:"d"};function ut(){ae.call(this,"d")}function dt(){ae.call(this,"c")}function ht(){}function ft(e,t,n){this.g=e,this.W=t,this.V=n||1,this.I=new Ve(this),this.O=pt,e=V?125:void 0,this.P=new je(e),this.h=null,this.b=!1,this.l=this.D=this.f=this.F=this.v=this.R=this.i=null,this.j=[],this.a=null,this.A=0,this.c=this.w=null,this.o=-1,this.m=!1,this.J=0,this.B=null,this.s=this.S=this.H=!1}k(ut,ae),k(dt,ae),k(ht,at),lt=new ht;var pt=45e3,mt={},vt={};function gt(e,t,n){e.F=1,e.f=Ht(Dt(t)),e.l=n,e.H=!0,bt(e,null)}function yt(e,t,n,r){e.F=1,e.f=Ht(Dt(t)),e.l=null,e.H=n,bt(e,r)}function bt(e,t){e.v=w(),kt(e),e.D=Dt(e.f),Ft(e.D,"t",e.V),e.A=0,e.a=e.g.$(e.g.Y()?t:null),0<e.J&&(e.B=new Ue(b(e.Ja,e,e.a),e.J)),We(e.I,e.a,"readystatechange",e.cb),t=e.h?N(e.h):{},e.l?(e.w||(e.w="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.a.ca(e.D,e.w,e.l,t)):(e.w="GET",e.a.ca(e.D,e.w,null,t)),Qe(1)}function _t(e,t,n){for(var r=!0;!e.m&&e.A<n.length;){var i=wt(e,n);if(i==vt){4==t&&(e.c=4,et(14),r=!1);break}if(i==mt){e.c=4,et(15),r=!1;break}Mt(e,i)}4==t&&0==n.length&&(e.c=1,et(16),r=!1),e.b=e.b&&r,r||(Ct(e),Tt(e))}function wt(e,t){var n=e.A,r=t.indexOf("\n",n);return-1==r?vt:(n=Number(t.substring(n,r)),isNaN(n)?mt:(r+=1)+n>t.length?vt:(t=t.substr(r,n),e.A=r+n,t))}function kt(e){e.R=w()+e.O,Et(e,e.O)}function Et(e,t){if(null!=e.i)throw Error("WatchDog timer not null");e.i=nt(b(e.ab,e),t)}function St(e){e.i&&(o.clearTimeout(e.i),e.i=null)}function Tt(e){e.g.Ca()||e.m||e.g.na(e)}function Ct(e){St(e);var t=e.B;t&&"function"==typeof t.la&&t.la(),e.B=null,Fe(e.P),Ge(e.I),e.a&&(t=e.a,e.a=null,t.abort(),t.la())}function Mt(e,t){try{e.g.Fa(e,t),Qe(4)}catch(e){}}function xt(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(f(e)||s(e))T(e,t,void 0);else{if(e.K&&"function"==typeof e.K)var n=e.K();else if(e.C&&"function"==typeof e.C)n=void 0;else if(f(e)||s(e)){n=[];for(var r=e.length,i=0;i<r;i++)n.push(i)}else for(i in n=[],r=0,e)n[r++]=i;i=(r=function(e){if(e.C&&"function"==typeof e.C)return e.C();if(s(e))return e.split("");if(f(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}(e)).length;for(var a=0;a<i;a++)t.call(void 0,r[a],n&&n[a],e)}}function $t(e,t){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(e)if(e instanceof $t)for(n=e.K(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}function Lt(e,t){Ot(e.b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&Pt(e))}function Pt(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var r=e.a[t];Ot(e.b,r)&&(e.a[n++]=r),t++}e.a.length=n}if(e.c!=e.a.length){var i={};for(n=t=0;t<e.a.length;)Ot(i,r=e.a[t])||(e.a[n++]=r,i[r]=1),t++;e.a.length=n}}function Ot(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(r=ft.prototype).setTimeout=function(e){this.O=e},r.cb=function(e){e=e.target;var t=this.B;t&&3==Dn(e)?t.Ta():this.Ja(e)},r.Ja=function(e){try{if(e==this.a)e:{var t=Dn(this.a),n=this.a.ya(),r=this.a.T();if(!(3>t||3==t&&!V&&!this.a.aa())){this.m||4!=t||7==n||Qe(8==n||0>=r?3:2),St(this);var i=this.a.T();this.o=i;var a=this.a.aa();if(this.b=200==i){if(this.S&&!this.s){t:{if(this.a){var o=Nn(this.a,"X-HTTP-Initial-Response");if(o&&!x(o)){var s=o;break t}}s=null}if(!s){this.b=!1,this.c=3,et(12),Ct(this),Tt(this);break e}this.s=!0,Mt(this,s)}this.H?(_t(this,t,a),V&&this.b&&3==t&&(We(this.I,this.P,"tick",this.bb),this.P.start())):Mt(this,a),4==t&&Ct(this),this.b&&!this.m&&(4==t?this.g.na(this):(this.b=!1,kt(this)))}else 400==i&&0<a.indexOf("Unknown SID")?(this.c=3,et(12)):(this.c=0,et(13)),Ct(this),Tt(this)}}}catch(e){}},r.bb=function(){if(this.a){var e=Dn(this.a),t=this.a.aa();this.A<t.length&&(St(this),_t(this,e,t),this.b&&4!=e&&kt(this))}},r.cancel=function(){this.m=!0,Ct(this)},r.ab=function(){this.i=null;var e=w();0<=e-this.R?(2!=this.F&&(Qe(3),et(17)),Ct(this),this.c=2,Tt(this)):Et(this,this.R-e)},(r=$t.prototype).C=function(){Pt(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},r.K=function(){return Pt(this),this.a.concat()},r.get=function(e,t){return Ot(this.b,e)?this.b[e]:t},r.set=function(e,t){Ot(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},r.forEach=function(e,t){for(var n=this.K(),r=0;r<n.length;r++){var i=n[r],a=this.get(i);e.call(t,a,i,this)}};var It=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function At(e,t){var n;this.b=this.j=this.f="",this.i=null,this.g=this.a="",this.h=!1,e instanceof At?(this.h=void 0!==t?t:e.h,Nt(this,e.f),this.j=e.j,Rt(this,e.b),Bt(this,e.i),this.a=e.a,Yt(this,nn(e.c)),this.g=e.g):e&&(n=String(e).match(It))?(this.h=!!t,Nt(this,n[1]||"",!0),this.j=Ut(n[2]||""),Rt(this,n[3]||"",!0),Bt(this,n[4]),this.a=Ut(n[5]||"",!0),Yt(this,n[6]||"",!0),this.g=Ut(n[7]||"")):(this.h=!!t,this.c=new Xt(null,this.h))}function Dt(e){return new At(e)}function Nt(e,t,n){e.f=n?Ut(t,!0):t,e.f&&(e.f=e.f.replace(/:$/,""))}function Rt(e,t,n){e.b=n?Ut(t,!0):t}function Bt(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.i=t}else e.i=null}function Yt(e,t,n){t instanceof Xt?(e.c=t,function(e,t){t&&!e.f&&(Qt(e),e.c=null,e.a.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(Zt(this,t),tn(this,n,e))}),e)),e.f=t}(e.c,e.h)):(n||(t=zt(t,Kt)),e.c=new Xt(t,e.h))}function jt(e,t,n){e.c.set(t,n)}function Ft(e,t,n){h(n)||(n=[String(n)]),tn(e.c,t,n)}function Ht(e){return jt(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^w()).toString(36)),e}function Ut(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function zt(e,t,n){return s(e)?(e=encodeURI(e).replace(t,Vt),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Vt(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}At.prototype.toString=function(){var e=[],t=this.f;t&&e.push(zt(t,qt,!0),":");var n=this.b;return(n||"file"==t)&&(e.push("//"),(t=this.j)&&e.push(zt(t,qt,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.i)&&e.push(":",String(n))),(n=this.a)&&(this.b&&"/"!=n.charAt(0)&&e.push("/"),e.push(zt(n,"/"==n.charAt(0)?Gt:Wt,!0))),(n=this.c.toString())&&e.push("?",n),(n=this.g)&&e.push("#",zt(n,Jt)),e.join("")},At.prototype.resolve=function(e){var t=Dt(this),n=!!e.f;n?Nt(t,e.f):n=!!e.j,n?t.j=e.j:n=!!e.b,n?Rt(t,e.b):n=null!=e.i;var r=e.a;if(n)Bt(t,e.i);else if(n=!!e.a){if("/"!=r.charAt(0))if(this.b&&!this.a)r="/"+r;else{var i=t.a.lastIndexOf("/");-1!=i&&(r=t.a.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(P(i,"./")||P(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var a=[],o=0;o<i.length;){var s=i[o++];"."==s?r&&o==i.length&&a.push(""):".."==s?((1<a.length||1==a.length&&""!=a[0])&&a.pop(),r&&o==i.length&&a.push("")):(a.push(s),r=!0)}r=a.join("/")}else r=i}return n?t.a=r:n=""!==e.c.toString(),n?Yt(t,nn(e.c)):n=!!e.g,n&&(t.g=e.g),t};var qt=/[#\/\?@]/g,Wt=/[#\?:]/g,Gt=/[#\?]/g,Kt=/[#\?@]/g,Jt=/#/g;function Xt(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function Qt(e){e.a||(e.a=new $t,e.b=0,e.c&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var a=e[n].substring(0,r);i=e[n].substring(r+1)}else a=e[n];t(a,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.c,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function Zt(e,t){Qt(e),t=rn(e,t),Ot(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,Lt(e.a,t))}function en(e,t){return Qt(e),t=rn(e,t),Ot(e.a.b,t)}function tn(e,t,n){Zt(e,t),0<n.length&&(e.c=null,e.a.set(rn(e,t),M(n)),e.b+=n.length)}function nn(e){var t=new Xt;return t.c=e.c,e.a&&(t.a=new $t(e.a),t.b=e.b),t}function rn(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}function an(e){this.a=e,this.b=this.h=null,this.g=!1,this.i=null,this.c=-1,this.l=this.f=null}function on(e){var t=e.a.F.a;if(null!=t)et(4),t?(et(10),Gn(e.a,e,!1)):(et(11),Gn(e.a,e,!0));else{e.b=new ft(e,void 0,void 0),e.b.h=e.h,t=Zn(t=e.a,t.Y()?e.f:null,e.i),et(4),Ft(t,"TYPE","xmlhttp");var n=e.a.j,r=e.a.I;n&&r&&jt(t,n,r),yt(e.b,t,!1,e.f)}}function sn(){this.a=this.b=null}function ln(){this.a=new $t}function cn(e){var t=typeof e;return"object"==t&&e||"function"==t?"o"+(e[m]||(e[m]=++v)):t.charAt(0)+e}function un(e,t){this.b=e,this.a=t}function dn(e){this.g=e||hn,o.PerformanceNavigationTiming?e=0<(e=o.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(o.ka&&o.ka.Da&&o.ka.Da()&&o.ka.Da().zb),this.f=e?this.g:1,this.a=null,1<this.f&&(this.a=new ln),this.b=null,this.c=[]}(r=Xt.prototype).add=function(e,t){Qt(this),this.c=null,e=rn(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},r.forEach=function(e,t){Qt(this),this.a.forEach((function(n,r){T(n,(function(n){e.call(t,n,r,this)}),this)}),this)},r.K=function(){Qt(this);for(var e=this.a.C(),t=this.a.K(),n=[],r=0;r<t.length;r++)for(var i=e[r],a=0;a<i.length;a++)n.push(t[r]);return n},r.C=function(e){Qt(this);var t=[];if(s(e))en(this,e)&&(t=C(t,this.a.get(rn(this,e))));else{e=this.a.C();for(var n=0;n<e.length;n++)t=C(t,e[n])}return t},r.set=function(e,t){return Qt(this),this.c=null,en(this,e=rn(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},r.get=function(e,t){return e&&0<(e=this.C(e)).length?String(e[0]):t},r.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.K(),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r));r=this.C(r);for(var a=0;a<r.length;a++){var o=i;""!==r[a]&&(o+="="+encodeURIComponent(String(r[a]))),e.push(o)}}return this.c=e.join("&")},k((function(){}),(function(){})),(r=an.prototype).M=null,r.$=function(e){return this.a.$(e)},r.abort=function(){this.b&&(this.b.cancel(),this.b=null),this.c=-1},r.Ca=function(){return!1},r.Fa=function(e,t){if(this.c=e.o,0==this.M){if(!this.a.o&&(e=e.a)){var n=Nn(e,"X-Client-Wire-Protocol");this.l=n||null,this.a.j&&(e=Nn(e,"X-HTTP-Session-Id"))&&(this.a.I=e)}if(t){try{var r=this.a.ja.a.parse(t)}catch(e){return(t=this.a).m=this.c,void Xn(t,2)}this.f=r[0]}else(t=this.a).m=this.c,Xn(t,2)}else 1==this.M&&(this.g?et(6):"11111"==t?(et(5),this.g=!0,(!U||10<=Number(Q))&&(this.c=200,this.b.cancel(),et(11),Gn(this.a,this,!0))):(et(7),this.g=!1))},r.na=function(){if(this.c=this.b.o,this.b.b)0==this.M?(this.M=1,on(this)):1==this.M&&(this.g?(et(11),Gn(this.a,this,!0)):(et(10),Gn(this.a,this,!1)));else{0==this.M?et(8):1==this.M&&et(9);var e=this.a;e.m=this.c,Xn(e,2)}},r.Y=function(){return this.a.Y()},r.ma=function(){return this.a.ma()},ln.prototype.add=function(e){this.a.set(cn(e),e)},ln.prototype.C=function(){return this.a.C()};var hn=10;function fn(e,t){!e.a&&(P(t,"spdy")||P(t,"quic")||P(t,"h2"))&&(e.f=e.g,e.a=new ln,e.b&&(gn(e,e.b),e.b=null))}function pn(e){return!!e.b||!!e.a&&e.a.a.c>=e.f}function mn(e){return e.b?1:e.a?e.a.a.c:0}function vn(e,t){return e.b?e=e.b==t:e.a?(t=cn(t),e=Ot(e.a.a.b,t)):e=!1,e}function gn(e,t){e.a?e.a.add(t):e.b=t}function yn(e,t){var n;e.b&&e.b==t?e.b=null:((n=e.a)&&(n=cn(t),n=Ot(e.a.a.b,n)),n&&Lt(e.a.a,cn(t)))}function bn(e){if(null!=e.b)return e.c.concat(e.b.j);if(null!=e.a&&0!=e.a.a.c){var t=e.c;return T(e.a.C(),(function(e){t=t.concat(e.j)})),t}return M(e.c)}function _n(){}function wn(){this.a=new _n}function kn(e,t,n){var r=n||"";try{xt(e,(function(e,n){var i=e;p(e)&&(i=xe(e)),t.push(r+n+"="+encodeURIComponent(i))}))}catch(e){throw t.push(r+"type="+encodeURIComponent("_badmap")),e}}function En(e,t,n,r,i){try{t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,i(r)}catch(e){}}dn.prototype.cancel=function(){this.c=bn(this),this.b?(this.b.cancel(),this.b=null):this.a&&0!=this.a.a.c&&(T(this.a.C(),(function(e){e.cancel()})),function(e){e.b={},e.a.length=0,e.c=0}(this.a.a))},_n.prototype.stringify=function(e){return o.JSON.stringify(e,void 0)},_n.prototype.parse=function(e){return o.JSON.parse(e,void 0)};var Sn=o.JSON.parse;function Tn(e){Ce.call(this),this.headers=new $t,this.H=e||null,this.b=!1,this.s=this.a=null,this.A="",this.h=0,this.f="",this.g=this.w=this.l=this.v=!1,this.o=0,this.m=null,this.I=Cn,this.D=this.F=!1}k(Tn,Ce);var Cn="",Mn=/^https?$/i,xn=["POST","PUT"];function $n(e){return"content-type"==e.toLowerCase()}function Ln(e,t){e.b=!1,e.a&&(e.g=!0,e.a.abort(),e.g=!1),e.f=t,e.h=5,Pn(e),In(e)}function Pn(e){e.v||(e.v=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function On(e){if(e.b&&void 0!==a&&(!e.s[1]||4!=Dn(e)||2!=e.T()))if(e.l&&4==Dn(e))He(e.Ea,0,e);else if(e.dispatchEvent("readystatechange"),4==Dn(e)){e.b=!1;try{var t,n=e.T();e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break e;default:r=!1}if(!(t=r)){var i;if(i=0===n){var s=String(e.A).match(It)[1]||null;if(!s&&o.self&&o.self.location){var l=o.self.location.protocol;s=l.substr(0,l.length-1)}i=!Mn.test(s?s.toLowerCase():"")}t=i}if(t)e.dispatchEvent("complete"),e.dispatchEvent("success");else{e.h=6;try{var c=2<Dn(e)?e.a.statusText:""}catch(e){c=""}e.f=c+" ["+e.T()+"]",Pn(e)}}finally{In(e)}}}function In(e,t){if(e.a){An(e);var n=e.a,r=e.s[0]?u:null;e.a=null,e.s=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=r}catch(e){}}}function An(e){e.a&&e.D&&(e.a.ontimeout=null),e.m&&(o.clearTimeout(e.m),e.m=null)}function Dn(e){return e.a?e.a.readyState:0}function Nn(e,t){return e.a?e.a.getResponseHeader(t):null}function Rn(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}if(r)return e;if(n=function(e){var t="";return D(e,(function(e,n){t+=n,t+=":",t+=e,t+="\r\n"})),t}(n),s(e)){if(t=encodeURIComponent(String(t)),t+=n=null!=n?"="+encodeURIComponent(String(n)):""){if(0>(n=e.indexOf("#"))&&(n=e.length),0>(r=e.indexOf("?"))||r>n){r=n;var i=""}else i=e.substring(r+1,n);n=(e=[e.substr(0,r),i,e.substr(n)])[1],e[1]=t?n?n+"&"+t:t:n,e=e[0]+(e[1]?"?"+e[1]:"")+e[2]}return e}return jt(e,t,n),e}function Bn(e){this.f=[],this.F=new sn,this.ga=this.pa=this.B=this.ha=this.a=this.I=this.j=this.V=this.g=this.J=this.i=null,this.Qa=this.P=0,this.Oa=!!c("internalChannelParams.failFast",e),this.ia=this.w=this.s=this.l=this.h=this.c=null,this.oa=!0,this.m=this.ra=this.O=-1,this.S=this.v=this.A=0,this.Na=c("internalChannelParams.baseRetryDelayMs",e)||5e3,this.Ra=c("internalChannelParams.retryDelaySeedMs",e)||1e4,this.Pa=c("internalChannelParams.forwardChannelMaxRetries",e)||2,this.qa=c("internalChannelParams.forwardChannelRequestTimeoutMs",e)||2e4,this.Ka=e&&e.Ab||void 0,this.D=void 0,this.R=e&&e.supportsCrossDomainXhr||!1,this.H="",this.b=new dn(e&&e.concurrentRequestLimit),this.ja=new wn,this.o=!e||void 0===e.backgroundChannelTest||e.backgroundChannelTest,(this.W=e&&e.fastHandshake||!1)&&!this.o&&(this.o=!0),e&&e.forceLongPolling&&(this.oa=!1),this.fa=void 0}function Yn(e){if(jn(e),3==e.u){var t=e.P++,n=Dt(e.B);jt(n,"SID",e.H),jt(n,"RID",t),jt(n,"TYPE","terminate"),zn(e,n),(t=new ft(e,t,void 0)).F=2,t.f=Ht(Dt(n)),n=!1,o.navigator&&o.navigator.sendBeacon&&(n=o.navigator.sendBeacon(t.f.toString(),"")),!n&&o.Image&&((new Image).src=t.f,n=!0),n||(t.a=t.g.$(null),t.a.ca(t.f)),t.v=w(),kt(t)}Qn(e)}function jn(e){e.w&&(e.w.abort(),e.w=null),e.a&&(e.a.cancel(),e.a=null),e.l&&(o.clearTimeout(e.l),e.l=null),Kn(e),e.b.cancel(),e.h&&(l(e.h)&&o.clearTimeout(e.h),e.h=null)}function Fn(e,t){e.f.push(new un(e.Qa++,t)),3==e.u&&Hn(e)}function Hn(e){pn(e.b)||e.h||(e.h=!0,Ne(e.Ha,e),e.A=0)}function Un(e,t){var n;n=t?t.W:e.P++;var r=Dt(e.B);jt(r,"SID",e.H),jt(r,"RID",n),jt(r,"AID",e.O),zn(e,r),e.g&&e.i&&Rn(r,e.g,e.i),n=new ft(e,n,e.A+1),null===e.g&&(n.h=e.i),t&&(e.f=t.j.concat(e.f)),t=Vn(e,n,1e3),n.setTimeout(Math.round(.5*e.qa)+Math.round(.5*e.qa*Math.random())),gn(e.b,n),gt(n,r,t)}function zn(e,t){e.c&&xt({},(function(e,n){jt(t,n,e)}))}function Vn(e,t,n){n=Math.min(e.f.length,n);var r=e.c?b(e.c.Sa,e.c,e):null;e:for(var i=e.f,a=-1;;){var o=["count="+n];-1==a?0<n?(a=i[0].b,o.push("ofs="+a)):a=0:o.push("ofs="+a);for(var s=!0,l=0;l<n;l++){var c=i[l].b,u=i[l].a;if(0>(c-=a))a=Math.max(0,i[l].b-100),s=!1;else try{kn(u,o,"req"+c+"_")}catch(e){r&&r(u)}}if(s){r=o.join("&");break e}}return e=e.f.splice(0,n),t.j=e,r}function qn(e){e.a||e.l||(e.S=1,Ne(e.Ga,e),e.v=0)}function Wn(e){return!(e.a||e.l||3<=e.v)&&(e.S++,e.l=nt(b(e.Ga,e),Jn(e,e.v)),e.v++,!0)}function Gn(e,t,n){var r=t.l;r&&fn(e.b,r),e.ia=e.oa&&n,e.m=t.c,e.B=Zn(e,null,e.ha),Hn(e)}function Kn(e){null!=e.s&&(o.clearTimeout(e.s),e.s=null)}function Jn(e,t){var n=e.Na+Math.floor(Math.random()*e.Ra);return e.ma()||(n*=2),n*t}function Xn(e,t){if(2==t){var n=null;e.c&&(n=null);var r=b(e.eb,e);n||(n=new At("//www.google.com/images/cleardot.gif"),o.location&&"http"==o.location.protocol||Nt(n,"https"),Ht(n)),function(e,t){var n=new Ke;if(o.Image){var r=new Image;r.onload=_(En,n,r,"TestLoadImage: loaded",!0,t),r.onerror=_(En,n,r,"TestLoadImage: error",!1,t),r.onabort=_(En,n,r,"TestLoadImage: abort",!1,t),r.ontimeout=_(En,n,r,"TestLoadImage: timeout",!1,t),o.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=e}else t(!1)}(n.toString(),r)}else et(2);e.u=0,e.c&&e.c.ta(t),Qn(e),jn(e)}function Qn(e){e.u=0,e.m=-1,e.c&&(0==bn(e.b).length&&0==e.f.length||(e.b.c.length=0,M(e.f),e.f.length=0),e.c.sa())}function Zn(e,t,n){var r=function(e){return e instanceof At?Dt(e):new At(e,void 0)}(n);if(""!=r.b)t&&Rt(r,t+"."+r.b),Bt(r,r.i);else{var i,a=o.location;i=t?t+"."+a.hostname:a.hostname,r=function(e,t,n,r){var i=new At(null,void 0);return e&&Nt(i,e),t&&Rt(i,t),n&&Bt(i,n),r&&(i.a=r),i}(a.protocol,i,+a.port,n)}return e.V&&D(e.V,(function(e,t){jt(r,t,e)})),t=e.j,n=e.I,t&&n&&jt(r,t,n),jt(r,"VER",e.wa),zn(e,r),r}function er(){}function tr(){if(U&&!(10<=Number(Q)))throw Error("Environmental error: no available transport.")}function nr(e,t){Ce.call(this),this.a=new Bn(t),this.g=e,this.m=t&&t.fb?t.fb:function(e){for(var t=arguments[0],n=1;n<arguments.length;n++){var r,i=arguments[n];if(0==i.lastIndexOf("/",0))t=i;else(r=""==t)||(r=0<=(r=t.length-1)&&t.indexOf("/",r)==r),t+=r?i:"/"+i}return t}(this.g,"test"),this.b=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.a.i=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.xa&&(e?e["X-WebChannel-Client-Profile"]=t.xa:e={"X-WebChannel-Client-Profile":t.xa}),this.a.J=e,(e=t&&t.httpHeadersOverwriteParam)&&!x(e)&&(this.a.g=e),this.l=t&&t.supportsCrossDomainXhr||!1,this.h=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!x(t)&&(this.a.j=t,null!==(e=this.b)&&t in e&&(t in(e=this.b)&&delete e[t])),this.f=new ar(this)}function rr(e){ut.call(this);var t=e.__sm__;if(t){e:{for(var n in t){e=n;break e}e=void 0}(this.c=e)?(e=this.c,this.data=null!==t&&e in t?t[e]:void 0):this.data=t}else this.data=e}function ir(){dt.call(this),this.status=1}function ar(e){this.a=e}(r=Tn.prototype).ca=function(e,t,n,r){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.A+"; newUri="+e);t=t?t.toUpperCase():"GET",this.A=e,this.f="",this.h=0,this.v=!1,this.b=!0,this.a=new XMLHttpRequest,this.s=this.H?ot(this.H):ot(lt),this.a.onreadystatechange=b(this.Ea,this);try{this.w=!0,this.a.open(t,String(e),!0),this.w=!1}catch(e){return void Ln(this,e)}e=n||"";var i=new $t(this.headers);r&&xt(r,(function(e,t){i.set(t,e)})),r=function(e){e:{for(var t=$n,n=e.length,r=s(e)?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e)){t=i;break e}t=-1}return 0>t?null:s(e)?e.charAt(t):e[t]}(i.K()),n=o.FormData&&e instanceof o.FormData,!(0<=S(xn,t))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),i.forEach((function(e,t){this.a.setRequestHeader(t,e)}),this),this.I&&(this.a.responseType=this.I),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{An(this),0<this.o&&((this.D=function(e){return U&&ee(9)&&l(e.timeout)&&void 0!==e.ontimeout}(this.a))?(this.a.timeout=this.o,this.a.ontimeout=b(this.Ba,this)):this.m=He(this.Ba,this.o,this)),this.l=!0,this.a.send(e),this.l=!1}catch(e){Ln(this,e)}},r.Ba=function(){void 0!==a&&this.a&&(this.f="Timed out after "+this.o+"ms, aborting",this.h=8,this.dispatchEvent("timeout"),this.abort(8))},r.abort=function(e){this.a&&this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1,this.h=e||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),In(this))},r.G=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),In(this,!0)),Tn.N.G.call(this)},r.Ea=function(){this.j||(this.w||this.l||this.g?On(this):this.Za())},r.Za=function(){On(this)},r.T=function(){try{return 2<Dn(this)?this.a.status:-1}catch(e){return-1}},r.aa=function(){try{return this.a?this.a.responseText:""}catch(e){return""}},r.Ua=function(e){if(this.a){var t=this.a.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),Sn(t)}},r.ya=function(){return this.h},r.Xa=function(){return s(this.f)?this.f:String(this.f)},(r=Bn.prototype).wa=8,r.u=1,r.Ca=function(){return 0==this.u},r.Ha=function(e){if(this.h)if(this.h=null,1==this.u){if(!e){this.P=Math.floor(1e5*Math.random());var t,n=new ft(this,e=this.P++,void 0),r=this.i;if(this.J&&(r?B(r=N(r),this.J):r=this.J),null===this.g&&(n.h=r),this.W)e:{for(var i=t=0;i<this.f.length;i++){var a=this.f[i];if(void 0===(a="__data__"in a.a&&s(a=a.a.__data__)?a.length:void 0))break;if(4096<(t+=a)){t=i;break e}if(4096===t||i===this.f.length-1){t=i+1;break e}}t=1e3}else t=1e3;t=Vn(this,n,t),jt(i=Dt(this.B),"RID",e),jt(i,"CVER",22),this.o&&this.j&&jt(i,"X-HTTP-Session-Id",this.j),zn(this,i),this.g&&r&&Rn(i,this.g,r),gn(this.b,n),this.W?(jt(i,"$req",t),jt(i,"SID","null"),n.S=!0,gt(n,i,null)):gt(n,i,t),this.u=2}}else 3==this.u&&(e?Un(this,e):0==this.f.length||pn(this.b)||Un(this))},r.Ga=function(){this.l=null,this.a=new ft(this,"rpc",this.S),null===this.g&&(this.a.h=this.i),this.a.J=0;var e=Dt(this.pa);jt(e,"RID","rpc"),jt(e,"SID",this.H),jt(e,"CI",this.ia?"0":"1"),jt(e,"AID",this.O),zn(this,e),jt(e,"TYPE","xmlhttp"),this.g&&this.i&&Rn(e,this.g,this.i),this.D&&this.a.setTimeout(this.D),yt(this.a,e,!0,this.ga)},r.Fa=function(e,t){if(0!=this.u&&(this.a==e||vn(this.b,e)))if(this.m=e.o,!e.s&&vn(this.b,e)&&3==this.u){try{var n=this.ja.a.parse(t)}catch(e){n=null}if(h(n)&&3==n.length){if(0==(t=n)[0]){e:if(!this.l){if(this.a){if(!(this.a.v+3e3<e.v))break e;Kn(this),this.a.cancel(),this.a=null}Wn(this),et(18)}}else this.ra=t[1],0<this.ra-this.O&&37500>t[2]&&this.ia&&0==this.v&&!this.s&&(this.s=nt(b(this.Ya,this),6e3));if(1>=mn(this.b)&&this.fa){try{this.fa()}catch(e){}this.fa=void 0}}else Xn(this,11)}else if((e.s||this.a==e)&&Kn(this),!x(t))for(t=n=this.ja.a.parse(t),n=0;n<t.length;n++){var r=t[n];if(this.O=r[0],r=r[1],2==this.u)if("c"==r[0]){this.H=r[1],this.ga=r[2];var i=r[3];null!=i&&(this.wa=i),null!=(r=r[5])&&l(r)&&0<r&&(this.D=1.5*r),this.o&&(r=e.a)&&((i=Nn(r,"X-Client-Wire-Protocol"))&&fn(this.b,i),this.j&&(r=Nn(r,"X-HTTP-Session-Id")))&&(this.I=r,jt(this.B,this.j,r)),this.u=3,this.c&&this.c.va(),r=e,this.pa=Zn(this,this.Y()?this.ga:null,this.ha),r.s?(yn(this.b,r),(i=this.D)&&r.setTimeout(i),r.i&&(St(r),kt(r)),this.a=r):qn(this),0<this.f.length&&Hn(this)}else"stop"!=r[0]&&"close"!=r[0]||Xn(this,7);else 3==this.u&&("stop"==r[0]||"close"==r[0]?"stop"==r[0]?Xn(this,7):Yn(this):"noop"!=r[0]&&this.c&&this.c.ua(r),this.v=0)}},r.Ya=function(){null!=this.s&&(this.s=null,this.a.cancel(),this.a=null,Wn(this),et(19))},r.na=function(e){var t=null;if(this.a==e){Kn(this),this.a=null;var n=2}else{if(!vn(this.b,e))return;t=e.j,yn(this.b,e),n=1}if(this.m=e.o,0!=this.u)if(e.b)1==n?(t=w()-e.v,Je.dispatchEvent(new tt(Je,e.l?e.l.length:0,t,this.A)),Hn(this)):qn(this);else{var r=e.c;if(3==r||0==r&&0<this.m||!(1==n&&function(e,t){return!(mn(e.b)>=e.b.f-(e.h?1:0))&&(e.h?(e.f=t.j.concat(e.f),!0):!(1==e.u||2==e.u||e.A>=(e.Oa?0:e.Pa))&&(e.h=nt(b(e.Ha,e,t),Jn(e,e.A)),e.A++,!0))}(this,e)||2==n&&Wn(this)))switch(t&&0<t.length&&(e=this.b,e.c=e.c.concat(t)),r){case 1:Xn(this,5);break;case 4:Xn(this,10);break;case 3:Xn(this,6);break;default:Xn(this,2)}}},r.eb=function(e){et(e?2:1)},r.$=function(e){if(e&&!this.R)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new Tn(this.Ka)).F=this.R,e},r.ma=function(){return!!this.c&&!0},r.Y=function(){return this.R},(r=er.prototype).va=function(){},r.ua=function(){},r.ta=function(){},r.sa=function(){},r.Sa=function(){},tr.prototype.a=function(e,t){return new nr(e,t)},k(nr,Ce),(r=nr.prototype).addEventListener=function(e,t,n,r){nr.N.addEventListener.call(this,e,t,n,r)},r.removeEventListener=function(e,t,n,r){nr.N.removeEventListener.call(this,e,t,n,r)},r.Va=function(){this.a.c=this.f,this.l&&(this.a.R=!0);var e=this.a,t=this.m,n=this.g,r=this.b||void 0;et(0),e.ha=n,e.V=r||{},e.o&&(e.F.b=[],e.F.a=!1),e.w=new an(e),null===e.g&&(e.w.h=e.i),n=t,e.g&&e.i&&(n=Rn(t,e.g,e.i)),(e=e.w).i=n,t=Zn(e.a,null,e.i),et(3),null!=(n=e.a.F.b)?(e.f=n[0],e.M=1,on(e)):(Ft(t,"MODE","init"),!e.a.o&&e.a.j&&Ft(t,"X-HTTP-Session-Id",e.a.j),e.b=new ft(e,void 0,void 0),e.b.h=e.h,yt(e.b,t,!1,null),e.M=0)},r.close=function(){Yn(this.a)},r.Wa=function(e){if(s(e)){var t={};t.__data__=e,Fn(this.a,t)}else this.h?((t={}).__data__=xe(e),Fn(this.a,t)):Fn(this.a,e)},r.G=function(){this.a.c=null,delete this.f,Yn(this.a),delete this.a,nr.N.G.call(this)},k(rr,ut),k(ir,dt),k(ar,er),ar.prototype.va=function(){this.a.dispatchEvent("a")},ar.prototype.ua=function(e){this.a.dispatchEvent(new rr(e))},ar.prototype.ta=function(e){this.a.dispatchEvent(new ir(e))},ar.prototype.sa=function(){this.a.dispatchEvent("b")};var or=_((function(e,t){function n(){}n.prototype=e.prototype;var r=new n;return e.apply(r,Array.prototype.slice.call(arguments,1)),r}),tr);tr.prototype.createWebChannel=tr.prototype.a,nr.prototype.send=nr.prototype.Wa,nr.prototype.open=nr.prototype.Va,nr.prototype.close=nr.prototype.close,rt.NO_ERROR=0,rt.TIMEOUT=8,rt.HTTP_ERROR=6,it.COMPLETE="complete",st.EventType=ct,ct.OPEN="a",ct.CLOSE="b",ct.ERROR="c",ct.MESSAGE="d",Ce.prototype.listen=Ce.prototype.za,Tn.prototype.listenOnce=Tn.prototype.Aa,Tn.prototype.getLastError=Tn.prototype.Xa,Tn.prototype.getLastErrorCode=Tn.prototype.ya,Tn.prototype.getStatus=Tn.prototype.T,Tn.prototype.getResponseJson=Tn.prototype.Ua,Tn.prototype.getResponseText=Tn.prototype.aa,Tn.prototype.send=Tn.prototype.ca;var sr={createWebChannelTransport:or,ErrorCode:rt,EventType:it,WebChannel:st,XhrIo:Tn},lr=sr.createWebChannelTransport,cr=sr.ErrorCode,ur=sr.EventType,dr=sr.WebChannel,hr=sr.XhrIo;t.default=sr}.call(this,n(22))},function(e,t,n){"use strict";var r,i=(r=n(17))&&"object"==typeof r&&"default"in r?r.default:r,a=n(5),o=n(26),s={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},l=function(e){function t(n,r,i){var a=e.call(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a.code=n,a.details=i,a}return a.__extends(t,e),t}(Error);var c=function(){function e(e,t){var n=this;this.auth=null,this.messaging=null,this.auth=e.getImmediate({optional:!0}),this.messaging=t.getImmediate({optional:!0}),this.auth||e.get().then((function(e){return n.auth=e}),(function(){})),this.messaging||t.get().then((function(e){return n.messaging=e}),(function(){}))}return e.prototype.getAuthToken=function(){return a.__awaiter(this,void 0,void 0,(function(){var e;return a.__generator(this,(function(t){switch(t.label){case 0:if(!this.auth)return[2,void 0];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.auth.getToken()];case 2:return(e=t.sent())?[2,e.accessToken]:[2,void 0];case 3:return t.sent(),[2,void 0];case 4:return[2]}}))}))},e.prototype.getInstanceIdToken=function(){return a.__awaiter(this,void 0,void 0,(function(){return a.__generator(this,(function(e){if(!this.messaging||!("Notification"in self)||"granted"!==Notification.permission)return[2,void 0];try{return[2,this.messaging.getToken()]}catch(e){return[2,void 0]}return[2]}))}))},e.prototype.getContext=function(){return a.__awaiter(this,void 0,void 0,(function(){var e,t;return a.__generator(this,(function(n){switch(n.label){case 0:return[4,this.getAuthToken()];case 1:return e=n.sent(),[4,this.getInstanceIdToken()];case 2:return t=n.sent(),[2,{authToken:e,instanceIdToken:t}]}}))}))},e}();function u(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}var d=function(){function e(){}return e.prototype.encode=function(e){var t=this;if(null==e)return null;if(e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&isFinite(e))return e;if(!0===e||!1===e)return e;if("[object String]"===Object.prototype.toString.call(e))return e;if(Array.isArray(e))return e.map((function(e){return t.encode(e)}));if("function"==typeof e||"object"==typeof e)return u(e,(function(e){return t.encode(e)}));throw new Error("Data cannot be encoded in JSON: "+e)},e.prototype.decode=function(e){var t=this;if(null==e)return e;if(e["@type"])switch(e["@type"]){case"type.googleapis.com/google.protobuf.Int64Value":case"type.googleapis.com/google.protobuf.UInt64Value":var n=Number(e.value);if(isNaN(n))throw new Error("Data cannot be decoded from JSON: "+e);return n;default:throw new Error("Data cannot be decoded from JSON: "+e)}return Array.isArray(e)?e.map((function(e){return t.decode(e)})):"function"==typeof e||"object"==typeof e?u(e,(function(e){return t.decode(e)})):e},e}();var h=function(){function e(e,t,n,r){var i=this;void 0===r&&(r="us-central1"),this.app_=e,this.region_=r,this.serializer=new d,this.emulatorOrigin=null,this.INTERNAL={delete:function(){return i.deleteService()}},this.contextProvider=new c(t,n),this.cancelAllRequests=new Promise((function(e){i.deleteService=function(){return e()}}))}return Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),e.prototype._url=function(e){var t=this.app_.options.projectId,n=this.region_;return null!==this.emulatorOrigin?this.emulatorOrigin+"/"+t+"/"+n+"/"+e:"https://"+n+"-"+t+".cloudfunctions.net/"+e},e.prototype.useFunctionsEmulator=function(e){this.emulatorOrigin=e},e.prototype.httpsCallable=function(e,t){var n=this;return function(r){return n.call(e,r,t||{})}},e.prototype.postJSON=function(e,t,n){return a.__awaiter(this,void 0,void 0,(function(){var r,i;return a.__generator(this,(function(a){switch(a.label){case 0:n.append("Content-Type","application/json"),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch(e,{method:"POST",body:JSON.stringify(t),headers:n})];case 2:return r=a.sent(),[3,4];case 3:return a.sent(),[2,{status:0,json:null}];case 4:i=null,a.label=5;case 5:return a.trys.push([5,7,,8]),[4,r.json()];case 6:return i=a.sent(),[3,8];case 7:return a.sent(),[3,8];case 8:return[2,{status:r.status,json:i}]}}))}))},e.prototype.call=function(e,t,n){return a.__awaiter(this,void 0,void 0,(function(){var r,i,o,c,u,d,h,f;return a.__generator(this,(function(a){switch(a.label){case 0:return r=this._url(e),t=this.serializer.encode(t),i={data:t},o=new Headers,[4,this.contextProvider.getContext()];case 1:return(c=a.sent()).authToken&&o.append("Authorization","Bearer "+c.authToken),c.instanceIdToken&&o.append("Firebase-Instance-ID-Token",c.instanceIdToken),u=n.timeout||7e4,[4,Promise.race([this.postJSON(r,i,o),(p=u,new Promise((function(e,t){setTimeout((function(){t(new l("deadline-exceeded","deadline-exceeded"))}),p)}))),this.cancelAllRequests])];case 2:if(!(d=a.sent()))throw new l("cancelled","Firebase Functions instance was deleted.");if(h=function(e,t,n){var r=function(e){if(e>=200&&e<300)return"ok";switch(e){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(e),i=r,a=void 0;try{var o=t&&t.error;if(o){var c=o.status;if("string"==typeof c){if(!s[c])return new l("internal","internal");r=s[c],i=c}var u=o.message;"string"==typeof u&&(i=u),void 0!==(a=o.details)&&(a=n.decode(a))}}catch(e){}return"ok"===r?null:new l(r,i,a)}(d.status,d.json,this.serializer))throw h;if(!d.json)throw new l("internal","Response is not valid JSON object.");if(void 0===(f=d.json.data)&&(f=d.json.result),void 0===f)throw new l("internal","Response is missing data field.");return[2,{data:this.serializer.decode(f)}]}var p}))}))},e}();function f(e,t){var n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal"),i=e.getProvider("messaging");return new h(n,r,i,t)}var p;p={Functions:h},i.INTERNAL.registerComponent(new o.Component("functions",f,"PUBLIC").setServiceProps(p).setMultipleInstances(!0)),i.registerVersion("@firebase/functions","0.4.42")},function(e,t,n){"use strict";n.r(t);var r,i=n(17),a=n.n(i),o=(n(51),n(26)),s=n(5),l=n(28),c=n(35),u=((r={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',r["only-available-in-window"]="This method is available in a Window context.",r["only-available-in-sw"]="This method is available in a service worker context.",r["permission-default"]="The notification permission was not granted and dismissed instead.",r["permission-blocked"]="The notification permission was not granted and blocked instead.",r["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",r["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",r["token-subscribe-failed"]="A problem occured while subscribing the user to FCM: {$errorInfo}",r["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",r["token-unsubscribe-failed"]="A problem occured while unsubscribing the user from FCM: {$errorInfo}",r["token-update-failed"]="A problem occured while updating the user from FCM: {$errorInfo}",r["token-update-no-token"]="FCM returned no token when updating the user to push.",r["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",r["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",r["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",r["invalid-vapid-key"]="The public VAPID key must be a string.",r["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",r),d=new l.ErrorFactory("messaging","Messaging",u);function h(e){return d.create("missing-app-config-values",{valueName:e})}function f(e){var t=new Uint8Array(e);return btoa(String.fromCharCode.apply(String,Object(s.__spread)(t))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function p(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(t),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}function m(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r=this;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(t=i.sent(),!t.map((function(e){return e.name})).includes("fcm_token_details_db"))return[2,null];i.label=2;case 2:return n=null,[4,Object(c.openDb)("fcm_token_details_db",5,(function(t){return Object(s.__awaiter)(r,void 0,void 0,(function(){var r,i,a,o;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return t.oldVersion<2?[2]:t.objectStoreNames.contains("fcm_token_object_Store")?[4,(r=t.transaction.objectStore("fcm_token_object_Store")).index("fcmSenderId").get(e)]:[2];case 1:return i=s.sent(),[4,r.clear()];case 2:if(s.sent(),!i)return[2];if(2===t.oldVersion){if(!(a=i).auth||!a.p256dh||!a.endpoint)return[2];n={token:a.fcmToken,createTime:null!==(o=a.createTime)&&void 0!==o?o:Date.now(),subscriptionOptions:{auth:a.auth,p256dh:a.p256dh,endpoint:a.endpoint,swScope:a.swScope,vapidKey:"string"==typeof a.vapidKey?a.vapidKey:f(a.vapidKey)}}}else(3===t.oldVersion||4===t.oldVersion)&&(n={token:(a=i).fcmToken,createTime:a.createTime,subscriptionOptions:{auth:f(a.auth),p256dh:f(a.p256dh),endpoint:a.endpoint,swScope:a.swScope,vapidKey:f(a.vapidKey)}});return[2]}}))}))}))];case 3:return i.sent().close(),[4,Object(c.deleteDb)("fcm_token_details_db")];case 4:return i.sent(),[4,Object(c.deleteDb)("fcm_vapid_details_db")];case 5:return i.sent(),[4,Object(c.deleteDb)("undefined")];case 6:return i.sent(),[2,v(n)?n:null]}}))}))}function v(e){if(!e||!e.subscriptionOptions)return!1;var t=e.subscriptionOptions;return"number"==typeof e.createTime&&e.createTime>0&&"string"==typeof e.token&&e.token.length>0&&"string"==typeof t.auth&&t.auth.length>0&&"string"==typeof t.p256dh&&t.p256dh.length>0&&"string"==typeof t.endpoint&&t.endpoint.length>0&&"string"==typeof t.swScope&&t.swScope.length>0&&"string"==typeof t.vapidKey&&t.vapidKey.length>0}var g="firebase-messaging-store",y=null;function b(){return y||(y=Object(c.openDb)("firebase-messaging-database",1,(function(e){switch(e.oldVersion){case 0:e.createObjectStore(g)}}))),y}function _(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return t=E(e),[4,b()];case 1:return[4,i.sent().transaction(g).objectStore(g).get(t)];case 2:return(n=i.sent())?[2,n]:[3,3];case 3:return[4,m(e.appConfig.senderId)];case 4:return(r=i.sent())?[4,w(e,r)]:[3,6];case 5:return i.sent(),[2,r];case 6:return[2]}}))}))}function w(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(s.__generator)(this,(function(a){switch(a.label){case 0:return n=E(e),[4,b()];case 1:return r=a.sent(),[4,(i=r.transaction(g,"readwrite")).objectStore(g).put(t,n)];case 2:return a.sent(),[4,i.complete];case 3:return a.sent(),[2,t]}}))}))}function k(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return t=E(e),[4,b()];case 1:return n=i.sent(),[4,(r=n.transaction(g,"readwrite")).objectStore(g).delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}}))}))}function E(e){return e.appConfig.appId}var S="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4";function T(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a,o,l;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return[4,$(e)];case 1:n=s.sent(),r=L(t),i={method:"POST",headers:n,body:JSON.stringify(r)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(x(e.appConfig),i)];case 3:return[4,s.sent().json()];case 4:return a=s.sent(),[3,6];case 5:throw o=s.sent(),d.create("token-subscribe-failed",{errorInfo:o});case 6:if(a.error)throw l=a.error.message,d.create("token-subscribe-failed",{errorInfo:l});if(!a.token)throw d.create("token-subscribe-no-token");return[2,a.token]}}))}))}function C(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a,o,l;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return[4,$(e)];case 1:n=s.sent(),r=L(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(x(e.appConfig)+"/"+t.token,i)];case 3:return[4,s.sent().json()];case 4:return a=s.sent(),[3,6];case 5:throw o=s.sent(),d.create("token-update-failed",{errorInfo:o});case 6:if(a.error)throw l=a.error.message,d.create("token-update-failed",{errorInfo:l});if(!a.token)throw d.create("token-update-no-token");return[2,a.token]}}))}))}function M(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a,o;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return[4,$(e)];case 1:n=s.sent(),r={method:"DELETE",headers:n},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(x(e.appConfig)+"/"+t,r)];case 3:return[4,s.sent().json()];case 4:if((i=s.sent()).error)throw a=i.error.message,d.create("token-unsubscribe-failed",{errorInfo:a});return[3,6];case 5:throw o=s.sent(),d.create("token-unsubscribe-failed",{errorInfo:o});case 6:return[2]}}))}))}function x(e){return"https://fcmregistrations.googleapis.com/v1/projects/"+e.projectId+"/registrations"}function $(e){var t=e.appConfig,n=e.installations;return Object(s.__awaiter)(this,void 0,void 0,(function(){var e;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return[4,n.getToken()];case 1:return e=r.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":"FIS "+e})]}}))}))}function L(e){var t=e.p256dh,n=e.auth,r=e.endpoint,i=e.vapidKey,a={web:{endpoint:r,auth:n,p256dh:t}};return i!==S&&(a.web.applicationPubKey=i),a}var P;function O(e,t,n){return Object(s.__awaiter)(this,void 0,void 0,(function(){var r,i,a,o;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:if("granted"!==Notification.permission)throw d.create("permission-blocked");return[4,N(t,n)];case 1:return r=s.sent(),[4,_(e)];case 2:return i=s.sent(),a={vapidKey:n,swScope:t.scope,endpoint:r.endpoint,auth:f(r.getKey("auth")),p256dh:f(r.getKey("p256dh"))},i?[3,3]:[2,D(e,a)];case 3:if(l=i.subscriptionOptions,u=(c=a).vapidKey===l.vapidKey,h=c.endpoint===l.endpoint,p=c.auth===l.auth,m=c.p256dh===l.p256dh,u&&h&&p&&m)return[3,8];s.label=4;case 4:return s.trys.push([4,6,,7]),[4,M(e,i.token)];case 5:return s.sent(),[3,7];case 6:return o=s.sent(),console.warn(o),[3,7];case 7:return[2,D(e,a)];case 8:return Date.now()>=i.createTime+6048e5?[2,A({token:i.token,createTime:Date.now(),subscriptionOptions:a},e,t)]:[2,i.token];case 9:return[2]}var l,c,u,h,p,m}))}))}function I(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,_(e)];case 1:return(n=i.sent())?[4,M(e,n.token)]:[3,4];case 2:return i.sent(),[4,k(e)];case 3:i.sent(),i.label=4;case 4:return[4,t.pushManager.getSubscription()];case 5:return(r=i.sent())?[2,r.unsubscribe()]:[2,!0]}}))}))}function A(e,t,n){return Object(s.__awaiter)(this,void 0,void 0,(function(){var r,i,a;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,5]),[4,C(t,e)];case 1:return r=o.sent(),i=Object(s.__assign)({token:r,createTime:Date.now()},e),[4,w(t,i)];case 2:return o.sent(),[2,r];case 3:return a=o.sent(),[4,I(t,n)];case 4:throw o.sent(),a;case 5:return[2]}}))}))}function D(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,T(e,t)];case 1:return n=i.sent(),r={token:n,createTime:Date.now(),subscriptionOptions:t},[4,w(e,r)];case 2:return i.sent(),[2,r.token]}}))}))}function N(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return[4,e.pushManager.getSubscription()];case 1:return(n=r.sent())?[2,n]:[2,e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:p(t)})]}}))}))}function R(e){return"object"==typeof e&&!!e&&"google.c.a.c_id"in e}!function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"}(P||(P={}));var B=function(){function e(e){var t=this;this.firebaseDependencies=e,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",(function(e){return t.messageEventListener(e)}))}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!0,configurable:!0}),e.prototype.getToken=function(){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e;return Object(s.__generator)(this,(function(t){switch(t.label){case 0:return this.vapidKey||(this.vapidKey=S),[4,this.getServiceWorkerRegistration()];case 1:return e=t.sent(),"default"!==Notification.permission?[3,3]:[4,Notification.requestPermission()];case 2:t.sent(),t.label=3;case 3:if("granted"!==Notification.permission)throw d.create("permission-blocked");return[2,O(this.firebaseDependencies,e,this.vapidKey)]}}))}))},e.prototype.deleteToken=function(){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e;return Object(s.__generator)(this,(function(t){switch(t.label){case 0:return[4,this.getServiceWorkerRegistration()];case 1:return e=t.sent(),[2,I(this.firebaseDependencies,e)]}}))}))},e.prototype.requestPermission=function(){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e;return Object(s.__generator)(this,(function(t){switch(t.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(e=t.sent()))return[2];throw"denied"===e?d.create("permission-blocked"):d.create("permission-default")}}))}))},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw d.create("use-vapid-key-after-get-token");if("string"!=typeof e||0===e.length)throw d.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(e){if(!(e instanceof ServiceWorkerRegistration))throw d.create("invalid-sw-registration");if(this.swRegistration)throw d.create("use-sw-after-get-token");this.swRegistration=e},e.prototype.onMessage=function(e){var t=this;return this.onMessageCallback="function"==typeof e?e:e.next,function(){t.onMessageCallback=null}},e.prototype.setBackgroundMessageHandler=function(){throw d.create("only-available-in-sw")},e.prototype.onTokenRefresh=function(){return function(){}},e.prototype.getServiceWorkerRegistration=function(){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e,t;return Object(s.__generator)(this,(function(n){switch(n.label){case 0:if(this.swRegistration)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),e=this,[4,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"})];case 2:return e.swRegistration=n.sent(),this.swRegistration.update().catch((function(){})),[3,4];case 3:throw t=n.sent(),d.create("failed-service-worker-registration",{browserErrorMessage:t.message});case 4:return[2,this.swRegistration]}}))}))},e.prototype.messageEventListener=function(e){var t;return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return(null===(t=e.data)||void 0===t?void 0:t.firebaseMessaging)?(n=e.data.firebaseMessaging,r=n.type,i=n.payload,this.onMessageCallback&&r===P.PUSH_RECEIVED&&this.onMessageCallback(i),R(a=i.data)&&"1"===a["google.c.a.e"]?[4,this.logEvent(r,a)]:[3,2]):[2];case 1:o.sent(),o.label=2;case 2:return[2]}}))}))},e.prototype.logEvent=function(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return n=function(e){switch(e){case P.NOTIFICATION_CLICKED:return"notification_open";case P.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(e),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return r.sent().logEvent(n,{message_id:t["google.c.a.c_id"],message_name:t["google.c.a.c_l"],message_time:t["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}}))}))},e}();var Y=function(){function e(e){var t=this;this.firebaseDependencies=e,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",(function(e){e.waitUntil(t.onPush(e))})),self.addEventListener("pushsubscriptionchange",(function(e){e.waitUntil(t.onSubChange(e))})),self.addEventListener("notificationclick",(function(e){e.waitUntil(t.onNotificationClick(e))}))}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!0,configurable:!0}),e.prototype.setBackgroundMessageHandler=function(e){if(!e||"function"!=typeof e)throw d.create("invalid-bg-handler");this.bgMessageHandler=e},e.prototype.getToken=function(){var e,t;return Object(s.__awaiter)(this,void 0,void 0,(function(){var n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return this.vapidKey?[3,2]:[4,_(this.firebaseDependencies)];case 1:n=r.sent(),this.vapidKey=null!==(t=null===(e=null==n?void 0:n.subscriptionOptions)||void 0===e?void 0:e.vapidKey)&&void 0!==t?t:S,r.label=2;case 2:return[2,O(this.firebaseDependencies,self.registration,this.vapidKey)]}}))}))},e.prototype.deleteToken=function(){return I(this.firebaseDependencies,self.registration)},e.prototype.requestPermission=function(){throw d.create("only-available-in-window")},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw d.create("use-vapid-key-after-get-token");if("string"!=typeof e||0===e.length)throw d.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(){throw d.create("only-available-in-window")},e.prototype.onMessage=function(){throw d.create("only-available-in-window")},e.prototype.onTokenRefresh=function(){throw d.create("only-available-in-window")},e.prototype.onPush=function(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return(t=function(e){var t=e.data;if(!t)return null;try{return t.json()}catch(e){return null}}(e))?[4,H()]:[2];case 1:return function(e){return e.some((function(e){return"visible"===e.visibilityState&&!e.url.startsWith("chrome-extension://")}))}(n=i.sent())?[2,F(n,t)]:(r=function(e){var t;if(!e||"object"!=typeof e.notification)return;var n=Object(s.__assign)({},e.notification);return n.data=Object(s.__assign)(Object(s.__assign)({},e.notification.data),((t={}).FCM_MSG=e,t)),n}(t))?[4,z(r)]:[3,3];case 2:return i.sent(),[3,5];case 3:return this.bgMessageHandler?[4,this.bgMessageHandler(t)]:[3,5];case 4:i.sent(),i.label=5;case 5:return[2]}}))}))},e.prototype.onSubChange=function(e){var t,n;return Object(s.__awaiter)(this,void 0,void 0,(function(){var r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return e.newSubscription?[3,2]:[4,I(this.firebaseDependencies,self.registration)];case 1:return i.sent(),[2];case 2:return[4,_(this.firebaseDependencies)];case 3:return r=i.sent(),[4,I(this.firebaseDependencies,self.registration)];case 4:return i.sent(),[4,O(this.firebaseDependencies,self.registration,null!==(n=null===(t=null==r?void 0:r.subscriptionOptions)||void 0===t?void 0:t.vapidKey)&&void 0!==n?n:S)];case 5:return i.sent(),[2]}}))}))},e.prototype.onNotificationClick=function(e){var t,n;return Object(s.__awaiter)(this,void 0,void 0,(function(){var r,i,a,o;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return(r=null===(n=null===(t=e.notification)||void 0===t?void 0:t.data)||void 0===n?void 0:n.FCM_MSG)?e.action?[2]:(e.stopImmediatePropagation(),e.notification.close(),(i=function(e){var t,n,r,i=null!==(n=null===(t=e.fcmOptions)||void 0===t?void 0:t.link)&&void 0!==n?n:null===(r=e.notification)||void 0===r?void 0:r.click_action;if(i)return i;return R(e.data)?self.location.origin:null}(r))?[4,j(i)]:[2]):[2];case 1:return(a=s.sent())?[3,4]:[4,self.clients.openWindow(i)];case 2:return a=s.sent(),[4,(l=3e3,new Promise((function(e){setTimeout(e,l)})))];case 3:return s.sent(),[3,6];case 4:return[4,a.focus()];case 5:a=s.sent(),s.label=6;case 6:return a?(o=U(P.NOTIFICATION_CLICKED,r),[2,a.postMessage(o)]):[2]}var l}))}))},e}();function j(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i,a,o,l;return Object(s.__generator)(this,(function(c){switch(c.label){case 0:return t=new URL(e,self.location.href),[4,H()];case 1:n=c.sent();try{for(r=Object(s.__values)(n),i=r.next();!i.done;i=r.next())if(a=i.value,new URL(a.url,self.location.href).host===t.host)return[2,a]}catch(e){o={error:e}}finally{try{i&&!i.done&&(l=r.return)&&l.call(r)}finally{if(o)throw o.error}}return[2,null]}}))}))}function F(e,t){var n,r,i=U(P.PUSH_RECEIVED,t);try{for(var a=Object(s.__values)(e),o=a.next();!o.done;o=a.next()){o.value.postMessage(i)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}function H(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function U(e,t){return{firebaseMessaging:{type:e,payload:t}}}function z(e){var t,n=null!==(t=e.title)&&void 0!==t?t:"",r=e.actions,i=Notification.maxActions;return r&&i&&r.length>i&&console.warn("This browser only supports "+i+" actions. The remaining actions will not be displayed."),self.registration.showNotification(n,e)}var V={isSupported:q};function q(){return self&&"ServiceWorkerGlobalScope"in self?"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey"):"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}a.a.INTERNAL.registerComponent(new o.Component("messaging",(function(e){var t=e.getProvider("app").getImmediate(),n={app:t,appConfig:function(e){var t,n;if(!e||!e.options)throw h("App Configuration Object");if(!e.name)throw h("App Name");var r=e.options;try{for(var i=Object(s.__values)(["projectId","apiKey","appId","messagingSenderId"]),a=i.next();!a.done;a=i.next()){var o=a.value;if(!r[o])throw h(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return{appName:e.name,projectId:r.projectId,apiKey:r.apiKey,appId:r.appId,senderId:r.messagingSenderId}}(t),installations:e.getProvider("installations").getImmediate(),analyticsProvider:e.getProvider("analytics-internal")};if(!q())throw d.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new Y(n):new B(n)}),"PUBLIC").setServiceProps(V))},function(e,t,n){"use strict";n.r(t),n.d(t,"registerStorage",(function(){return pt}));var r=n(17),i=n.n(r),a=n(5),o=n(26),s=function(){function e(e,t){this.code_=C(e),this.message_="Firebase Storage: "+t,this.serverResponse_=null,this.name_="FirebaseError"}return e.prototype.codeProp=function(){return this.code},e.prototype.codeEquals=function(e){return C(e)===this.codeProp()},e.prototype.serverResponseProp=function(){return this.serverResponse_},e.prototype.setServerResponseProp=function(e){this.serverResponse_=e},Object.defineProperty(e.prototype,"name",{get:function(){return this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"code",{get:function(){return this.code_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this.message_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!0,configurable:!0}),e}(),l="unknown",c="object-not-found",u="quota-exceeded",d="unauthenticated",h="unauthorized",f="retry-limit-exceeded",p="canceled",m="invalid-url",v="invalid-default-bucket",g="cannot-slice-blob",y="server-file-wrong-size",b="no-download-url",_="invalid-argument",w="invalid-argument-count",k="app-deleted",E="invalid-root-operation",S="invalid-format",T="internal-error";function C(e){return"storage/"+e}function M(){return new s(l,"An unknown error occurred, please check the error payload for server response.")}function x(){return new s(p,"User canceled the upload/download.")}function $(){return new s(g,"Cannot slice blob for upload. Please retry the upload.")}function L(){return new s(b,"The given file does not have any download URLs.")}function P(e,t,n){return new s(_,"Invalid argument in `"+t+"` at index "+e+": "+n)}function O(){return new s(k,"The Firebase app was deleted.")}function I(e,t){return new s(S,"String does not match format '"+e+"': "+t)}function A(e){throw new s(T,"Internal error: "+e)}var D={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};function N(e){switch(e){case D.RAW:case D.BASE64:case D.BASE64URL:case D.DATA_URL:return;default:throw"Expected one of the event types: ["+D.RAW+", "+D.BASE64+", "+D.BASE64URL+", "+D.DATA_URL+"]."}}var R=function(e,t){this.data=e,this.contentType=t||null};function B(e,t){switch(e){case D.RAW:return new R(Y(t));case D.BASE64:case D.BASE64URL:return new R(j(e,t));case D.DATA_URL:return new R((n=new F(t)).base64?j(D.BASE64,n.rest):function(e){var t;try{t=decodeURIComponent(e)}catch(e){throw I(D.DATA_URL,"Malformed data URL.")}return Y(t)}(n.rest),function(e){return new F(e).contentType}(t))}var n;throw M()}function Y(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|63&r);else if(55296==(64512&r))if(n<e.length-1&&56320==(64512&e.charCodeAt(n+1)))r=65536|(1023&r)<<10|1023&e.charCodeAt(++n),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r);else t.push(239,191,189);else 56320==(64512&r)?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function j(e,t){switch(e){case D.BASE64:var n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r)throw I(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case D.BASE64URL:var i=-1!==t.indexOf("+"),a=-1!==t.indexOf("/");if(i||a)throw I(e,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/")}var o;try{o=atob(t)}catch(t){throw I(e,"Invalid character found")}for(var s=new Uint8Array(o.length),l=0;l<o.length;l++)s[l]=o.charCodeAt(l);return s}var F=function(e){this.base64=!1,this.contentType=null;var t=e.match(/^data:([^,]+)?,/);if(null===t)throw I(D.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var n=t[1]||null;null!=n&&(this.base64=(r=n,i=";base64",r.length>=i.length&&r.substring(r.length-i.length)===i),this.contentType=this.base64?n.substring(0,n.length-";base64".length):n),this.rest=e.substring(e.indexOf(",")+1);var r,i};var H,U={STATE_CHANGED:"state_changed"},z="running",V="pausing",q="paused",W="success",G="canceling",K="canceled",J="error",X={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function Q(e){switch(e){case z:case V:case G:return X.RUNNING;case q:return X.PAUSED;case W:return X.SUCCESS;case K:return X.CANCELED;case J:default:return X.ERROR}}function Z(e){return null!=e}function ee(e){return void 0!==e}function te(e){return"function"==typeof e}function ne(e){return"object"==typeof e}function re(e){return ne(e)&&null!==e}function ie(e){return"string"==typeof e||e instanceof String}function ae(e){return oe(e)&&Number.isInteger(e)}function oe(e){return"number"==typeof e||e instanceof Number}function se(e){return le()&&e instanceof Blob}function le(){return"undefined"!=typeof Blob}!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(H||(H={}));var ce=function(){function e(){var e=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=H.NO_ERROR,this.sendPromise_=new Promise((function(t){e.xhr_.addEventListener("abort",(function(){e.errorCode_=H.ABORT,t(e)})),e.xhr_.addEventListener("error",(function(){e.errorCode_=H.NETWORK_ERROR,t(e)})),e.xhr_.addEventListener("load",(function(){t(e)}))}))}return e.prototype.send=function(e,t,n,r){if(this.sent_)throw A("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),Z(r))for(var i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return Z(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},e.prototype.getErrorCode=function(){if(!this.sent_)throw A("cannot .getErrorCode() before sending");return this.errorCode_},e.prototype.getStatus=function(){if(!this.sent_)throw A("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}},e.prototype.getResponseText=function(){if(!this.sent_)throw A("cannot .getResponseText() before sending");return this.xhr_.responseText},e.prototype.abort=function(){this.xhr_.abort()},e.prototype.getResponseHeader=function(e){return this.xhr_.getResponseHeader(e)},e.prototype.addUploadProgressListener=function(e){Z(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",e)},e.prototype.removeUploadProgressListener=function(e){Z(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",e)},e}(),ue=function(){function e(){}return e.prototype.createXhrIo=function(){return new ce},e}();function de(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function he(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=de();if(void 0!==n){for(var r=new n,i=0;i<e.length;i++)r.append(e[i]);return r.getBlob()}if(le())return new Blob(e);throw Error("This browser doesn't seem to support creating Blobs")}var fe=function(){function e(e,t){var n=0,r="";se(e)?(this.data_=e,n=e.size,r=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=r}return e.prototype.size=function(){return this.size_},e.prototype.type=function(){return this.type_},e.prototype.slice=function(t,n){if(se(this.data_)){var r=function(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}(this.data_,t,n);return null===r?null:new e(r)}return new e(new Uint8Array(this.data_.buffer,t,n-t),!0)},e.getBlob=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(le()){var r=t.map((function(t){return t instanceof e?t.data_:t}));return new e(he.apply(null,r))}var i=t.map((function(e){return ie(e)?B(D.RAW,e).data:e.data_})),a=0;i.forEach((function(e){a+=e.byteLength}));var o=new Uint8Array(a),s=0;return i.forEach((function(e){for(var t=0;t<e.length;t++)o[s++]=e[t]})),new e(o,!0)},e.prototype.uploadData=function(){return this.data_},e}(),pe=function(){function e(e,t){this.bucket=e,this.path_=t}return Object.defineProperty(e.prototype,"path",{get:function(){return this.path_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!0,configurable:!0}),e.prototype.fullServerUrl=function(){var e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)},e.prototype.bucketOnlyServerUrl=function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"},e.makeFromBucketSpec=function(t){var n;try{n=e.makeFromUrl(t)}catch(n){return new e(t,"")}if(""===n.path)return n;throw new s(v,"Invalid default bucket '"+t+"'.")},e.makeFromUrl=function(t){var n=null;var r=new RegExp("^gs://([A-Za-z0-9.\\-_]+)(/(.*))?$","i");function i(e){e.path_=decodeURIComponent(e.path)}for(var a="firebasestorage.googleapis.com".replace(/[.]/g,"\\."),o=[{regex:r,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp("^https?://"+a+"/v[A-Za-z0-9_]+/b/([A-Za-z0-9.\\-_]+)/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:i},{regex:new RegExp("^https?://(?:storage.googleapis.com|storage.cloud.google.com)/([A-Za-z0-9.\\-_]+)/([^?#]*)","i"),indices:{bucket:1,path:2},postModify:i}],l=0;l<o.length;l++){var c=o[l],u=c.regex.exec(t);if(u){var d=u[c.indices.bucket],h=u[c.indices.path];h||(h=""),n=new e(d,h),c.postModify(n);break}}if(null==n)throw function(e){return new s(m,"Invalid URL '"+e+"'.")}(t);return n},e}();function me(e){var t,n;try{t=JSON.parse(e)}catch(e){return null}return ne(n=t)&&!Array.isArray(n)?t:null}function ve(e,t){var n=t.split("/").filter((function(e){return e.length>0})).join("/");return 0===e.length?n:e+"/"+n}function ge(e){var t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function ye(e){return"https://firebasestorage.googleapis.com/v0"+e}function be(e){var t=encodeURIComponent,n="?";for(var r in e){if(e.hasOwnProperty(r))n=n+(t(r)+"="+t(e[r]))+"&"}return n=n.slice(0,-1)}function _e(e,t){return t}var we=function(e,t,n,r){this.server=e,this.local=t||e,this.writable=!!n,this.xform=r||_e},ke=null;function Ee(){if(ke)return ke;var e=[];e.push(new we("bucket")),e.push(new we("generation")),e.push(new we("metageneration")),e.push(new we("name","fullPath",!0));var t=new we("name");t.xform=function(e,t){return function(e){return!ie(e)||e.length<2?e:ge(e)}(t)},e.push(t);var n=new we("size");return n.xform=function(e,t){return Z(t)?Number(t):t},e.push(n),e.push(new we("timeCreated")),e.push(new we("updated")),e.push(new we("md5Hash",null,!0)),e.push(new we("cacheControl",null,!0)),e.push(new we("contentDisposition",null,!0)),e.push(new we("contentEncoding",null,!0)),e.push(new we("contentLanguage",null,!0)),e.push(new we("contentType",null,!0)),e.push(new we("metadata","customMetadata",!0)),ke=e}function Se(e,t,n){for(var r={type:"file"},i=n.length,a=0;a<i;a++){var o=n[a];r[o.local]=o.xform(r,t[o.server])}return function(e,t){Object.defineProperty(e,"ref",{get:function(){var n=e.bucket,r=e.fullPath,i=new pe(n,r);return t.makeStorageReference(i)}})}(r,e),r}function Te(e,t,n){var r=me(t);return null===r?null:Se(e,r,n)}function Ce(e,t){for(var n={},r=t.length,i=0;i<r;i++){var a=t[i];a.writable&&(n[a.server]=e[a.local])}return JSON.stringify(n)}function Me(e){if(!ne(e)||!e)throw"Expected Metadata object.";for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];if("customMetadata"===t){if(!ne(n))throw"Expected object for 'customMetadata' mapping."}else if(re(n))throw"Mapping for '"+t+"' cannot be an object."}}function xe(e,t,n){var r=me(n);return null===r?null:function(e,t,n){var r={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n.prefixes)for(var i=0,a=n.prefixes;i<a.length;i++){var o=a[i].replace(/\/$/,""),s=e.makeStorageReference(new pe(t,o));r.prefixes.push(s)}if(n.items)for(var l=0,c=n.items;l<c.length;l++){var u=c[l];s=e.makeStorageReference(new pe(t,u.name));r.items.push(s)}return r}(e,t,r)}function $e(e){if(!ne(e)||!e)throw"Expected ListOptions object.";for(var t in e)if("maxResults"===t){if(!ae(e.maxResults)||e.maxResults<=0)throw"Expected maxResults to be a positive number.";if(e.maxResults>1e3)throw"Expected maxResults to be less than or equal to 1000."}else{if("pageToken"!==t)throw"Unknown option: "+t;if(e.pageToken&&!ie(e.pageToken))throw"Expected pageToken to be string."}}var Le=function(e,t,n,r){this.url=e,this.method=t,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]};function Pe(e){if(!e)throw M()}function Oe(e,t){return function(n,r){var i=Te(e,r,t);return Pe(null!==i),i}}function Ie(e,t){return function(n,r){var i=Te(e,r,t);return Pe(null!==i),function(e,t){var n=me(t);if(null===n)return null;if(!ie(n.downloadTokens))return null;var r=n.downloadTokens;if(0===r.length)return null;var i=encodeURIComponent;return r.split(",").map((function(t){var n=e.bucket,r=e.fullPath;return ye("/b/"+i(n)+"/o/"+i(r))+be({alt:"media",token:t})}))[0]}(i,r)}}function Ae(e){return function(t,n){var r,i,a;return 401===t.getStatus()?r=new s(d,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(a=e.bucket,r=new s(u,"Quota for bucket '"+a+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(i=e.path,r=new s(h,"User does not have permission to access '"+i+"'.")):r=n,r.setServerResponseProp(n.serverResponseProp()),r}}function De(e){var t=Ae(e);return function(n,r){var i,a=t(n,r);return 404===n.getStatus()&&(i=e.path,a=new s(c,"Object '"+i+"' does not exist.")),a.setServerResponseProp(r.serverResponseProp()),a}}function Ne(e,t,n){var r=ye(t.fullServerUrl()),i=e.maxOperationRetryTime(),a=new Le(r,"GET",Oe(e,n),i);return a.errorHandler=De(t),a}function Re(e,t,n,r,i){var a={};t.isRoot?a.prefix="":a.prefix=t.path+"/",n&&n.length>0&&(a.delimiter=n),r&&(a.pageToken=r),i&&(a.maxResults=i);var o=ye(t.bucketOnlyServerUrl()),s=e.maxOperationRetryTime(),l=new Le(o,"GET",function(e,t){return function(n,r){var i=xe(e,t,r);return Pe(null!==i),i}}(e,t.bucket),s);return l.urlParams=a,l.errorHandler=Ae(t),l}function Be(e,t,n){var r=ye(t.fullServerUrl()),i=e.maxOperationRetryTime(),a=new Le(r,"GET",Ie(e,n),i);return a.errorHandler=De(t),a}function Ye(e,t,n,r){var i=ye(t.fullServerUrl()),a=Ce(n,r),o=e.maxOperationRetryTime(),s=new Le(i,"PATCH",Oe(e,r),o);return s.headers={"Content-Type":"application/json; charset=utf-8"},s.body=a,s.errorHandler=De(t),s}function je(e,t){var n=ye(t.fullServerUrl()),r=e.maxOperationRetryTime();var i=new Le(n,"DELETE",(function(e,t){}),r);return i.successCodes=[200,204],i.errorHandler=De(t),i}function Fe(e,t,n){var r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=function(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}(null,t)),r}var He=function(e,t,n,r){this.current=e,this.total=t,this.finalized=!!n,this.metadata=r||null};function Ue(e,t){var n=null;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch(e){Pe(!1)}return Pe(!!n&&-1!==(t||["active"]).indexOf(n)),n}function ze(e,t,n,r,i,a,o,l){var c=new He(0,0);if(o?(c.current=o.current,c.total=o.total):(c.current=0,c.total=r.size()),r.size()!==c.total)throw new s(y,"Server recorded incorrect upload file size, please retry the upload.");var u=c.total-c.current,d=u;i>0&&(d=Math.min(d,i));var h=c.current,f=h+d,p={"X-Goog-Upload-Command":d===u?"upload, finalize":"upload","X-Goog-Upload-Offset":c.current},m=r.slice(h,f);if(null===m)throw $();var v=t.maxUploadRetryTime(),g=new Le(n,"POST",(function(e,n){var i,o=Ue(e,["active","final"]),s=c.current+d,l=r.size();return i="final"===o?Oe(t,a)(e,n):null,new He(s,l,"final"===o,i)}),v);return g.headers=p,g.body=m.uploadData(),g.progressCallback=l||null,g.errorHandler=Ae(e),g}var Ve=function(e,t,n){if(te(e)||Z(t)||Z(n))this.next=e,this.error=t||null,this.complete=n||null;else{var r=e;this.next=r.next||null,this.error=r.error||null,this.complete=r.complete||null}},qe=function(e,t,n,r,i,a){this.bytesTransferred=e,this.totalBytes=t,this.state=n,this.metadata=r,this.task=i,this.ref=a};function We(e,t,n){for(var r=t.length,i=t.length,a=0;a<t.length;a++)if(t[a].optional){r=a;break}var o,l,c,u,d,h;if(!(r<=n.length&&n.length<=i))throw o=r,l=i,c=e,u=n.length,o===l?(d=o,h=1===o?"argument":"arguments"):(d="between "+o+" and "+l,h="arguments"),new s(w,"Invalid argument count in `"+c+"`: Expected "+d+" "+h+", received "+u+".");for(a=0;a<n.length;a++)try{t[a].validator(n[a])}catch(t){throw t instanceof Error?P(a,e,t.message):P(a,e,t)}}var Ge=function(e,t){var n=this;this.validator=function(t){n.optional&&!ee(t)||e(t)},this.optional=!!t};function Ke(e,t){function n(e){if(!ie(e))throw"Expected string."}var r,i,a;return e?(i=n,a=e,r=function(e){i(e),a(e)}):r=n,new Ge(r,t)}function Je(){return new Ge((function(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||le()&&e instanceof Blob))throw"Expected Blob or File."}))}function Xe(e){return new Ge(Me,e)}function Qe(e){return new Ge($e,e)}function Ze(){return new Ge((function(e){if(!(oe(e)&&e>=0))throw"Expected a number 0 or greater."}))}function et(e,t){return new Ge((function(t){if(!(null===t||Z(t)&&t instanceof Object))throw"Expected an Object.";null!=e&&e(t)}),t)}function tt(e){return new Ge((function(e){if(!(null===e||te(e)))throw"Expected a Function."}),e)}function nt(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];Promise.resolve().then((function(){return e.apply(void 0,t)}))}}var rt=function(){function e(e,t,n,r,i,a){var o=this;void 0===a&&(a=null),this.transferred_=0,this.needToFetchStatus_=!1,this.needToFetchMetadata_=!1,this.observers_=[],this.error_=null,this.uploadUrl_=null,this.request_=null,this.chunkMultiplier_=1,this.resolve_=null,this.reject_=null,this.ref_=e,this.authWrapper_=t,this.location_=n,this.blob_=i,this.metadata_=a,this.mappings_=r,this.resumable_=this.shouldDoResumable_(this.blob_),this.state_=z,this.errorHandler_=function(e){o.request_=null,o.chunkMultiplier_=1,e.codeEquals(p)?(o.needToFetchStatus_=!0,o.completeTransitions_()):(o.error_=e,o.transition_(J))},this.metadataErrorHandler_=function(e){o.request_=null,e.codeEquals(p)?o.completeTransitions_():(o.error_=e,o.transition_(J))},this.promise_=new Promise((function(e,t){o.resolve_=e,o.reject_=t,o.start_()})),this.promise_.then(null,(function(){}))}return e.prototype.makeProgressCallback_=function(){var e=this,t=this.transferred_;return function(n){return e.updateProgress_(t+n)}},e.prototype.shouldDoResumable_=function(e){return e.size()>262144},e.prototype.start_=function(){this.state_===z&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},e.prototype.resolveToken_=function(e){var t=this;this.authWrapper_.getAuthToken().then((function(n){switch(t.state_){case z:e(n);break;case G:t.transition_(K);break;case V:t.transition_(q)}}))},e.prototype.createResumable_=function(){var e=this;this.resolveToken_((function(t){var n=function(e,t,n,r,i){var a=t.bucketOnlyServerUrl(),o=Fe(t,r,i),s={name:o.fullPath},l=ye(a),c={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":r.size(),"X-Goog-Upload-Header-Content-Type":o.contentType,"Content-Type":"application/json; charset=utf-8"},u=Ce(o,n),d=e.maxUploadRetryTime(),h=new Le(l,"POST",(function(e){var t;Ue(e);try{t=e.getResponseHeader("X-Goog-Upload-URL")}catch(e){Pe(!1)}return Pe(ie(t)),t}),d);return h.urlParams=s,h.headers=c,h.body=u,h.errorHandler=Ae(t),h}(e.authWrapper_,e.location_,e.mappings_,e.blob_,e.metadata_),r=e.authWrapper_.makeRequest(n,t);e.request_=r,r.getPromise().then((function(t){e.request_=null,e.uploadUrl_=t,e.needToFetchStatus_=!1,e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.fetchStatus_=function(){var e=this,t=this.uploadUrl_;this.resolveToken_((function(n){var r=function(e,t,n,r){var i=e.maxUploadRetryTime(),a=new Le(n,"POST",(function(e){var t=Ue(e,["active","final"]),n=null;try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(e){Pe(!1)}n||Pe(!1);var i=Number(n);return Pe(!isNaN(i)),new He(i,r.size(),"final"===t)}),i);return a.headers={"X-Goog-Upload-Command":"query"},a.errorHandler=Ae(t),a}(e.authWrapper_,e.location_,t,e.blob_),i=e.authWrapper_.makeRequest(r,n);e.request_=i,i.getPromise().then((function(t){t=t,e.request_=null,e.updateProgress_(t.current),e.needToFetchStatus_=!1,t.finalized&&(e.needToFetchMetadata_=!0),e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.continueUpload_=function(){var e=this,t=262144*this.chunkMultiplier_,n=new He(this.transferred_,this.blob_.size()),r=this.uploadUrl_;this.resolveToken_((function(i){var a;try{a=ze(e.location_,e.authWrapper_,r,e.blob_,t,e.mappings_,n,e.makeProgressCallback_())}catch(t){return e.error_=t,void e.transition_(J)}var o=e.authWrapper_.makeRequest(a,i);e.request_=o,o.getPromise().then((function(t){e.increaseMultiplier_(),e.request_=null,e.updateProgress_(t.current),t.finalized?(e.metadata_=t.metadata,e.transition_(W)):e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.increaseMultiplier_=function(){262144*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},e.prototype.fetchMetadata_=function(){var e=this;this.resolveToken_((function(t){var n=Ne(e.authWrapper_,e.location_,e.mappings_),r=e.authWrapper_.makeRequest(n,t);e.request_=r,r.getPromise().then((function(t){e.request_=null,e.metadata_=t,e.transition_(W)}),e.metadataErrorHandler_)}))},e.prototype.oneShotUpload_=function(){var e=this;this.resolveToken_((function(t){var n=function(e,t,n,r,i){var a=t.bucketOnlyServerUrl(),o={"X-Goog-Upload-Protocol":"multipart"},s=function(){for(var e="",t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();o["Content-Type"]="multipart/related; boundary="+s;var l=Fe(t,r,i),c="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+Ce(l,n)+"\r\n--"+s+"\r\nContent-Type: "+l.contentType+"\r\n\r\n",u="\r\n--"+s+"--",d=fe.getBlob(c,r,u);if(null===d)throw $();var h={name:l.fullPath},f=ye(a),p=e.maxUploadRetryTime(),m=new Le(f,"POST",Oe(e,n),p);return m.urlParams=h,m.headers=o,m.body=d.uploadData(),m.errorHandler=Ae(t),m}(e.authWrapper_,e.location_,e.mappings_,e.blob_,e.metadata_),r=e.authWrapper_.makeRequest(n,t);e.request_=r,r.getPromise().then((function(t){e.request_=null,e.metadata_=t,e.updateProgress_(e.blob_.size()),e.transition_(W)}),e.errorHandler_)}))},e.prototype.updateProgress_=function(e){var t=this.transferred_;this.transferred_=e,this.transferred_!==t&&this.notifyObservers_()},e.prototype.transition_=function(e){if(this.state_!==e)switch(e){case G:case V:this.state_=e,null!==this.request_&&this.request_.cancel();break;case z:var t=this.state_===q;this.state_=e,t&&(this.notifyObservers_(),this.start_());break;case q:this.state_=e,this.notifyObservers_();break;case K:this.error_=x(),this.state_=e,this.notifyObservers_();break;case J:case W:this.state_=e,this.notifyObservers_()}},e.prototype.completeTransitions_=function(){switch(this.state_){case V:this.transition_(q);break;case G:this.transition_(K);break;case z:this.start_()}},Object.defineProperty(e.prototype,"snapshot",{get:function(){var e=Q(this.state_);return new qe(this.transferred_,this.blob_.size(),e,this.metadata_,this,this.ref_)},enumerable:!0,configurable:!0}),e.prototype.on=function(e,t,n,r){function i(){if(e!==U.STATE_CHANGED)throw"Expected one of the event types: ["+U.STATE_CHANGED+"]."}var a="Expected a function or an Object with one of `next`, `error`, `complete` properties.",o=tt(!0).validator,s=et(null,!0).validator;function l(e){try{return void o(e)}catch(e){}try{if(s(e),!(ee(e.next)||ee(e.error)||ee(e.complete)))throw"";return}catch(e){throw a}}var c=[Ke(i),et(l,!0),tt(!0),tt(!0)];We("on",c,arguments);var u=this;function d(e){return function(t,n,i){null!==e&&We("on",e,arguments);var a=new Ve(t,n,r);return u.addObserver_(a),function(){u.removeObserver_(a)}}}function h(e){if(null===e)throw a;l(e)}var f=[et(h),tt(!0),tt(!0)],p=!(ee(t)||ee(n)||ee(r));return p?d(f):d(null)(t,n,r)},e.prototype.then=function(e,t){return this.promise_.then(e,t)},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.addObserver_=function(e){this.observers_.push(e),this.notifyObserver_(e)},e.prototype.removeObserver_=function(e){var t=this.observers_.indexOf(e);-1!==t&&this.observers_.splice(t,1)},e.prototype.notifyObservers_=function(){var e=this;this.finishPromise_(),this.observers_.slice().forEach((function(t){e.notifyObserver_(t)}))},e.prototype.finishPromise_=function(){if(null!==this.resolve_){var e=!0;switch(Q(this.state_)){case X.SUCCESS:nt(this.resolve_.bind(null,this.snapshot))();break;case X.CANCELED:case X.ERROR:nt(this.reject_.bind(null,this.error_))();break;default:e=!1}e&&(this.resolve_=null,this.reject_=null)}},e.prototype.notifyObserver_=function(e){switch(Q(this.state_)){case X.RUNNING:case X.PAUSED:e.next&&nt(e.next.bind(e,this.snapshot))();break;case X.SUCCESS:e.complete&&nt(e.complete.bind(e))();break;case X.CANCELED:case X.ERROR:e.error&&nt(e.error.bind(e,this.error_))();break;default:e.error&&nt(e.error.bind(e,this.error_))()}},e.prototype.resume=function(){We("resume",[],arguments);var e=this.state_===q||this.state_===V;return e&&this.transition_(z),e},e.prototype.pause=function(){We("pause",[],arguments);var e=this.state_===z;return e&&this.transition_(V),e},e.prototype.cancel=function(){We("cancel",[],arguments);var e=this.state_===z||this.state_===V;return e&&this.transition_(G),e},e}(),it=function(){function e(e,t){this.authWrapper=e,this.location=t instanceof pe?t:pe.makeFromUrl(t)}return e.prototype.toString=function(){return We("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},e.prototype.newRef=function(t,n){return new e(t,n)},e.prototype.mappings=function(){return Ee()},e.prototype.child=function(e){We("child",[Ke()],arguments);var t=ve(this.location.path,e),n=new pe(this.location.bucket,t);return this.newRef(this.authWrapper,n)},Object.defineProperty(e.prototype,"parent",{get:function(){var e=function(e){if(0===e.length)return null;var t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this.location.path);if(null===e)return null;var t=new pe(this.location.bucket,e);return this.newRef(this.authWrapper,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){var e=new pe(this.location.bucket,"");return this.newRef(this.authWrapper,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return ge(this.location.path)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"storage",{get:function(){return this.authWrapper.service()},enumerable:!0,configurable:!0}),e.prototype.put=function(e,t){return void 0===t&&(t=null),We("put",[Je(),Xe(!0)],arguments),this.throwIfRoot_("put"),new rt(this,this.authWrapper,this.location,this.mappings(),new fe(e),t)},e.prototype.putString=function(e,t,n){void 0===t&&(t=D.RAW),We("putString",[Ke(),Ke(N,!0),Xe(!0)],arguments),this.throwIfRoot_("putString");var r=B(t,e),i=Object.assign({},n);return!Z(i.contentType)&&Z(r.contentType)&&(i.contentType=r.contentType),new rt(this,this.authWrapper,this.location,this.mappings(),new fe(r.data,!0),i)},e.prototype.delete=function(){var e=this;return We("delete",[],arguments),this.throwIfRoot_("delete"),this.authWrapper.getAuthToken().then((function(t){var n=je(e.authWrapper,e.location);return e.authWrapper.makeRequest(n,t).getPromise()}))},e.prototype.listAll=function(){We("listAll",[],arguments);var e={prefixes:[],items:[]};return this.listAllHelper(e).then((function(){return e}))},e.prototype.listAllHelper=function(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return n={pageToken:t},[4,this.list(n)];case 1:return r=a.sent(),(i=e.prefixes).push.apply(i,r.prefixes),(o=e.items).push.apply(o,r.items),null==r.nextPageToken?[3,3]:[4,this.listAllHelper(e,r.nextPageToken)];case 2:a.sent(),a.label=3;case 3:return[2]}}))}))},e.prototype.list=function(e){We("list",[Qe(!0)],arguments);var t=this;return this.authWrapper.getAuthToken().then((function(n){var r=e||{},i=Re(t.authWrapper,t.location,"/",r.pageToken,r.maxResults);return t.authWrapper.makeRequest(i,n).getPromise()}))},e.prototype.getMetadata=function(){var e=this;return We("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.authWrapper.getAuthToken().then((function(t){var n=Ne(e.authWrapper,e.location,e.mappings());return e.authWrapper.makeRequest(n,t).getPromise()}))},e.prototype.updateMetadata=function(e){var t=this;return We("updateMetadata",[Xe()],arguments),this.throwIfRoot_("updateMetadata"),this.authWrapper.getAuthToken().then((function(n){var r=Ye(t.authWrapper,t.location,e,t.mappings());return t.authWrapper.makeRequest(r,n).getPromise()}))},e.prototype.getDownloadURL=function(){var e=this;return We("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.authWrapper.getAuthToken().then((function(t){var n=Be(e.authWrapper,e.location,e.mappings());return e.authWrapper.makeRequest(n,t).getPromise().then((function(e){if(null===e)throw L();return e}))}))},e.prototype.throwIfRoot_=function(e){if(""===this.location.path)throw function(e){return new s(E,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(e)},e}(),at=function(){function e(e){this.promise_=Promise.reject(e)}return e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){},e}(),ot=function(){function e(){this.map=new Map,this.id=-9007199254740991}return e.prototype.addRequest=function(e){var t=this,n=this.id;this.id++,this.map.set(n,e),e.getPromise().then((function(){return t.map.delete(n)}),(function(){return t.map.delete(n)}))},e.prototype.clear=function(){this.map.forEach((function(e){e&&e.cancel(!0)})),this.map.clear()},e}(),st=function(){function e(t,n,r,i,a,o){var s;if(this.bucket_=null,this.appId_=null,this.deleted_=!1,this.app_=t,null!==this.app_){var l=this.app_.options;Z(l)&&(this.bucket_=e.extractBucket_(l),this.appId_=null!==(s=l.appId)&&void 0!==s?s:null)}this.authProvider_=n,this.storageRefMaker_=r,this.requestMaker_=i,this.pool_=o,this.service_=a,this.maxOperationRetryTime_=12e4,this.maxUploadRetryTime_=6e5,this.requestMap_=new ot}return e.extractBucket_=function(e){var t=e.storageBucket||null;return null==t?null:pe.makeFromBucketSpec(t).bucket},e.prototype.getAuthToken=function(){var e=this.authProvider_.getImmediate({optional:!0});return e?e.getToken().then((function(e){return null!==e?e.accessToken:null}),(function(){return null})):Promise.resolve(null)},e.prototype.bucket=function(){if(this.deleted_)throw O();return this.bucket_},e.prototype.service=function(){return this.service_},e.prototype.makeStorageReference=function(e){return this.storageRefMaker_(this,e)},e.prototype.makeRequest=function(e,t){if(this.deleted_)return new at(O());var n=this.requestMaker_(e,this.appId_,t,this.pool_);return this.requestMap_.addRequest(n),n},e.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requestMap_.clear()},e.prototype.maxUploadRetryTime=function(){return this.maxUploadRetryTime_},e.prototype.setMaxUploadRetryTime=function(e){this.maxUploadRetryTime_=e},e.prototype.maxOperationRetryTime=function(){return this.maxOperationRetryTime_},e.prototype.setMaxOperationRetryTime=function(e){this.maxOperationRetryTime_=e},e}();var lt=function(){function e(e,t,n,r,i,a,o,s,l,c,u){var d=this;this.pendingXhr_=null,this.backoffId_=null,this.resolve_=null,this.reject_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=i.slice(),this.additionalRetryCodes_=a.slice(),this.callback_=o,this.errorCallback_=s,this.progressCallback_=c,this.timeout_=l,this.pool_=u,this.promise_=new Promise((function(e,t){d.resolve_=e,d.reject_=t,d.start_()}))}return e.prototype.start_=function(){var e=this;function t(t,n){var r,i=e.resolve_,a=e.reject_,o=n.xhr;if(n.wasSuccessCode)try{var l=e.callback_(o,o.getResponseText());ee(l)?i(l):i()}catch(e){a(e)}else null!==o?((r=M()).setServerResponseProp(o.getResponseText()),e.errorCallback_?a(e.errorCallback_(o,r)):a(r)):n.canceled?a(r=e.appDelete_?O():x()):a(r=new s(f,"Max retry time for operation exceeded, please try again."))}this.canceled_?t(0,new ct(!1,null,!0)):this.backoffId_=function(e,t,n){var r=1,i=null,o=!1,s=0;function l(){return 2===s}var c=!1;function u(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];c||(c=!0,t.apply(null,e))}function d(t){i=setTimeout((function(){i=null,e(h,l())}),t)}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!c)if(e)u.call.apply(u,Object(a.__spreadArrays)([null,e],t));else{var i,h=l()||o;if(h)u.call.apply(u,Object(a.__spreadArrays)([null,e],t));else r<64&&(r*=2),1===s?(s=2,i=0):i=1e3*(r+Math.random()),d(i)}}var f=!1;function p(e){f||(f=!0,c||(null!==i?(e||(s=2),clearTimeout(i),d(0)):e||(s=1)))}return d(0),setTimeout((function(){o=!0,p(!0)}),n),p}((function(t,n){if(n)t(!1,new ct(!1,null,!0));else{var r=e.pool_.createXhrIo();e.pendingXhr_=r,null!==e.progressCallback_&&r.addUploadProgressListener(i),r.send(e.url_,e.method_,e.body_,e.headers_).then((function(n){null!==e.progressCallback_&&n.removeUploadProgressListener(i),e.pendingXhr_=null;var r=(n=n).getErrorCode()===H.NO_ERROR,a=n.getStatus();if(r&&!e.isRetryStatusCode_(a)){var o=-1!==e.successCodes_.indexOf(a);t(!0,new ct(o,n))}else{var s=n.getErrorCode()===H.ABORT;t(!1,new ct(!1,null,s))}}))}function i(t){var n=t.loaded,r=t.lengthComputable?t.total:-1;null!==e.progressCallback_&&e.progressCallback_(n,r)}}),t,this.timeout_)},e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingXhr_&&this.pendingXhr_.abort()},e.prototype.isRetryStatusCode_=function(e){var t=e>=500&&e<600,n=-1!==[408,429].indexOf(e),r=-1!==this.additionalRetryCodes_.indexOf(e);return t||n||r},e}(),ct=function(e,t,n){this.wasSuccessCode=e,this.xhr=t,this.canceled=!!n};function ut(e,t,n,r){var a=be(e.urlParams),o=e.url+a,s=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(s,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(s,n),function(e){var t=void 0!==i.a?i.a.SDK_VERSION:"AppManager";e["X-Firebase-Storage-Version"]="webjs/"+t}(s),new lt(o,e.method,s,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,r)}var dt=function(){function e(e,t,n,r){if(this.bucket_=null,this.authWrapper_=new st(e,t,(function(e,t){return new it(e,t)}),ut,this,n),this.app_=e,null!=r)this.bucket_=pe.makeFromBucketSpec(r);else{var i=this.authWrapper_.bucket();null!=i&&(this.bucket_=new pe(i,""))}this.internals_=new ht(this)}return e.prototype.ref=function(e){function t(e){if("string"!=typeof e)throw"Path is not a string.";if(/^[A-Za-z]+:\/\//.test(e))throw"Expected child path but got a URL, use refFromURL instead."}if(We("ref",[Ke(t,!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var n=new it(this.authWrapper_,this.bucket_);return null!=e?n.child(e):n},e.prototype.refFromURL=function(e){function t(e){if("string"!=typeof e)throw"Path is not a string.";if(!/^[A-Za-z]+:\/\//.test(e))throw"Expected full URL but got a child path, use ref instead.";try{pe.makeFromUrl(e)}catch(e){throw"Expected valid full URL but got an invalid one."}}return We("refFromURL",[Ke(t,!1)],arguments),new it(this.authWrapper_,e)},Object.defineProperty(e.prototype,"maxUploadRetryTime",{get:function(){return this.authWrapper_.maxUploadRetryTime()},enumerable:!0,configurable:!0}),e.prototype.setMaxUploadRetryTime=function(e){We("setMaxUploadRetryTime",[Ze()],arguments),this.authWrapper_.setMaxUploadRetryTime(e)},e.prototype.setMaxOperationRetryTime=function(e){We("setMaxOperationRetryTime",[Ze()],arguments),this.authWrapper_.setMaxOperationRetryTime(e)},Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!0,configurable:!0}),e}(),ht=function(){function e(e){this.service_=e}return e.prototype.delete=function(){return this.service_.authWrapper_.deleteApp(),Promise.resolve()},e}();function ft(e,t){var n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal");return new dt(n,r,new ue,t)}function pt(e){var t={TaskState:X,TaskEvent:U,StringFormat:D,Storage:dt,Reference:it};e.INTERNAL.registerComponent(new o.Component("storage",ft,"PUBLIC").setServiceProps(t).setMultipleInstances(!0)),e.registerVersion("@firebase/storage","0.3.32")}pt(i.a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(17))&&"object"==typeof r&&"default"in r?r.default:r;n(51);var a,o,s,l,c=n(5),u=n(28),d=n(37),h=n(26),f=((a={})["trace started"]="Trace {$traceName} was started before.",a["trace stopped"]="Trace {$traceName} is not running.",a["no window"]="Window is not available.",a["no app id"]="App id is not available.",a["no project id"]="Project id is not available.",a["no api key"]="Api key is not available.",a["invalid cc log"]="Attempted to queue invalid cc event",a["FB not default"]="Performance can only start when Firebase app instance is the default one.",a["RC response not ok"]="RC response is not ok",a["invalid attribute name"]="Attribute name {$attributeName} is invalid.",a["invalid attribute value"]="Attribute value {$attributeValue} is invalid.",a["invalid custom metric name"]="Custom metric name {$customMetricName} is invalid",a["invalid String merger input"]="Input for String merger is invalid, contact support team to resolve.",a),p=new u.ErrorFactory("performance","Performance",f),m=function(){function e(e){if(this.window=e,!e)throw p.create("no window");this.performance=e.performance,this.PerformanceObserver=e.PerformanceObserver,this.windowLocation=e.location,this.navigator=e.navigator,this.document=e.document,this.navigator&&this.navigator.cookieEnabled&&(this.localStorage=e.localStorage),e.perfMetrics&&e.perfMetrics.onFirstInputDelay&&(this.onFirstInputDelay=e.perfMetrics.onFirstInputDelay)}return e.prototype.getUrl=function(){return this.windowLocation.href.split("?")[0]},e.prototype.mark=function(e){this.performance&&this.performance.mark&&this.performance.mark(e)},e.prototype.measure=function(e,t,n){this.performance&&this.performance.measure&&this.performance.measure(e,t,n)},e.prototype.getEntriesByType=function(e){return this.performance&&this.performance.getEntriesByType?this.performance.getEntriesByType(e):[]},e.prototype.getEntriesByName=function(e){return this.performance&&this.performance.getEntriesByName?this.performance.getEntriesByName(e):[]},e.prototype.getTimeOrigin=function(){return this.performance&&(this.performance.timeOrigin||this.performance.timing.navigationStart)},e.prototype.requiredApisAvailable=function(){return!!(fetch&&Promise&&this.navigator&&this.navigator.cookieEnabled)},e.prototype.setupObserver=function(e,t){this.PerformanceObserver&&new this.PerformanceObserver((function(e){for(var n=0,r=e.getEntries();n<r.length;n++){var i=r[n];t(i)}})).observe({entryTypes:[e]})},e.getInstance=function(){return void 0===o&&(o=new e(s)),o},e}();function v(e,t){var n=e.length-t.length;if(n<0||n>1)throw p.create("invalid String merger input");for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i)),t.length>i&&r.push(t.charAt(i));return r.join("")}var g,y,b=function(){function e(){this.instrumentationEnabled=!0,this.dataCollectionEnabled=!0,this.loggingEnabled=!1,this.tracesSamplingRate=1,this.networkRequestsSamplingRate=1,this.logEndPointUrl="https://firebaselogging.googleapis.com/v0cc/log?format=json_proto",this.flTransportEndpointUrl=v("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=v("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.shouldSendToFl=!1,this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12}return e.prototype.getAppId=function(){var e=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.appId;if(!e)throw p.create("no app id");return e},e.prototype.getProjectId=function(){var e=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.projectId;if(!e)throw p.create("no project id");return e},e.prototype.getApiKey=function(){var e=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.apiKey;if(!e)throw p.create("no api key");return e},e.prototype.getFlTransportFullUrl=function(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)},e.getInstance=function(){return void 0===l&&(l=new e),l},e}();function _(){return g}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.VISIBLE=1]="VISIBLE",e[e.HIDDEN=2]="HIDDEN"}(y||(y={}));var w=["firebase_","google_","ga_"],k=new RegExp("^[a-zA-Z]\\w*$");function E(){var e=m.getInstance().navigator;return"serviceWorker"in e?e.serviceWorker.controller?2:3:1}function S(){switch(m.getInstance().document.visibilityState){case"visible":return y.VISIBLE;case"hidden":return y.HIDDEN;default:return y.UNKNOWN}}function T(){var e=m.getInstance().navigator.connection;switch(e&&e.effectiveType){case"slow-2g":return 1;case"2g":return 2;case"3g":return 3;case"4g":return 4;default:return 0}}var C=new d.Logger("Performance");C.logLevel=d.LogLevel.INFO;var M=!0,x=!0,$=!1;function L(e){var t=function(){var e=m.getInstance().localStorage;if(!e)return;var t=e.getItem("@firebase/performance/configexpire");if(!(t&&(n=t,Number(n)>Date.now())))return;var n;var r=e.getItem("@firebase/performance/config");if(!r)return;try{return JSON.parse(r)}catch(e){return}}();return t?(P(e,t),Promise.resolve()):function(e){return(t=b.getInstance().installationsService.getToken(),t.then((function(e){})),t).then((function(t){var n="https://firebaseremoteconfig.googleapis.com/v1/projects/"+b.getInstance().getProjectId()+"/namespaces/fireperf:fetch?key="+b.getInstance().getApiKey(),r=new Request(n,{method:"POST",headers:{Authorization:"FIREBASE_INSTALLATIONS_AUTH "+t},body:JSON.stringify({app_instance_id:e,app_instance_id_token:t,app_id:b.getInstance().getAppId(),app_version:"0.3.2",sdk_version:"0.0.1"})});return fetch(r).then((function(e){if(e.ok)return e.json();throw p.create("RC response not ok")}))})).catch((function(){C.info("Could not fetch config, will use default configs")}));var t}(e).then((function(t){return P(e,t)})).then((function(e){return function(e){var t=m.getInstance().localStorage;if(!e||!t)return;t.setItem("@firebase/performance/config",JSON.stringify(e)),t.setItem("@firebase/performance/configexpire",String(Date.now()+60*b.getInstance().configTimeToLive*60*1e3))}(e)}),(function(){}))}function P(e,t){if(!t)return t;var n=b.getInstance(),r=t.entries||{},i=t.state;return void 0!==r.fpr_enabled?n.loggingEnabled="true"===String(r.fpr_enabled):n.loggingEnabled=M,r.fpr_log_source&&(n.logSource=Number(r.fpr_log_source)),r.fpr_log_endpoint_url&&(n.logEndPointUrl=r.fpr_log_endpoint_url),r.fpr_log_transport_key&&(n.transportKey=r.fpr_log_transport_key),void 0===i||"INSTANCE_STATE_UNSPECIFIED"===i||"NO_TEMPLATE"===i?n.shouldSendToFl=$:r.fpr_log_transport_web_percent?n.shouldSendToFl=function(e,t){if(0===e.length)return!1;return function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<3)+t-e.charCodeAt(n);return t=Math.abs(t%100)}(e)<t}(e,Number(r.fpr_log_transport_web_percent)):n.shouldSendToFl=x,void 0!==r.fpr_vc_network_request_sampling_rate&&(n.networkRequestsSamplingRate=Number(r.fpr_vc_network_request_sampling_rate)),void 0!==r.fpr_vc_trace_sampling_rate&&(n.tracesSamplingRate=Number(r.fpr_vc_trace_sampling_rate)),n.logTraceAfterSampling=O(n.tracesSamplingRate),n.logNetworkAfterSampling=O(n.networkRequestsSamplingRate),t}function O(e){return Math.random()<=e}var I,A=1;function D(){return A=2,I=I||function(){var e=m.getInstance().document;return new Promise((function(t){if(e&&"complete"!==e.readyState){var n=function(){"complete"===e.readyState&&(e.removeEventListener("readystatechange",n),t())};e.addEventListener("readystatechange",n)}else t()}))}().then((function(){return(e=b.getInstance().installationsService.getId()).then((function(e){g=e})),e;var e})).then((function(e){return L(e)})).then((function(){return N()}),(function(){return N()}))}function N(){A=3}var R,B=3,Y=[],j=!1;function F(e){setTimeout((function(){if(0!==B)return Y.length?void function(){var e=c.__spreadArrays(Y);Y=[];var t=e.map((function(e){return{source_extension_json_proto3:e.message,event_time_ms:String(e.eventTime)}}));(function(e,t){return b.getInstance().shouldSendToFl?function(e,t){return function(e){var t=b.getInstance().getFlTransportFullUrl();return fetch(t,{method:"POST",body:JSON.stringify(e)})}(e).then((function(e){return e.ok||C.info("Call to Firebase backend failed."),e.json()})).then((function(e){var n=Number(e.nextRequestWaitMillis),r=1e4;isNaN(n)||(r=Math.max(n,r));var i=e.logResponseDetails;Array.isArray(i)&&i.length>0&&"RETRY_REQUEST_LATER"===i[0].responseAction&&(Y=c.__spreadArrays(t,Y),C.info("Retry transport request later.")),B=3,F(r)}))}(e,t):function(e){return fetch(b.getInstance().logEndPointUrl,{method:"POST",body:JSON.stringify(e)}).then((function(e){return e.ok||C.info("Call to Firebase backend failed."),e.json()})).then((function(e){var t=Number(e.next_request_wait_millis),n=isNaN(t)?1e4:Math.max(1e4,t);B=3,F(n)}))}(e)})({request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:b.getInstance().logSource,log_event:t},e).catch((function(){Y=c.__spreadArrays(e,Y),B--,C.info("Tries left: "+B+"."),F(1e4)}))}():F(1e4)}),e)}function H(e){if(!e.eventTime||!e.message)throw p.create("invalid cc log");Y=c.__spreadArrays(Y,[e])}function U(e,t){R||(R=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.apply(void 0,t);H({message:r,eventTime:Date.now()})}}(q)),R(e,t)}function z(e){var t=b.getInstance();!t.instrumentationEnabled&&e.isAuto||(t.dataCollectionEnabled||e.isAuto)&&m.getInstance().requiredApisAvailable()&&(e.isAuto&&S()!==y.VISIBLE||t.loggingEnabled&&t.logTraceAfterSampling&&(3===A?V(e):D().then((function(){return V(e)}),(function(){return V(e)}))))}function V(e){_()&&setTimeout((function(){return U(e,1)}),0)}function q(e,t){return 0===t?(r={url:(n=e).url,http_method:n.httpMethod||0,http_response_code:200,response_payload_bytes:n.responsePayloadBytes,client_start_time_us:n.startTimeUs,time_to_response_initiated_us:n.timeToResponseInitiatedUs,time_to_response_completed_us:n.timeToResponseCompletedUs},i={application_info:W(),network_request_metric:r},JSON.stringify(i)):function(e){var t={name:e.name,is_auto:e.isAuto,client_start_time_us:e.startTimeUs,duration_us:e.durationUs};0!==Object.keys(e.counters).length&&(t.counters=e.counters);var n=e.getAttributes();0!==Object.keys(n).length&&(t.custom_attributes=n);var r={application_info:W(),trace_metric:t};return JSON.stringify(r)}(e);var n,r,i}function W(){return{google_app_id:b.getInstance().getAppId(),app_instance_id:_(),web_app_info:{sdk_version:"0.3.2",page_url:m.getInstance().getUrl(),service_worker_status:E(),visibility_state:S(),effective_connection_type:T()},application_process_state:0}}var G=["_fp","_fcp","_fid"];var K=function(){function e(e,t,n){void 0===t&&(t=!1),this.name=e,this.isAuto=t,this.state=1,this.customAttributes={},this.counters={},this.api=m.getInstance(),this.randomId=Math.floor(1e6*Math.random()),this.isAuto||(this.traceStartMark="FB-PERF-TRACE-START-"+this.randomId+"-"+this.name,this.traceStopMark="FB-PERF-TRACE-STOP-"+this.randomId+"-"+this.name,this.traceMeasure=n||"FB-PERF-TRACE-MEASURE-"+this.randomId+"-"+this.name,n&&this.calculateTraceMetrics())}return e.prototype.start=function(){if(1!==this.state)throw p.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2},e.prototype.stop=function(){if(2!==this.state)throw p.create("trace stopped",{traceName:this.name});this.state=3,this.api.mark(this.traceStopMark),this.api.measure(this.traceMeasure,this.traceStartMark,this.traceStopMark),this.calculateTraceMetrics(),z(this)},e.prototype.record=function(e,t,n){if(this.durationUs=Math.floor(1e3*t),this.startTimeUs=Math.floor(1e3*e),n&&n.attributes&&(this.customAttributes=c.__assign({},n.attributes)),n&&n.metrics)for(var r=0,i=Object.keys(n.metrics);r<i.length;r++){var a=i[r];isNaN(Number(n.metrics[a]))||(this.counters[a]=Number(Math.floor(n.metrics[a])))}z(this)},e.prototype.incrementMetric=function(e,t){void 0===t&&(t=1),void 0===this.counters[e]&&this.putMetric(e,0),this.counters[e]+=t},e.prototype.putMetric=function(e,t){if(!function(e,t){return!(0===e.length||e.length>100)&&(t&&t.startsWith("_wt_")&&G.indexOf(e)>-1||!e.startsWith("_"))}(e,this.name))throw p.create("invalid custom metric name",{customMetricName:e});this.counters[e]=t},e.prototype.getMetric=function(e){return this.counters[e]||0},e.prototype.putAttribute=function(e,t){var n=function(e){return!(0===e.length||e.length>40)&&(!w.some((function(t){return e.startsWith(t)}))&&!!e.match(k))}(e),r=function(e){return 0!==e.length&&e.length<=100}(t);if(n&&r)this.customAttributes[e]=t;else{if(!n)throw p.create("invalid attribute name",{attributeName:e});if(!r)throw p.create("invalid attribute value",{attributeValue:t})}},e.prototype.getAttribute=function(e){return this.customAttributes[e]},e.prototype.removeAttribute=function(e){void 0!==this.customAttributes[e]&&delete this.customAttributes[e]},e.prototype.getAttributes=function(){return c.__assign({},this.customAttributes)},e.prototype.setStartTime=function(e){this.startTimeUs=e},e.prototype.setDuration=function(e){this.durationUs=e},e.prototype.calculateTraceMetrics=function(){var e=this.api.getEntriesByName(this.traceMeasure),t=e&&e[0];t&&(this.durationUs=Math.floor(1e3*t.duration),this.startTimeUs=Math.floor(1e3*(t.startTime+this.api.getTimeOrigin())))},e.createOobTrace=function(t,n,r){var i=m.getInstance().getUrl();if(i){var a=new e("_wt_"+i,!0),o=Math.floor(1e3*m.getInstance().getTimeOrigin());a.setStartTime(o),t&&t[0]&&(a.setDuration(Math.floor(1e3*t[0].duration)),a.putMetric("domInteractive",Math.floor(1e3*t[0].domInteractive)),a.putMetric("domContentLoadedEventEnd",Math.floor(1e3*t[0].domContentLoadedEventEnd)),a.putMetric("loadEventEnd",Math.floor(1e3*t[0].loadEventEnd)));if(n){var s=n.find((function(e){return"first-paint"===e.name}));s&&s.startTime&&a.putMetric("_fp",Math.floor(1e3*s.startTime));var l=n.find((function(e){return"first-contentful-paint"===e.name}));l&&l.startTime&&a.putMetric("_fcp",Math.floor(1e3*l.startTime)),r&&a.putMetric("_fid",Math.floor(1e3*r))}z(a)}},e.createUserTimingTrace=function(t){z(new e(t,!1,t))},e}();function J(e){var t=e;if(t&&void 0!==t.responseStart){var n=m.getInstance().getTimeOrigin(),r=Math.floor(1e3*(t.startTime+n)),i=t.responseStart?Math.floor(1e3*(t.responseStart-t.startTime)):void 0,a=Math.floor(1e3*(t.responseEnd-t.startTime));!function(e){var t=b.getInstance();if(t.instrumentationEnabled){var n=e.url,r=t.logEndPointUrl.split("?")[0],i=t.flTransportEndpointUrl.split("?")[0];n!==r&&n!==i&&t.loggingEnabled&&t.logNetworkAfterSampling&&setTimeout((function(){return U(e,0)}),0)}}({url:t.name&&t.name.split("?")[0],responsePayloadBytes:t.transferSize,startTimeUs:r,timeToResponseInitiatedUs:i,timeToResponseCompletedUs:a})}}function X(){_()&&(setTimeout((function(){return function(){var e=m.getInstance(),t=e.getEntriesByType("navigation"),n=e.getEntriesByType("paint");if(e.onFirstInputDelay){var r=setTimeout((function(){K.createOobTrace(t,n),r=void 0}),5e3);e.onFirstInputDelay((function(e){r&&(clearTimeout(r),K.createOobTrace(t,n,e))}))}else K.createOobTrace(t,n)}()}),0),setTimeout((function(){return function(){for(var e=m.getInstance(),t=e.getEntriesByType("resource"),n=0,r=t;n<r.length;n++){J(r[n])}e.setupObserver("resource",J)}()}),0),setTimeout((function(){return function(){for(var e=m.getInstance(),t=e.getEntriesByType("measure"),n=0,r=t;n<r.length;n++){Q(r[n])}e.setupObserver("measure",Q)}()}),0))}function Q(e){var t=e.name;"FB-PERF-TRACE-MEASURE"!==t.substring(0,"FB-PERF-TRACE-MEASURE".length)&&K.createUserTimingTrace(t)}var Z=function(){function e(e){this.app=e,m.getInstance().requiredApisAvailable()?(j||(F(5500),j=!0),D().then(X,X)):C.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled.")}return e.prototype.trace=function(e){return new K(e)},Object.defineProperty(e.prototype,"instrumentationEnabled",{get:function(){return b.getInstance().instrumentationEnabled},set:function(e){b.getInstance().instrumentationEnabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataCollectionEnabled",{get:function(){return b.getInstance().dataCollectionEnabled},set:function(e){b.getInstance().dataCollectionEnabled=e},enumerable:!0,configurable:!0}),e}();function ee(e){var t=function(e,t){if("[DEFAULT]"!==e.name)throw p.create("FB not default");if("undefined"==typeof window)throw p.create("no window");return function(e){s=e}(window),b.getInstance().firebaseAppInstance=e,b.getInstance().installationsService=t,new Z(e)};e.INTERNAL.registerComponent(new h.Component("performance",(function(e){var n=e.getProvider("app").getImmediate(),r=e.getProvider("installations").getImmediate();return t(n,r)}),"PUBLIC")),e.registerVersion("@firebase/performance","0.3.2")}ee(i),t.registerPerformance=ee},function(e,t,n){"use strict";n.r(t),n.d(t,"factory",(function(){return C})),n.d(t,"getGlobalVars",(function(){return S})),n.d(t,"registerAnalytics",(function(){return M})),n.d(t,"resetGlobalVars",(function(){return E})),n.d(t,"settings",(function(){return T}));var r,i,a=n(17),o=n.n(a),s=(n(51),n(5)),l=n(37),c=n(28),u=n(26),d="https://www.googletagmanager.com/gtag/js";!function(e){e.EVENT="event",e.SET="set",e.CONFIG="config"}(r||(r={})),function(e){e.ADD_SHIPPING_INFO="add_shipping_info",e.ADD_PAYMENT_INFO="add_payment_info",e.ADD_TO_CART="add_to_cart",e.ADD_TO_WISHLIST="add_to_wishlist",e.BEGIN_CHECKOUT="begin_checkout",e.CHECKOUT_PROGRESS="checkout_progress",e.EXCEPTION="exception",e.GENERATE_LEAD="generate_lead",e.LOGIN="login",e.PAGE_VIEW="page_view",e.PURCHASE="purchase",e.REFUND="refund",e.REMOVE_FROM_CART="remove_from_cart",e.SCREEN_VIEW="screen_view",e.SEARCH="search",e.SELECT_CONTENT="select_content",e.SELECT_ITEM="select_item",e.SELECT_PROMOTION="select_promotion",e.SET_CHECKOUT_OPTION="set_checkout_option",e.SHARE="share",e.SIGN_UP="sign_up",e.TIMING_COMPLETE="timing_complete",e.VIEW_CART="view_cart",e.VIEW_ITEM="view_item",e.VIEW_ITEM_LIST="view_item_list",e.VIEW_PROMOTION="view_promotion",e.VIEW_SEARCH_RESULTS="view_search_results"}(i||(i={}));var h,f=new l.Logger("@firebase/analytics");function p(e,t,n){var i=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];window[t].push(arguments)};return window[n]&&"function"==typeof window[n]&&(i=window[n]),window[n]=function(e,t){return function(n,i,a){if(n===r.EVENT){var o=[];if(a&&a.send_to){var s=a.send_to;Array.isArray(s)||(s=[s]);for(var l=0,c=s;l<c.length;l++){var u=c[l],d=t[u];if(!d){o=[];break}o.push(d)}}if(0===o.length)for(var h=0,p=Object.values(t);h<p.length;h++){var m=p[h];o.push(m)}Promise.all(o).then((function(){return e(r.EVENT,i,a||{})})).catch((function(e){return f.error(e)}))}else if(n===r.CONFIG){(t[i]||Promise.resolve()).then((function(){e(r.CONFIG,i,a)})).catch((function(e){return f.error(e)}))}else e(r.SET,i)}}(i,e),{gtagCore:i,wrappedGtag:window[n]}}var m,v,g=((h={})["no-ga-id"]='"measurementId" field is empty in Firebase config. Firebase Analytics requires this field to contain a valid measurement ID.',h["already-exists"]="A Firebase Analytics instance with the measurement ID ${id} already exists. Only one Firebase Analytics instance can be created for each measurement ID.",h["already-initialized"]="Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.",h["interop-component-reg-failed"]="Firebase Analytics Interop Component failed to instantiate",h),y=new c.ErrorFactory("analytics","Analytics",g),b={},_="dataLayer",w="gtag",k=!1;function E(e,t){void 0===e&&(e=!1),void 0===t&&(t={}),k=e,b=t,_="dataLayer",w="gtag"}function S(){return{initializedIdPromisesMap:b}}function T(e){if(k)throw y.create("already-initialized");e.dataLayerName&&(_=e.dataLayerName),e.gtagName&&(w=e.gtagName)}function C(e,t){var n=e.options.measurementId;if(!n)throw y.create("no-ga-id");if(null!=b[n])throw y.create("already-exists",{id:n});if(!k){(function(){for(var e=window.document.getElementsByTagName("script"),t=0,n=Object.values(e);t<n.length;t++){var r=n[t];if(r.src&&r.src.includes(d))return r}return null})()||function(e){var t=document.createElement("script");t.src=d+"?l="+e,t.async=!0,document.head.appendChild(t)}(_),function(e){var t=[];Array.isArray(window[e])?t=window[e]:window[e]=t}(_);var i=p(b,_,w),a=i.wrappedGtag,o=i.gtagCore;v=a,m=o,k=!0}return b[n]=function(e,t,n){return Object(s.__awaiter)(this,void 0,void 0,(function(){var i,a;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return[4,t.getId()];case 1:return i=o.sent(),n("js",new Date),n(r.CONFIG,e.options.measurementId,((a={}).firebase_id=i,a.origin="firebase",a.update=!0,a)),[2]}}))}))}(e,t,m),{app:e,logEvent:function(e,t,i){return function(e,t,n,i,a){var o=i||{};a&&a.global||(o=Object(s.__assign)(Object(s.__assign)({},i),{send_to:t})),e(r.EVENT,n,o||{})}(v,n,e,t,i)},setCurrentScreen:function(e,t){return function(e,t,n,i){i&&i.global?e(r.SET,{screen_name:n}):e(r.CONFIG,t,{update:!0,screen_name:n})}(v,n,e,t)},setUserId:function(e,t){return function(e,t,n,i){i&&i.global?e(r.SET,{user_id:n}):e(r.CONFIG,t,{update:!0,user_id:n})}(v,n,e,t)},setUserProperties:function(e,t){return function(e,t,n,i){if(i&&i.global){for(var a={},o=0,s=Object.keys(n);o<s.length;o++){var l=s[o];a["user_properties."+l]=n[l]}e(r.SET,a)}else e(r.CONFIG,t,{update:!0,user_properties:n})}(v,n,e,t)},setAnalyticsCollectionEnabled:function(e){return function(e,t){window["ga-disable-"+e]=!t}(n,e)}}}function M(e){e.INTERNAL.registerComponent(new u.Component("analytics",(function(e){return C(e.getProvider("app").getImmediate(),e.getProvider("installations").getImmediate())}),"PUBLIC").setServiceProps({settings:T,EventName:i})),e.INTERNAL.registerComponent(new u.Component("analytics-internal",(function(e){try{return{logEvent:e.getProvider("analytics").getImmediate().logEvent}}catch(e){throw y.create("interop-component-reg-failed",{reason:e})}}),"PRIVATE")),e.registerVersion("@firebase/analytics","0.3.3")}M(o.a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(17))&&"object"==typeof r&&"default"in r?r.default:r;n(51);var a,o=n(5),s=n(28),l=n(37),c=n(26),u=function(){function e(e,t,n,r){this.client=e,this.storage=t,this.storageCache=n,this.logger=r}return e.prototype.isCachedDataFresh=function(e,t){if(!t)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;var n=Date.now()-t,r=n<=e;return this.logger.debug("Config fetch cache check. Cache age millis: "+n+". Cache max age millis (minimumFetchIntervalMillis setting): "+e+". Is cache hit: "+r+"."),r},e.prototype.fetch=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n,r,i,a;return o.__generator(this,(function(o){switch(o.label){case 0:return[4,Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()])];case 1:return t=o.sent(),n=t[0],(r=t[1])&&this.isCachedDataFresh(e.cacheMaxAgeMillis,n)?[2,r]:(e.eTag=r&&r.eTag,[4,this.client.fetch(e)]);case 2:return i=o.sent(),a=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())],200===i.status&&a.push(this.storage.setLastSuccessfulFetchResponse(i)),[4,Promise.all(a)];case 3:return o.sent(),[2,i]}}))}))},e}(),d=((a={})["registration-window"]="Undefined window object. This SDK only supports usage in a browser environment.",a["registration-project-id"]="Undefined project identifier. Check Firebase app initialization.",a["registration-api-key"]="Undefined API key. Check Firebase app initialization.",a["registration-app-id"]="Undefined app identifier. Check Firebase app initialization.",a["storage-open"]="Error thrown when opening storage. Original error: {$originalErrorMessage}.",a["storage-get"]="Error thrown when reading from storage. Original error: {$originalErrorMessage}.",a["storage-set"]="Error thrown when writing to storage. Original error: {$originalErrorMessage}.",a["storage-delete"]="Error thrown when deleting from storage. Original error: {$originalErrorMessage}.",a["fetch-client-network"]="Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.",a["fetch-timeout"]='The config fetch request timed out. Configure timeout using "fetchTimeoutMillis" SDK setting.',a["fetch-throttle"]='The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',a["fetch-client-parse"]="Fetch client could not parse response. Original error: {$originalErrorMessage}.",a["fetch-status"]="Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.",a),h=new s.ErrorFactory("remoteconfig","Remote Config",d);var f=function(){function e(e,t,n,r,i,a){this.firebaseInstallations=e,this.sdkVersion=t,this.namespace=n,this.projectId=r,this.apiKey=i,this.appId=a}return e.prototype.fetch=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n,r,i,a,s,l,c,u,d,f,p,m,v,g,y,b,_,w;return o.__generator(this,(function(o){switch(o.label){case 0:return[4,Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()])];case 1:t=o.sent(),n=t[0],r=t[1],i=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",a=i+"/v1/projects/"+this.projectId+"/namespaces/"+this.namespace+":fetch?key="+this.apiKey,s={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":e.eTag||"*"},l={sdk_version:this.sdkVersion,app_instance_id:n,app_instance_id_token:r,app_id:this.appId,language_code:(void 0===k&&(k=navigator),k.languages&&k.languages[0]||k.language)},c={method:"POST",headers:s,body:JSON.stringify(l)},u=fetch(a,c),d=new Promise((function(t,n){e.signal.addEventListener((function(){var e=new Error("The operation was aborted.");e.name="AbortError",n(e)}))})),o.label=2;case 2:return o.trys.push([2,5,,6]),[4,Promise.race([u,d])];case 3:return o.sent(),[4,u];case 4:return f=o.sent(),[3,6];case 5:throw p=o.sent(),m="fetch-client-network","AbortError"===p.name&&(m="fetch-timeout"),h.create(m,{originalErrorMessage:p.message});case 6:if(v=f.status,g=f.headers.get("ETag")||void 0,200!==f.status)return[3,11];_=void 0,o.label=7;case 7:return o.trys.push([7,9,,10]),[4,f.json()];case 8:return _=o.sent(),[3,10];case 9:throw w=o.sent(),h.create("fetch-client-parse",{originalErrorMessage:w.message});case 10:y=_.entries,b=_.state,o.label=11;case 11:if("INSTANCE_STATE_UNSPECIFIED"===b?v=500:"NO_CHANGE"===b?v=304:"NO_TEMPLATE"!==b&&"EMPTY_CONFIG"!==b||(y={}),304!==v&&200!==v)throw h.create("fetch-status",{httpStatus:v});return[2,{status:v,eTag:g,config:y}]}var k}))}))},e}(),p=function(){function e(){this.listeners=[]}return e.prototype.addEventListener=function(e){this.listeners.push(e)},e.prototype.abort=function(){this.listeners.forEach((function(e){return e()}))},e}(),m=["1","true","t","yes","y","on"],v=function(){function e(e,t){void 0===t&&(t=""),this._source=e,this._value=t}return e.prototype.asString=function(){return this._value},e.prototype.asBoolean=function(){return"static"!==this._source&&m.indexOf(this._value.toLowerCase())>=0},e.prototype.asNumber=function(){if("static"===this._source)return 0;var e=Number(this._value);return isNaN(e)&&(e=0),e},e.prototype.getSource=function(){return this._source},e}(),g=function(){function e(e,t,n,r,i){this.app=e,this._client=t,this._storageCache=n,this._storage=r,this._logger=i,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}return e.prototype.setLogLevel=function(e){switch(e){case"debug":this._logger.logLevel=l.LogLevel.DEBUG;break;case"silent":this._logger.logLevel=l.LogLevel.SILENT;break;default:this._logger.logLevel=l.LogLevel.ERROR}},Object.defineProperty(e.prototype,"fetchTimeMillis",{get:function(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastFetchStatus",{get:function(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"},enumerable:!0,configurable:!0}),e.prototype.activate=function(){return o.__awaiter(this,void 0,void 0,(function(){var e,t,n;return o.__generator(this,(function(r){switch(r.label){case 0:return[4,Promise.all([this._storage.getLastSuccessfulFetchResponse(),this._storage.getActiveConfigEtag()])];case 1:return e=r.sent(),t=e[0],n=e[1],t&&t.config&&t.eTag&&t.eTag!==n?[4,Promise.all([this._storageCache.setActiveConfig(t.config),this._storage.setActiveConfigEtag(t.eTag)])]:[2,!1];case 2:return r.sent(),[2,!0]}}))}))},e.prototype.ensureInitialized=function(){var e=this;return this._initializePromise||(this._initializePromise=this._storageCache.loadFromStorage().then((function(){e._isInitializationComplete=!0}))),this._initializePromise},e.prototype.fetch=function(){return o.__awaiter(this,void 0,void 0,(function(){var e,t,n,r=this;return o.__generator(this,(function(i){switch(i.label){case 0:e=new p,setTimeout((function(){return o.__awaiter(r,void 0,void 0,(function(){return o.__generator(this,(function(t){return e.abort(),[2]}))}))}),this.settings.fetchTimeoutMillis),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,this._client.fetch({cacheMaxAgeMillis:this.settings.minimumFetchIntervalMillis,signal:e})];case 2:return i.sent(),[4,this._storageCache.setLastFetchStatus("success")];case 3:return i.sent(),[3,6];case 4:return t=i.sent(),l="fetch-throttle",n=(a=t)instanceof s.FirebaseError&&-1!==a.code.indexOf(l)?"throttle":"failure",[4,this._storageCache.setLastFetchStatus(n)];case 5:throw i.sent(),t;case 6:return[2]}var a,l}))}))},e.prototype.fetchAndActivate=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return[4,this.fetch()];case 1:return e.sent(),[2,this.activate()]}}))}))},e.prototype.getAll=function(){var e=this;return function(e,t){void 0===e&&(e={});void 0===t&&(t={});return Object.keys(o.__assign(o.__assign({},e),t))}(this._storageCache.getActiveConfig(),this.defaultConfig).reduce((function(t,n){return t[n]=e.getValue(n),t}),{})},e.prototype.getBoolean=function(e){return this.getValue(e).asBoolean()},e.prototype.getNumber=function(e){return this.getValue(e).asNumber()},e.prototype.getString=function(e){return this.getValue(e).asString()},e.prototype.getValue=function(e){this._isInitializationComplete||this._logger.debug('A value was requested for key "'+e+'" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.');var t=this._storageCache.getActiveConfig();return t&&void 0!==t[e]?new v("remote",t[e]):this.defaultConfig&&void 0!==this.defaultConfig[e]?new v("default",String(this.defaultConfig[e])):(this._logger.debug('Returning static value for key "'+e+'". Define a default or remote value if this is unintentional.'),new v("static"))},e}();function y(e,t){var n=e.target.error||void 0;return h.create(t,{originalErrorMessage:n&&n.message})}var b=function(){function e(e,t,n,r){void 0===r&&(r=new Promise((function(e,t){var n=indexedDB.open("firebase_remote_config",1);n.onerror=function(e){t(y(e,"storage-open"))},n.onsuccess=function(t){e(t.target.result)},n.onupgradeneeded=function(e){var t=e.target.result;switch(e.oldVersion){case 0:t.createObjectStore("app_namespace_store",{keyPath:"compositeKey"})}}}))),this.appId=e,this.appName=t,this.namespace=n,this.openDbPromise=r}return e.prototype.getLastFetchStatus=function(){return this.get("last_fetch_status")},e.prototype.setLastFetchStatus=function(e){return this.set("last_fetch_status",e)},e.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.get("last_successful_fetch_timestamp_millis")},e.prototype.setLastSuccessfulFetchTimestampMillis=function(e){return this.set("last_successful_fetch_timestamp_millis",e)},e.prototype.getLastSuccessfulFetchResponse=function(){return this.get("last_successful_fetch_response")},e.prototype.setLastSuccessfulFetchResponse=function(e){return this.set("last_successful_fetch_response",e)},e.prototype.getActiveConfig=function(){return this.get("active_config")},e.prototype.setActiveConfig=function(e){return this.set("active_config",e)},e.prototype.getActiveConfigEtag=function(){return this.get("active_config_etag")},e.prototype.setActiveConfigEtag=function(e){return this.set("active_config_etag",e)},e.prototype.getThrottleMetadata=function(){return this.get("throttle_metadata")},e.prototype.setThrottleMetadata=function(e){return this.set("throttle_metadata",e)},e.prototype.deleteThrottleMetadata=function(){return this.delete("throttle_metadata")},e.prototype.get=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n=this;return o.__generator(this,(function(r){switch(r.label){case 0:return[4,this.openDbPromise];case 1:return t=r.sent(),[2,new Promise((function(r,i){var a=t.transaction(["app_namespace_store"],"readonly").objectStore("app_namespace_store"),o=n.createCompositeKey(e);try{var s=a.get(o);s.onerror=function(e){i(y(e,"storage-get"))},s.onsuccess=function(e){var t=e.target.result;r(t?t.value:void 0)}}catch(e){i(h.create("storage-get",{originalErrorMessage:e&&e.message}))}}))]}}))}))},e.prototype.set=function(e,t){return o.__awaiter(this,void 0,void 0,(function(){var n,r=this;return o.__generator(this,(function(i){switch(i.label){case 0:return[4,this.openDbPromise];case 1:return n=i.sent(),[2,new Promise((function(i,a){var o=n.transaction(["app_namespace_store"],"readwrite").objectStore("app_namespace_store"),s=r.createCompositeKey(e);try{var l=o.put({compositeKey:s,value:t});l.onerror=function(e){a(y(e,"storage-set"))},l.onsuccess=function(){i()}}catch(e){a(h.create("storage-set",{originalErrorMessage:e&&e.message}))}}))]}}))}))},e.prototype.delete=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n=this;return o.__generator(this,(function(r){switch(r.label){case 0:return[4,this.openDbPromise];case 1:return t=r.sent(),[2,new Promise((function(r,i){var a=t.transaction(["app_namespace_store"],"readwrite").objectStore("app_namespace_store"),o=n.createCompositeKey(e);try{var s=a.delete(o);s.onerror=function(e){i(y(e,"storage-delete"))},s.onsuccess=function(){r()}}catch(e){i(h.create("storage-delete",{originalErrorMessage:e&&e.message}))}}))]}}))}))},e.prototype.createCompositeKey=function(e){return[this.appId,this.appName,this.namespace,e].join()},e}(),_=function(){function e(e){this.storage=e}return e.prototype.getLastFetchStatus=function(){return this.lastFetchStatus},e.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.lastSuccessfulFetchTimestampMillis},e.prototype.getActiveConfig=function(){return this.activeConfig},e.prototype.loadFromStorage=function(){return o.__awaiter(this,void 0,void 0,(function(){var e,t,n,r,i,a;return o.__generator(this,(function(o){switch(o.label){case 0:return e=this.storage.getLastFetchStatus(),t=this.storage.getLastSuccessfulFetchTimestampMillis(),n=this.storage.getActiveConfig(),[4,e];case 1:return(r=o.sent())&&(this.lastFetchStatus=r),[4,t];case 2:return(i=o.sent())&&(this.lastSuccessfulFetchTimestampMillis=i),[4,n];case 3:return(a=o.sent())&&(this.activeConfig=a),[2]}}))}))},e.prototype.setLastFetchStatus=function(e){return this.lastFetchStatus=e,this.storage.setLastFetchStatus(e)},e.prototype.setLastSuccessfulFetchTimestampMillis=function(e){return this.lastSuccessfulFetchTimestampMillis=e,this.storage.setLastSuccessfulFetchTimestampMillis(e)},e.prototype.setActiveConfig=function(e){return this.activeConfig=e,this.storage.setActiveConfig(e)},e}();function w(e){var t=1e3*Math.pow(2,e),n=Math.round(.5*t*(Math.random()-.5)*2);return Math.min(144e5,t+n)}function k(e,t){return new Promise((function(n,r){var i=Math.max(t-Date.now(),0),a=setTimeout(n,i);e.addEventListener((function(){clearTimeout(a),r(h.create("fetch-throttle",{throttleEndTimeMillis:t}))}))}))}var E=function(){function e(e,t){this.client=e,this.storage=t}return e.prototype.fetch=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t;return o.__generator(this,(function(n){switch(n.label){case 0:return[4,this.storage.getThrottleMetadata()];case 1:return t=n.sent()||{backoffCount:0,throttleEndTimeMillis:Date.now()},[2,this.attemptFetch(e,t)]}}))}))},e.prototype.attemptFetch=function(e,t){var n=t.throttleEndTimeMillis,r=t.backoffCount;return o.__awaiter(this,void 0,void 0,(function(){var t,i,a;return o.__generator(this,(function(o){switch(o.label){case 0:return[4,k(e.signal,n)];case 1:o.sent(),o.label=2;case 2:return o.trys.push([2,5,,7]),[4,this.client.fetch(e)];case 3:return t=o.sent(),[4,this.storage.deleteThrottleMetadata()];case 4:return o.sent(),[2,t];case 5:if(!function(e){if(!(e instanceof s.FirebaseError))return!1;var t=Number(e.httpStatus);return 429===t||500===t||503===t||504===t}(i=o.sent()))throw i;return a={throttleEndTimeMillis:Date.now()+w(r),backoffCount:r+1},[4,this.storage.setThrottleMetadata(a)];case 6:return o.sent(),[2,this.attemptFetch(e,a)];case 7:return[2]}}))}))},e}(),S="@firebase/remote-config";function T(e){e.INTERNAL.registerComponent(new c.Component("remoteConfig",(function(t,n){var r=t.getProvider("app").getImmediate(),i=t.getProvider("installations").getImmediate();if("undefined"==typeof window)throw h.create("registration-window");var a=r.options,o=a.projectId,s=a.apiKey,c=a.appId;if(!o)throw h.create("registration-project-id");if(!s)throw h.create("registration-api-key");if(!c)throw h.create("registration-app-id");n=n||"firebase";var d=new b(c,r.name,n),p=new _(d),m=new l.Logger(S);m.logLevel=l.LogLevel.ERROR;var v=new f(i,e.SDK_VERSION,n,o,s,c),y=new E(v,d),w=new u(y,d,p,m),k=new g(r,w,p,d,m);return k.ensureInitialized(),k}),"PUBLIC").setMultipleInstances(!0)),e.registerVersion(S,"0.1.19")}T(i),t.registerRemoteConfig=T},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var i=t&&t.prototype instanceof u?t:u,a=Object.create(i.prototype),o=new k(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return S()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=b(o,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var c={};function u(){}function d(){}function h(){}var f={};f[i]=function(){return this};var p=Object.getPrototypeOf,m=p&&p(p(E([])));m&&m!==t&&n.call(m,i)&&(f=m);var v=h.prototype=u.prototype=Object.create(f);function g(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function y(e,t){var r;this._invoke=function(i,a){function o(){return new t((function(r,o){!function r(i,a,o,s){var c=l(e[i],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,s)}))}s(c.arg)}(i,a,r,o)}))}return r=r?r.then(o,o):o()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function _(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:S}}function S(){return{value:void 0,done:!0}}return d.prototype=v.constructor=h,h.constructor=d,h[o]=d.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,o in e||(e[o]="GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(y.prototype),y.prototype[a]=function(){return this},e.AsyncIterator=y,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new y(s(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},g(v),v[o]="Generator",v[i]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,c):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),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=n(58);n.n(r).a},function(e,t,n){var r={"./af":111,"./af.js":111,"./ar":112,"./ar-dz":113,"./ar-dz.js":113,"./ar-kw":114,"./ar-kw.js":114,"./ar-ly":115,"./ar-ly.js":115,"./ar-ma":116,"./ar-ma.js":116,"./ar-sa":117,"./ar-sa.js":117,"./ar-tn":118,"./ar-tn.js":118,"./ar.js":112,"./az":119,"./az.js":119,"./be":120,"./be.js":120,"./bg":121,"./bg.js":121,"./bm":122,"./bm.js":122,"./bn":123,"./bn.js":123,"./bo":124,"./bo.js":124,"./br":125,"./br.js":125,"./bs":126,"./bs.js":126,"./ca":127,"./ca.js":127,"./cs":128,"./cs.js":128,"./cv":129,"./cv.js":129,"./cy":130,"./cy.js":130,"./da":131,"./da.js":131,"./de":132,"./de-at":133,"./de-at.js":133,"./de-ch":134,"./de-ch.js":134,"./de.js":132,"./dv":135,"./dv.js":135,"./el":136,"./el.js":136,"./en-SG":137,"./en-SG.js":137,"./en-au":138,"./en-au.js":138,"./en-ca":139,"./en-ca.js":139,"./en-gb":140,"./en-gb.js":140,"./en-ie":141,"./en-ie.js":141,"./en-il":142,"./en-il.js":142,"./en-nz":143,"./en-nz.js":143,"./eo":144,"./eo.js":144,"./es":145,"./es-do":146,"./es-do.js":146,"./es-us":147,"./es-us.js":147,"./es.js":145,"./et":148,"./et.js":148,"./eu":149,"./eu.js":149,"./fa":150,"./fa.js":150,"./fi":151,"./fi.js":151,"./fo":152,"./fo.js":152,"./fr":153,"./fr-ca":154,"./fr-ca.js":154,"./fr-ch":155,"./fr-ch.js":155,"./fr.js":153,"./fy":156,"./fy.js":156,"./ga":157,"./ga.js":157,"./gd":158,"./gd.js":158,"./gl":159,"./gl.js":159,"./gom-latn":160,"./gom-latn.js":160,"./gu":161,"./gu.js":161,"./he":162,"./he.js":162,"./hi":163,"./hi.js":163,"./hr":164,"./hr.js":164,"./hu":165,"./hu.js":165,"./hy-am":166,"./hy-am.js":166,"./id":167,"./id.js":167,"./is":168,"./is.js":168,"./it":169,"./it-ch":170,"./it-ch.js":170,"./it.js":169,"./ja":171,"./ja.js":171,"./jv":172,"./jv.js":172,"./ka":173,"./ka.js":173,"./kk":174,"./kk.js":174,"./km":175,"./km.js":175,"./kn":176,"./kn.js":176,"./ko":177,"./ko.js":177,"./ku":178,"./ku.js":178,"./ky":179,"./ky.js":179,"./lb":180,"./lb.js":180,"./lo":181,"./lo.js":181,"./lt":182,"./lt.js":182,"./lv":183,"./lv.js":183,"./me":184,"./me.js":184,"./mi":185,"./mi.js":185,"./mk":186,"./mk.js":186,"./ml":187,"./ml.js":187,"./mn":188,"./mn.js":188,"./mr":189,"./mr.js":189,"./ms":190,"./ms-my":191,"./ms-my.js":191,"./ms.js":190,"./mt":192,"./mt.js":192,"./my":193,"./my.js":193,"./nb":194,"./nb.js":194,"./ne":195,"./ne.js":195,"./nl":196,"./nl-be":197,"./nl-be.js":197,"./nl.js":196,"./nn":198,"./nn.js":198,"./pa-in":199,"./pa-in.js":199,"./pl":200,"./pl.js":200,"./pt":201,"./pt-br":202,"./pt-br.js":202,"./pt.js":201,"./ro":203,"./ro.js":203,"./ru":204,"./ru.js":204,"./sd":205,"./sd.js":205,"./se":206,"./se.js":206,"./si":207,"./si.js":207,"./sk":208,"./sk.js":208,"./sl":209,"./sl.js":209,"./sq":210,"./sq.js":210,"./sr":211,"./sr-cyrl":212,"./sr-cyrl.js":212,"./sr.js":211,"./ss":213,"./ss.js":213,"./sv":214,"./sv.js":214,"./sw":215,"./sw.js":215,"./ta":216,"./ta.js":216,"./te":217,"./te.js":217,"./tet":218,"./tet.js":218,"./tg":219,"./tg.js":219,"./th":220,"./th.js":220,"./tl-ph":221,"./tl-ph.js":221,"./tlh":222,"./tlh.js":222,"./tr":223,"./tr.js":223,"./tzl":224,"./tzl.js":224,"./tzm":225,"./tzm-latn":226,"./tzm-latn.js":226,"./tzm.js":225,"./ug-cn":227,"./ug-cn.js":227,"./uk":228,"./uk.js":228,"./ur":229,"./ur.js":229,"./uz":230,"./uz-latn":231,"./uz-latn.js":231,"./uz.js":230,"./vi":232,"./vi.js":232,"./x-pseudo":233,"./x-pseudo.js":233,"./yo":234,"./yo.js":234,"./zh-cn":235,"./zh-cn.js":235,"./zh-hk":236,"./zh-hk.js":236,"./zh-tw":237,"./zh-tw.js":237};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=314},function(e,t,n){"use strict";var r=n(59);n.n(r).a},function(e,t,n){"use strict";var r=n(60);n.n(r).a},function(e,t,n){"use strict";var r=n(61);n.n(r).a},function(e,t,n){"use strict";var r=n(62);n.n(r).a},function(e,t,n){"use strict";var r=n(63);n.n(r).a},function(e,t,n){"use strict";var r=n(64);n.n(r).a},function(e,t,n){"use strict";var r=n(65);n.n(r).a},function(e,t,n){"use strict";var r=n(66);n.n(r).a},function(e,t,n){"use strict";var r=n(67);n.n(r).a},function(e,t,n){"use strict";var r=n(68);n.n(r).a},function(e,t,n){},function(e,t,n){"use strict";var r=n(69);n.n(r).a},function(e,t,n){"use strict";n.r(t),t.default=n.p+"images/googleimage.png"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"images/appleimage.png"},function(e,t,n){"use strict";var r=n(70);n.n(r).a},function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(39),t.createHash=t.Hash=n(42),t.createHmac=t.Hmac=n(246);var r=n(347),i=Object.keys(r),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return a};var o=n(249);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var s=n(349);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var l=n(364);t.DiffieHellmanGroup=l.DiffieHellmanGroup,t.createDiffieHellmanGroup=l.createDiffieHellmanGroup,t.getDiffieHellman=l.getDiffieHellman,t.createDiffieHellman=l.createDiffieHellman,t.DiffieHellman=l.DiffieHellman;var c=n(369);t.createSign=c.createSign,t.Sign=c.Sign,t.createVerify=c.createVerify,t.Verify=c.Verify,t.createECDH=n(403);var u=n(404);t.publicEncrypt=u.publicEncrypt,t.privateEncrypt=u.privateEncrypt,t.publicDecrypt=u.publicDecrypt,t.privateDecrypt=u.privateDecrypt;var d=n(407);t.randomFill=d.randomFill,t.randomFillSync=d.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),o=r[0],s=r[1],l=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),u=0,d=s>0?o-4:o;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(u(e,o,o+16383>s?s:o+16383));1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,a=f&(1<<-u)-1,f>>=-u,u+=s;u>0;a=256*a+e[t+d],d+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),a-=c}return(f?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:a-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;e[n+f]=255&o,f+=p,o/=256,c-=8);e[n+f-p]|=128*m}},function(e,t){},function(e,t,n){"use strict";var r=n(20).Buffer,i=n(335);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i,a=r.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=a,i=s,t.copy(n,i),s+=o.data.length,o=o.next;return a},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(22))},function(e,t,n){"use strict";e.exports=a;var r=n(243),i=Object.create(n(44));function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}i.inherits=n(19),i.inherits(a,r),a.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(94)},function(e,t,n){e.exports=n(36)},function(e,t,n){e.exports=n(43).Transform},function(e,t,n){e.exports=n(43).PassThrough},function(e,t,n){var r=n(19),i=n(40),a=n(20).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<30|e>>>2}function u(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,l=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=n[d-3]^n[d-8]^n[d-14]^n[d-16];for(var h=0;h<80;++h){var f=~~(h/20),p=0|((t=r)<<5|t>>>27)+u(f,i,a,s)+l+n[h]+o[f];l=s,s=a,a=c(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},function(e,t,n){var r=n(19),i=n(40),a=n(20).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,l=0|this._e,h=0;h<16;++h)n[h]=e.readInt32BE(4*h);for(;h<80;++h)n[h]=(t=n[h-3]^n[h-8]^n[h-14]^n[h-16])<<1|t>>>31;for(var f=0;f<80;++f){var p=~~(f/20),m=c(r)+d(p,i,a,s)+l+n[f]+o[p]|0;l=s,s=a,a=u(i),i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},function(e,t,n){var r=n(19),i=n(244),a=n(40),o=n(20).Buffer,s=new Array(64);function l(){this.init(),this._w=s,a.call(this,64,56)}r(l,i),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=l},function(e,t,n){var r=n(19),i=n(245),a=n(40),o=n(20).Buffer,s=new Array(160);function l(){this.init(),this._w=s,a.call(this,128,112)}r(l,i),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=l},function(e,t,n){"use strict";var r=n(19),i=n(20).Buffer,a=n(34),o=i.alloc(128);function s(e,t){a.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=i.concat([t,o],64));for(var n=this._ipad=i.allocUnsafe(64),r=this._opad=i.allocUnsafe(64),s=0;s<64;s++)n[s]=54^t[s],r[s]=92^t[s];this._hash=[n]}r(s,a),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=s},function(e,t,n){e.exports=n(248)},function(e,t,n){(function(t,r){var i,a=n(250),o=n(251),s=n(252),l=n(20).Buffer,c=t.crypto&&t.crypto.subtle,u={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function h(e,t,n,r,i){return c.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return c.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:i}},e,r<<3)})).then((function(e){return l.from(e)}))}e.exports=function(e,n,f,p,m,v){"function"==typeof m&&(v=m,m=void 0);var g=u[(m=m||"sha1").toLowerCase()];if(!g||"function"!=typeof t.Promise)return r.nextTick((function(){var t;try{t=s(e,n,f,p,m)}catch(e){return v(e)}v(null,t)}));if(a(e,n,f,p),"function"!=typeof v)throw new Error("No callback provided to pbkdf2");l.isBuffer(e)||(e=l.from(e,o)),l.isBuffer(n)||(n=l.from(n,o)),function(e,t){e.then((function(e){r.nextTick((function(){t(null,e)}))}),(function(e){r.nextTick((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var n=h(i=i||l.alloc(8),i,10,128,e).then((function(){return!0})).catch((function(){return!1}));return d[e]=n,n}(g).then((function(t){return t?h(e,n,f,p,g):s(e,n,f,p,m)})),v)}}).call(this,n(22),n(25))},function(e,t,n){var r=n(350),i=n(99),a=n(100),o=n(363),s=n(55);function l(e,t,n){if(e=e.toLowerCase(),a[e])return i.createCipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function c(e,t,n){if(e=e.toLowerCase(),a[e])return i.createDecipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return l(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=l,t.createDecipher=t.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return c(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=function(){return Object.keys(o).concat(i.getCiphers())}},function(e,t,n){var r=n(34),i=n(351),a=n(19),o=n(20).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function l(e){r.call(this);var t,n=e.mode.toLowerCase(),i=s[n];t=e.decrypt?"decrypt":"encrypt";var a=e.key;o.isBuffer(a)||(a=o.from(a)),"des-ede"!==n&&"des-ede-cbc"!==n||(a=o.concat([a,a.slice(0,8)]));var l=e.iv;o.isBuffer(l)||(l=o.from(l)),this._des=i.create({key:a,iv:l,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=l,a(l,r),l.prototype._update=function(e){return o.from(this._des.update(e))},l.prototype._final=function(){return o.from(this._des.final())}},function(e,t,n){"use strict";t.utils=n(253),t.Cipher=n(98),t.DES=n(254),t.CBC=n(352),t.EDE=n(353)},function(e,t,n){"use strict";var r=n(29),i=n(19),a={};function o(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var n=Object.keys(a),r=0;r<n.length;r++){var o=n[r];t.prototype[o]=a[o]}return t.create=function(e){return new t(e)},t},a._cbcInit=function(){var e=new o(this.options.iv);this._cbcState=e},a._update=function(e,t,n,r){var i=this._cbcState,a=this.constructor.super_.prototype,o=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];a._update.call(this,o,0,n,r);for(s=0;s<this.blockSize;s++)o[s]=n[r+s]}else{a._update.call(this,e,t,n,r);for(s=0;s<this.blockSize;s++)n[r+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},function(e,t,n){"use strict";var r=n(29),i=n(19),a=n(98),o=n(254);function s(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),i=t.slice(8,16),a=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:n}),o.create({type:"decrypt",key:i}),o.create({type:"encrypt",key:a})]:[o.create({type:"decrypt",key:a}),o.create({type:"encrypt",key:i}),o.create({type:"decrypt",key:n})]}function l(e){a.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(l,a),e.exports=l,l.create=function(e){return new l(e)},l.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},l.prototype._pad=o.prototype._pad,l.prototype._unpad=o.prototype._unpad},function(e,t,n){var r=n(100),i=n(258),a=n(20).Buffer,o=n(259),s=n(34),l=n(54),c=n(55);function u(e,t,n){s.call(this),this._cache=new h,this._cipher=new l.AES(t),this._prev=a.from(n),this._mode=e,this._autopadding=!0}n(19)(u,s),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return a.concat(r)};var d=a.alloc(16,16);function h(){this.cache=a.allocUnsafe(0)}function f(e,t,n){var s=r[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=a.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=a.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new o(s.module,t,n):"auth"===s.type?new i(s.module,t,n):new u(s.module,t,n)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=a.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return a.concat([this.cache,t])},t.createCipheriv=f,t.createCipher=function(e,t){var n=r[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=c(t,!1,n.key,n.iv);return f(e,i.key,i.iv)}},function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},function(e,t,n){var r=n(45);t.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},t.decrypt=function(e,t){var n=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return r(i,n)}},function(e,t,n){var r=n(20).Buffer,i=n(45);function a(e,t,n){var a=t.length,o=i(t,e._cache);return e._cache=e._cache.slice(a),e._prev=r.concat([e._prev,n?t:o]),o}t.encrypt=function(e,t,n){for(var i,o=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){o=r.concat([o,a(e,t,n)]);break}i=e._cache.length,o=r.concat([o,a(e,t.slice(0,i),n)]),t=t.slice(i)}return o}},function(e,t,n){var r=n(20).Buffer;function i(e,t,n){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:i])]),i}t.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],n);return o}},function(e,t,n){var r=n(20).Buffer;function i(e,t,n){for(var r,i,o=-1,s=0;++o<8;)r=t&1<<7-o?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>o%8,e._prev=a(e._prev,n?r:i);return s}function a(e,t){var n=e.length,i=-1,a=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i<n;)a[i]=e[i]<<1|e[i+1]>>7;return a}t.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],n);return o}},function(e,t,n){(function(e){var r=n(45);function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,n){for(;t._cache.length<n.length;)t._cache=e.concat([t._cache,i(t)]);var a=t._cache.slice(0,n.length);return t._cache=t._cache.slice(n.length),r(n,a)}}).call(this,n(24).Buffer)},function(e,t,n){var r=n(20).Buffer,i=r.alloc(16,0);function a(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],o=-1;++o<128;){for(0!=(this.state[~~(o/8)]&1<<7-o%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=0!=(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=a(i)},o.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=o},function(e,t,n){var r=n(258),i=n(20).Buffer,a=n(100),o=n(259),s=n(34),l=n(54),c=n(55);function u(e,t,n){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new l.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function h(e,t,n){var s=a[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new o(s.module,t,n,!0):"auth"===s.type?new r(s.module,t,n,!0):new u(s.module,t,n)}n(19)(u,s),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return i.concat(r)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var n=-1;for(;++n<t;)if(e[n+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=i.concat([this.cache,e])},d.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=a[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=c(t,!1,n.key,n.iv);return h(e,r.key,r.iv)},t.createDecipheriv=h},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,n){(function(e){var r=n(260),i=n(367),a=n(368);var o={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var n=new e(i[t].prime,"hex"),r=new e(i[t].gen,"hex");return new a(n,r)},t.createDiffieHellman=t.DiffieHellman=function t(n,i,s,l){return e.isBuffer(i)||void 0===o[i]?t(n,"binary",i,s):(i=i||"binary",l=l||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,l)),"number"==typeof n?new a(r(n,s),s,!0):(e.isBuffer(n)||(n=new e(n,i)),new a(n,s,!0)))}}).call(this,n(24).Buffer)},function(e,t){},function(e,t){},function(e){e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(e,t,n){(function(t){var r=n(23),i=new(n(261)),a=new r(24),o=new r(11),s=new r(10),l=new r(3),c=new r(7),u=n(260),d=n(39);function h(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._pub=new r(e),this}function f(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._priv=new r(e),this}e.exports=m;var p={};function m(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=h,this.setPrivateKey=f):this._primeCode=8}function v(e,n){var r=new t(e.toArray());return n?r.toString(n):r}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in p)return p[r];var d,h=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!i.test(e))return h+=1,h+="02"===n||"05"===n?8:4,p[r]=h,h;switch(i.test(e.shrn(1))||(h+=2),n){case"02":e.mod(a).cmp(o)&&(h+=8);break;case"05":(d=e.mod(s)).cmp(l)&&d.cmp(c)&&(h+=8);break;default:h+=4}return p[r]=h,h}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new r(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var n=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(n.toArray()),a=this.getPrime();if(i.length<a.length){var o=new t(a.length-i.length);o.fill(0),i=t.concat([o,i])}return i},m.prototype.getPublicKey=function(e){return v(this._pub,e)},m.prototype.getPrivateKey=function(e){return v(this._priv,e)},m.prototype.getPrime=function(e){return v(this.__prime,e)},m.prototype.getGenerator=function(e){return v(this._gen,e)},m.prototype.setGenerator=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.__gen=e,this._gen=new r(e),this}}).call(this,n(24).Buffer)},function(e,t,n){(function(t){var r=n(42),i=n(92),a=n(19),o=n(370),s=n(402),l=n(248);function c(e){i.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function u(e){i.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new c(e)}function h(e){return new u(e)}Object.keys(l).forEach((function(e){l[e].id=new t(l[e].id,"hex"),l[e.toLowerCase()]=l[e]})),a(c,i.Writable),c.prototype._write=function(e,t,n){this._hash.update(e),n()},c.prototype.update=function(e,n){return"string"==typeof e&&(e=new t(e,n)),this._hash.update(e),this},c.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=o(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(u,i.Writable),u.prototype._write=function(e,t,n){this._hash.update(e),n()},u.prototype.update=function(e,n){return"string"==typeof e&&(e=new t(e,n)),this._hash.update(e),this},u.prototype.verify=function(e,n,r){"string"==typeof n&&(n=new t(n,r)),this.end();var i=this._hash.digest();return s(n,i,e,this._signType,this._tag)},e.exports={Sign:d,Verify:h,createSign:d,createVerify:h}}).call(this,n(24).Buffer)},function(e,t,n){(function(t){var r=n(246),i=n(102),a=n(103).ec,o=n(23),s=n(57),l=n(271);function c(e,n,i,a){if((e=new t(e.toArray())).length<n.byteLength()){var o=new t(n.byteLength()-e.length);o.fill(0),e=t.concat([o,e])}var s=i.length,l=function(e,n){e=(e=u(e,n)).mod(n);var r=new t(e.toArray());if(r.length<n.byteLength()){var i=new t(n.byteLength()-r.length);i.fill(0),r=t.concat([i,r])}return r}(i,n),c=new t(s);c.fill(1);var d=new t(s);return d.fill(0),d=r(a,d).update(c).update(new t([0])).update(e).update(l).digest(),c=r(a,d).update(c).digest(),{k:d=r(a,d).update(c).update(new t([1])).update(e).update(l).digest(),v:c=r(a,d).update(c).digest()}}function u(e,t){var n=new o(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function d(e,n,i){var a,o;do{for(a=new t(0);8*a.length<e.bitLength();)n.v=r(i,n.k).update(n.v).digest(),a=t.concat([a,n.v]);o=u(a,e),n.k=r(i,n.k).update(n.v).update(new t([0])).digest(),n.v=r(i,n.k).update(n.v).digest()}while(-1!==o.cmp(e));return o}function h(e,t,n,r){return e.toRed(o.mont(n)).redPow(t).fromRed().mod(r)}e.exports=function(e,n,r,f,p){var m=s(n);if(m.curve){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong private key type");return function(e,n){var r=l[n.curve.join(".")];if(!r)throw new Error("unknown curve "+n.curve.join("."));var i=new a(r).keyFromPrivate(n.privateKey).sign(e);return new t(i.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==f)throw new Error("wrong private key type");return function(e,n,r){var i,a=n.params.priv_key,s=n.params.p,l=n.params.q,f=n.params.g,p=new o(0),m=u(e,l).mod(l),v=!1,g=c(a,l,e,r);for(;!1===v;)i=d(l,g,r),p=h(f,i,s,l),0===(v=i.invm(l).imul(m.add(a.mul(p))).mod(l)).cmpn(0)&&(v=!1,p=new o(0));return function(e,n){e=e.toArray(),n=n.toArray(),128&e[0]&&(e=[0].concat(e));128&n[0]&&(n=[0].concat(n));var r=[48,e.length+n.length+4,2,e.length];return r=r.concat(e,[2,n.length],n),new t(r)}(p,v)}(e,m,r)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong private key type");e=t.concat([p,e]);for(var v=m.modulus.byteLength(),g=[0,1];e.length+g.length+1<v;)g.push(255);g.push(0);for(var y=-1;++y<e.length;)g.push(e[y]);return i(g,m)},e.exports.getKey=c,e.exports.makeKey=d}).call(this,n(24).Buffer)},function(e){e.exports=JSON.parse('{"name":"elliptic","version":"6.5.2","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <fedor@indutny.com>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"}}')},function(e,t,n){"use strict";var r=n(30),i=n(23),a=n(19),o=n(56),s=r.assert;function l(e){o.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,n,r){o.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,n,r){o.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(l,o),e.exports=l,l.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?n=a[0]:(n=a[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(n)}}},l.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),a=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(a).fromRed(),r.redSub(a).fromRed()]},l.prototype._getEndoBasis=function(e){for(var t,n,r,a,o,s,l,c,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,f=this.n.clone(),p=new i(1),m=new i(0),v=new i(0),g=new i(1),y=0;0!==h.cmpn(0);){var b=f.div(h);c=f.sub(b.mul(h)),u=v.sub(b.mul(p));var _=g.sub(b.mul(m));if(!r&&c.cmp(d)<0)t=l.neg(),n=p,r=c.neg(),a=u;else if(r&&2==++y)break;l=c,f=h,h=c,v=p,p=u,g=m,m=_}o=c.neg(),s=u;var w=r.sqr().add(a.sqr());return o.sqr().add(s.sqr()).cmp(w)>=0&&(o=t,s=n),r.negative&&(r=r.neg(),a=a.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:a},{a:o,b:s}]},l.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),a=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),s=a.mul(r.a),l=i.mul(n.b),c=a.mul(r.b);return{k1:e.sub(o).sub(s),k2:l.add(c).neg()}},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var a=r.fromRed().isOdd();return(t&&!a||!t&&a)&&(r=r.redNeg()),this.point(e,r)},l.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},l.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],l=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),l=l.neg(!0)),r[2*a]=s,r[2*a+1]=l,i[2*a]=o.k1,i[2*a+1]=o.k2}for(var c=this._wnafMulAdd(1,r,i,2*a,n),u=0;u<2*a;u++)r[u]=null,i[u]=null;return c},a(c,o.BasePoint),l.prototype.point=function(e,t,n){return new c(this,e,t,n)},l.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var a=t[2];return r.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[r].concat(a.doubles.points.map(i))},naf:a.naf&&{wnd:a.naf.wnd,points:[r].concat(a.naf.points.map(i))}},r},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),a=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},c.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,o.BasePoint),l.prototype.jpoint=function(e,t,n){return new u(this,e,t,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),l=a.redSub(o);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),d=r.redMul(c),h=l.redSqr().redIAdd(u).redISub(d).redISub(d),f=l.redMul(d.redISub(h)).redISub(a.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,f,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=i.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=o.redSqr(),c=l.redMul(o),u=n.redMul(l),d=s.redSqr().redIAdd(c).redISub(u).redISub(u),h=s.redMul(u.redISub(d)).redISub(i.redMul(c)),f=this.z.redMul(o);return this.curve.jpoint(d,h,f)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}var r=this.curve.a,i=this.curve.tinv,a=this.x,o=this.y,s=this.z,l=s.redSqr().redSqr(),c=o.redAdd(o);for(n=0;n<e;n++){var u=a.redSqr(),d=c.redSqr(),h=d.redSqr(),f=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(l)),p=a.redMul(d),m=f.redSqr().redISub(p.redAdd(p)),v=p.redISub(m),g=f.redMul(v);g=g.redIAdd(g).redISub(h);var y=c.redMul(s);n+1<e&&(l=l.redMul(h)),a=m,s=y,c=g}return this.curve.jpoint(a,c.redMul(i),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r),l=s.redSqr().redISub(o).redISub(o),c=a.redIAdd(a);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=s.redMul(o.redISub(l)).redISub(c),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),h=d.redSqr(),f=this.x.redAdd(d).redSqr().redISub(u).redISub(h);f=f.redIAdd(f);var p=u.redAdd(u).redIAdd(u),m=p.redSqr(),v=h.redIAdd(h);v=(v=v.redIAdd(v)).redIAdd(v),e=m.redISub(f).redISub(f),t=p.redMul(f.redISub(e)).redISub(v),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},u.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),l=s.redSqr().redISub(o).redISub(o);e=l;var c=a.redIAdd(a);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(o.redISub(l)).redISub(c),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),h=this.x.redMul(d),f=this.x.redSub(u).redMul(this.x.redAdd(u));f=f.redAdd(f).redIAdd(f);var p=h.redIAdd(h),m=(p=p.redIAdd(p)).redAdd(p);e=f.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var v=d.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v),t=f.redMul(p.redISub(e)).redISub(v)}return this.curve.jpoint(e,t,n)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),a=t.redSqr(),o=n.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(o),u=s.redSqr().redISub(c.redAdd(c)),d=c.redISub(u),h=o.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=s.redMul(d).redISub(h),p=n.redAdd(n).redMul(r);return this.curve.jpoint(u,f,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),a=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),l=r.redIAdd(r);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=i.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(s).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var h=this.y.redMul(c.redMul(l.redISub(c)).redISub(o.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=this.z.redAdd(o).redSqr().redISub(n).redISub(s);return this.curve.jpoint(d,h,f)},u.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,n){"use strict";var r=n(23),i=n(19),a=n(56),o=n(30);function s(e){a.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(e,t,n){a.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,a),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},i(l,a.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new l(this,e,t)},s.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(e,t){return new l(e,t[0],t[1]||e.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(n),o=i.redMul(r),s=t.z.redMul(a.redAdd(o).redSqr()),l=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,l)},l.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var a=i.length-1;a>=0;a--)0===i[a]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,n){"use strict";var r=n(30),i=n(23),a=n(19),o=n(56),s=r.assert;function l(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,n,r,a){o.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=a&&new i(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(l,o),e.exports=l,l.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},l.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},l.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=r.redMul(a.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var l=s.fromRed().isOdd();return(t&&!l||!t&&l)&&(s=s.redNeg()),this.point(e,s)},l.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=r.redMul(a.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},l.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},a(c,o.BasePoint),l.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},l.prototype.point=function(e,t,n,r){return new c(this,e,t,n,r)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=r.redAdd(t),o=a.redSub(n),s=r.redSub(t),l=i.redMul(o),c=a.redMul(s),u=i.redMul(s),d=o.redMul(a);return this.curve.point(l,c,d,u)},c.prototype._projDbl=function(){var e,t,n,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),a=this.y.redSqr();if(this.curve.twisted){var o=(c=this.curve._mulA(i)).redAdd(a);if(this.zOne)e=r.redSub(i).redSub(a).redMul(o.redSub(this.curve.two)),t=o.redMul(c.redSub(a)),n=o.redSqr().redSub(o).redSub(o);else{var s=this.z.redSqr(),l=o.redSub(s).redISub(s);e=r.redSub(i).redISub(a).redMul(l),t=o.redMul(c.redSub(a)),n=o.redMul(l)}}else{var c=i.redAdd(a);s=this.curve._mulC(this.z).redSqr(),l=c.redSub(s).redSub(s);e=this.curve._mulC(r.redISub(c)).redMul(l),t=this.curve._mulC(c).redMul(i.redISub(a)),n=c.redMul(l)}return this.curve.point(e,t,n)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=n.redSub(t),o=i.redSub(r),s=i.redAdd(r),l=n.redAdd(t),c=a.redMul(o),u=s.redMul(l),d=a.redMul(l),h=o.redMul(s);return this.curve.point(c,u,h,d)},c.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),l=i.redSub(s),c=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),d=r.redMul(l).redMul(u);return this.curve.twisted?(t=r.redMul(c).redMul(o.redSub(this.curve._mulA(a))),n=l.redMul(c)):(t=r.redMul(c).redMul(o.redSub(a)),n=this.curve._mulC(l).redMul(c)),this.curve.point(d,t,n)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},c.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,n){"use strict";t.sha1=n(376),t.sha224=n(377),t.sha256=n(265),t.sha384=n(378),t.sha512=n(266)},function(e,t,n){"use strict";var r=n(33),i=n(46),a=n(264),o=r.rotl32,s=r.sum32,l=r.sum32_5,c=a.ft_1,u=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(h,u),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=o(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],a=this.h[1],u=this.h[2],h=this.h[3],f=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),m=l(o(i,5),c(p,a,u,h),f,n[r],d[p]);f=h,h=u,u=o(a,30),a=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],h),this.h[4]=s(this.h[4],f)},h.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(33),i=n(265);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(a,i),e.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},function(e,t,n){"use strict";var r=n(33),i=n(266);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(a,i),e.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},function(e,t,n){"use strict";var r=n(33),i=n(46),a=r.rotl32,o=r.sum32,s=r.sum32_3,l=r.sum32_4,c=i.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function f(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(u,c),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],y=n,b=r,_=i,w=c,k=u,E=0;E<80;E++){var S=o(a(l(n,d(E,r,i,c),e[p[E]+t],h(E)),v[E]),u);n=u,u=c,c=a(i,10),i=r,r=S,S=o(a(l(y,d(79-E,b,_,w),e[m[E]+t],f(E)),g[E]),k),y=k,k=w,w=a(_,10),_=b,b=S}S=s(this.h[1],i,w),this.h[1]=s(this.h[2],c,k),this.h[2]=s(this.h[3],u,y),this.h[3]=s(this.h[4],n,b),this.h[4]=s(this.h[0],r,_),this.h[0]=S},u.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,n){"use strict";var r=n(33),i=n(29);function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,n){"use strict";var r=n(23),i=n(383),a=n(30),o=n(104),s=n(101),l=a.assert,c=n(384),u=n(385);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(l(o.hasOwnProperty(e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new c(this,e)},d.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new r(2));;){var o=new r(t.generate(n));if(!(o.cmp(a)>0))return o.iaddn(1),this.keyFromPrivate(o)}},d.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,n,a){"object"==typeof n&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),l=e.toArray("be",o),c=new i({hash:this.hash,entropy:s,nonce:l,pers:a.pers,persEnc:a.persEnc||"utf8"}),d=this.n.sub(new r(1)),h=0;;h++){var f=a.k?a.k(h):new r(c.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(d)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var m=p.getX(),v=m.umod(this.n);if(0!==v.cmpn(0)){var g=f.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(v)?2:0);return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new u({r:v,s:g,recoveryParam:y})}}}}}},d.prototype.verify=function(e,t,n,i){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i);var a=(t=new u(t,"hex")).r,o=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,l=o.invm(this.n),c=l.mul(e).umod(this.n),d=l.mul(a).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,n.getPublic(),d)).isInfinity()&&s.eqXToP(a):!(s=this.g.mulAdd(c,n.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(a)},d.prototype.recoverPubKey=function(e,t,n,i){l((3&n)===n,"The recovery param is more than two bits"),t=new u(t,i);var a=this.n,o=new r(e),s=t.r,c=t.s,d=1&n,h=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var f=t.r.invm(a),p=a.sub(o).mul(f).umod(a),m=c.mul(f).umod(a);return this.g.mulAdd(p,s,m)},d.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new u(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,n){"use strict";var r=n(105),i=n(262),a=n(29);function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=o,o.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=i.toArray(e,t),n=i.toArray(n,r),a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},o.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var o=a.slice(0,e);return this._update(n),this._reseed++,i.encode(o,t)}},function(e,t,n){"use strict";var r=n(23),i=n(30).assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=a,a.fromPublic=function(e,t,n){return t instanceof a?t:new a(e,{pub:t,pubEnc:n})},a.fromPrivate=function(e,t,n){return t instanceof a?t:new a(e,{priv:t,privEnc:n})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.mul(this.priv).getX()},a.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,n){"use strict";var r=n(23),i=n(30),a=i.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function l(e,t){var n=e[t.place++];if(!(128&n))return n;for(var r=15&n,i=0,a=0,o=t.place;a<r;a++,o++)i<<=8,i|=e[o];return t.place=o,i}function c(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=o,o.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;if(l(e,n)+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var a=l(e,n),o=e.slice(n.place,a+n.place);if(n.place+=a,2!==e[n.place++])return!1;var c=l(e,n);if(e.length!==c+n.place)return!1;var u=e.slice(n.place,c+n.place);return 0===o[0]&&128&o[1]&&(o=o.slice(1)),0===u[0]&&128&u[1]&&(u=u.slice(1)),this.r=new r(o),this.s=new r(u),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=c(t),n=c(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];u(r,t.length),(r=r.concat(t)).push(2),u(r,n.length);var a=r.concat(n),o=[48];return u(o,a.length),o=o.concat(a),i.encode(o,e)}},function(e,t,n){"use strict";var r=n(105),i=n(104),a=n(30),o=a.assert,s=a.parseBytes,l=n(387),c=n(388);function u(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),a=this.encodePoint(i),o=this.hashInt(a,n.pubBytes(),e).mul(n.priv()),l=r.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:l,Rencoded:a})},u.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(a)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return l.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return l.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),i=a.intFromLE(n);return this.curve.pointFromY(i,r)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return a.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,n){"use strict";var r=n(30),i=r.assert,a=r.parseBytes,o=r.cachedProperty;function s(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},o(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),o(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),o(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),o(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),o(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),o(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},s.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},e.exports=s},function(e,t,n){"use strict";var r=n(23),i=n(30),a=i.assert,o=i.cachedProperty,s=i.parseBytes;function l(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(l,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),o(l,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),o(l,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),o(l,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=l},function(e,t,n){"use strict";var r=n(47);t.certificate=n(399);var i=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=i;var a=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=a;var o=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));t.PublicKey=o;var s=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),l=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=l;var c=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=c;var u=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=u,t.DSAparam=r.define("DSAparam",(function(){this.int()}));var d=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=d;var h=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(e,t,n){var r=n(47),i=n(19);function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){var t;try{t=n(391).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r.decoders[e])),this.decoders[e]},a.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r.encoders[e])),this.encoders[e]},a.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},function(module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)t.push(n);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,n){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(e){return function(e,t,n){e[t]=n}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var n=t.contentWindow,r=n.eval,i=n.execScript;!r&&i&&(i.call(n,"null"),r=n.eval),forEach(Object_keys(e),(function(t){n[t]=e[t]})),forEach(globals,(function(t){e[t]&&(n[t]=e[t])}));var a=Object_keys(n),o=r.call(n,this.code);return forEach(Object_keys(n),(function(t){(t in e||-1===indexOf(a,t))&&(e[t]=n[t])})),forEach(globals,(function(t){t in e||defineProp(e,t,n[t])})),document.body.removeChild(t),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),n=this.runInContext(t);return e&&forEach(Object_keys(t),(function(n){e[n]=t[n]})),n},forEach(Object_keys(Script.prototype),(function(e){exports[e]=Script[e]=function(t){var n=Script(t);return n[e].apply(n,[].slice.call(arguments,1))}})),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),(function(n){t[n]=e[n]})),t}},function(e,t,n){var r=n(19);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof a},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof a;if(t=r?e:new a(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,n){var r=n(48).Reporter,i=n(48).EncoderBuffer,a=n(48).DecoderBuffer,o=n(29),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function c(e,t){var n={};this._baseState=n,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=c;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var e=this._baseState,t={};u.forEach((function(n){t[n]=e[n]}));var n=new this.constructor(t.parent);return n._baseState=t,n},c.prototype._wrap=function(){var e=this._baseState;l.forEach((function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},c.prototype._init=function(e){var t=this._baseState;o(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),o.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){var t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(o(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(o(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){c.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){c.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=e,this._useArgs(n),this}})),c.prototype.use=function(e){o(e);var t=this._baseState;return o(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){var t=this._baseState;return o(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){var t=this._baseState;return o(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){var t=this._baseState;return o(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},c.prototype.contains=function(e){var t=this._baseState;return o(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r,i=n.default,o=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var l=null;if(null!==n.explicit?l=n.explicit:null!==n.implicit?l=n.implicit:null!==n.tag&&(l=n.tag),null!==l||n.any){if(o=this._peekTag(e,l,n.any),e.isError(o))return o}else{var c=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(c)}}if(n.obj&&o&&(r=e.enterObject()),o){if(null!==n.explicit){var u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}var d=e.offset;if(null===n.use&&null===n.choice){if(n.any)c=e.save();var h=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(h))return h;n.any?i=e.raw(c):e=h}if(t&&t.track&&null!==n.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),i=n.any?i:null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var f=new a(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(f,t)}}return n.obj&&o&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==o?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,i),i},c.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),o(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},c.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some((function(a){var o=e.save(),s=n.choice[a];try{var l=s._decode(e,t);if(e.isError(l))return!1;r={type:a,value:l},i=!0}catch(t){return e.restore(o),!1}return!0}),this),i?r:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},c.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var i=this._encodeValue(e,t,n);if(void 0!==i&&!this._skipDefault(i,t,n))return i}},c.prototype._encodeValue=function(e,t,n){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new r);var a=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var o=null,s=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,t);else if(i.contains)o=this._getUse(i.contains,n)._encode(e,t),s=!0;else if(i.children)o=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),o=this._createEncoderBuffer(o);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var l=this.clone();l._baseState.implicit=null,o=this._createEncoderBuffer(e.map((function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),l))}else null!==i.use?a=this._getUse(i.use,n)._encode(e,t):(o=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){var c=null!==i.implicit?i.implicit:i.tag,u=null===i.implicit?"universal":"context";null===c?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(a=this._encodeComposite(c,s,u,o))}return null!==i.explicit&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a},c.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||o(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,n){var r=n(268);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r._reverse(t.tag)},function(e,t,n){var r=t;r.der=n(269),r.pem=n(396)},function(e,t,n){var r=n(19),i=n(24).Buffer,a=n(269);function o(e){a.call(this,e),this.enc="pem"}r(o,a),e.exports=o,o.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,l=-1,c=0;c<n.length;c++){var u=n[c].match(o);if(null!==u&&u[2]===r){if(-1!==s){if("END"!==u[1])break;l=c;break}if("BEGIN"!==u[1])break;s=c}}if(-1===s||-1===l)throw new Error("PEM section not found for: "+r);var d=n.slice(s+1,l).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var h=new i(d,"base64");return a.prototype.decode.call(this,h,t)}},function(e,t,n){var r=t;r.der=n(270),r.pem=n(398)},function(e,t,n){var r=n(19),i=n(270);function a(e){i.call(this,e),this.enc="pem"}r(a,i),e.exports=a,a.prototype.encode=function(e,t){for(var n=i.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"],a=0;a<n.length;a+=64)r.push(n.slice(a,a+64));return r.push("-----END "+t.label+"-----"),r.join("\n")}},function(e,t,n){"use strict";var r=n(47),i=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),a=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),l=r.define("RelativeDistinguishedName",(function(){this.setof(a)})),c=r.define("RDNSequence",(function(){this.seqof(l)})),u=r.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),d=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),h=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),f=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(u),this.key("validity").use(d),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())})),p=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())}));e.exports=p},function(e){e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(e,t,n){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,o=n(55),s=n(99),l=n(20).Buffer;e.exports=function(e,t){var n,c=e.toString(),u=c.match(r);if(u){var d="aes"+u[1],h=l.from(u[2],"hex"),f=l.from(u[3].replace(/[\r\n]/g,""),"base64"),p=o(t,h.slice(0,8),parseInt(u[1],10)).key,m=[],v=s.createDecipheriv(d,p,h);m.push(v.update(f)),m.push(v.final()),n=l.concat(m)}else{var g=c.match(a);n=new l(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(i)[1],data:n}}},function(e,t,n){(function(t){var r=n(23),i=n(103).ec,a=n(57),o=n(271);function s(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,n,l,c,u){var d=a(l);if("ec"===d.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,n){var r=o[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var a=new i(r),s=n.data.subjectPrivateKey.data;return a.verify(t,e,s)}(e,n,d)}if("dsa"===d.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,n){var i=n.data.p,o=n.data.q,l=n.data.g,c=n.data.pub_key,u=a.signature.decode(e,"der"),d=u.s,h=u.r;s(d,o),s(h,o);var f=r.mont(i),p=d.invm(o);return 0===l.toRed(f).redPow(new r(t).mul(p).mod(o)).fromRed().mul(c.toRed(f).redPow(h.mul(p).mod(o)).fromRed()).mod(i).mod(o).cmp(h)}(e,n,d)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");n=t.concat([u,n]);for(var h=d.modulus.byteLength(),f=[1],p=0;n.length+f.length+2<h;)f.push(255),p++;f.push(0);for(var m=-1;++m<n.length;)f.push(n[m]);f=new t(f);var v=r.mont(d.modulus);e=(e=new r(e).toRed(v)).redPow(new r(d.publicExponent)),e=new t(e.fromRed().toArray());var g=p<8?1:0;for(h=Math.min(e.length,f.length),e.length!==f.length&&(g=1),m=-1;++m<h;)g|=e[m]^f[m];return 0===g}}).call(this,n(24).Buffer)},function(e,t,n){(function(t){var r=n(103),i=n(23);e.exports=function(e){return new o(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function s(e,n,r){Array.isArray(e)||(e=e.toArray());var i=new t(e);if(r&&i.length<r){var a=new t(r-i.length);a.fill(0),i=t.concat([a,i])}return n?i.toString(n):i}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,o.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},o.prototype.computeSecret=function(e,n,r){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},o.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),s(n,e)},o.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},o.prototype.setPublicKey=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.keys._importPublic(e),this},o.prototype.setPrivateKey=function(e,n){n=n||"utf8",t.isBuffer(e)||(e=new t(e,n));var r=new i(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,n(24).Buffer)},function(e,t,n){t.publicEncrypt=n(405),t.privateDecrypt=n(406),t.privateEncrypt=function(e,n){return t.publicEncrypt(e,n,!0)},t.publicDecrypt=function(e,n){return t.privateDecrypt(e,n,!0)}},function(e,t,n){var r=n(57),i=n(39),a=n(42),o=n(272),s=n(273),l=n(23),c=n(274),u=n(102),d=n(20).Buffer;e.exports=function(e,t,n){var h;h=e.padding?e.padding:n?1:4;var f,p=r(e);if(4===h)f=function(e,t){var n=e.modulus.byteLength(),r=t.length,c=a("sha1").update(d.alloc(0)).digest(),u=c.length,h=2*u;if(r>n-h-2)throw new Error("message too long");var f=d.alloc(n-r-h-2),p=n-u-1,m=i(u),v=s(d.concat([c,f,d.alloc(1,1),t],p),o(m,p)),g=s(m,o(v,u));return new l(d.concat([d.alloc(1),g,v],n))}(p,t);else if(1===h)f=function(e,t,n){var r,a=t.length,o=e.modulus.byteLength();if(a>o-11)throw new Error("message too long");r=n?d.alloc(o-a-3,255):function(e){var t,n=d.allocUnsafe(e),r=0,a=i(2*e),o=0;for(;r<e;)o===a.length&&(a=i(2*e),o=0),(t=a[o++])&&(n[r++]=t);return n}(o-a-3);return new l(d.concat([d.from([0,n?1:2]),r,d.alloc(1),t],o))}(p,t,n);else{if(3!==h)throw new Error("unknown padding");if((f=new l(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return n?u(f,p):c(f,p)}},function(e,t,n){var r=n(57),i=n(272),a=n(273),o=n(23),s=n(102),l=n(42),c=n(274),u=n(20).Buffer;e.exports=function(e,t,n){var d;d=e.padding?e.padding:n?1:4;var h,f=r(e),p=f.modulus.byteLength();if(t.length>p||new o(t).cmp(f.modulus)>=0)throw new Error("decryption error");h=n?c(new o(t),f):s(t,f);var m=u.alloc(p-h.length);if(h=u.concat([m,h],p),4===d)return function(e,t){var n=e.modulus.byteLength(),r=l("sha1").update(u.alloc(0)).digest(),o=r.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,o+1),c=t.slice(o+1),d=a(s,i(c,o)),h=a(c,i(d,n-o-1));if(function(e,t){e=u.from(e),t=u.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));var i=-1;for(;++i<r;)n+=e[i]^t[i];return n}(r,h.slice(0,o)))throw new Error("decryption error");var f=o;for(;0===h[f];)f++;if(1!==h[f++])throw new Error("decryption error");return h.slice(f)}(f,h);if(1===d)return function(e,t,n){var r=t.slice(0,2),i=2,a=0;for(;0!==t[i++];)if(i>=t.length){a++;break}var o=t.slice(2,i-1);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&a++;o.length<8&&a++;if(a)throw new Error("decryption error");return t.slice(i)}(0,h,n);if(3===d)return h;throw new Error("unknown padding")}},function(e,t,n){"use strict";(function(e,r){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var a=n(20),o=n(39),s=a.Buffer,l=a.kMaxLength,c=e.crypto||e.msCrypto,u=Math.pow(2,32)-1;function d(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>u||e<0)throw new TypeError("offset must be a uint32");if(e>l||e>t)throw new RangeError("offset out of range")}function h(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>l)throw new RangeError("buffer too small")}function f(e,t,n,i){if(r.browser){var a=e.buffer,s=new Uint8Array(a,t,n);return c.getRandomValues(s),i?void r.nextTick((function(){i(null,e)})):e}if(!i)return o(n).copy(e,t),e;o(n,(function(n,r){if(n)return i(n);r.copy(e,t),i(null,e)}))}c&&c.getRandomValues||!r.browser?(t.randomFill=function(t,n,r,i){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)i=n,n=0,r=t.length;else if("function"==typeof r)i=r,r=t.length-n;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return d(n,t.length),h(r,n,t.length),f(t,n,r,i)},t.randomFillSync=function(t,n,r){void 0===n&&(n=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');d(n,t.length),void 0===r&&(r=t.length-n);return h(r,n,t.length),f(t,n,r)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,n(22),n(25))},function(e,t,n){"use strict";var r=n(71);n.n(r).a},function(e,t,n){"use strict";var r=n(72);n.n(r).a},function(e,t,n){"use strict";var r=n(73);n.n(r).a},function(e,t,n){"use strict";var r=n(74);n.n(r).a},function(e,t,n){"use strict";var r=n(75);n.n(r).a},function(e,t,n){"use strict";var r=n(76);n.n(r).a},function(e,t,n){"use strict";var r=n(77);n.n(r).a},function(e,t,n){"use strict";var r=n(78);n.n(r).a},function(e,t,n){"use strict";var r=n(79);n.n(r).a},function(e,t,n){"use strict";var r=n(80);n.n(r).a},function(e,t,n){"use strict";var r=n(81);n.n(r).a},function(e,t,n){"use strict";var r=n(82);n.n(r).a},function(e,t,n){"use strict";var r=n(83);n.n(r).a},function(e,t,n){"use strict";var r=n(84);n.n(r).a},function(e,t,n){"use strict";var r=n(85);n.n(r).a},function(e,t,n){"use strict";var r=n(86);n.n(r).a},function(e,t,n){"use strict";var r=n(87);n.n(r).a},function(e,t,n){"use strict";var r=n(88);n.n(r).a},function(e,t,n){"use strict";var r=n(89);n.n(r).a},function(e,t,n){var r,i,a=n(275),o=n(276),s=0,l=0;e.exports=function(e,t,n){var c=t&&n||0,u=t||[],d=(e=e||{}).node||r,h=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==h){var f=a();null==d&&(d=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==h&&(h=i=16383&(f[6]<<8|f[7]))}var p=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:l+1,v=p-s+(m-l)/1e4;if(v<0&&void 0===e.clockseq&&(h=h+1&16383),(v<0||p>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=p,l=m,i=h;var g=(1e4*(268435455&(p+=122192928e5))+m)%4294967296;u[c++]=g>>>24&255,u[c++]=g>>>16&255,u[c++]=g>>>8&255,u[c++]=255&g;var y=p/4294967296*1e4&268435455;u[c++]=y>>>8&255,u[c++]=255&y,u[c++]=y>>>24&15|16,u[c++]=y>>>16&255,u[c++]=h>>>8|128,u[c++]=255&h;for(var b=0;b<6;++b)u[c+b]=d[b];return t||o(u)}},function(e,t,n){var r=n(275),i=n(276);e.exports=function(e,t,n){var a=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var s=0;s<16;++s)t[a+s]=o[s];return t||i(o)}},function(e,t,n){"use strict";var r=n(27),i=n(277),a=n(430),o=n(283);function s(e){var t=new a(e),n=i(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var l=s(n(280));l.Axios=a,l.create=function(e){return s(o(l.defaults,e))},l.Cancel=n(284),l.CancelToken=n(443),l.isCancel=n(279),l.all=function(e){return Promise.all(e)},l.spread=n(444),l.isAxiosError=n(445),e.exports=l,e.exports.default=l},function(e,t,n){"use strict";var r=n(27),i=n(278),a=n(431),o=n(432),s=n(283);function l(e){this.defaults=e,this.interceptors={request:new a,response:new a}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[o,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=l},function(e,t,n){"use strict";var r=n(27);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(27),i=n(433),a=n(279),o=n(280);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(27);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(27);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(282);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(27);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(439),i=n(440);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(27),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(o[t]&&i.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},function(e,t,n){"use strict";var r=n(27);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(284);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,i="/"===o.charAt(0))}return(i?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},t.normalize=function(e){var a=t.isAbsolute(e),o="/"===i(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!a).join("/"))||a||(e="."),e&&o&&(e+="/"),(a?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,l=0;l<o;l++)if(i[l]!==a[l]){s=l;break}var c=[];for(l=s;l<i.length;l++)c.push("..");return(c=c.concat(a.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(25))},function(e,t,n){var r=n(448),i=n(287),a=e.exports;for(var o in r)r.hasOwnProperty(o)&&(a[o]=r[o]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}a.request=function(e,t){return e=s(e),r.request.call(this,e,t)},a.get=function(e,t){return e=s(e),r.get.call(this,e,t)}},function(e,t,n){(function(e){var r=n(449),i=n(286),a=n(451),o=n(452),s=n(287),l=t;l.request=function(t,n){t="string"==typeof t?s.parse(t):a(t);var i=-1===e.location.protocol.search(/^https?:$/)?"http:":"",o=t.protocol||i,l=t.hostname||t.host,c=t.port,u=t.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),t.url=(l?o+"//"+l:"")+(c?":"+c:"")+u,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var d=new r(t);return n&&d.on("response",n),d},l.get=function(e,t){var n=l.request(e,t);return n.end(),n},l.ClientRequest=r,l.IncomingMessage=i.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=o,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n(22))},function(e,t,n){(function(t,r,i){var a=n(285),o=n(19),s=n(286),l=n(43),c=n(450),u=s.IncomingMessage,d=s.readyStates;var h=e.exports=function(e){var n,r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!a.abortController)i=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!a.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(e,t){return a.fetch&&t?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&e?"arraybuffer":a.vbArray&&e?"text:vbarray":"text"}(n,i),r._fetchTimer=null,r.on("finish",(function(){r._onFinish()}))};o(h,l.Writable),h.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===f.indexOf(n)&&(this._headers[n]={name:e,value:t})},h.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},h.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},h.prototype._onFinish=function(){var e=this;if(!e._destroyed){var n=e._opts,o=e._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=a.arraybuffer?c(t.concat(e._body)):a.blobConstructor?new r.Blob(e._body.map((function(e){return c(e)})),{type:(o["content-type"]||{}).value||""}):t.concat(e._body).toString());var l=[];if(Object.keys(o).forEach((function(e){var t=o[e].name,n=o[e].value;Array.isArray(n)?n.forEach((function(e){l.push([t,e])})):l.push([t,n])})),"fetch"===e._mode){var u=null;if(a.abortController){var h=new AbortController;u=h.signal,e._fetchAbortController=h,"requestTimeout"in n&&0!==n.requestTimeout&&(e._fetchTimer=r.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),n.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:l,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:u}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var f=e._xhr=new r.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(t){return void i.nextTick((function(){e.emit("error",t)}))}"responseType"in f&&(f.responseType=e._mode.split(":")[0]),"withCredentials"in f&&(f.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(f.timeout=n.requestTimeout,f.ontimeout=function(){e.emit("requestTimeout")}),l.forEach((function(e){f.setRequestHeader(e[0],e[1])})),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case d.LOADING:case d.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{f.send(s)}catch(t){return void i.nextTick((function(){e.emit("error",t)}))}}}},h.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},h.prototype._connect=function(){var e=this;e._destroyed||(e._response=new u(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},h.prototype._write=function(e,t,n){this._body.push(e),n()},h.prototype.abort=h.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},h.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),l.Writable.prototype.end.call(this,e,t,n)},h.prototype.flushHeaders=function(){},h.prototype.setTimeout=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var f=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n(24).Buffer,n(22),n(25))},function(e,t,n){var r=n(24).Buffer;e.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,i=0;i<n;i++)t[i]=e[i];return t.buffer}throw new Error("Argument must be a Buffer")}},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(e,t,n){(function(e,r){var i;!function(a){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r&&r;o.global!==o&&o.window!==o&&o.self;var s,l=2147483647,c=/^xn--/,u=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,p=String.fromCharCode;function m(e){throw new RangeError(h[e])}function v(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function g(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+v((e=e.replace(d,".")).split("."),t).join(".")}function y(e){for(var t,n,r=[],i=0,a=e.length;i<a;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<a?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function b(e){return v(e,(function(e){var t="";return e>65535&&(t+=p((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=p(e)})).join("")}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?f(e/700):e>>1,e+=f(e/t);e>455;r+=36)e=f(e/35);return f(r+36*e/(e+38))}function k(e){var t,n,r,i,a,o,s,c,u,d,h,p=[],v=e.length,g=0,y=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&m("not-basic"),p.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<v;){for(a=g,o=1,s=36;i>=v&&m("invalid-input"),((c=(h=e.charCodeAt(i++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||c>f((l-g)/o))&&m("overflow"),g+=c*o,!(c<(u=s<=_?1:s>=_+26?26:s-_));s+=36)o>f(l/(d=36-u))&&m("overflow"),o*=d;_=w(g-a,t=p.length+1,0==a),f(g/t)>l-y&&m("overflow"),y+=f(g/t),g%=t,p.splice(g++,0,y)}return b(p)}function E(e){var t,n,r,i,a,o,s,c,u,d,h,v,g,b,k,E=[];for(v=(e=y(e)).length,t=128,n=0,a=72,o=0;o<v;++o)(h=e[o])<128&&E.push(p(h));for(r=i=E.length,i&&E.push("-");r<v;){for(s=l,o=0;o<v;++o)(h=e[o])>=t&&h<s&&(s=h);for(s-t>f((l-n)/(g=r+1))&&m("overflow"),n+=(s-t)*g,t=s,o=0;o<v;++o)if((h=e[o])<t&&++n>l&&m("overflow"),h==t){for(c=n,u=36;!(c<(d=u<=a?1:u>=a+26?26:u-a));u+=36)k=c-d,b=36-d,E.push(p(_(d+k%b,0))),c=f(k/b);E.push(p(_(c,0))),a=w(n,g,r==i),n=0,++r}++n,++t}return E.join("")}s={version:"1.4.1",ucs2:{decode:y,encode:b},decode:k,encode:E,toASCII:function(e){return g(e,(function(e){return u.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return g(e,(function(e){return c.test(e)?k(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(52)(e),n(22))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(456),t.encode=t.stringify=n(457)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var s=/\+/g;e=e.split(t);var l=1e3;a&&"number"==typeof a.maxKeys&&(l=a.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u<c;++u){var d,h,f,p,m=e[u].replace(s,"%20"),v=m.indexOf(n);v>=0?(d=m.substr(0,v),h=m.substr(v+1)):(d=m,h=""),f=decodeURIComponent(d),p=decodeURIComponent(h),r(o,f)?i(o[f])?o[f].push(p):o[f]=[o[f],p]:o[f]=p}return o};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?a(o(e),(function(o){var s=encodeURIComponent(r(o))+n;return i(e[o])?a(e[o],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[o]))})).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";n.r(t);var r=n(8),i=n(31),a=n(9),o=n.n(a),s=n(0),l=function e(t){o()(this,e);for(var n=0;n<t.length;n+=1)this[n]=t[n];return this.length=t.length,this};function c(e,t){var n=[],r=0;if(e&&!t&&e instanceof l)return e;if(e)if("string"==typeof e){var i,a,o=e.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var c="div";for(0===o.indexOf("<li")&&(c="ul"),0===o.indexOf("<tr")&&(c="tbody"),0!==o.indexOf("<td")&&0!==o.indexOf("<th")||(c="tr"),0===o.indexOf("<tbody")&&(c="table"),0===o.indexOf("<option")&&(c="select"),(a=s.a.createElement(c)).innerHTML=o,r=0;r<a.childNodes.length;r+=1)n.push(a.childNodes[r])}else for(i=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||s.a).querySelectorAll(e.trim()):[s.a.getElementById(e.trim().split("#")[1])],r=0;r<i.length;r+=1)i[r]&&n.push(i[r])}else if(e.nodeType||e===s.b||e===s.a)n.push(e);else if(e.length>0&&e[0].nodeType)for(r=0;r<e.length;r+=1)n.push(e[r]);return new l(n)}function u(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function d(e){return s.b.requestAnimationFrame?s.b.requestAnimationFrame(e):s.b.webkitRequestAnimationFrame?s.b.webkitRequestAnimationFrame(e):s.b.setTimeout(e,1e3/60)}c.fn=l.prototype,c.Class=l,c.Dom7=l;var h=Object.freeze({addClass:function(e){if(void 0===e)return this;for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.add(t[n]);return this},removeClass:function(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.remove(t[n]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.toggle(t[n]);return this},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},prop:function(e,t){if(1!==arguments.length||"string"!=typeof e){for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n][e]=t;else for(var r in e)this[n][r]=e[r];return this}if(this[0])return this[0][e]},data:function(e,t){var n;if(void 0!==t){for(var r=0;r<this.length;r+=1)(n=this[r]).dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this}if(n=this[0]){if(n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[e];var i=n.getAttribute("data-".concat(e));return i||void 0}},removeData:function(e){for(var t=0;t<this.length;t+=1){var n=this[t];n.dom7ElementDataStorage&&n.dom7ElementDataStorage[e]&&(n.dom7ElementDataStorage[e]=null,delete n.dom7ElementDataStorage[e])}},dataset:function(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var i=0;i<e.attributes.length;i+=1){var a=e.attributes[i];a.name.indexOf("data-")>=0&&(n[(t=a.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=a.value)}for(var o in n)"false"===n[o]?n[o]=!1:"true"===n[o]?n[o]=!0:parseFloat(n[o])===1*n[o]&&(n[o]*=1);return n}},val:function(e){if(void 0!==e){for(var t=0;t<this.length;t+=1){var n=this[t];if(Array.isArray(e)&&n.multiple&&"select"===n.nodeName.toLowerCase())for(var r=0;r<n.options.length;r+=1)n.options[r].selected=e.indexOf(n.options[r].value)>=0;else n.value=e}return this}if(this[0]){if(this[0].multiple&&"select"===this[0].nodeName.toLowerCase()){for(var i=[],a=0;a<this[0].selectedOptions.length;a+=1)i.push(this[0].selectedOptions[a].value);return i}return this[0].value}},transform:function(e){for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransform=e,n.transform=e}return this},transition:function(e){"string"!=typeof e&&(e="".concat(e,"ms"));for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransitionDuration=e,n.transitionDuration=e}return this},on:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];function s(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),c(t).is(i))a.apply(t,n);else for(var r=c(t).parents(),o=0;o<r.length;o+=1)c(r[o]).is(i)&&a.apply(r[o],n)}}function l(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),a.apply(this,t)}"function"==typeof t[1]&&(r=t[0],a=t[1],o=t[2],i=void 0),o||(o=!1);for(var u,d=r.split(" "),h=0;h<this.length;h+=1){var f=this[h];if(i)for(u=0;u<d.length;u+=1){var p=d[u];f.dom7LiveListeners||(f.dom7LiveListeners={}),f.dom7LiveListeners[p]||(f.dom7LiveListeners[p]=[]),f.dom7LiveListeners[p].push({listener:a,proxyListener:s}),f.addEventListener(p,s,o)}else for(u=0;u<d.length;u+=1){var m=d[u];f.dom7Listeners||(f.dom7Listeners={}),f.dom7Listeners[m]||(f.dom7Listeners[m]=[]),f.dom7Listeners[m].push({listener:a,proxyListener:l}),f.addEventListener(m,l,o)}}return this},off:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];"function"==typeof t[1]&&(r=t[0],a=t[1],o=t[2],i=void 0),o||(o=!1);for(var s=r.split(" "),l=0;l<s.length;l+=1)for(var c=s[l],u=0;u<this.length;u+=1){var d=this[u],h=void 0;if(!i&&d.dom7Listeners?h=d.dom7Listeners[c]:i&&d.dom7LiveListeners&&(h=d.dom7LiveListeners[c]),h&&h.length)for(var f=h.length-1;f>=0;f-=1){var p=h[f];a&&p.listener===a||a&&p.listener&&p.listener.dom7proxy&&p.listener.dom7proxy===a?(d.removeEventListener(c,p.proxyListener,o),h.splice(f,1)):a||(d.removeEventListener(c,p.proxyListener,o),h.splice(f,1))}}return this},once:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2],s=n[3];function l(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];o.apply(this,n),e.off(i,a,l,s),l.dom7proxy&&delete l.dom7proxy}return"function"==typeof n[1]&&(i=n[0],o=n[1],s=n[2],a=void 0),l.dom7proxy=o,e.on(i,a,l,s)},trigger:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=t[0].split(" "),i=t[1],a=0;a<r.length;a+=1)for(var o=r[a],l=0;l<this.length;l+=1){var c=this[l],u=void 0;try{u=new s.b.CustomEvent(o,{detail:i,bubbles:!0,cancelable:!0})}catch(e){(u=s.a.createEvent("Event")).initEvent(o,!0,!0),u.detail=i}c.dom7EventData=t.filter((function(e,t){return t>0})),c.dispatchEvent(u),c.dom7EventData=[],delete c.dom7EventData}return this},transitionEnd:function(e){var t,n=["webkitTransitionEnd","transitionend"],r=this;function i(a){if(a.target===this)for(e.call(this,a),t=0;t<n.length;t+=1)r.off(n[t],i)}if(e)for(t=0;t<n.length;t+=1)r.on(n[t],i);return this},animationEnd:function(e){var t,n=["webkitAnimationEnd","animationend"],r=this;function i(a){if(a.target===this)for(e.call(this,a),t=0;t<n.length;t+=1)r.off(n[t],i)}if(e)for(t=0;t<n.length;t+=1)r.on(n[t],i);return this},width:function(){return this[0]===s.b?s.b.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},height:function(){return this[0]===s.b?s.b.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),n=s.a.body,r=e.clientTop||n.clientTop||0,i=e.clientLeft||n.clientLeft||0,a=e===s.b?s.b.scrollY:e.scrollTop,o=e===s.b?s.b.scrollX:e.scrollLeft;return{top:t.top+a-r,left:t.left+o-i}}return null},hide:function(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this},show:function(){for(var e=0;e<this.length;e+=1){var t=this[e];"none"===t.style.display&&(t.style.display=""),"none"===s.b.getComputedStyle(t,null).getPropertyValue("display")&&(t.style.display="block")}return this},styles:function(){return this[0]?s.b.getComputedStyle(this[0],null):{}},css:function(e,t){var n;if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var r in e)this[n].style[r]=e[r];return this}if(this[0])return s.b.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this},toArray:function(){for(var e=[],t=0;t<this.length;t+=1)e.push(this[t]);return e},each:function(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},forEach:function(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],this[t],t))return this;return this},filter:function(e){for(var t=[],n=0;n<this.length;n+=1)e.call(this[n],n,this[n])&&t.push(this[n]);return new l(t)},map:function(e){for(var t=[],n=0;n<this.length;n+=1)t.push(e.call(this[n],n,this[n]));return new l(t)},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){var t,n,r=this[0];if(!r||void 0===e)return!1;if("string"==typeof e){if(r.matches)return r.matches(e);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(r.msMatchesSelector)return r.msMatchesSelector(e);for(t=c(e),n=0;n<t.length;n+=1)if(t[n]===r)return!0;return!1}if(e===s.a)return r===s.a;if(e===s.b)return r===s.b;if(e.nodeType||e instanceof l){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===r)return!0;return!1}return!1},indexOf:function(e){for(var t=0;t<this.length;t+=1)if(this[t]===e)return t;return-1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,n=this.length;return new l(e>n-1?[]:e<0?(t=n+e)<0?[]:[this[t]]:[this[e]])},append:function(){for(var e,t=0;t<arguments.length;t+=1){e=t<0||arguments.length<=t?void 0:arguments[t];for(var n=0;n<this.length;n+=1)if("string"==typeof e){var r=s.a.createElement("div");for(r.innerHTML=e;r.firstChild;)this[n].appendChild(r.firstChild)}else if(e instanceof l)for(var i=0;i<e.length;i+=1)this[n].appendChild(e[i]);else this[n].appendChild(e)}return this},appendTo:function(e){return c(e).append(this),this},prepend:function(e){var t,n;for(t=0;t<this.length;t+=1)if("string"==typeof e){var r=s.a.createElement("div");for(r.innerHTML=e,n=r.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(r.childNodes[n],this[t].childNodes[0])}else if(e instanceof l)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},prependTo:function(e){return c(e).prepend(this),this},insertBefore:function(e){for(var t=c(e),n=0;n<this.length;n+=1)if(1===t.length)t[0].parentNode.insertBefore(this[n],t[0]);else if(t.length>1)for(var r=0;r<t.length;r+=1)t[r].parentNode.insertBefore(this[n].cloneNode(!0),t[r])},insertAfter:function(e){for(var t=c(e),n=0;n<this.length;n+=1)if(1===t.length)t[0].parentNode.insertBefore(this[n],t[0].nextSibling);else if(t.length>1)for(var r=0;r<t.length;r+=1)t[r].parentNode.insertBefore(this[n].cloneNode(!0),t[r].nextSibling)},next:function(e){return this.length>0?e?this[0].nextElementSibling&&c(this[0].nextElementSibling).is(e)?new l([this[0].nextElementSibling]):new l([]):this[0].nextElementSibling?new l([this[0].nextElementSibling]):new l([]):new l([])},nextAll:function(e){var t=[],n=this[0];if(!n)return new l([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;e?c(r).is(e)&&t.push(r):t.push(r),n=r}return new l(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&c(t.previousElementSibling).is(e)?new l([t.previousElementSibling]):new l([]):t.previousElementSibling?new l([t.previousElementSibling]):new l([])}return new l([])},prevAll:function(e){var t=[],n=this[0];if(!n)return new l([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;e?c(r).is(e)&&t.push(r):t.push(r),n=r}return new l(t)},siblings:function(e){return this.nextAll(e).add(this.prevAll(e))},parent:function(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?c(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return c(u(t))},parents:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?c(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return c(u(t))},closest:function(e){var t=this;return void 0===e?new l([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),i=0;i<r.length;i+=1)t.push(r[i]);return new l(t)},children:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].childNodes,i=0;i<r.length;i+=1)e?1===r[i].nodeType&&c(r[i]).is(e)&&t.push(r[i]):1===r[i].nodeType&&t.push(r[i]);return new l(u(t))},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},detach:function(){return this.remove()},add:function(){for(var e,t,n=this,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];for(e=0;e<i.length;e+=1){var o=c(i[e]);for(t=0;t<o.length;t+=1)n[n.length]=o[t],n.length+=1}return n},empty:function(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}});var f=Object.freeze({scrollTo:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4];return 4===t.length&&"function"==typeof o&&(s=o,r=t[0],i=t[1],a=t[2],s=t[3],o=t[4]),void 0===o&&(o="swing"),this.each((function(){var e,t,n,l,c,u,h,f,p=this,m=i>0||0===i,v=r>0||0===r;if(void 0===o&&(o="swing"),m&&(e=p.scrollTop,a||(p.scrollTop=i)),v&&(t=p.scrollLeft,a||(p.scrollLeft=r)),a){m&&(n=p.scrollHeight-p.offsetHeight,c=Math.max(Math.min(i,n),0)),v&&(l=p.scrollWidth-p.offsetWidth,u=Math.max(Math.min(r,l),0));var g=null;m&&c===e&&(m=!1),v&&u===t&&(v=!1),d((function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(new Date).getTime();null===g&&(g=r);var i,l=Math.max(Math.min((r-g)/a,1),0),y="linear"===o?l:.5-Math.cos(l*Math.PI)/2;m&&(h=e+y*(c-e)),v&&(f=t+y*(u-t)),m&&c>e&&h>=c&&(p.scrollTop=c,i=!0),m&&c<e&&h<=c&&(p.scrollTop=c,i=!0),v&&u>t&&f>=u&&(p.scrollLeft=u,i=!0),v&&u<t&&f<=u&&(p.scrollLeft=u,i=!0),i?s&&s():(m&&(p.scrollTop=h),v&&(p.scrollLeft=f),d(n))}))}}))},scrollTop:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];3===t.length&&"function"==typeof a&&(r=t[0],i=t[1],o=t[2],a=t[3]);var s=this;return void 0===r?s.length>0?s[0].scrollTop:null:s.scrollTo(void 0,r,i,a,o)},scrollLeft:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];3===t.length&&"function"==typeof a&&(r=t[0],i=t[1],o=t[2],a=t[3]);var s=this;return void 0===r?s.length>0?s[0].scrollLeft:null:s.scrollTo(r,void 0,i,a,o)}});var p=Object.freeze({animate:function(e,t){var n,r=this,i={props:Object.assign({},e),params:Object.assign({duration:300,easing:"swing"},t),elements:r,animating:!1,que:[],easingProgress:function(e,t){return"swing"===e?.5-Math.cos(t*Math.PI)/2:"function"==typeof e?e(t):t},stop:function(){var e;i.frameId&&(e=i.frameId,s.b.cancelAnimationFrame?s.b.cancelAnimationFrame(e):s.b.webkitCancelAnimationFrame?s.b.webkitCancelAnimationFrame(e):s.b.clearTimeout(e)),i.animating=!1,i.elements.each((function(e,t){delete t.dom7AnimateInstance})),i.que=[]},done:function(e){if(i.animating=!1,i.elements.each((function(e,t){delete t.dom7AnimateInstance})),e&&e(r),i.que.length>0){var t=i.que.shift();i.animate(t[0],t[1])}},animate:function(e,t){if(i.animating)return i.que.push([e,t]),i;var n=[];i.elements.each((function(t,r){var a,o,l,c,u;r.dom7AnimateInstance||(i.elements[t].dom7AnimateInstance=i),n[t]={container:r},Object.keys(e).forEach((function(i){a=s.b.getComputedStyle(r,null).getPropertyValue(i).replace(",","."),o=parseFloat(a),l=a.replace(o,""),c=parseFloat(e[i]),u=e[i]+l,n[t][i]={initialFullValue:a,initialValue:o,unit:l,finalValue:c,finalFullValue:u,currentValue:o}}))}));var a,o,l=null,c=0,u=0,h=!1;return i.animating=!0,i.frameId=d((function s(){var f,p;a=(new Date).getTime(),h||(h=!0,t.begin&&t.begin(r)),null===l&&(l=a),t.progress&&t.progress(r,Math.max(Math.min((a-l)/t.duration,1),0),l+t.duration-a<0?0:l+t.duration-a,l),n.forEach((function(r){var s=r;o||s.done||Object.keys(e).forEach((function(r){if(!o&&!s.done){f=Math.max(Math.min((a-l)/t.duration,1),0),p=i.easingProgress(t.easing,f);var d=s[r],h=d.initialValue,m=d.finalValue,v=d.unit;s[r].currentValue=h+p*(m-h);var g=s[r].currentValue;(m>h&&g>=m||m<h&&g<=m)&&(s.container.style[r]=m+v,(u+=1)===Object.keys(e).length&&(s.done=!0,c+=1),c===n.length&&(o=!0)),o?i.done(t.complete):s.container.style[r]=g+v}}))})),o||(i.frameId=d(s))})),i}};if(0===i.elements.length)return r;for(var a=0;a<i.elements.length;a+=1)i.elements[a].dom7AnimateInstance?n=i.elements[a].dom7AnimateInstance:i.elements[a].dom7AnimateInstance=i;return n||(n=i),"stop"===e?n.stop():n.animate(i.props,i.params),r},stop:function(){for(var e=0;e<this.length;e+=1)this[e].dom7AnimateInstance&&this[e].dom7AnimateInstance.stop()}}),m="resize scroll".split(" ");function v(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(void 0===n[0]){for(var i=0;i<this.length;i+=1)m.indexOf(e)<0&&(e in this[i]?this[i][e]():c(this[i]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}[h,f,p,Object.freeze({click:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["click"].concat(t))},blur:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["blur"].concat(t))},focus:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["focus"].concat(t))},focusin:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["focusin"].concat(t))},focusout:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["focusout"].concat(t))},keyup:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["keyup"].concat(t))},keydown:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["keydown"].concat(t))},keypress:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["keypress"].concat(t))},submit:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["submit"].concat(t))},change:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["change"].concat(t))},mousedown:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["mousedown"].concat(t))},mousemove:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["mousemove"].concat(t))},mouseup:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["mouseup"].concat(t))},mouseenter:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["mouseenter"].concat(t))},mouseleave:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["mouseleave"].concat(t))},mouseout:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["mouseout"].concat(t))},mouseover:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["mouseover"].concat(t))},touchstart:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["touchstart"].concat(t))},touchend:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["touchend"].concat(t))},touchmove:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["touchmove"].concat(t))},resize:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["resize"].concat(t))},scroll:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["scroll"].concat(t))}})].forEach((function(e){Object.keys(e).forEach((function(t){c.fn[t]=e[t]}))}));for(var g=c,y=n(14),b=n.n(y),w=n(12),k=n.n(w),E=n(13),S=n.n(E),T=n(3),C=n.n(T),M=n(7),x=n.n(M),$=n(16),L=n.n($),P=n(18),O=n.n(P),I=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"Œ"},{base:"oe",letters:"œ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],A={},D=0;D<I.length;D+=1)for(var N=I[D].letters,R=0;R<N.length;R+=1)A[N[R]]=I[D].base;var B=1,Y={uniqueNumber:function(){return B+=1},id:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"xxxxxxxxxx",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0123456789abcdef",n=t.length;return e.replace(/x/g,(function(){return t[Math.floor(Math.random()*n)]}))},mdPreloaderContent:'\n <span class="preloader-inner">\n <span class="preloader-inner-gap"></span>\n <span class="preloader-inner-left">\n <span class="preloader-inner-half-circle"></span>\n </span>\n <span class="preloader-inner-right">\n <span class="preloader-inner-half-circle"></span>\n </span>\n </span>\n '.trim(),iosPreloaderContent:'\n <span class="preloader-inner">\n '.concat([0,1,2,3,4,5,6,7,8,9,10,11].map((function(){return'<span class="preloader-inner-line"></span>'})).join(""),"\n </span>\n ").trim(),auroraPreloaderContent:'\n <span class="preloader-inner">\n <span class="preloader-inner-circle"></span>\n </span>\n ',eventNameToColonCase:function(e){var t;return e.split("").map((function(e,n){return e.match(/[A-Z]/)&&0!==n&&!t?(t=!0,":".concat(e.toLowerCase())):e.toLowerCase()})).join("")},deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))},nextTick:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return setTimeout(e,t)},nextFrame:function(e){return Y.requestAnimationFrame((function(){Y.requestAnimationFrame(e)}))},now:function(){return Date.now()},requestAnimationFrame:function(e){return s.b.requestAnimationFrame(e)},cancelAnimationFrame:function(e){return s.b.cancelAnimationFrame(e)},removeDiacritics:function(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return A[e]||e}))},parseUrlQuery:function(e){var t,n,r,i,a={},o=e||s.b.location.href;if("string"==typeof o&&o.length)for(i=(n=(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"").split("&").filter((function(e){return""!==e}))).length,t=0;t<i;t+=1)r=n[t].replace(/#\S+/g,"").split("="),a[decodeURIComponent(r[0])]=void 0===r[1]?void 0:decodeURIComponent(r.slice(1).join("="))||"";return a},getTranslate:function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",a=s.b.getComputedStyle(e,null);return s.b.WebKitCSSMatrix?((n=a.transform||a.webkitTransform).split(",").length>6&&(n=n.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),r=new s.b.WebKitCSSMatrix("none"===n?"":n)):t=(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===i&&(n=s.b.WebKitCSSMatrix?r.m41:16===t.length?parseFloat(t[12]):parseFloat(t[4])),"y"===i&&(n=s.b.WebKitCSSMatrix?r.m42:16===t.length?parseFloat(t[13]):parseFloat(t[5])),n||0},serializeObject:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if("string"==typeof e)return e;var n,r=[],i="&";function a(e){if(t.length>0){for(var n="",r=0;r<t.length;r+=1)n+=0===r?t[r]:"[".concat(encodeURIComponent(t[r]),"]");return"".concat(n,"[").concat(encodeURIComponent(e),"]")}return encodeURIComponent(e)}function o(e){return encodeURIComponent(e)}return Object.keys(e).forEach((function(s){var l;if(Array.isArray(e[s])){l=[];for(var c=0;c<e[s].length;c+=1)Array.isArray(e[s][c])||"object"!==O()(e[s][c])?l.push("".concat(a(s),"[]=").concat(o(e[s][c]))):((n=t.slice()).push(s),n.push(String(c)),l.push(Y.serializeObject(e[s][c],n)));l.length>0&&r.push(l.join(i))}else null===e[s]||""===e[s]?r.push("".concat(a(s),"=")):"object"===O()(e[s])?((n=t.slice()).push(s),""!==(l=Y.serializeObject(e[s],n))&&r.push(l)):void 0!==e[s]&&""!==e[s]?r.push("".concat(a(s),"=").concat(o(e[s]))):""===e[s]&&r.push(a(s))})),r.join(i)},isObject:function(e){return"object"===O()(e)&&null!==e&&e.constructor&&e.constructor===Object},merge:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];t.splice(0,1);for(var i=t,a=0;a<i.length;a+=1){var o=t[a];if(null!=o)for(var s=Object.keys(Object(o)),l=0,c=s.length;l<c;l+=1){var u=s[l],d=Object.getOwnPropertyDescriptor(o,u);void 0!==d&&d.enumerable&&(r[u]=o[u])}}return r},extend:function(){for(var e,t,n=!0,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];"boolean"==typeof i[0]?(n=i[0],e=i[1],i.splice(0,2),t=i):(e=i[0],i.splice(0,1),t=i);for(var o=0;o<t.length;o+=1){var s=i[o];if(null!=s)for(var l=Object.keys(Object(s)),c=0,u=l.length;c<u;c+=1){var d=l[c],h=Object.getOwnPropertyDescriptor(s,d);void 0!==h&&h.enumerable&&(n?Y.isObject(e[d])&&Y.isObject(s[d])?Y.extend(e[d],s[d]):!Y.isObject(e[d])&&Y.isObject(s[d])?(e[d]={},Y.extend(e[d],s[d])):e[d]=s[d]:e[d]=s[d])}}return e},colorHexToRgb:function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?n.slice(1).map((function(e){return parseInt(e,16)})):null},colorRgbToHex:function(e,t,n){var r=[e,t,n].map((function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t})).join("");return"#".concat(r)},colorRgbToHsl:function(e,t,n){e/=255,t/=255,n/=255;var r,i=Math.max(e,t,n),a=Math.min(e,t,n),o=i-a;0===o?r=0:i===e?r=(t-n)/o%6:i===t?r=(n-e)/o+2:i===n&&(r=(e-t)/o+4);var s=(a+i)/2;return r<0&&(r=6+r),[60*r,0===o?0:o/(1-Math.abs(2*s-1)),s]},colorHslToRgb:function(e,t,n){var r,i=(1-Math.abs(2*n-1))*t,a=e/60,o=i*(1-Math.abs(a%2-1));Number.isNaN(e)||void 0===e?r=[0,0,0]:a<=1?r=[i,o,0]:a<=2?r=[o,i,0]:a<=3?r=[0,i,o]:a<=4?r=[0,o,i]:a<=5?r=[o,0,i]:a<=6&&(r=[i,0,o]);var s=n-i/2;return r.map((function(e){return Math.max(0,Math.min(255,Math.round(255*(e+s))))}))},colorHsbToHsl:function(e,t,n){var r={h:e,s:0,l:0},i=t,a=n;return r.l=(2-i)*a/2,r.s=r.l&&r.l<1?i*a/(r.l<.5?2*r.l:2-2*r.l):r.s,[r.h,r.s,r.l]},colorHslToHsb:function(e,t,n){var r={h:e,s:0,b:0},i=n,a=t*(i<.5?i:1-i);return r.b=i+a,r.s=i>0?2*a/r.b:r.s,[r.h,r.s,r.b]},colorThemeCSSProperties:function(){for(var e,t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(1===r.length?(e=r[0],t=Y.colorHexToRgb(e)):3===r.length&&(t=r,e=Y.colorRgbToHex.apply(Y,L()(t))),!t)return{};var a=Y.colorRgbToHsl.apply(Y,L()(t)),o=[a[0],a[1],Math.max(0,a[2]-.08)],s=[a[0],a[1],Math.max(0,a[2]+.08)],l=Y.colorRgbToHex.apply(Y,L()(Y.colorHslToRgb.apply(Y,o))),c=Y.colorRgbToHex.apply(Y,L()(Y.colorHslToRgb.apply(Y,s)));return{"--f7-theme-color":e,"--f7-theme-color-rgb":t.join(", "),"--f7-theme-color-shade":l,"--f7-theme-color-tint":c}}},j=Y,F=n(10),H=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o()(this,e);var n=this;n.eventsParents=t,n.eventsListeners={}}return b()(e,[{key:"on",value:function(e,t,n){var r=this;if("function"!=typeof t)return r;var i=n?"unshift":"push";return e.split(" ").forEach((function(e){r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)})),r}},{key:"once",value:function(e,t,n){var r=this;if("function"!=typeof t)return r;function i(){r.off(e,i),i.f7proxy&&delete i.f7proxy;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];t.apply(r,a)}return i.f7proxy=t,r.on(e,i,n)}},{key:"off",value:function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((function(r,i){(r===t||r.f7proxy&&r.f7proxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n}},{key:"emit",value:function(){var e,t,n,r,i=this;if(!i.eventsListeners)return i;for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];"string"==typeof o[0]||Array.isArray(o[0])?(e=o[0],t=o.slice(1,o.length),n=i,r=i.eventsParents):(e=o[0].events,t=o[0].data,n=o[0].context||i,r=o[0].local?[]:o[0].parents||i.eventsParents);var l=Array.isArray(e)?e:e.split(" "),c=l.map((function(e){return e.replace("local::","")})),u=l.filter((function(e){return e.indexOf("local::")<0}));return c.forEach((function(e){if(i.eventsListeners&&i.eventsListeners[e]){var r=[];i.eventsListeners[e].forEach((function(e){r.push(e)})),r.forEach((function(e){e.apply(n,t)}))}})),r&&r.length>0&&r.forEach((function(e){e.emit.apply(e,[u].concat(L()(t)))})),i}}]),e}();function U(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var z=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(U()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];o()(this,r),e=n.call(this,i);var a=k()(e);return a.params=t,a.params&&a.params.on&&Object.keys(a.params.on).forEach((function(e){a.on(e,a.params.on[e])})),e}return b()(r,[{key:"useModuleParams",value:function(e,t){if(e.params){var n={};Object.keys(e.params).forEach((function(e){void 0!==t[e]&&(n[e]=j.extend({},t[e]))})),j.extend(t,e.params),Object.keys(n).forEach((function(e){j.extend(t[e],n[e])}))}}},{key:"useModulesParams",value:function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var r=t.modules[n];r.params&&j.extend(e,r.params)}))}},{key:"useModule",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;if(n.modules){var r="string"==typeof e?n.modules[e]:e;r&&(r.instance&&Object.keys(r.instance).forEach((function(e){var t=r.instance[e];n[e]="function"==typeof t?t.bind(n):t})),r.on&&n.on&&Object.keys(r.on).forEach((function(e){n.on(e,r.on[e])})),r.vnode&&(n.vnodeHooks||(n.vnodeHooks={}),Object.keys(r.vnode).forEach((function(e){Object.keys(r.vnode[e]).forEach((function(t){var i=r.vnode[e][t];n.vnodeHooks[t]||(n.vnodeHooks[t]={}),n.vnodeHooks[t][e]||(n.vnodeHooks[t][e]=[]),n.vnodeHooks[t][e].push(i.bind(n))}))}))),r.create&&r.create.bind(n)(t))}}},{key:"useModules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var r=e[n]||{};t.useModule(n,r)}))}}],[{key:"installModule",value:function(e){var t=this;t.prototype.modules||(t.prototype.modules={});var n=e.name||"".concat(Object.keys(t.prototype.modules).length,"_").concat(j.now());if(t.prototype.modules[n]=e,e.proto&&Object.keys(e.proto).forEach((function(n){t.prototype[n]=e.proto[n]})),e.static&&Object.keys(e.static).forEach((function(n){t[n]=e.static[n]})),e.install){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];e.install.apply(t,i)}return t}},{key:"use",value:function(e){var t=this;if(Array.isArray(e))return e.forEach((function(e){return t.installModule(e)})),t;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.installModule.apply(t,[e].concat(r))}},{key:"components",set:function(e){this.use&&this.use(e)}}]),r}(H),V=n(49),q=n.n(V),W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultSelector,n=e.constructor,r=e.domProp,i=e.app,a=e.addMethods,o={create:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return i?q()(n,[i].concat(t)):q()(n,t)},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t;if(e instanceof n)return e;var i=g(e);return 0!==i.length?i[0][r]:void 0},destroy:function(e){var t=o.get(e);if(t&&t.destroy)return t.destroy()}};return a&&Array.isArray(a)&&a.forEach((function(e){o[e]=function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,r=o.get(n),i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];if(r&&r[e])return r[e].apply(r,a)}})),o},G=n(11),K=n.n(G);function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){K()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultSelector,n=e.constructor,r=e.app,i=j.extend(W({defaultSelector:t,constructor:n,app:r,domProp:"f7Modal"}),{open:function(e,t,i){var a=g(e);if(a.length>1&&i){var o=g(i).parents(".page");o.length&&a.each((function(e,t){var n=g(t);n.parents(o)[0]===o[0]&&(a=n)}))}if(a.length>1&&(a=a.eq(a.length-1)),a.length){var s=a[0].f7Modal;if(!s){var l=a.dataset();s=new n(r,X({el:a},l))}return s.open(t)}},close:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,i=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,o=g(e);if(o.length){if(o.length>1){var s;if(a){var l=g(a);l.length&&(s=l.parents(o))}o=s&&s.length>0?s:o.eq(o.length-1)}var c=o[0].f7Modal;if(!c){var u=o.dataset();c=new n(r,X({el:o},u))}return c.close(i)}}});return i},Z=[];var ee=function(e){var t=this;return new Promise((function(n,r){var i,a,o,l=t.instance;if(e){if("string"==typeof e){var c=e.match(/([a-z0-9-]*)/i);if(e.indexOf(".")<0&&c&&c[0].length===e.length){if(!l||l&&!l.params.lazyModulesPath)return void r(new Error('Framework7: "lazyModulesPath" app parameter must be specified to fetch module by name'));i="".concat(l.params.lazyModulesPath,"/").concat(e,".js")}else i=e}else"function"==typeof e?o=e:a=e;if(o){var u=o(t,!1);if(!u)return void r(new Error("Framework7: Can't find Framework7 component in specified component function"));if(t.prototype.modules&&t.prototype.modules[u.name])return void n();p(u),n()}if(a){var d=a;if(!d)return void r(new Error("Framework7: Can't find Framework7 component in specified component"));if(t.prototype.modules&&t.prototype.modules[d.name])return void n();p(d),n()}if(i){if(Z.indexOf(i)>=0)return void n();Z.push(i);var h=new Promise((function(e,n){t.request.get(i,(function(r){var a=j.id(),o="f7_component_loader_callback_".concat(a),l=s.a.createElement("script");l.innerHTML="window.".concat(o," = function (Framework7, Framework7AutoInstallComponent) {return ").concat(r.trim(),"}"),g("head").append(l);var c=s.b[o];delete s.b[o],g(l).remove();var u=c(t,!1);u?(t.prototype.modules&&t.prototype.modules[u.name]||p(u),e()):n(new Error("Framework7: Can't find Framework7 component in ".concat(i," file")))}),(function(e,t){n(e,t)}))})),f=new Promise((function(e){t.request.get(i.replace(".js",l.rtl?".rtl.css":".css"),(function(t){var n=s.a.createElement("style");n.innerHTML=t,g("head").append(n),e()}),(function(){e()}))}));Promise.all([h,f]).then((function(){n()})).catch((function(e){r(e)}))}}else r(new Error("Framework7: Lazy module must be specified"));function p(e){t.use(e),l&&(l.useModuleParams(e,l.params),l.useModule(e))}}))};function te(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var ne=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(te()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t;if(o()(this,r),t=n.call(this,e),r.instance)throw new Error("Framework7 is already initialized and can't be initialized more than once");var i=j.extend({},e),a=k()(t);r.instance=a;var l={version:"1.0.0",id:"io.framework7.testapp",root:"body",theme:"auto",language:s.b.navigator.language,routes:[],name:"Framework7",lazyModulesPath:null,initOnDeviceReady:!0,init:!0,autoDarkTheme:!1,iosTranslucentBars:!0,iosTranslucentModals:!0,component:void 0,componentUrl:void 0};a.useModulesParams(l),a.params=j.extend(l,e);var c=g(a.params.root);j.extend(a,{id:a.params.id,name:a.params.name,version:a.params.version,routes:a.params.routes,language:a.params.language,root:c,rtl:"rtl"===c.css("direction"),theme:"auto"===a.params.theme?F.a.ios?"ios":F.a.desktop&&F.a.electron?"aurora":"md":a.params.theme,passedParams:i,online:s.b.navigator.onLine}),a.root&&a.root[0]&&(a.root[0].f7=a),a.useModules(),a.initData();var u="(prefers-color-scheme: dark)",d="(prefers-color-scheme: light)";return a.mq={},s.b.matchMedia&&(a.mq.dark=s.b.matchMedia(u),a.mq.light=s.b.matchMedia(d)),a.colorSchemeListener=function(e){var t=e.matches,n=e.media;if(t){var r=s.a.querySelector("html");n===u?(r.classList.add("theme-dark"),a.darkTheme=!0,a.emit("darkThemeChange",!0)):n===d&&(r.classList.remove("theme-dark"),a.darkTheme=!1,a.emit("darkThemeChange",!1))}},a.params.init&&(F.a.cordova&&a.params.initOnDeviceReady?g(s.a).on("deviceready",(function(){a.init()})):a.init()),C()(t,a)}return b()(r,[{key:"initData",value:function(){var e=this;e.data={},e.params.data&&"function"==typeof e.params.data?j.extend(e.data,e.params.data.bind(e)()):e.params.data&&j.extend(e.data,e.params.data),e.methods={},e.params.methods&&Object.keys(e.params.methods).forEach((function(t){"function"==typeof e.params.methods[t]?e.methods[t]=e.params.methods[t].bind(e):e.methods[t]=e.params.methods[t]}))}},{key:"enableAutoDarkTheme",value:function(){if(s.b.matchMedia){var e=this,t=s.a.querySelector("html");e.mq.dark&&e.mq.light&&(e.mq.dark.addListener(e.colorSchemeListener),e.mq.light.addListener(e.colorSchemeListener)),e.mq.dark&&e.mq.dark.matches?(t.classList.add("theme-dark"),e.darkTheme=!0,e.emit("darkThemeChange",!0)):e.mq.light&&e.mq.light.matches&&(t.classList.remove("theme-dark"),e.darkTheme=!1,e.emit("darkThemeChange",!1))}}},{key:"disableAutoDarkTheme",value:function(){if(s.b.matchMedia){this.mq.dark&&this.mq.dark.removeListener(this.colorSchemeListener),this.mq.light&&this.mq.light.removeListener(this.colorSchemeListener)}}},{key:"initAppComponent",value:function(e){var t=this;t.router.componentLoader(t.params.component,t.params.componentUrl,{componentOptions:{el:t.root[0],root:!0}},(function(n){t.root=g(n),t.root[0].f7=t,t.rootComponent=n.f7Component,e&&e()}),(function(){}))}},{key:"_init",value:function(){var e=this;return e.initialized||(e.root.addClass("framework7-initializing"),e.rtl&&g("html").attr("dir","rtl"),e.params.autoDarkTheme&&e.enableAutoDarkTheme(),s.b.addEventListener("offline",(function(){e.online=!1,e.emit("offline"),e.emit("connection",!1)})),s.b.addEventListener("online",(function(){e.online=!0,e.emit("online"),e.emit("connection",!0)})),e.root.addClass("framework7-root"),g("html").removeClass("ios md aurora").addClass(e.theme),e.params.iosTranslucentBars&&"ios"===e.theme&&F.a.ios&&g("html").addClass("ios-translucent-bars"),e.params.iosTranslucentModals&&"ios"===e.theme&&F.a.ios&&g("html").addClass("ios-translucent-modals"),j.nextFrame((function(){e.root.removeClass("framework7-initializing")})),e.initialized=!0,e.emit("init")),e}},{key:"init",value:function(){var e=this;e.params.component||e.params.componentUrl?e.initAppComponent((function(){e._init()})):e._init()}},{key:"loadModule",value:function(){return r.loadModule.apply(r,arguments)}},{key:"loadModules",value:function(){return r.loadModules.apply(r,arguments)}},{key:"getVnodeHooks",value:function(e,t){return this.vnodeHooks&&this.vnodeHooks[e]&&this.vnodeHooks[e][t]||[]}},{key:"$",get:function(){return g}},{key:"t7",get:function(){return i.a}}],[{key:"Dom7",get:function(){return g}},{key:"$",get:function(){return g}},{key:"Template7",get:function(){return i.a}},{key:"Class",get:function(){return z}},{key:"Events",get:function(){return H}}]),r}(z);ne.ModalMethods=Q,ne.ConstructorMethods=W,ne.loadModule=ee,ne.loadModules=function(e){return Promise.all(e.map((function(e){return ne.loadModule(e)})))};var re=ne,ie={},ae=0;function oe(e){var t=j.extend({},ie);"beforeCreate beforeOpen beforeSend error complete success statusCode".split(" ").forEach((function(e){delete t[e]}));var n=j.extend({url:s.b.location.toString(),method:"GET",data:!1,async:!0,cache:!0,user:"",password:"",headers:{},xhrFields:{},statusCode:{},processData:!0,dataType:"text",contentType:"application/x-www-form-urlencoded",timeout:0},t),r=j.extend({},n,e);function i(e){for(var t,n,i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return ie[e]&&(t=ie[e].apply(ie,a)),r[e]&&(n=r[e].apply(r,a)),"boolean"!=typeof t&&(t=!0),"boolean"!=typeof n&&(n=!0),t&&n}if(!1!==i("beforeCreate",r)){r.type&&(r.method=r.type);var a,o=r.url.indexOf("?")>=0?"&":"?",l=r.method.toUpperCase();if(("GET"===l||"HEAD"===l||"OPTIONS"===l||"DELETE"===l)&&r.data)(a="string"==typeof r.data?r.data.indexOf("?")>=0?r.data.split("?")[1]:r.data:j.serializeObject(r.data)).length&&(r.url+=o+a,"?"===o&&(o="&"));if("json"===r.dataType&&r.url.indexOf("callback=")>=0){var c,u="f7jsonp_".concat(Date.now()+(ae+=1)),d=r.url.split("callback="),h="".concat(d[0],"callback=").concat(u);if(d[1].indexOf("&")>=0){var f=d[1].split("&").filter((function(e){return e.indexOf("=")>0})).join("&");f.length>0&&(h+="&".concat(f))}var p=s.a.createElement("script");return p.type="text/javascript",p.onerror=function(){clearTimeout(c),i("error",null,"scripterror","scripterror"),i("complete",null,"scripterror")},p.src=h,s.b[u]=function(e){clearTimeout(c),i("success",e),p.parentNode.removeChild(p),p=null,delete s.b[u]},s.a.querySelector("head").appendChild(p),void(r.timeout>0&&(c=setTimeout((function(){p.parentNode.removeChild(p),p=null,i("error",null,"timeout","timeout")}),r.timeout)))}"GET"!==l&&"HEAD"!==l&&"OPTIONS"!==l&&"DELETE"!==l||!1===r.cache&&(r.url+="".concat(o,"_nocache").concat(Date.now()));var m=new XMLHttpRequest;if(m.requestUrl=r.url,m.requestParameters=r,!1===i("beforeOpen",m,r))return m;m.open(l,r.url,r.async,r.user,r.password);var v=null;if(("POST"===l||"PUT"===l||"PATCH"===l)&&r.data)if(r.processData)if([ArrayBuffer,Blob,Document,FormData].indexOf(r.data.constructor)>=0)v=r.data;else{var g="---------------------------".concat(Date.now().toString(16));"multipart/form-data"===r.contentType?m.setRequestHeader("Content-Type","multipart/form-data; boundary=".concat(g)):m.setRequestHeader("Content-Type",r.contentType),v="";var y=j.serializeObject(r.data);if("multipart/form-data"===r.contentType){y=y.split("&");for(var b=[],_=0;_<y.length;_+=1)b.push('Content-Disposition: form-data; name="'.concat(y[_].split("=")[0],'"\r\n\r\n').concat(y[_].split("=")[1],"\r\n"));v="--".concat(g,"\r\n").concat(b.join("--".concat(g,"\r\n")),"--").concat(g,"--\r\n")}else v="application/json"===r.contentType?JSON.stringify(r.data):y}else v=r.data,m.setRequestHeader("Content-Type",r.contentType);return"json"!==r.dataType||r.headers&&r.headers.Accept||m.setRequestHeader("Accept","application/json"),r.headers&&Object.keys(r.headers).forEach((function(e){void 0!==r.headers[e]&&m.setRequestHeader(e,r.headers[e])})),void 0===r.crossDomain&&(r.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(r.url)&&RegExp.$2!==s.b.location.host),r.crossDomain||m.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.xhrFields&&j.extend(m,r.xhrFields),m.onload=function(){var e;if(m.status>=200&&m.status<300||0===m.status)if("json"===r.dataType){var t;try{e=JSON.parse(m.responseText)}catch(e){t=!0}t?i("error",m,"parseerror","parseerror"):i("success",e,m.status,m)}else i("success",e="text"===m.responseType||""===m.responseType?m.responseText:m.response,m.status,m);else i("error",m,m.status,m.statusText);r.statusCode&&(ie.statusCode&&ie.statusCode[m.status]&&ie.statusCode[m.status](m),r.statusCode[m.status]&&r.statusCode[m.status](m)),i("complete",m,m.status)},m.onerror=function(){i("error",m,m.status,m.status),i("complete",m,"error")},r.timeout>0&&(m.timeout=r.timeout,m.ontimeout=function(){i("error",m,"timeout","timeout"),i("complete",m,"timeout")}),!1===i("beforeSend",m,r)?m:(m.send(v),m)}}function se(e){for(var t=[],n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];"function"==typeof l[1]?(n=l[0],i=l[1],a=l[2],o=l[3]):(n=l[0],r=l[1],i=l[2],a=l[3],o=l[4]),[i,a].forEach((function(e){"string"==typeof e&&(o=e,e===i?i=void 0:a=void 0)}));var u={url:n,method:"post"===e||"postJSON"===e?"POST":"GET",data:r,success:i,error:a,dataType:o=o||("json"===e||"postJSON"===e?"json":void 0)};return"postJSON"===e&&j.extend(u,{contentType:"application/json",processData:!1,crossDomain:!0,data:"string"==typeof r?r:JSON.stringify(r)}),oe(u)}function le(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n[0],a=n[1],o=n[2];return new Promise((function(t,n){se(e,i,a,(function(e,n,r){t({data:e,status:n,xhr:r})}),(function(e,t,r){n({xhr:e,status:t,message:r})}),o)}))}Object.assign(oe,{get:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return se.apply(void 0,["get"].concat(t))},post:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return se.apply(void 0,["post"].concat(t))},json:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return se.apply(void 0,["json"].concat(t))},getJSON:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return se.apply(void 0,["json"].concat(t))},postJSON:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return se.apply(void 0,["postJSON"].concat(t))}}),oe.promise=function(e){return new Promise((function(t,n){oe(Object.assign(e,{success:function(e,n,r){t({data:e,status:n,xhr:r})},error:function(e,t,r){n({xhr:e,status:t,message:r})}}))}))},Object.assign(oe.promise,{get:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return le.apply(void 0,["get"].concat(t))},post:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return le.apply(void 0,["post"].concat(t))},json:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return le.apply(void 0,["json"].concat(t))},getJSON:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return le.apply(void 0,["json"].concat(t))},postJSON:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return le.apply(void 0,["postJSON"].concat(t))}}),oe.setup=function(e){e.type&&!e.method&&j.extend(e,{method:e.type}),j.extend(ie,e)};var ce=oe,ue=n(15),de={name:"device",proto:{device:F.a},static:{device:F.a},on:{init:function(){var e=[],t=s.a.querySelector("html"),n=s.a.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]');t&&(F.a.standalone&&F.a.ios&&n&&"black-translucent"===n.content&&e.push("device-full-viewport"),e.push("device-pixel-ratio-".concat(Math.floor(F.a.pixelRatio))),F.a.os&&!F.a.desktop?e.push("device-".concat(F.a.os)):F.a.desktop&&(e.push("device-desktop"),F.a.os&&e.push("device-".concat(F.a.os))),(F.a.cordova||F.a.phonegap)&&e.push("device-cordova"),e.forEach((function(e){t.classList.add(e)})))}}},he={name:"support",proto:{support:ue.a},static:{support:ue.a}},fe={name:"utils",proto:{utils:j},static:{utils:j}},pe={name:"resize",instance:{getSize:function(){if(!this.root[0])return{width:0,height:0,left:0,top:0};var e=this.root.offset(),t=[this.root[0].offsetWidth,this.root[0].offsetHeight,e.left,e.top],n=t[0],r=t[1],i=t[2],a=t[3];return this.width=n,this.height=r,this.left=i,this.top=a,{width:n,height:r,left:i,top:a}}},on:{init:function(){var e=this;e.getSize(),s.b.addEventListener("resize",(function(){e.emit("resize")}),!1),s.b.addEventListener("orientationchange",(function(){e.emit("orientationchange")}))},orientationchange:function(){this.device.ipad&&(s.a.body.scrollLeft=0,setTimeout((function(){s.a.body.scrollLeft=0}),0))},resize:function(){this.getSize()}}},me={name:"request",proto:{request:ce},static:{request:ce}};var ve={name:"touch",params:{touch:{touchClicksDistanceThreshold:5,disableContextMenu:!1,tapHold:!1,tapHoldDelay:750,tapHoldPreventClicks:!0,activeState:!0,activeStateElements:"a, button, label, span, .actions-button, .stepper-button, .stepper-button-plus, .stepper-button-minus, .card-expandable, .menu-item, .link, .item-link, .accordion-item-toggle",activeStateOnMouseMove:!1,mdTouchRipple:!0,iosTouchRipple:!1,auroraTouchRipple:!1,touchRippleElements:".ripple, .link, .item-link, .list-button, .links-list a, .button, button, .input-clear-button, .dialog-button, .tab-link, .item-radio, .item-checkbox, .actions-button, .searchbar-disable-button, .fab a, .checkbox, .radio, .data-table .sortable-cell:not(.input-cell), .notification-close-button, .stepper-button, .stepper-button-minus, .stepper-button-plus, .menu-item-content, .list.accordion-list .accordion-item-toggle"}},instance:{touchEvents:{start:ue.a.touch?"touchstart":ue.a.pointerEvents?"pointerdown":"mousedown",move:ue.a.touch?"touchmove":ue.a.pointerEvents?"pointermove":"mousemove",end:ue.a.touch?"touchend":ue.a.pointerEvents?"pointerup":"mouseup"}},on:{init:function(){var e,t,n,r,i,a,o,l,c,u,d,h,f=this,p=f.params.touch,m=p["".concat(f.theme,"TouchRipple")];function v(e){var t,n=g(e),r=n.parents(p.activeStateElements);if(n.closest(".no-active-state").length)return null;if(n.is(p.activeStateElements)&&(t=n),r.length>0&&(t=t?t.add(r):r),t&&t.length>1){for(var i,a=[],o=0;o<t.length;o+=1)i||(a.push(t[o]),(t.eq(o).hasClass("prevent-active-state-propagation")||t.eq(o).hasClass("no-active-state-propagation"))&&(i=!0));t=g(a)}return t||n}function y(e){return e.parents(".page-content").length>0}function b(){l&&l.addClass("active-state")}function _(){l&&(l.removeClass("active-state"),l=null)}function w(e,t,n){e&&(u=f.touchRipple.create(e,t,n))}function k(){u&&(u.remove(),u=void 0,d=void 0)}function E(n){(d=function(e){var t=p.touchRippleElements,n=g(e);if(n.is(t))return!n.hasClass("no-ripple")&&n;if(n.parents(t).length>0){var r=n.parents(t).eq(0);return!r.hasClass("no-ripple")&&r}return!1}(n))&&0!==d.length?y(d)?(clearTimeout(h),h=setTimeout((function(){k(),w(d,e,t)}),80)):(k(),w(d,e,t)):d=void 0}function S(){clearTimeout(h),k()}function T(){u||!d||r?k():(clearTimeout(h),w(d,e,t),setTimeout(k,0))}function C(){g(".active-state").removeClass("active-state"),m&&T()}function M(e,t){f.emit({events:e,data:[t]})}function x(e){M("touchstart touchstart:active",e)}function $(e){M("touchmove touchmove:active",e)}function L(e){M("touchend touchend:active",e)}function P(e){M("touchstart:passive",e)}function O(e){M("touchmove:passive",e)}function I(e){M("touchend:passive",e)}function A(e){M("".concat(e.type," ").concat(e.type,":active"),e)}function D(e){M("".concat(e.type,":passive"),e)}F.a.ios&&F.a.webView&&s.b.addEventListener("touchstart",(function(){}));var N=!!ue.a.passiveListener&&{passive:!0},R=!ue.a.passiveListener||{passive:!0,capture:!0},B=!!ue.a.passiveListener&&{passive:!1},Y=!ue.a.passiveListener||{passive:!1,capture:!0};s.a.addEventListener("click",(function(e){M("click",e)}),!0),ue.a.passiveListener?(s.a.addEventListener(f.touchEvents.start,x,Y),s.a.addEventListener(f.touchEvents.move,$,B),s.a.addEventListener(f.touchEvents.end,L,B),s.a.addEventListener(f.touchEvents.start,P,R),s.a.addEventListener(f.touchEvents.move,O,N),s.a.addEventListener(f.touchEvents.end,I,N),ue.a.touch&&ue.a.gestures&&(s.a.addEventListener("gesturestart",A,B),s.a.addEventListener("gesturechange",A,B),s.a.addEventListener("gestureend",A,B),s.a.addEventListener("gesturestart",D,N),s.a.addEventListener("gesturechange",D,N),s.a.addEventListener("gestureend",D,N))):(s.a.addEventListener(f.touchEvents.start,(function(e){x(e),P(e)}),!0),s.a.addEventListener(f.touchEvents.move,(function(e){$(e),O(e)}),!1),s.a.addEventListener(f.touchEvents.end,(function(e){L(e),I(e)}),!1),ue.a.touch&&ue.a.gestures&&(s.a.addEventListener("gesturestart",(function(e){A(e),D(e)}),!1),s.a.addEventListener("gesturechange",(function(e){A(e),D(e)}),!1),s.a.addEventListener("gestureend",(function(e){A(e),D(e)}),!1))),ue.a.touch?(f.on("click",(function(e){var t=e&&e.detail&&"f7Overswipe"===e.detail,r=o;return n&&e.target!==n&&(r=!t),p.tapHold&&p.tapHoldPreventClicks&&i&&(r=!0),r&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault()),p.tapHold&&(a=setTimeout((function(){i=!1}),F.a.ios||F.a.androidChrome?100:400)),o=!1,n=null,!r})),f.on("touchstart",(function(s){return r=!1,i=!1,o=!1,s.targetTouches.length>1?(l&&_(),!0):(s.touches.length>1&&l&&_(),p.tapHold&&(a&&clearTimeout(a),a=setTimeout((function(){s&&s.touches&&s.touches.length>1||(i=!0,s.preventDefault(),o=!0,g(s.target).trigger("taphold",s),f.emit("taphold",s))}),p.tapHoldDelay)),n=s.target,e=s.targetTouches[0].pageX,t=s.targetTouches[0].pageY,p.activeState&&((l=v(n))&&!y(l)?b():l&&(c=setTimeout(b,80))),m&&E(n),!0)})),f.on("touchmove",(function(n){var i,s;if("touchmove"===n.type&&(i=n.targetTouches[0],s=p.touchClicksDistanceThreshold),s&&i){var l=i.pageX,u=i.pageY;(Math.abs(l-e)>s||Math.abs(u-t)>s)&&(r=!0)}else r=!0;r&&(o=!0,p.tapHold&&clearTimeout(a),p.activeState&&(clearTimeout(c),_()),m&&S())})),f.on("touchend",(function(e){return clearTimeout(c),clearTimeout(a),s.a.activeElement===e.target?(p.activeState&&_(),m&&T(),!0):(p.activeState&&(b(),setTimeout(_,0)),m&&T(),!(p.tapHoldPreventClicks&&i||o)||(e.cancelable&&e.preventDefault(),o=!0,!1))})),s.a.addEventListener("touchcancel",(function(){n=null,clearTimeout(c),clearTimeout(a),p.activeState&&_(),m&&T()}),{passive:!0})):p.activeState&&(f.on("touchstart",(function(n){var r=v(n.target);r&&(r.addClass("active-state"),"which"in n&&3===n.which&&setTimeout((function(){g(".active-state").removeClass("active-state")}),0)),m&&(e=n.pageX,t=n.pageY,E(n.target,n.pageX,n.pageY))})),f.on("touchmove",(function(){p.activeStateOnMouseMove||g(".active-state").removeClass("active-state"),m&&S()})),f.on("touchend",C),s.a.addEventListener("pointercancel",C,{passive:!0})),s.a.addEventListener("contextmenu",(function(e){p.disableContextMenu&&(F.a.ios||F.a.android||F.a.cordova)&&e.preventDefault(),m&&(l&&_(),T())}))}}};function ge(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var i=1,a="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '+s);for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0===--i){s++;break}}else if("("===e[s]&&(i++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at "+s);a+=e[s++]}else a+=e[s++]+e[s++];if(i)throw new TypeError("Unbalanced pattern at "+n);if(!a)throw new TypeError("Missing pattern at "+n);t.push({type:"PATTERN",index:n,value:a}),n=s}else{for(var o="",s=n+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;o+=e[s++]}if(!o)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:o}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,i=void 0===r?"./":r,a="[^"+be(t.delimiter||"/#?")+"]+?",o=[],s=0,l=0,c="",u=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var r=n[l],i=r.type,a=r.index;throw new TypeError("Unexpected "+i+" at "+a+", expected "+e)},h=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var f=u("CHAR"),p=u("NAME"),m=u("PATTERN");if(p||m){var v=f||"";-1===i.indexOf(v)&&(c+=v,v=""),c&&(o.push(c),c=""),o.push({name:p||s++,prefix:v,suffix:"",pattern:m||a,modifier:u("MODIFIER")||""})}else{var g=f||u("ESCAPED_CHAR");if(g)c+=g;else if(c&&(o.push(c),c=""),u("OPEN")){v=h();var y=u("NAME")||"",b=u("PATTERN")||"",_=h();d("CLOSE"),o.push({name:y||(b?s++:""),pattern:y&&!b?a:b,prefix:v,suffix:_,modifier:u("MODIFIER")||""})}else d("END")}}return o}function ye(e,t){return function(e,t){void 0===t&&(t={});var n=_e(t),r=t.encode,i=void 0===r?function(e){return e}:r,a=t.validate,o=void 0===a||a,s=e.map((function(e){if("object"==typeof e)return new RegExp("^(?:"+e.pattern+")$",n)}));return function(t){for(var n="",r=0;r<e.length;r++){var a=e[r];if("string"!=typeof a){var l=t?t[a.name]:void 0,c="?"===a.modifier||"*"===a.modifier,u="*"===a.modifier||"+"===a.modifier;if(Array.isArray(l)){if(!u)throw new TypeError('Expected "'+a.name+'" to not repeat, but got an array');if(0===l.length){if(c)continue;throw new TypeError('Expected "'+a.name+'" to not be empty')}for(var d=0;d<l.length;d++){var h=i(l[d],a);if(o&&!s[r].test(h))throw new TypeError('Expected all "'+a.name+'" to match "'+a.pattern+'", but got "'+h+'"');n+=a.prefix+h+a.suffix}}else if("string"!=typeof l&&"number"!=typeof l){if(!c){var f=u?"an array":"a string";throw new TypeError('Expected "'+a.name+'" to be '+f)}}else{h=i(String(l),a);if(o&&!s[r].test(h))throw new TypeError('Expected "'+a.name+'" to match "'+a.pattern+'", but got "'+h+'"');n+=a.prefix+h+a.suffix}}else n+=a}return n}}(ge(e,t),t)}function be(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function _e(e){return e&&e.sensitive?"":"i"}function we(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,i=void 0!==r&&r,a=n.start,o=void 0===a||a,s=n.end,l=void 0===s||s,c=n.encode,u=void 0===c?function(e){return e}:c,d="["+be(n.endsWith||"")+"]|$",h="["+be(n.delimiter||"/#?")+"]",f=o?"^":"",p=0,m=e;p<m.length;p++){var v=m[p];if("string"==typeof v)f+=be(u(v));else{var g=be(u(v.prefix)),y=be(u(v.suffix));if(v.pattern)if(t&&t.push(v),g||y)if("+"===v.modifier||"*"===v.modifier){var b="*"===v.modifier?"?":"";f+="(?:"+g+"((?:"+v.pattern+")(?:"+y+g+"(?:"+v.pattern+"))*)"+y+")"+b}else f+="(?:"+g+"("+v.pattern+")"+y+")"+v.modifier;else f+="("+v.pattern+")"+v.modifier;else f+="(?:"+g+y+")"+v.modifier}}if(l)i||(f+=h+"?"),f+=n.endsWith?"(?="+d+")":"$";else{var _=e[e.length-1],w="string"==typeof _?h.indexOf(_[_.length-1])>-1:void 0===_;i||(f+="(?:"+h+"(?="+d+"))?"),w||(f+="(?="+h+"|"+d+")")}return new RegExp(f,_e(n))}(ge(e,n),t,n)}function ke(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return ke(e,t,n).source}));return new RegExp("(?:"+r.join("|")+")",_e(n))}(e,t,n):we(e,t,n)}var Ee={queue:[],clearQueue:function(){0!==Ee.queue.length&&Ee.queue.shift()()},routerQueue:[],clearRouterQueue:function(){if(0!==Ee.routerQueue.length){var e=Ee.routerQueue.pop(),t=e.router,n=e.stateUrl,r=e.action,i=t.params.animate;!1===t.params.pushStateAnimate&&(i=!1),"back"===r&&t.back({animate:i,pushState:!1}),"load"===r&&t.navigate(n,{animate:i,pushState:!1})}},handle:function(e){if(!Ee.blockPopstate){var t=e.state;Ee.previousState=Ee.state,Ee.state=t,Ee.allowChange=!0,Ee.clearQueue(),(t=Ee.state)||(t={}),this.views.forEach((function(e){var n=e.router,r=t[e.id];if(!r&&e.params.pushState&&(r={url:e.router.history[0]}),r){var i=r.url||void 0,a=n.params.animate;!1===n.params.pushStateAnimate&&(a=!1),i!==n.url&&(n.history.indexOf(i)>=0?n.allowPageChange?n.back({animate:a,pushState:!1}):Ee.routerQueue.push({action:"back",router:n}):n.allowPageChange?n.navigate(i,{animate:a,pushState:!1}):Ee.routerQueue.unshift({action:"load",stateUrl:i,router:n}))}}))}},initViewState:function(e,t){var n=j.extend({},Ee.state||{},K()({},e,t));Ee.state=n,s.b.history.replaceState(n,"")},push:function(e,t,n){if(Ee.allowChange){Ee.previousState=Ee.state;var r=j.extend({},Ee.previousState||{},K()({},e,t));Ee.state=r,s.b.history.pushState(r,"",n)}else Ee.queue.push((function(){Ee.push(e,t,n)}))},replace:function(e,t,n){if(Ee.allowChange){Ee.previousState=Ee.state;var r=j.extend({},Ee.previousState||{},K()({},e,t));Ee.state=r,s.b.history.replaceState(r,"",n)}else Ee.queue.push((function(){Ee.replace(e,t,n)}))},go:function(e){Ee.allowChange=!1,s.b.history.go(e)},back:function(){Ee.allowChange=!1,s.b.history.back()},allowChange:!0,previousState:{},state:s.b.history.state,blockPopstate:!0,init:function(e){g(s.b).on("load",(function(){setTimeout((function(){Ee.blockPopstate=!1}),0)})),s.a.readyState&&"complete"===s.a.readyState&&(Ee.blockPopstate=!1),g(s.b).on("popstate",Ee.handle.bind(e))}},Se=Ee;var Te=function(e){var t,n,r,i,a,o,s,l,c,u=e,d=u.$el,h=u.$navbarsEl,f=u.app,p=u.params,m=!1,v=!1,y={},b=[],_=[],w=!0,k=[],E=[],S=p["".concat(f.theme,"SwipeBackAnimateShadow")],T=p["".concat(f.theme,"SwipeBackAnimateOpacity")],C=p["".concat(f.theme,"SwipeBackActiveArea")],M=p["".concat(f.theme,"SwipeBackThreshold")],x=f.rtl?"right center":"left center",$=f.rtl?"calc(100% - var(--f7-navbar-large-title-padding-left) - var(--f7-safe-area-left)) center":"calc(var(--f7-navbar-large-title-padding-left) + var(--f7-safe-area-left)) center";function L(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.progress,n=e.reset,r=e.transition,i=["overflow","transform","transform-origin","opacity"],a=0;a<l.length;a+=1){var o=l[a];if(o&&o.el){!0===r&&o.el.classList.add("navbar-page-transitioning"),!1===r&&o.el.classList.remove("navbar-page-transitioning"),!o.className||o.classNameSet||n||(o.el.classList.add(o.className),o.classNameSet=!0),o.className&&n&&o.el.classList.remove(o.className);for(var s=0;s<i.length;s+=1){var c=i[s];o[c]&&(n?o.el.style[c]="":"function"==typeof o[c]?o.el.style[c]=o[c](t):o.el.style[c]=o[c])}}}}function P(e){var n=p["".concat(f.theme,"SwipeBack")];!w||!n||m||f.swipeout&&f.swipeout.el||!u.allowPageChange||g(e.target).closest(".range-slider, .calendar-months").length>0||g(e.target).closest(".page-master, .page-master-detail").length>0&&p.masterDetailBreakpoint>0&&f.width>=p.masterDetailBreakpoint||(v=!1,m=!0,t=void 0,y.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,y.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,i=j.now(),a=u.dynamicNavbar)}function O(e){if(m){var i="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,c="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY;if(void 0===t&&(t=!!(t||Math.abs(c-y.y)>Math.abs(i-y.x))||i<y.x&&!f.rtl||i>y.x&&f.rtl),t||e.f7PreventSwipeBack||f.preventSwipeBack)m=!1;else{if(!v){var w=!1,P=g(e.target),O=P.closest(".swipeout");O.length>0&&(!f.rtl&&O.find(".swipeout-actions-left").length>0&&(w=!0),f.rtl&&O.find(".swipeout-actions-right").length>0&&(w=!0)),((b=P.closest(".page")).hasClass("no-swipeback")||P.closest(".no-swipeback, .card-opened").length>0)&&(w=!0),(_=d.find(".page-previous:not(.stacked)")).length>1&&(_=_.eq(_.length-1));y.x,d.offset().left;if(n=d.width(),(f.rtl?y.x<d.offset().left-d[0].scrollLeft+(n-C):y.x-d.offset().left>C)&&(w=!0),0!==_.length&&0!==b.length||(w=!0),w)return void(m=!1);S&&0===(o=b.find(".page-shadow-effect")).length&&(o=g('<div class="page-shadow-effect"></div>'),b.append(o)),T&&0===(s=_.find(".page-opacity-effect")).length&&(s=g('<div class="page-opacity-effect"></div>'),_.append(s)),a&&(k=h.find(".navbar-current:not(.stacked)"),(E=h.find(".navbar-previous:not(.stacked)")).length>1&&(E=E.eq(E.length-1)),l=function(){var e,t,n=[],r=f.rtl?-1:1,i=k.hasClass("navbar-transparent")&&!k.hasClass("navbar-large")&&!k.hasClass("navbar-transparent-visible"),a=k.hasClass("navbar-large"),o=k.hasClass("navbar-large-collapsed"),s=k.hasClass("navbar-large-transparent")||k.hasClass("navbar-large")&&k.hasClass("navbar-transparent"),l=E.hasClass("navbar-transparent")&&!E.hasClass("navbar-large")&&!E.hasClass("navbar-transparent-visible"),c=E.hasClass("navbar-large"),u=E.hasClass("navbar-large-collapsed"),d=E.hasClass("navbar-large-transparent")||E.hasClass("navbar-large")&&E.hasClass("navbar-transparent"),h=a&&!o,m=c&&!u,v=k.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg"),y=E.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg");return p.iosAnimateNavbarBackIcon&&(e=k.hasClass("sliding")||k.find(".navbar-inner.sliding").length?k.find(".left").find(".back .icon + span").eq(0):k.find(".left.sliding").find(".back .icon + span").eq(0),t=E.hasClass("sliding")||E.find(".navbar-inner.sliding").length?E.find(".left").find(".back .icon + span").eq(0):E.find(".left.sliding").find(".back .icon + span").eq(0),e.length&&y.each((function(t,n){g(n).hasClass("title")&&(n.f7NavbarLeftOffset+=e.prev(".icon")[0].offsetWidth)}))),v.each((function(t,l){var c=g(l),u=c.hasClass("subnavbar"),d=c.hasClass("left"),f=c.hasClass("title"),v=c.hasClass("navbar-bg");if((!f&&!v||!i)&&(h||!c.hasClass(".title-large"))){var y={el:l};if(h){if(f)return;if(c.hasClass("title-large"))return n.indexOf(y)<0&&n.push(y),y.overflow="visible",void c.find(".title-large-text").each((function(e,t){n.push({el:t,transform:function(e){return"translateX(".concat(100*e*r,"%)")}})}))}if(m&&(h||c.hasClass("title-large")&&(n.indexOf(y)<0&&n.push(y),y.opacity=0),d))return n.indexOf(y)<0&&n.push(y),y.opacity=function(e){return 1-Math.pow(e,.33)},void c.find(".back span").each((function(e,t){n.push({el:t,"transform-origin":x,transform:function(e){return"translateX(calc(".concat(e," * (var(--f7-navbarTitleLargeOffset) - var(--f7-navbarLeftTextOffset)))) translateY(calc(").concat(e," * (var(--f7-navbar-large-title-height) - var(--f7-navbar-large-title-padding-vertical) / 2))) scale(").concat(1+1*e,")")}})}));if(v)return n.indexOf(y)<0&&n.push(y),h||m||(o?(s&&(y.className="ios-swipeback-navbar-bg-large"),y.transform=function(e){return"translateX(".concat(100*e*r,"%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))")}):y.transform=function(e){return"translateX(".concat(100*e*r,"%)")}),!h&&m&&(y.className="ios-swipeback-navbar-bg-large",y.transform=function(e){return"translateX(".concat(100*e*r,"%) translateY(calc(-1 * ").concat(1-e," * var(--f7-navbar-large-title-height)))")}),h&&m&&(y.transform=function(e){return"translateX(".concat(100*e*r,"%)")}),void(h&&!m&&(y.transform=function(e){return"translateX(".concat(100*e*r,"%) translateY(calc(-").concat(e," * var(--f7-navbar-large-title-height)))")}));if(!c.hasClass("title-large")){var b=c.hasClass("sliding")||c.parents(".navbar-inner.sliding").length;if(n.indexOf(y)<0&&n.push(y),(!u||u&&!b)&&(y.opacity=function(e){return 1-Math.pow(e,.33)}),b){var _=y;if(d&&e.length&&p.iosAnimateNavbarBackIcon){var w={el:e[0]};_=w,n.push(w)}_.transform=function(e){var t=e*_.el.f7NavbarRightOffset;return 1===F.a.pixelRatio&&(t=Math.round(t)),"translate3d(".concat(t,u&&a?"px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)":"px,0,0)")}}}}})),y.each((function(e,i){var a=g(i),o=a.hasClass("subnavbar"),s=a.hasClass("left"),f=a.hasClass("title"),v=a.hasClass("navbar-bg");if(!f&&!v||!l){var y={el:i};if(m){if(f)return;if(n.indexOf(y)<0&&n.push(y),a.hasClass("title-large"))return y.opacity=1,y.overflow="visible",void a.find(".title-large-text").each((function(e,t){n.push({el:t,"transform-origin":$,opacity:function(e){return Math.pow(e,3)},transform:function(e){return"translateX(calc(".concat(1-e," * (var(--f7-navbarLeftTextOffset) - var(--f7-navbarTitleLargeOffset)))) translateY(calc(").concat(e-1," * var(--f7-navbar-large-title-height) + ").concat(1-e," * var(--f7-navbar-large-title-padding-vertical))) scale(").concat(.5+.5*e,")")}})}))}if(v)return n.indexOf(y)<0&&n.push(y),h||m||(u?(d&&(y.className="ios-swipeback-navbar-bg-large"),y.transform=function(e){return"translateX(".concat((100*e-100)*r,"%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))")}):y.transform=function(e){return"translateX(".concat((100*e-100)*r,"%)")}),!h&&m&&(y.transform=function(e){return"translateX(".concat((100*e-100)*r,"%) translateY(calc(-1 * ").concat(1-e," * var(--f7-navbar-large-title-height)))")}),h&&!m&&(y.className="ios-swipeback-navbar-bg-large",y.transform=function(e){return"translateX(".concat((100*e-100)*r,"%) translateY(calc(-").concat(e," * var(--f7-navbar-large-title-height)))")}),void(h&&m&&(y.transform=function(e){return"translateX(".concat((100*e-100)*r,"%)")}));if(!a.hasClass("title-large")){var b=a.hasClass("sliding")||E.children(".navbar-inner.sliding").length;if(n.indexOf(y)<0&&n.push(y),(!o||o&&!b)&&(y.opacity=function(e){return Math.pow(e,3)}),b){var _=y;if(s&&t.length&&p.iosAnimateNavbarBackIcon){var w={el:t[0]};_=w,n.push(w)}_.transform=function(e){var t=_.el.f7NavbarLeftOffset*(1-e);return 1===F.a.pixelRatio&&(t=Math.round(t)),"translate3d(".concat(t,o&&c?"px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)":"px,0,0)")}}}}})),n}()),g(".sheet.modal-in").length>0&&f.sheet&&f.sheet.close(g(".sheet.modal-in"))}e.f7PreventSwipePanel=!0,v=!0,f.preventSwipePanelBySwipeBack=!0,e.preventDefault();var I=f.rtl?-1:1;(r=(i-y.x-M)*I)<0&&(r=0);var A=Math.min(Math.max(r/n,0),1),D={percentage:A,progress:A,currentPageEl:b[0],previousPageEl:_[0],currentNavbarEl:k[0],previousNavbarEl:E[0]};d.trigger("swipeback:move",D),u.emit("swipebackMove",D);var N=r*I,R=(r/5-n/5)*I;f.rtl?(N=Math.max(N,-n),R=Math.max(R,0)):(N=Math.min(N,n),R=Math.min(R,0)),1===F.a.pixelRatio&&(N=Math.round(N),R=Math.round(R)),u.swipeBackActive=!0,g([b[0],_[0]]).addClass("page-swipeback-active"),b.transform("translate3d(".concat(N,"px,0,0)")),S&&(o[0].style.opacity=1-1*A),"ios"===f.theme&&_.transform("translate3d(".concat(R,"px,0,0)")),T&&(s[0].style.opacity=1-1*A),a&&L({progress:A})}}}function I(){if(f.preventSwipePanelBySwipeBack=!1,!m||!v)return m=!1,void(v=!1);if(m=!1,v=!1,u.swipeBackActive=!1,g([b[0],_[0]]).removeClass("page-swipeback-active"),0===r)return g([b[0],_[0]]).transform(""),o&&o.length>0&&o.remove(),s&&s.length>0&&s.remove(),void(a&&L({reset:!0}));var e=j.now()-i,t=!1;(e<300&&r>10||e>=300&&r>n/2)&&(b.removeClass("page-current").addClass("page-next".concat("ios"!==f.theme?" page-next-on-right":"")),_.removeClass("page-previous").addClass("page-current").removeAttr("aria-hidden"),o&&(o[0].style.opacity=""),s&&(s[0].style.opacity=""),a&&(u.setNavbarPosition(k,"next"),u.setNavbarPosition(E,"current",!1)),t=!0),g([b[0],_[0]]).addClass("page-transitioning page-transitioning-swipeback").transform(""),a&&L({progress:t?1:0,transition:!0}),w=!1,u.allowPageChange=!1;var l={currentPageEl:b[0],previousPageEl:_[0],currentNavbarEl:k[0],previousNavbarEl:E[0]};t?(u.currentRoute=_[0].f7Page.route,u.currentPage=_[0],u.pageCallback("beforeOut",b,k,"current","next",{route:b[0].f7Page.route,swipeBack:!0}),u.pageCallback("beforeIn",_,E,"previous","current",{route:_[0].f7Page.route,swipeBack:!0},b[0]),d.trigger("swipeback:beforechange",l),u.emit("swipebackBeforeChange",l)):(d.trigger("swipeback:beforereset",l),u.emit("swipebackBeforeReset",l)),b.transitionEnd((function(){g([b[0],_[0]]).removeClass("page-transitioning page-transitioning-swipeback"),a&&L({reset:!0,transition:!1}),w=!0,u.allowPageChange=!0,t?(1===u.history.length&&u.history.unshift(u.url),u.history.pop(),u.saveHistory(),p.pushState&&Se.back(),u.pageCallback("afterOut",b,k,"current","next",{route:b[0].f7Page.route,swipeBack:!0}),u.pageCallback("afterIn",_,E,"previous","current",{route:_[0].f7Page.route,swipeBack:!0}),p.stackPages&&u.initialPages.indexOf(b[0])>=0?(b.addClass("stacked"),a&&k.addClass("stacked")):(u.pageCallback("beforeRemove",b,k,"next",{swipeBack:!0}),u.removePage(b),a&&u.removeNavbar(k)),d.trigger("swipeback:afterchange",l),u.emit("swipebackAfterChange",l),u.emit("routeChanged",u.currentRoute,u.previousRoute,u),p.preloadPreviousPage&&u.back(u.history[u.history.length-2],{preload:!0})):(d.trigger("swipeback:afterreset",l),u.emit("swipebackAfterReset",l)),o&&o.length>0&&o.remove(),s&&s.length>0&&s.remove()}))}c=!("touchstart"!==f.touchEvents.start||!ue.a.passiveListener)&&{passive:!0,capture:!1},d.on(f.touchEvents.start,P,c),f.on("touchmove:active",O),f.on("touchend:passive",I),u.on("routerDestroy",(function(){var e=!("touchstart"!==f.touchEvents.start||!ue.a.passiveListener)&&{passive:!0,capture:!1};d.off(f.touchEvents.start,P,e),f.off("touchmove:active",O),f.off("touchend:passive",I)}))},Ce=function(e,t,n){var r=this,i=t.route.redirect;if(n.initial&&r.params.pushState&&(n.replaceState=!0,n.history=!0),"function"==typeof i){r.allowPageChange=!1;var a=i.call(r,t,(function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.allowPageChange=!0,r[e](t,j.extend({},n,i))}),(function(){r.allowPageChange=!0}));return a&&"string"==typeof a?(r.allowPageChange=!0,r[e](a,n)):r}return r[e](i,n)};function Me(e,t,n,r,i,a,o){var s=[];Array.isArray(n)?s.push.apply(s,L()(n)):n&&"function"==typeof n&&s.push(n),t&&(Array.isArray(t)?s.push.apply(s,L()(t)):s.push(t)),function t(){0!==s.length?s.shift().call(e,r,i,(function(){t()}),(function(){o()})):a()}()}var xe=function(e,t,n,r){var i=this;function a(){e&&e.route&&(i.params.routesBeforeEnter||e.route.beforeEnter)?(i.allowPageChange=!1,Me(i,i.params.routesBeforeEnter,e.route.beforeEnter,e,t,(function(){i.allowPageChange=!0,n()}),(function(){r()}))):n()}t&&t.route&&(i.params.routesBeforeLeave||t.route.beforeLeave)?(i.allowPageChange=!1,Me(i,i.params.routesBeforeLeave,t.route.beforeLeave,e,t,(function(){i.allowPageChange=!0,a()}),(function(){r()}))):a()},$e=function(e,t){if(!e.view)throw new Error("Framework7: it is not allowed to use router methods on global app router. Use router methods only on related View, e.g. app.views.main.router.".concat(t,"(...)"))},Le=function(e,t,n,r){function i(e){e.then((function(e){n({component:e.default||e._default||e})})).catch((function(e){throw r(),new Error(e)}))}if(t instanceof Promise)i(t);else{var a=t.call(e);a instanceof Promise?i(a):n({component:a})}};function Pe(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Oe=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(Pe()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e,t){var i;o()(this,r),i=n.call(this,{},[void 0===t?e:t]);var a=k()(i);a.isAppRouter=void 0===t,a.isAppRouter?j.extend(!1,a,{app:e,params:e.params.view,routes:e.routes||[],cache:e.cache}):j.extend(!1,a,{app:e,view:t,viewId:t.id,params:t.params,routes:t.routes,$el:t.$el,el:t.el,$navbarsEl:t.$navbarsEl,navbarsEl:t.navbarsEl,history:t.history,scrollHistory:t.scrollHistory,cache:e.cache,dynamicNavbar:"ios"===e.theme&&t.params.iosDynamicNavbar,initialPages:[],initialNavbars:[]}),a.useModules(),a.tempDom=s.a.createElement("div"),a.allowPageChange=!0;var l={},c={};return Object.defineProperty(a,"currentRoute",{enumerable:!0,configurable:!0,set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c=j.extend({},l),(l=e)&&(a.url=l.url,a.emit("routeChange",e,c,a))},get:function(){return l}}),Object.defineProperty(a,"previousRoute",{enumerable:!0,configurable:!0,get:function(){return c},set:function(e){c=e}}),C()(i,a)}return b()(r,[{key:"animatableNavElements",value:function(e,t,n,r,i){var a,o,s=this.dynamicNavbar,l=this.params.iosAnimateNavbarBackIcon;function c(e,t){var n,r=e.hasClass("sliding")||t.hasClass("sliding"),i=e.hasClass("subnavbar"),a=!r||!i,o=e.find(".back .icon");return r&&l&&e.hasClass("left")&&o.length>0&&o.next("span").length&&(e=o.next("span"),n=!0),{$el:e,isIconLabel:n,leftOffset:e[0].f7NavbarLeftOffset,rightOffset:e[0].f7NavbarRightOffset,isSliding:r,isSubnavbar:i,needsOpacityTransition:a}}return s&&(a=[],o=[],e.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each((function(t,o){var s=g(o);s.hasClass("left")&&r&&"forward"===i||s.hasClass("title")&&n||a.push(c(s,e.children(".navbar-inner")))})),t.hasClass("navbar-master")&&this.params.masterDetailBreakpoint>0&&this.app.width>=this.params.masterDetailBreakpoint||t.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each((function(e,a){var s=g(a);s.hasClass("left")&&n&&!r&&"forward"===i||s.hasClass("left")&&n&&"backward"===i||s.hasClass("title")&&r||o.push(c(s,t.children(".navbar-inner")))})),[o,a].forEach((function(e){e.forEach((function(t){var n=t,r=t.isSliding,i=t.$el,s=e===o?a:o;r&&i.hasClass("title")&&s&&s.forEach((function(e){if(e.isIconLabel){var t=e.$el[0];n.leftOffset+=t&&t.offsetLeft||0}}))}))}))),{newNavEls:a,oldNavEls:o}}},{key:"animate",value:function(e,t,n,r,i,a,o){var s=this;if(s.params.animateCustom)s.params.animateCustom.apply(s,[e,t,n,r,i,o]);else{var l=s.dynamicNavbar,c="ios"===s.app.theme;if(a){var u="router-transition-custom router-transition-".concat(a,"-").concat(i);return("forward"===i?t:e).animationEnd((function(){s.$el.removeClass(u),l&&s.$navbarsEl.length&&(r&&s.$navbarsEl.prepend(r),n&&s.$navbarsEl.prepend(n)),o&&o()})),l&&(r&&t&&(s.setNavbarPosition(r,""),r.removeClass("navbar-next navbar-previous navbar-current"),t.prepend(r)),n&&e&&(s.setNavbarPosition(n,""),n.removeClass("navbar-next navbar-previous navbar-current"),e.prepend(n))),void s.$el.addClass(u)}var d,h,f,p,m,v,g="router-transition-".concat(i," router-transition");if(c&&l){s.params.masterDetailBreakpoint>0&&s.app.width>=s.params.masterDetailBreakpoint&&(n.hasClass("navbar-master")&&r.hasClass("navbar-master-detail")||n.hasClass("navbar-master-detail")&&r.hasClass("navbar-master"))||(m=n&&n.hasClass("navbar-large"),v=r&&r.hasClass("navbar-large"),f=m&&!n.hasClass("navbar-large-collapsed"),p=v&&!r.hasClass("navbar-large-collapsed"));var y=s.animatableNavElements(r,n,p,f,i);d=y.newNavEls,h=y.oldNavEls}("forward"===i?t:e).animationEnd((function(){s.dynamicNavbar&&(r&&(r.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),r.addClass("navbar-no-title-large-transition"),j.nextFrame((function(){r.removeClass("navbar-no-title-large-transition")}))),n&&n.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),r.hasClass("sliding")?r.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):r.find(".sliding").transform(""),n.hasClass("sliding")?n.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):n.find(".sliding").transform("")),s.$el.removeClass(g),o&&o()})),l?(b(0),j.nextFrame((function(){b(1),s.$el.addClass(g)}))):s.$el.addClass(g)}function b(e){c&&l&&(1===e&&(p&&(r.addClass("router-navbar-transition-to-large"),n.addClass("router-navbar-transition-to-large")),f&&(r.addClass("router-navbar-transition-from-large"),n.addClass("router-navbar-transition-from-large"))),d.forEach((function(t){var n=t.$el,r="forward"===i?t.rightOffset:t.leftOffset;t.isSliding&&(t.isSubnavbar&&v?n[0].style.setProperty("transform","translate3d(".concat(r*(1-e),"px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)"),"important"):n.transform("translate3d(".concat(r*(1-e),"px,0,0)")))})),h.forEach((function(t){var n=t.$el,r="forward"===i?t.leftOffset:t.rightOffset;t.isSliding&&(t.isSubnavbar&&m?n.transform("translate3d(".concat(r*e,"px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)")):n.transform("translate3d(".concat(r*e,"px,0,0)")))})))}}},{key:"removeModal",value:function(e){this.removeEl(e)}},{key:"removeTabContent",value:function(e){g(e).html("")}},{key:"removeNavbar",value:function(e){this.removeEl(e)}},{key:"removePage",value:function(e){var t=g(e),n=t&&t[0]&&t[0].f7Page;n&&n.route&&n.route.route&&n.route.route.keepAlive?t.remove():this.removeEl(e)}},{key:"removeEl",value:function(e){if(e){var t=g(e);0!==t.length&&(t.find(".tab").each((function(e,t){g(t).children().each((function(e,t){t.f7Component&&(g(t).trigger("tab:beforeremove"),t.f7Component.$destroy())}))})),t[0].f7Component&&t[0].f7Component.$destroy&&t[0].f7Component.$destroy(),this.params.removeElements&&(this.params.removeElementsWithTimeout?setTimeout((function(){t.remove()}),this.params.removeElementsTimeout):t.remove()))}}},{key:"getPageEl",value:function(e){if("string"==typeof e)this.tempDom.innerHTML=e;else{if(g(e).hasClass("page"))return e;this.tempDom.innerHTML="",g(this.tempDom).append(e)}return this.findElement(".page",this.tempDom)}},{key:"findElement",value:function(e,t,n){var r=this.view,i=this.app,a=g(t),o=e;n&&(o+=":not(.stacked)");var s=a.find(o).filter((function(e,t){return 0===g(t).parents(".popup, .dialog, .popover, .actions-modal, .sheet-modal, .login-screen, .page").length}));return s.length>1&&("string"==typeof r.selector&&(s=a.find("".concat(r.selector," ").concat(o))),s.length>1&&(s=a.find(".".concat(i.params.viewMainClass," ").concat(o)))),1===s.length?s:(n||(s=this.findElement(o,a,!0)),s&&1===s.length?s:s&&s.length>1?g(s[0]):void 0)}},{key:"flattenRoutes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.routes,t=this,n=[];return e.forEach((function(e){var r=!1;if("tabs"in e&&e.tabs){var i=e.tabs.map((function(t){var n=j.extend({},e,{path:"".concat(e.path,"/").concat(t.path).replace("///","/").replace("//","/"),parentPath:e.path,tab:t});return delete n.tabs,delete n.routes,n}));r=!0,n=n.concat(t.flattenRoutes(i))}if("detailRoutes"in e){var a=e.detailRoutes.map((function(t){var n=j.extend({},t);return n.masterRoute=e,n.masterRoutePath=e.path,n}));n=n.concat(e,t.flattenRoutes(a))}if("routes"in e){var o=e.routes.map((function(t){var n=j.extend({},t);return n.path="".concat(e.path,"/").concat(n.path).replace("///","/").replace("//","/"),n}));n=r?n.concat(t.flattenRoutes(o)):n.concat(e,t.flattenRoutes(o))}"routes"in e||"tabs"in e&&e.tabs||"detailRoutes"in e||n.push(e)})),n}},{key:"parseRouteUrl",value:function(e){if(!e)return{};var t=j.parseUrlQuery(e),n=e.split("#")[1],r=e.split("#")[0].split("?")[0];return{query:t,hash:n,params:{},url:e,path:r}}},{key:"generateUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("string"==typeof e)return e;var t=e.name,n=e.params,r=e.query;if(!t)throw new Error("Framework7: name parameter is required");var i=this,a=i.findRouteByKey("name",t);if(!a)throw new Error('Framework7: route with name "'.concat(t,'" not found'));var o=i.constructRouteUrl(a,{params:n,query:r});if(!o)throw new Error("Framework7: can't construct URL for route with name \"".concat(t,'"'));return o}},{key:"constructRouteUrl",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.params,i=n.query,a=e.path,o=ye(a);try{t=o(r||{})}catch(e){throw new Error("Framework7: error constructing route URL from passed params:\nRoute: ".concat(a,"\n").concat(e.toString()))}return i&&(t+="?".concat("string"==typeof i?i:j.serializeObject(i))),t}},{key:"findTabRoute",value:function(e){var t,n=g(e),r=this.currentRoute.route.parentPath,i=n.attr("id");return this.flattenRoutes(this.routes).forEach((function(e){e.parentPath===r&&e.tab&&e.tab.id===i&&(t=e)})),t}},{key:"findRouteByKey",value:function(e,t){var n,r=this.routes;return this.flattenRoutes(r).forEach((function(r){n||r[e]===t&&(n=r)})),n}},{key:"findMatchingRoute",value:function(e){if(e){var t,n=this.routes,r=this.flattenRoutes(n),i=this.parseRouteUrl(e),a=i.path,o=i.query,s=i.hash,l=i.params;return r.forEach((function(n){if(!t){var r,i,c=[],u=[n.path];if(n.alias&&("string"==typeof n.alias?u.push(n.alias):Array.isArray(n.alias)&&n.alias.forEach((function(e){u.push(e)}))),u.forEach((function(e){r||(r=ke(e,c).exec(a))})),r)c.forEach((function(e,t){if("number"!=typeof e.name){var n=r[t+1];l[e.name]=null==n?n:decodeURIComponent(n)}})),n.parentPath&&(i=a.split("/").slice(0,n.parentPath.split("/").length-1).join("/")),t={query:o,hash:s,params:l,url:e,path:a,parentPath:i,route:n,name:n.name}}})),t}}},{key:"replaceRequestUrlParams",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;return"string"==typeof n&&n.indexOf("{{")>=0&&t&&t.route&&t.route.params&&Object.keys(t.route.params).length&&Object.keys(t.route.params).forEach((function(e){var r=new RegExp("{{".concat(e,"}}"),"g");n=n.replace(r,t.route.params[e]||"")})),n}},{key:"removeFromXhrCache",value:function(e){for(var t=this.cache.xhr,n=!1,r=0;r<t.length;r+=1)t[r].url===e&&(n=r);!1!==n&&t.splice(n,1)}},{key:"xhrRequest",value:function(e,t){var n=this,r=n.params,i=t.ignoreCache,a=e,o=a.indexOf("?")>=0;return r.passRouteQueryToRequest&&t&&t.route&&t.route.query&&Object.keys(t.route.query).length&&(a+="".concat(o?"&":"?").concat(j.serializeObject(t.route.query)),o=!0),r.passRouteParamsToRequest&&t&&t.route&&t.route.params&&Object.keys(t.route.params).length&&(a+="".concat(o?"&":"?").concat(j.serializeObject(t.route.params)),o=!0),a.indexOf("{{")>=0&&(a=n.replaceRequestUrlParams(a,t)),r.xhrCacheIgnoreGetParameters&&a.indexOf("?")>=0&&(a=a.split("?")[0]),new Promise((function(e,o){if(r.xhrCache&&!i&&a.indexOf("nocache")<0&&r.xhrCacheIgnore.indexOf(a)<0)for(var s=0;s<n.cache.xhr.length;s+=1){var l=n.cache.xhr[s];if(l.url===a&&j.now()-l.time<r.xhrCacheDuration)return void e(l.content)}n.xhr=n.app.request({url:a,method:"GET",beforeSend:function(e){n.emit("routerAjaxStart",e,t)},complete:function(i,s){n.emit("routerAjaxComplete",i),"error"!==s&&"timeout"!==s&&i.status>=200&&i.status<300||0===i.status?(r.xhrCache&&""!==i.responseText&&(n.removeFromXhrCache(a),n.cache.xhr.push({url:a,time:j.now(),content:i.responseText})),n.emit("routerAjaxSuccess",i,t),e(i.responseText)):(n.emit("routerAjaxError",i,t),o(i))},error:function(e){n.emit("routerAjaxError",e,t),o(e)}})}))}},{key:"setNavbarPosition",value:function(e,t,n){e.removeClass("navbar-previous navbar-current navbar-next"),t&&e.addClass("navbar-".concat(t)),!1===n?e.removeAttr("aria-hidden"):!0===n&&e.attr("aria-hidden","true"),e.trigger("navbar:position",{position:t}),this.emit("navbarPosition",e[0],t)}},{key:"setPagePosition",value:function(e,t,n){e.removeClass("page-previous page-current page-next"),e.addClass("page-".concat(t)),!1===n?e.removeAttr("aria-hidden"):!0===n&&e.attr("aria-hidden","true"),e.trigger("page:position",{position:t}),this.emit("pagePosition",e[0],t)}},{key:"removeThemeElements",value:function(e){var t,n=this.app.theme;"ios"===n?t=".md-only, .aurora-only, .if-md, .if-aurora, .if-not-ios, .not-ios":"md"===n?t=".ios-only, .aurora-only, .if-ios, .if-aurora, .if-not-md, .not-md":"aurora"===n&&(t=".ios-only, .md-only, .if-ios, .if-md, .if-not-aurora, .not-aurora"),g(e).find(t).remove()}},{key:"getPageData",value:function(e,t,n,r){var i,a,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,l=this,c=g(e).eq(0),u=g(t).eq(0),d=c[0].f7Page||{};if(("next"===n&&"current"===r||"current"===n&&"previous"===r)&&(i="forward"),("current"===n&&"next"===r||"previous"===n&&"current"===r)&&(i="backward"),d&&!d.fromPage){var h=g(s);h.length&&(a=h[0].f7Page)}(a=d.pageFrom||a)&&a.pageFrom&&(a.pageFrom=null);var f={app:l.app,view:l.view,router:l,$el:c,el:c[0],$pageEl:c,pageEl:c[0],$navbarEl:u,navbarEl:u[0],name:c.attr("data-name"),position:n,from:n,to:r,direction:i,route:d.route?d.route:o,pageFrom:a};return c[0].f7Page=f,f}},{key:"pageCallback",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6?arguments[6]:void 0;if(t){var s=this,l=g(t);if(l.length){var c=g(n),u=a.route,d=s.params.restoreScrollTopOnBack&&!(s.params.masterDetailBreakpoint>0&&l.hasClass("page-master")&&s.app.width>=s.params.masterDetailBreakpoint),h=l[0].f7Page&&l[0].f7Page.route&&l[0].f7Page.route.route&&l[0].f7Page.route.route.keepAlive;"beforeRemove"===e&&h&&(e="beforeUnmount");var f="page".concat(e[0].toUpperCase()+e.slice(1,e.length)),p="page:".concat(e.toLowerCase()),m={};(m="beforeRemove"===e&&l[0].f7Page?j.extend(l[0].f7Page,{from:r,to:i,position:r}):s.getPageData(l[0],c[0],r,i,u,o)).swipeBack=!!a.swipeBack;var v=a.route?a.route.route:{},y=v.on,b=void 0===y?{}:y,_=v.once,w=void 0===_?{}:_;if(a.on&&j.extend(b,a.on),a.once&&j.extend(w,a.once),"mounted"===e&&S(),"init"===e){if(d&&("previous"===r||!r)&&"current"===i&&s.scrollHistory[m.route.url]&&!l.hasClass("no-restore-scroll")){var k=l.find(".page-content");k.length>0&&(k=k.filter((function(e,t){return 0===g(t).parents(".tab:not(.tab-active)").length&&!g(t).is(".tab:not(.tab-active)")}))),k.scrollTop(s.scrollHistory[m.route.url])}if(S(),l[0].f7PageInitialized)return l.trigger("page:reinit",m),void s.emit("pageReinit",m);l[0].f7PageInitialized=!0}if(d&&"beforeOut"===e&&"current"===r&&"previous"===i){var E=l.find(".page-content");E.length>0&&(E=E.filter((function(e,t){return 0===g(t).parents(".tab:not(.tab-active)").length&&!g(t).is(".tab:not(.tab-active)")}))),s.scrollHistory[m.route.url]=E.scrollTop()}d&&"beforeOut"===e&&"current"===r&&"next"===i&&delete s.scrollHistory[m.route.url],l.trigger(p,m),s.emit(f,m),"beforeRemove"!==e&&"beforeUnmount"!==e||(T(),h||(l[0].f7Page&&l[0].f7Page.navbarEl&&delete l[0].f7Page.navbarEl.f7Page,l[0].f7Page=null))}}function S(){l[0].f7RouteEventsAttached||(l[0].f7RouteEventsAttached=!0,b&&Object.keys(b).length>0&&(l[0].f7RouteEventsOn=b,Object.keys(b).forEach((function(e){b[e]=b[e].bind(s),l.on(j.eventNameToColonCase(e),b[e])}))),w&&Object.keys(w).length>0&&(l[0].f7RouteEventsOnce=w,Object.keys(w).forEach((function(e){w[e]=w[e].bind(s),l.once(j.eventNameToColonCase(e),w[e])}))))}function T(){l[0].f7RouteEventsAttached&&(l[0].f7RouteEventsOn&&Object.keys(l[0].f7RouteEventsOn).forEach((function(e){l.off(j.eventNameToColonCase(e),l[0].f7RouteEventsOn[e])})),l[0].f7RouteEventsOnce&&Object.keys(l[0].f7RouteEventsOnce).forEach((function(e){l.off(j.eventNameToColonCase(e),l[0].f7RouteEventsOnce[e])})),l[0].f7RouteEventsAttached=null,l[0].f7RouteEventsOn=null,l[0].f7RouteEventsOnce=null,delete l[0].f7RouteEventsAttached,delete l[0].f7RouteEventsOn,delete l[0].f7RouteEventsOnce)}}},{key:"saveHistory",value:function(){this.view.history=this.history,this.params.pushState&&(s.b.localStorage["f7router-".concat(this.view.id,"-history")]=JSON.stringify(this.history))}},{key:"restoreHistory",value:function(){this.params.pushState&&s.b.localStorage["f7router-".concat(this.view.id,"-history")]&&(this.history=JSON.parse(s.b.localStorage["f7router-".concat(this.view.id,"-history")]),this.view.history=this.history)}},{key:"clearHistory",value:function(){this.history=[],this.view&&(this.view.history=[]),this.saveHistory()}},{key:"updateCurrentUrl",value:function(e){$e(this,"updateCurrentUrl"),this.history.length?this.history[this.history.length-1]=e:this.history.push(e);var t=this.parseRouteUrl(e),n=t.query,r=t.hash,i=t.params,a=t.url,o=t.path;if(this.currentRoute&&j.extend(this.currentRoute,{query:n,hash:r,params:i,url:a,path:o}),this.params.pushState){var s=this.params.pushStateRoot||"";Se.replace(this.view.id,{url:e},s+this.params.pushStateSeparator+e)}this.saveHistory(),this.emit("routeUrlUpdate",this.currentRoute,this)}},{key:"init",value:function(){var e=this,t=e.app,n=e.view;(n&&e.params.iosSwipeBack&&"ios"===t.theme||n&&e.params.mdSwipeBack&&"md"===t.theme||n&&e.params.auroraSwipeBack&&"aurora"===t.theme)&&Te(e);var r,i,a=e.params.url,o=s.a.location.href.split(s.a.location.origin)[1],l=e.params,c=l.pushState,u=l.pushStateOnLoad,d=l.pushStateSeparator,h=l.pushStateAnimateOnLoad,f=e.params.pushStateRoot;if(s.b.cordova&&c&&!d&&!f&&s.a.location.pathname.indexOf("index.html")&&(console.warn("Framework7: wrong or not complete pushState configuration, trying to guess pushStateRoot"),f=s.a.location.pathname.split("index.html")[0]),c&&u?(f&&o.indexOf(f)>=0&&""===(o=o.split(f)[1])&&(o="/"),a=d.length>0&&o.indexOf(d)>=0?o.split(d)[1]:o,e.restoreHistory(),e.history.indexOf(a)>=0?e.history=e.history.slice(0,e.history.indexOf(a)+1):e.params.url===a?e.history=[a]:Se.state&&Se.state[n.id]&&Se.state[n.id].url===e.history[e.history.length-1]?a=e.history[e.history.length-1]:e.history=[o.split(d)[0]||"/",a],e.history.length>1?r=!0:e.history=[],e.saveHistory()):(a||(a=o),s.a.location.search&&a.indexOf("?")<0&&(a+=s.a.location.search),s.a.location.hash&&a.indexOf("#")<0&&(a+=s.a.location.hash)),e.history.length>1?(i=e.findMatchingRoute(e.history[0]))||(i=j.extend(e.parseRouteUrl(e.history[0]),{route:{url:e.history[0],path:e.history[0].split("?")[0]}})):(i=e.findMatchingRoute(a))||(i=j.extend(e.parseRouteUrl(a),{route:{url:a,path:a.split("?")[0]}})),e.params.stackPages&&e.$el.children(".page").each((function(t,n){var r=g(n);e.initialPages.push(r[0]),e.dynamicNavbar&&r.children(".navbar").length>0&&e.initialNavbars.push(r.children(".navbar")[0])})),0===e.$el.children(".page:not(.stacked)").length&&a&&e.params.loadInitialPage)e.navigate(a,{initial:!0,reloadCurrent:!0,pushState:!1});else if(e.$el.children(".page:not(.stacked)").length){var p;e.currentRoute=i,e.$el.children(".page:not(.stacked)").each((function(t,r){var i,a=g(r);e.setPagePosition(a,"current"),e.dynamicNavbar&&((i=a.children(".navbar")).length>0?(e.$navbarsEl.parents(s.a).length||e.$el.prepend(e.$navbarsEl),e.setNavbarPosition(i,"current"),e.$navbarsEl.append(i),i.children(".title-large").length&&i.addClass("navbar-large"),a.children(".navbar").remove()):(e.$navbarsEl.addClass("navbar-hidden"),i.children(".title-large").length&&e.$navbarsEl.addClass("navbar-hidden navbar-large-hidden"))),e.currentRoute&&e.currentRoute.route&&e.currentRoute.route.master&&e.params.masterDetailBreakpoint>0&&(a.addClass("page-master"),a.trigger("page:role",{role:"master"}),i&&i.length&&i.addClass("navbar-master"),n.checkMasterDetailBreakpoint());var o={route:e.currentRoute};e.currentRoute&&e.currentRoute.route&&e.currentRoute.route.options&&j.extend(o,e.currentRoute.route.options),e.currentPageEl=a[0],e.dynamicNavbar&&i.length&&(e.currentNavbarEl=i[0]),e.removeThemeElements(a),e.dynamicNavbar&&i.length&&e.removeThemeElements(i),o.route.route.tab&&(p=!0,e.tabLoad(o.route.route.tab,j.extend({},o))),e.pageCallback("init",a,i,"current",void 0,o)})),r&&e.navigate(a,{initial:!0,pushState:!1,history:!1,animate:h,once:{pageAfterIn:function(){(e.params.preloadPreviousPage||e.params["".concat(t.theme,"SwipeBack")])&&e.history.length>2&&e.back({preload:!0})}}}),r||p||(e.history.push(a),e.saveHistory())}!(a&&c&&u)||Se.state&&Se.state[n.id]||Se.initViewState(n.id,{url:a}),e.emit("local::init routerInit",e)}},{key:"destroy",value:function(){var e=this;e.emit("local::destroy routerDestroy",e),Object.keys(e).forEach((function(t){e[t]=null,delete e[t]})),e=null}}]),r}(z);Oe.prototype.forward=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=this,o=g(e),l=a.app,c=a.view,u=j.extend(!1,{animate:a.params.animate,pushState:!0,replaceState:!1,history:!0,reloadCurrent:a.params.reloadPages,reloadPrevious:!1,reloadAll:!1,clearPreviousHistory:!1,reloadDetail:a.params.reloadDetail,on:{}},i),d=a.params.masterDetailBreakpoint>0,h=d&&u.route&&u.route.route&&!0===u.route.route.master,f=a.currentRoute.modal;if(f||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(e){a.currentRoute&&a.currentRoute.route&&a.currentRoute.route[e]&&(f=!0,r=e)})),f){var p=a.currentRoute.modal||a.currentRoute.route.modalInstance||l[r].get(),m=a.history[a.history.length-2],v=a.findMatchingRoute(m);!v&&m&&(v={url:m,path:m.split("?")[0],query:j.parseUrlQuery(m),route:{path:m.split("?")[0],url:m}}),a.modalRemove(p)}var y,b,_,w,k=a.dynamicNavbar,E=a.$el,S=o,T=u.reloadPrevious||u.reloadCurrent||u.reloadAll;if(a.allowPageChange=!1,0===S.length)return a.allowPageChange=!0,a;S.length&&a.removeThemeElements(S),k&&(_=S.children(".navbar"),b=a.$navbarsEl,0===_.length&&S[0]&&S[0].f7Page&&(_=S[0].f7Page.$navbarEl)),u.route&&u.route.route&&u.route.route.keepAlive&&!u.route.route.keepAliveData&&(u.route.route.keepAliveData={pageEl:o[0]});var C,M,x,$,L=E.children(".page:not(.stacked)").filter((function(e,t){return t!==S[0]}));if(k&&(C=b.children(".navbar:not(.stacked)").filter((function(e,t){return t!==_[0]}))),u.reloadPrevious&&L.length<2)return a.allowPageChange=!0,a;if(d&&!u.reloadAll){for(var P=0;P<L.length;P+=1)t||!L[P].classList.contains("page-master")||(t=L[P]);if((M=!h&&t)&&t)for(var O=0;O<L.length;O+=1)L[O].classList.contains("page-master-detail")&&(n=L[O]);x=M&&u.reloadDetail&&l.width>=a.params.masterDetailBreakpoint&&t}M&&($=!n||x||u.reloadAll||u.reloadCurrent);var I="next";if(u.reloadCurrent||u.reloadAll||x?I="current":u.reloadPrevious&&(I="previous"),S.removeClass("page-previous page-current page-next").addClass("page-".concat(I).concat(h?" page-master":"").concat(M?" page-master-detail":"").concat($?" page-master-detail-root":"")).removeClass("stacked").trigger("page:unstack").trigger("page:position",{position:I}),a.emit("pageUnstack",S[0]),a.emit("pagePosition",S[0],I),(h||M)&&(S.trigger("page:role",{role:h?"master":"detail",root:!!$}),a.emit("pageRole",S[0],{role:h?"master":"detail",detailRoot:!!$})),k&&_.length&&(_.removeClass("navbar-previous navbar-current navbar-next").addClass("navbar-".concat(I).concat(h?" navbar-master":"").concat(M?" navbar-master-detail":"").concat($?" navbar-master-detail-root":"")).removeClass("stacked"),_.trigger("navbar:position",{position:I}),a.emit("navbarPosition",_[0],I),(h||M)&&a.emit("navbarRole",_[0],{role:h?"master":"detail",detailRoot:!!$})),u.reloadCurrent||x)y=L.eq(L.length-1),k&&(w=g(l.navbar.getElByPage(y)));else if(u.reloadPrevious)y=L.eq(L.length-2),k&&(w=g(l.navbar.getElByPage(y)));else if(u.reloadAll)y=L.filter((function(e,t){return t!==S[0]})),k&&(w=C.filter((function(e,t){return t!==_[0]})));else{var A=[],D=[];if(L.length>1){var N=0;for(N=0;N<L.length-1;N+=1)if(t&&L[N]===t)L.eq(N).addClass("page-master-stacked"),L.eq(N).trigger("page:masterstack"),a.emit("pageMasterStack",L[N]),k&&(g(l.navbar.getElByPage(t)).addClass("navbar-master-stacked"),a.emit("navbarMasterStack",l.navbar.getElByPage(t)));else{var R=l.navbar.getElByPage(L.eq(N));a.params.stackPages?(L.eq(N).addClass("stacked"),L.eq(N).trigger("page:stack"),a.emit("pageStack",L[N]),k&&g(R).addClass("stacked")):(A.push(L[N]),a.pageCallback("beforeRemove",L[N],C&&C[N],"previous",void 0,u),a.removePage(L[N]),k&&R&&(D.push(R),a.removeNavbar(R)))}}y=E.children(".page:not(.stacked)").filter((function(e,t){return t!==S[0]&&A.indexOf(t)<0})),k&&(w=b.children(".navbar:not(.stacked)").filter((function(e,t){return t!==_[0]&&D.indexOf(D)<0}))),A=[],D=[]}if(M&&!u.reloadAll&&((y.length>1||x)&&(y=y.filter((function(e,t){return!t.classList.contains("page-master")}))),w&&(w.length>1||x)&&(w=w.filter((function(e,t){return!t.classList.contains("navbar-master")})))),a.params.pushState&&(u.pushState||u.replaceState)&&!u.reloadPrevious){var B=a.params.pushStateRoot||"";Se[u.reloadCurrent||x&&n||u.reloadAll||u.replaceState?"replace":"push"](c.id,{url:u.route.url},B+a.params.pushStateSeparator+u.route.url)}u.reloadPrevious||(a.currentPageEl=S[0],k&&_.length?a.currentNavbarEl=_[0]:delete a.currentNavbarEl,a.currentRoute=u.route);var Y=u.route.url;u.history&&(((u.reloadCurrent||x&&n)&&a.history.length)>0||u.replaceState?a.history[a.history.length-(u.reloadPrevious?2:1)]=Y:u.reloadPrevious?a.history[a.history.length-2]=Y:u.reloadAll?a.history=[Y]:a.history.push(Y)),a.saveHistory();var F=S.parents(s.a).length>0,H=S[0].f7Component;if(u.reloadPrevious?(H&&!F?H.$mount((function(e){g(e).insertBefore(y)})):S.insertBefore(y),k&&_.length&&(_.find(".title-large").length&&_.addClass("navbar-large"),w.length?_.insertBefore(w):(a.$navbarsEl.parents(s.a).length||a.$el.prepend(a.$navbarsEl),b.append(_)))):(y.next(".page")[0]!==S[0]&&(H&&!F?H.$mount((function(e){E.append(e)})):E.append(S[0])),k&&_.length&&(_.find(".title-large").length&&_.addClass("navbar-large"),a.$navbarsEl.parents(s.a).length||a.$el.prepend(a.$navbarsEl),b.append(_[0]))),F?u.route&&u.route.route&&u.route.route.keepAlive&&!S[0].f7PageMounted&&(S[0].f7PageMounted=!0,a.pageCallback("mounted",S,_,I,T?I:"current",u,y)):a.pageCallback("mounted",S,_,I,T?I:"current",u,y),(u.reloadCurrent||x)&&y.length>0?a.params.stackPages&&a.initialPages.indexOf(y[0])>=0?(y.addClass("stacked"),y.trigger("page:stack"),a.emit("pageStack",y[0]),k&&w.addClass("stacked")):(a.pageCallback("beforeOut",y,w,"current",void 0,u),a.pageCallback("afterOut",y,w,"current",void 0,u),a.pageCallback("beforeRemove",y,w,"current",void 0,u),a.removePage(y),k&&w&&w.length&&a.removeNavbar(w)):u.reloadAll?y.each((function(e,t){var n=g(t),r=g(l.navbar.getElByPage(n));a.params.stackPages&&a.initialPages.indexOf(n[0])>=0?(n.addClass("stacked"),n.trigger("page:stack"),a.emit("pageStack",n[0]),k&&r.addClass("stacked")):(n.hasClass("page-current")&&(a.pageCallback("beforeOut",y,w,"current",void 0,u),a.pageCallback("afterOut",y,w,"current",void 0,u)),a.pageCallback("beforeRemove",n,w&&w.eq(e),"previous",void 0,u),a.removePage(n),k&&r.length&&a.removeNavbar(r))})):u.reloadPrevious&&(a.params.stackPages&&a.initialPages.indexOf(y[0])>=0?(y.addClass("stacked"),y.trigger("page:stack"),a.emit("pageStack",y[0]),k&&w.addClass("stacked")):(a.pageCallback("beforeRemove",y,w,"previous",void 0,u),a.removePage(y),k&&w&&w.length&&a.removeNavbar(w))),u.route.route.tab&&a.tabLoad(u.route.route.tab,j.extend({},u,{history:!1,pushState:!1})),d&&c.checkMasterDetailBreakpoint(),a.pageCallback("init",S,_,I,T?I:"current",u,y),u.reloadCurrent||u.reloadAll||x)return a.allowPageChange=!0,a.pageCallback("beforeIn",S,_,I,"current",u),S.removeAttr("aria-hidden"),k&&_&&_.removeAttr("aria-hidden"),a.pageCallback("afterIn",S,_,I,"current",u),u.reloadCurrent&&u.clearPreviousHistory&&a.clearPreviousHistory(),x&&(a.setPagePosition(g(t),"previous"),t.f7Page&&t.f7Page.navbarEl&&a.setNavbarPosition(g(t.f7Page.navbarEl),"previous")),a;if(u.reloadPrevious)return a.allowPageChange=!0,a;function U(){a.setPagePosition(S,"current",!1),a.setPagePosition(y,"previous",!y.hasClass("page-master")),k&&(a.setNavbarPosition(_,"current",!1),a.setNavbarPosition(w,"previous",!w.hasClass("navbar-master"))),a.allowPageChange=!0,a.pageCallback("afterOut",y,w,"current","previous",u),a.pageCallback("afterIn",S,_,"next","current",u);var e=(a.params.preloadPreviousPage||a.params["".concat(l.theme,"SwipeBack")])&&!h;e||(S.hasClass("smart-select-page")||S.hasClass("photo-browser-page")||S.hasClass("autocomplete-page")||S.hasClass("color-picker-page"))&&(e=!0),e||(a.params.stackPages?(y.addClass("stacked"),y.trigger("page:stack"),a.emit("pageStack",y[0]),k&&w.addClass("stacked")):S.attr("data-name")&&"smart-select-page"===S.attr("data-name")||(a.pageCallback("beforeRemove",y,w,"previous",void 0,u),a.removePage(y),k&&w.length&&a.removeNavbar(w))),u.clearPreviousHistory&&a.clearPreviousHistory(),a.emit("routeChanged",a.currentRoute,a.previousRoute,a),a.params.pushState&&Se.clearRouterQueue()}function z(){a.setPagePosition(y,"current",!1),a.setPagePosition(S,"next",!1),k&&(a.setNavbarPosition(w,"current",!1),a.setNavbarPosition(_,"next",!1))}if(a.pageCallback("beforeOut",y,w,"current","previous",u),a.pageCallback("beforeIn",S,_,"next","current",u),!u.animate||h&&l.width>=a.params.masterDetailBreakpoint)U();else{var V=a.params["".concat(a.app.theme,"PageLoadDelay")],q=a.params.transition;u.transition&&(q=u.transition),!q&&a.currentRoute&&a.currentRoute.route&&(q=a.currentRoute.route.transition),!q&&a.currentRoute&&a.currentRoute.route.options&&(q=a.currentRoute.route.options.transition),q&&(S[0].f7PageTransition=q),V?setTimeout((function(){z(),a.animate(y,S,w,_,"forward",q,(function(){U()}))}),V):(z(),a.animate(y,S,w,_,"forward",q,(function(){U()})))}return a},Oe.prototype.load=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=this;if(!r.allowPageChange&&!n)return r;var i=e,a=t,o=i.url,s=i.content,l=i.el,c=i.pageName,u=i.template,d=i.templateUrl,h=i.component,f=i.componentUrl;if(!a.reloadCurrent&&a.route&&a.route.route&&a.route.route.parentPath&&r.currentRoute.route&&r.currentRoute.route.parentPath===a.route.route.parentPath){if(a.route.url===r.url)return r.allowPageChange=!0,!1;var p=Object.keys(a.route.params).length===Object.keys(r.currentRoute.params).length;if(p&&Object.keys(a.route.params).forEach((function(e){e in r.currentRoute.params&&r.currentRoute.params[e]===a.route.params[e]||(p=!1)})),p)return!!a.route.route.tab&&r.tabLoad(a.route.route.tab,a);if(!p&&a.route.route.tab&&r.currentRoute.route.tab&&r.currentRoute.parentPath===a.route.parentPath)return r.tabLoad(a.route.route.tab,a)}if(a.route&&a.route.url&&r.url===a.route.url&&!a.reloadCurrent&&!a.reloadPrevious&&!r.params.allowDuplicateUrls)return r.allowPageChange=!0,!1;function m(e,t){return r.forward(e,j.extend(a,t))}function v(){return r.allowPageChange=!0,r}if(!a.route&&o&&(a.route=r.parseRouteUrl(o),j.extend(a.route,{route:{url:o,path:o}})),(o||d||f)&&(r.allowPageChange=!1),s)r.forward(r.getPageEl(s),a);else if(u||d)try{r.pageTemplateLoader(u,d,a,m,v)}catch(e){throw r.allowPageChange=!0,e}else if(l)r.forward(r.getPageEl(l),a);else if(c)r.forward(r.$el.children('.page[data-name="'.concat(c,'"]')).eq(0),a);else if(h||f)try{r.pageComponentLoader(r.el,h,f,a,m,v)}catch(e){throw r.allowPageChange=!0,e}else o&&(r.xhr&&(r.xhr.abort(),r.xhr=!1),r.xhrRequest(o,a).then((function(e){r.forward(r.getPageEl(e),a)})).catch((function(){r.allowPageChange=!0})));return r},Oe.prototype.navigate=function(e){var t,n,r,i,a,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=this;if(l.swipeBackActive)return l;if("string"==typeof e?t=e:(t=e.url,n=e.route,r=e.name,i=e.query,a=e.params),r)return(t=l.generateUrl({name:r,params:a,query:i}))?l.navigate(t,s):l;var c=l.app;if($e(l,"navigate"),"#"===t||""===t)return l;var u=t.replace("./","");if("/"!==u[0]&&0!==u.indexOf("#")){var d=l.currentRoute.parentPath||l.currentRoute.path;u=((d?"".concat(d,"/"):"/")+u).replace("///","/").replace("//","/")}if(!(o=n?j.extend(l.parseRouteUrl(u),{route:j.extend({},n)}):l.findMatchingRoute(u)))return l;if(o.route&&o.route.viewName){var h=o.route.viewName,f=c.views[h];if(!f)throw new Error('Framework7: There is no View with "'.concat(h,'" name that was specified in this route'));if(f!==l.view)return f.router.navigate(e,s)}if(o.route.redirect)return Ce.call(l,"navigate",o,s);var p={};function m(){var e=!1;function t(e,t){l.allowPageChange=!1;var n=!1;t&&t.context&&(o.context?o.context=j.extend({},o.context,t.context):o.context=t.context,p.route.context=o.context),"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(r){if(e[r]){n=!0;var i=j.extend({},o,{route:e});l.allowPageChange=!0,l.modalLoad(r,i,j.extend(p,t))}})),n||l.load(e,j.extend(p,t),!0)}function n(){l.allowPageChange=!0}"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(t){o.route[t]&&!e&&(e=!0,l.modalLoad(t,o,p))})),o.route.keepAlive&&o.route.keepAliveData&&(l.load({el:o.route.keepAliveData.pageEl},p,!1),e=!0),"url content component pageName el componentUrl template templateUrl".split(" ").forEach((function(t){o.route[t]&&!e&&(e=!0,l.load(K()({},t,o.route[t]),p,!1))})),e||(o.route.async&&(l.allowPageChange=!1,o.route.async.call(l,p.route,l.currentRoute,t,n)),o.route.asyncComponent&&Le(l,o.route.asyncComponent,t,n))}function v(){l.allowPageChange=!0}if(o.route.options?j.extend(p,o.route.options,s):j.extend(p,s),p.route=o,p&&p.context&&(o.context=p.context,p.route.context=p.context),l.params.masterDetailBreakpoint>0&&o.route.masterRoute){var g=!0,y=!1;if(l.currentRoute&&l.currentRoute.route&&(!l.currentRoute.route.master||l.currentRoute.route!==o.route.masterRoute&&l.currentRoute.route.path!==o.route.masterRoute.path||(g=!1),!l.currentRoute.route.masterRoute||l.currentRoute.route.masterRoute!==o.route.masterRoute&&l.currentRoute.route.masterRoute.path!==o.route.masterRoute.path||(g=!1,y=!0)),g||y&&s.reloadAll)return l.navigate(o.route.masterRoute.path,{animate:!1,reloadAll:s.reloadAll,reloadCurrent:s.reloadCurrent,reloadPrevious:s.reloadPrevious,pushState:!s.initial,history:!s.initial,once:{pageAfterIn:function(){l.navigate(e,j.extend({},s,{animate:!1,reloadAll:!1,reloadCurrent:!1,reloadPrevious:!1,history:!s.initial,pushState:!s.initial}))}}}),l}return xe.call(l,o,l.currentRoute,(function(){o.route.modules?c.loadModules(Array.isArray(o.route.modules)?o.route.modules:[o.route.modules]).then((function(){m()})).catch((function(){v()})):m()}),(function(){v()})),l},Oe.prototype.refreshPage=function(){return $e(this,"refreshPage"),this.navigate(this.currentRoute.url,{ignoreCache:!0,reloadCurrent:!0})},Oe.prototype.tabLoad=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this,a=j.extend({animate:i.params.animate,pushState:!0,history:!0,parentPageEl:null,preload:!1,on:{}},r);a.route&&(a.preload||a.route===i.currentRoute||(n=i.previousRoute,i.currentRoute=a.route),a.preload?(t=a.route,n=i.currentRoute):(t=i.currentRoute,n||(n=i.previousRoute)),i.params.pushState&&a.pushState&&!a.reloadPrevious&&Se.replace(i.view.id,{url:a.route.url},(i.params.pushStateRoot||"")+i.params.pushStateSeparator+a.route.url),a.history&&(i.history[Math.max(i.history.length-1,0)]=a.route.url,i.saveHistory()));var o,s=g(a.parentPageEl||i.currentPageEl);o=s.length&&s.find("#".concat(e.id)).length?s.find("#".concat(e.id)).eq(0):i.view.selector?"".concat(i.view.selector," #").concat(e.id):"#".concat(e.id);var l,c=i.app.tab.show({tabEl:o,animate:a.animate,tabRoute:a.route}),u=c.$newTabEl,d=c.$oldTabEl,h=c.animated,f=c.onTabsChanged;if(u&&u.parents(".page").length>0&&a.route){var p=u.parents(".page")[0].f7Page;p&&a.route&&(p.route=a.route)}function m(t){i.removeThemeElements(u);var n=u;"string"!=typeof t&&(n=g(t)),n.trigger("tab:init tab:mounted",e),i.emit("tabInit tabMounted",u[0],e),d&&d.length&&(h?f((function(){i.emit("routeChanged",i.currentRoute,i.previousRoute,i),i.params.unloadTabContent&&i.tabRemove(d,u,e)})):(i.emit("routeChanged",i.currentRoute,i.previousRoute,i),i.params.unloadTabContent&&i.tabRemove(d,u,e)))}if(u[0].f7RouterTabLoaded)return d&&d.length?(h?f((function(){i.emit("routeChanged",i.currentRoute,i.previousRoute,i)})):i.emit("routeChanged",i.currentRoute,i.previousRoute,i),i):i;function v(e,t){var n=e.url,r=e.content,a=e.el,o=e.template,s=e.templateUrl,l=e.component,c=e.componentUrl;function d(e){i.allowPageChange=!0,e&&("string"==typeof e?u.html(e):(u.html(""),e.f7Component?e.f7Component.$mount((function(e){u.append(e)})):u.append(e)),u[0].f7RouterTabLoaded=!0,m(e))}function h(){return i.allowPageChange=!0,i}if(r)d(r);else if(o||s)try{i.tabTemplateLoader(o,s,t,d,h)}catch(e){throw i.allowPageChange=!0,e}else if(a)d(a);else if(l||c)try{i.tabComponentLoader(u[0],l,c,t,d,h)}catch(e){throw i.allowPageChange=!0,e}else n&&(i.xhr&&(i.xhr.abort(),i.xhr=!1),i.xhrRequest(n,t).then((function(e){d(e)})).catch((function(){i.allowPageChange=!0})))}function y(e,t){v(e,j.extend(a,t))}function b(){i.allowPageChange=!0}return"url content component el componentUrl template templateUrl".split(" ").forEach((function(t){e[t]&&(l=!0,v(K()({},t,e[t]),a))})),e.async?e.async.call(i,t,n,y,b):e.asyncComponent?Le(i,e.asyncComponent,y,b):l||(i.allowPageChange=!0),i},Oe.prototype.tabRemove=function(e,t,n){var r;e[0]&&(e[0].f7RouterTabLoaded=!1,delete e[0].f7RouterTabLoaded),e.children().each((function(e,t){t.f7Component&&(r=!0,g(t).trigger("tab:beforeremove",n),t.f7Component.$destroy())})),r||e.trigger("tab:beforeremove",n),this.emit("tabBeforeRemove",e[0],t[0],n),this.removeTabContent(e[0],n)},Oe.prototype.modalLoad=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,a=i.app,o="panel"===e,s=o?"panel":"modal",l=j.extend({animate:i.params.animate,pushState:!0,history:!0,on:{}},r),c=j.extend({},t.route[e]),u=t.route;function d(){var n=a[e].create(c);u.modalInstance=n;var r=n.el;function d(){n.close()}n.on("".concat(s,"Open"),(function(){r||(i.removeThemeElements(n.el),n.$el.trigger("".concat(e.toLowerCase(),":init ").concat(e.toLowerCase(),":mounted"),t,n),i.emit("".concat(o?"":"modalInit"," ").concat(e,"Init ").concat(e,"Mounted"),n.el,t,n)),i.once("swipeBackMove",d)})),n.on("".concat(s,"Close"),(function(){i.off("swipeBackMove",d),n.closeByRouter||i.back()})),n.on("".concat(s,"Closed"),(function(){n.$el.trigger("".concat(e.toLowerCase(),":beforeremove"),t,n),n.emit("".concat(o?"":"modalBeforeRemove ").concat(e,"BeforeRemove"),n.el,t,n);var r=n.el.f7Component;r&&r.$destroy(),j.nextTick((function(){(r||c.component)&&i.removeModal(n.el),n.destroy(),delete n.route,delete u.modalInstance}))})),l.route&&(i.params.pushState&&l.pushState&&Se.push(i.view.id,{url:l.route.url,modal:e},(i.params.pushStateRoot||"")+i.params.pushStateSeparator+l.route.url),l.route!==i.currentRoute&&(n.route=j.extend(l.route,{modal:n}),i.currentRoute=n.route),l.history&&(i.history.push(l.route.url),i.saveHistory())),r&&(i.removeThemeElements(n.el),n.$el.trigger("".concat(e.toLowerCase(),":init ").concat(e.toLowerCase(),":mounted"),t,n),i.emit("".concat(s,"Init ").concat(e,"Init ").concat(e,"Mounted"),n.el,t,n)),n.open()}function h(e,t){var n=e.url,r=e.content,o=e.template,s=e.templateUrl,l=e.component,u=e.componentUrl;function h(e){e&&("string"==typeof e?c.content=e:e.f7Component?e.f7Component.$mount((function(e){c.el=e,a.root.append(e)})):c.el=e,d())}function f(){return i.allowPageChange=!0,i}if(r)h(r);else if(o||s)try{i.modalTemplateLoader(o,s,t,h,f)}catch(e){throw i.allowPageChange=!0,e}else if(l||u)try{i.modalComponentLoader(a.root[0],l,u,t,h,f)}catch(e){throw i.allowPageChange=!0,e}else n?(i.xhr&&(i.xhr.abort(),i.xhr=!1),i.xhrRequest(n,t).then((function(e){c.content=e,d()})).catch((function(){i.allowPageChange=!0}))):d()}function f(e,t){h(e,j.extend(l,t))}function p(){i.allowPageChange=!0}return"url content component el componentUrl template templateUrl".split(" ").forEach((function(e){c[e]&&!n&&(n=!0,h(K()({},e,c[e]),l))})),n||"actions"!==e||d(),c.async&&c.async.call(i,l.route,i.currentRoute,f,p),c.asyncComponent&&Le(i,c.asyncComponent,f,p),i},Oe.prototype.modalRemove=function(e){j.extend(e,{closeByRouter:!0}),e.close()},Oe.prototype.backward=function(e,t){var n,r,i,a,o,l,c,u,d=this,h=g(e),f=d.app,p=d.view,m=j.extend({animate:d.params.animate,pushState:!0,replaceState:!1},t),v=d.params.masterDetailBreakpoint>0,y=v&&m.route&&m.route.route&&!0===m.route.route.master,b=d.dynamicNavbar,_=h,w=d.$el.children(".page-current"),k=v&&w.hasClass("page-master");if(_.length&&d.removeThemeElements(_),b&&(a=_.children(".navbar"),i=d.$navbarsEl,0===a.length&&_[0]&&_[0].f7Page&&(a=_[0].f7Page.$navbarEl),o=i.find(".navbar-current")),d.allowPageChange=!1,0===_.length||0===w.length)return d.allowPageChange=!0,d;if(d.removeThemeElements(_),m.route&&m.route.route&&m.route.route.keepAlive&&!m.route.route.keepAliveData&&(m.route.route.keepAliveData={pageEl:h[0]}),v){for(var E=d.$el.children(".page:not(.stacked)").filter((function(e,t){return t!==_[0]})),S=0;S<E.length;S+=1)n||!E[S].classList.contains("page-master")||(n=E[S]);!(l=!y&&n&&d.history.indexOf(m.route.url)>d.history.indexOf(n.f7Page.route.url))&&!y&&n&&n.f7Page&&m.route.route.masterRoute&&(l=m.route.route.masterRoute.path===n.f7Page.route.route.path)}if(l&&n&&n.f7Page&&(c=d.history.indexOf(m.route.url)-d.history.indexOf(n.f7Page.route.url)==1),_.addClass("page-previous".concat(y?" page-master":"").concat(l?" page-master-detail":"").concat(c?" page-master-detail-root":"")).removeClass("stacked").removeAttr("aria-hidden").trigger("page:unstack").trigger("page:position",{position:"previous"}),d.emit("pageUnstack",_[0]),d.emit("pagePosition",_[0],"previous"),(y||l)&&(_.trigger("page:role",{role:y?"master":"detail",root:!!c}),d.emit("pageRole",_[0],{role:y?"master":"detail",detailRoot:!!c})),b&&a.length>0&&(a.addClass("navbar-previous".concat(y?" navbar-master":"").concat(l?" navbar-master-detail":"").concat(c?" navbar-master-detail-root":"")).removeClass("stacked").removeAttr("aria-hidden"),a.trigger("navbar:position",{position:"previous"}),d.emit("navbarPosition",a[0],"previous"),(y||c)&&d.emit("navbarRole",a[0],{role:y?"master":"detail",detailRoot:!!c})),m.force&&(w.prev(".page-previous:not(.stacked)").length>0||0===w.prev(".page-previous").length))if(d.history.indexOf(m.route.url)>=0?(u=d.history.length-d.history.indexOf(m.route.url)-1,d.history=d.history.slice(0,d.history.indexOf(m.route.url)+2),p.history=d.history):d.history[[d.history.length-2]]?d.history[d.history.length-2]=m.route.url:d.history.unshift(d.url),u&&d.params.stackPages)w.prevAll(".page-previous").each((function(e,t){var i,a=g(t);b&&(i=g(f.navbar.getElByPage(a))),a[0]!==_[0]&&a.index()>_.index()&&(d.initialPages.indexOf(a[0])>=0?(a.addClass("stacked"),a.trigger("page:stack"),d.emit("pageStack",a[0]),b&&i.addClass("stacked")):(d.pageCallback("beforeRemove",a,i,"previous",void 0,m),a[0]===n&&(r=!0),d.removePage(a),b&&i.length>0&&d.removeNavbar(i)))}));else{var T,C=w.prev(".page-previous:not(.stacked)");b&&(T=g(f.navbar.getElByPage(C))),d.params.stackPages&&d.initialPages.indexOf(C[0])>=0?(C.addClass("stacked"),C.trigger("page:stack"),d.emit("pageStack",C[0]),T.addClass("stacked")):C.length>0&&(d.pageCallback("beforeRemove",C,T,"previous",void 0,m),C[0]===n&&(r=!0),d.removePage(C),b&&T.length&&d.removeNavbar(T))}var M=_.parents(s.a).length>0,x=_[0].f7Component;function $(){0===_.next(w).length&&(!M&&x?x.$mount((function(e){g(e).insertBefore(w)})):_.insertBefore(w)),b&&a.length&&(a.find(".title-large").length&&a.addClass("navbar-large"),a.insertBefore(o),o.length>0?a.insertBefore(o):(d.$navbarsEl.parents(s.a).length||d.$el.prepend(d.$navbarsEl),i.append(a))),M?m.route&&m.route.route&&m.route.route.keepAlive&&!_[0].f7PageMounted&&(_[0].f7PageMounted=!0,d.pageCallback("mounted",_,a,"previous","current",m,w)):d.pageCallback("mounted",_,a,"previous","current",m,w)}if(m.preload){$(),m.route.route.tab&&d.tabLoad(m.route.route.tab,j.extend({},m,{history:!1,pushState:!1,preload:!0})),y&&(_.removeClass("page-master-stacked").trigger("page:masterunstack"),d.emit("pageMasterUnstack",_[0]),b&&(g(f.navbar.getElByPage(_)).removeClass("navbar-master-stacked"),d.emit("navbarMasterUnstack",f.navbar.getElByPage(_)))),d.pageCallback("init",_,a,"previous","current",m,w);var L=_.prevAll(".page-previous:not(.stacked):not(.page-master)");return L.length>0&&L.each((function(e,t){var n,r=g(t);b&&(n=g(f.navbar.getElByPage(r))),d.params.stackPages&&d.initialPages.indexOf(t)>=0?(r.addClass("stacked"),r.trigger("page:stack"),d.emit("pageStack",r[0]),b&&n.addClass("stacked")):(d.pageCallback("beforeRemove",r,n,"previous",void 0),d.removePage(r),b&&n.length&&d.removeNavbar(n))})),d.allowPageChange=!0,d}if(!(F.a.ie||F.a.edge||F.a.firefox&&!F.a.ios)&&d.params.pushState&&m.pushState)if(m.replaceState){var P=d.params.pushStateRoot||"";Se.replace(p.id,{url:m.route.url},P+d.params.pushStateSeparator+m.route.url)}else u?Se.go(-u):Se.back();if(m.replaceState?d.history[d.history.length-1]=m.route.url:(1===d.history.length&&d.history.unshift(d.url),d.history.pop()),d.saveHistory(),d.currentPageEl=_[0],b&&a.length?d.currentNavbarEl=a[0]:delete d.currentNavbarEl,d.currentRoute=m.route,(F.a.ie||F.a.edge||F.a.firefox&&!F.a.ios)&&d.params.pushState&&m.pushState)if(m.replaceState){var O=d.params.pushStateRoot||"";Se.replace(p.id,{url:m.route.url},O+d.params.pushStateSeparator+m.route.url)}else u?Se.go(-u):Se.back();function I(){d.setPagePosition(_,"current",!1),d.setPagePosition(w,"next",!0),b&&(d.setNavbarPosition(a,"current",!1),d.setNavbarPosition(o,"next",!0)),d.pageCallback("afterOut",w,o,"current","next",m),d.pageCallback("afterIn",_,a,"previous","current",m),d.params.stackPages&&d.initialPages.indexOf(w[0])>=0?(w.addClass("stacked"),w.trigger("page:stack"),d.emit("pageStack",w[0]),b&&o.addClass("stacked")):(d.pageCallback("beforeRemove",w,o,"next",void 0,m),d.removePage(w),b&&o.length&&d.removeNavbar(o)),d.allowPageChange=!0,d.emit("routeChanged",d.currentRoute,d.previousRoute,d),(d.params.preloadPreviousPage||d.params["".concat(f.theme,"SwipeBack")])&&d.history[d.history.length-2]&&!y&&d.back(d.history[d.history.length-2],{preload:!0}),d.params.pushState&&Se.clearRouterQueue()}if($(),m.route.route.tab&&d.tabLoad(m.route.route.tab,j.extend({},m,{history:!1,pushState:!1})),v&&(k||r)&&p.checkMasterDetailBreakpoint(!1),d.pageCallback("init",_,a,"previous","current",m,w),d.pageCallback("beforeOut",w,o,"current","next",m),d.pageCallback("beforeIn",_,a,"previous","current",m),!m.animate||k&&f.width>=d.params.masterDetailBreakpoint)I();else{var A=d.params.transition;w[0]&&w[0].f7PageTransition&&(A=w[0].f7PageTransition,delete w[0].f7PageTransition),m.transition&&(A=m.transition),!A&&d.previousRoute&&d.previousRoute.route&&(A=d.previousRoute.route.transition),!A&&d.previousRoute&&d.previousRoute.route&&d.previousRoute.route.options&&(A=d.previousRoute.route.options.transition),d.setPagePosition(w,"current"),d.setPagePosition(_,"previous",!1),b&&(d.setNavbarPosition(o,"current"),d.setNavbarPosition(a,"previous",!1)),d.animate(w,_,o,a,"backward",A,(function(){I()}))}return d},Oe.prototype.loadBack=function(e,t,n){var r=this;if(!r.allowPageChange&&!n)return r;var i=e,a=t,o=i.url,s=i.content,l=i.el,c=i.pageName,u=i.template,d=i.templateUrl,h=i.component,f=i.componentUrl;if(a.route.url&&r.url===a.route.url&&!a.reloadCurrent&&!a.reloadPrevious&&!r.params.allowDuplicateUrls)return!1;function p(e,t){return r.backward(e,j.extend(a,t))}function m(){return r.allowPageChange=!0,r}if(!a.route&&o&&(a.route=r.parseRouteUrl(o)),(o||d||f)&&(r.allowPageChange=!1),s)r.backward(r.getPageEl(s),a);else if(u||d)try{r.pageTemplateLoader(u,d,a,p,m)}catch(e){throw r.allowPageChange=!0,e}else if(l)r.backward(r.getPageEl(l),a);else if(c)r.backward(r.$el.children('.page[data-name="'.concat(c,'"]')).eq(0),a);else if(h||f)try{r.pageComponentLoader(r.el,h,f,a,p,m)}catch(e){throw r.allowPageChange=!0,e}else o&&(r.xhr&&(r.xhr.abort(),r.xhr=!1),r.xhrRequest(o,a).then((function(e){r.backward(r.getPageEl(e),a)})).catch((function(){r.allowPageChange=!0})));return r},Oe.prototype.back=function(){var e,t,n,r=this;if(r.swipeBackActive)return r;"object"===O()(arguments.length<=0?void 0:arguments[0])?t=(arguments.length<=0?void 0:arguments[0])||{}:(e=arguments.length<=0?void 0:arguments[0],t=(arguments.length<=1?void 0:arguments[1])||{});var i=t,a=i.name,o=i.params,s=i.query;if(a)return(e=r.generateUrl({name:a,params:o,query:s}))?r.back(e,j.extend({},t,{name:null,params:null,query:null})):r;var l=r.app;$e(r,"back");var c,u=r.currentRoute.modal;if(u||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(e){r.currentRoute.route[e]&&(u=!0,c=e)})),u){var d,h=r.currentRoute.modal||r.currentRoute.route.modalInstance||l[c].get(),f=r.history[r.history.length-2];if(h&&h.$el){var p=h.$el.prevAll(".modal-in");p.length&&p[0].f7Modal&&(d=p[0].f7Modal.route)}if(d||(d=r.findMatchingRoute(f)),!d&&f&&(d={url:f,path:f.split("?")[0],query:j.parseUrlQuery(f),route:{path:f.split("?")[0],url:f}}),!(e&&0!==e.replace(/[# ]/g,"").trim().length||d&&h))return r;var m=t.force&&d&&e;if(d&&h){var v=F.a.ie||F.a.edge||F.a.firefox&&!F.a.ios,g=r.params.pushState&&!1!==t.pushState;g&&!v&&Se.back(),r.currentRoute=d,r.history.pop(),r.saveHistory(),g&&v&&Se.back(),r.modalRemove(h),m&&r.navigate(e,{reloadCurrent:!0})}else h&&(r.modalRemove(h),e&&r.navigate(e,{reloadCurrent:!0}));return r}var y,b=r.$el.children(".page-current").prevAll(".page-previous:not(.page-master)").eq(0);if(r.params.masterDetailBreakpoint>0){var _=r.$el.children(".page-current").prevAll(".page-master").eq(0);if(_.length){var w=r.history[r.history.length-2],k=r.findMatchingRoute(w);k&&k.route===_[0].f7Page.route.route&&(b=_,t.preload||(y=l.width>=r.params.masterDetailBreakpoint))}}if(!t.force&&b.length&&!y){if(r.params.pushState&&b[0].f7Page&&r.history[r.history.length-2]!==b[0].f7Page.route.url)return r.back(r.history[r.history.length-2],j.extend(t,{force:!0})),r;var E=b[0].f7Page.route;return xe.call(r,E,r.currentRoute,(function(){r.loadBack({el:b},j.extend(t,{route:E}))}),(function(){})),r}if("#"===e&&(e=void 0),e&&"/"!==e[0]&&0!==e.indexOf("#")&&(e=((r.path||"/")+e).replace("//","/")),!e&&r.history.length>1&&(e=r.history[r.history.length-2]),y&&!t.force&&r.history[r.history.length-3])return r.back(r.history[r.history.length-3],j.extend({},t||{},{force:!0,animate:!1}));if(y&&!t.force)return r;if((n=r.findMatchingRoute(e))||e&&(n={url:e,path:e.split("?")[0],query:j.parseUrlQuery(e),route:{path:e.split("?")[0],url:e}}),!n)return r;if(n.route.redirect)return Ce.call(r,"back",n,t);var S,T={};if(n.route.options?j.extend(T,n.route.options,t):j.extend(T,t),T.route=n,T&&T.context&&(n.context=T.context,T.route.context=T.context),T.force&&r.params.stackPages&&(r.$el.children(".page-previous.stacked").each((function(e,t){t.f7Page&&t.f7Page.route&&t.f7Page.route.url===n.url&&(S=!0,r.loadBack({el:t},T))})),S))return r;function C(){var e=!1;function t(e,t){r.allowPageChange=!1,t&&t.context&&(n.context?n.context=j.extend({},n.context,t.context):n.context=t.context,T.route.context=n.context),r.loadBack(e,j.extend(T,t),!0)}function i(){r.allowPageChange=!0}n.route.keepAlive&&n.route.keepAliveData&&(r.loadBack({el:n.route.keepAliveData.pageEl},T),e=!0),"url content component pageName el componentUrl template templateUrl".split(" ").forEach((function(t){n.route[t]&&!e&&(e=!0,r.loadBack(K()({},t,n.route[t]),T))})),e||(n.route.async&&(r.allowPageChange=!1,n.route.async.call(r,n,r.currentRoute,t,i)),n.route.asyncComponent&&Le(r,n.route.asyncComponent,t,i))}function M(){r.allowPageChange=!0}return T.preload?C():xe.call(r,n,r.currentRoute,(function(){n.route.modules?l.loadModules(Array.isArray(n.route.modules)?n.route.modules:[n.route.modules]).then((function(){C()})).catch((function(){M()})):C()}),(function(){M()})),r},Oe.prototype.clearPreviousHistory=function(){$e(this,"clearPreviousHistory");var e=this.history[this.history.length-1];!function(e){$e(e,"clearPreviousPages");var t=e.app,n=e.dynamicNavbar;e.$el.children(".page").filter((function(t,n){return!(!e.currentRoute||!e.currentRoute.modal&&!e.currentRoute.panel)||n!==e.currentPageEl})).each((function(r,i){var a=g(i),o=g(t.navbar.getElByPage(a));e.params.stackPages&&e.initialPages.indexOf(a[0])>=0?(a.addClass("stacked"),n&&o.addClass("stacked")):(e.pageCallback("beforeRemove",a,o,"previous",void 0,{}),e.removePage(a),n&&o.length&&e.removeNavbar(o))}))}(this),this.history=[e],this.view.history=[e],this.saveHistory()};var Ie=Oe,Ae={name:"router",static:{Router:Ie},instance:{cache:{xhr:[],templates:[],components:[]}},create:function(){this.app?this.params.router&&(this.router=new Ie(this.app,this)):this.router=new Ie(this)}};var De=function(e){var t=e.app;if(!e.resizableInitialized){j.extend(e,{resizable:!0,resizableWidth:null,resizableInitialized:!0});var n=g("html"),r=e.$el;if(r){var i,a,o,s,l,c,u,d={};(i=e.$el.children(".view-resize-handler")).length||(e.$el.append('<div class="view-resize-handler"></div>'),i=e.$el.children(".view-resize-handler")),e.$resizeHandlerEl=i,r.addClass("view-resizable");var h=!!ue.a.passiveListener&&{passive:!0};e.$el.on(t.touchEvents.start,".view-resize-handler",p,h),t.on("touchmove:active",m),t.on("touchend:passive",v),t.on("resize",y),e.on("beforeOpen",y),e.once("viewDestroy",(function(){r.removeClass("view-resizable"),e.$resizeHandlerEl.remove(),e.$el.off(t.touchEvents.start,".view-resize-handler",p,h),t.off("touchmove:active",m),t.off("touchend:passive",v),t.off("resize",y),e.off("beforeOpen",y)}))}}function f(e){if(!e)return null;if(e.indexOf("%")>=0||e.indexOf("vw")>=0)return parseInt(e,10)/100*t.width;var n=parseInt(e,10);return Number.isNaN(n)?null:n}function p(t){if(e.resizable&&r.hasClass("view-resizable")&&r.hasClass("view-master-detail")){d.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,d.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY,o=!1,a=!0;var n=r.children(".page-master");c=f(n.css("min-width")),u=f(n.css("max-width"))}}function m(h){if(a){h.f7PreventSwipePanel=!0;var f="touchmove"===h.type?h.targetTouches[0].pageX:h.pageX;o||(l=i[0].offsetLeft+i[0].offsetWidth,r.addClass("view-resizing"),n.css("cursor","col-resize")),o=!0,h.preventDefault(),s=f-d.x;var p=l+s;c&&!Number.isNaN(c)&&(p=Math.max(p,c)),u&&!Number.isNaN(u)&&(p=Math.min(p,u)),p=Math.min(Math.max(p,0),t.width),e.resizableWidth=p,n[0].style.setProperty("--f7-page-master-width","".concat(p,"px")),r.trigger("view:resize",p),e.emit("local::resize viewResize",e,p)}}function v(){if(g("html").css("cursor",""),!a||!o)return a=!1,void(o=!1);a=!1,o=!1,n[0].style.setProperty("--f7-page-master-width","".concat(e.resizableWidth,"px")),r.removeClass("view-resizing")}function y(){e.resizableWidth&&(c=f(i.css("min-width")),u=f(i.css("max-width")),c&&!Number.isNaN(c)&&e.resizableWidth<c&&(e.resizableWidth=Math.max(e.resizableWidth,c)),u&&!Number.isNaN(u)&&e.resizableWidth>u&&(e.resizableWidth=Math.min(e.resizableWidth,u)),e.resizableWidth=Math.min(Math.max(e.resizableWidth,0),t.width),n[0].style.setProperty("--f7-page-master-width","".concat(e.resizableWidth,"px")))}};function Ne(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Re=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(Ne()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e,t){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o()(this,r),i=n.call(this,a,[e]);var s,l,c,u=e,d=g(t),h=k()(i),f={routes:[],routesAdd:[]};if(0===d.length){var p="Framework7: can't create a View instance because ";throw p+="string"==typeof t?'the selector "'.concat(t,"\" didn't match any element"):"el must be an HTMLElement or Dom7 object",new Error(p)}return h.params=j.extend(f,u.params.view,a),h.params.routes.length>0?h.routes=h.params.routes:h.routes=[].concat(u.routes,h.params.routesAdd),s="string"==typeof t?t:(d.attr("id")?"#".concat(d.attr("id")):"")+(d.attr("class")?".".concat(d.attr("class").replace(/ /g,".").replace(".active","")):""),"ios"===u.theme&&h.params.iosDynamicNavbar&&0===(l=d.children(".navbars").eq(0)).length&&(l=g('<div class="navbars"></div>')),j.extend(!1,h,{app:u,$el:d,el:d[0],name:h.params.name,main:h.params.main||d.hasClass("view-main"),$navbarsEl:l,navbarsEl:l?l[0]:void 0,selector:s,history:[],scrollHistory:{}}),d[0].f7View=h,h.useModules(),u.views.push(h),h.main&&(u.views.main=h),h.name&&(u.views[h.name]=h),h.index=u.views.indexOf(h),c=h.name?"view_".concat(h.name):h.main?"view_main":"view_".concat(h.index),h.id=c,u.initialized?h.init():u.on("init",(function(){h.init()})),C()(i,h)}return b()(r,[{key:"destroy",value:function(){var e=this,t=e.app;e.$el.trigger("view:beforedestroy"),e.emit("local::beforeDestroy viewBeforeDestroy",e),t.off("resize",e.checkMasterDetailBreakpoint),e.main?(t.views.main=null,delete t.views.main):e.name&&(t.views[e.name]=null,delete t.views[e.name]),e.$el[0].f7View=null,delete e.$el[0].f7View,t.views.splice(t.views.indexOf(e),1),e.params.router&&e.router&&e.router.destroy(),e.emit("local::destroy viewDestroy",e),Object.keys(e).forEach((function(t){e[t]=null,delete e[t]})),e=null}},{key:"checkMasterDetailBreakpoint",value:function(e){var t=this.app,n=this.$el.hasClass("view-master-detail"),r=t.width>=this.params.masterDetailBreakpoint&&this.$el.children(".page-master").length;void 0===e&&r||!0===e?(this.$el.addClass("view-master-detail"),n||(this.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",this),this.$el.trigger("view:masterDetailBreakpoint"))):(this.$el.removeClass("view-master-detail"),n&&(this.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",this),this.$el.trigger("view:masterDetailBreakpoint")))}},{key:"initMasterDetail",value:function(){var e=this.app;this.checkMasterDetailBreakpoint=this.checkMasterDetailBreakpoint.bind(this),this.checkMasterDetailBreakpoint(),this.params.masterDetailResizable&&De(this),e.on("resize",this.checkMasterDetailBreakpoint)}},{key:"init",value:function(){this.params.router&&(this.params.masterDetailBreakpoint>0&&this.initMasterDetail(),this.router.init(),this.$el.trigger("view:init"),this.emit("local::init viewInit",this))}}]),r}(z);Re.use(Ae);var Be=Re;var Ye={name:"clicks",params:{clicks:{externalLinks:".external"}},on:{init:function(){!function(e){e.on("click",(function(t){var n=g(t.target),r=n.closest("a"),i=r.length>0,a=i&&r.attr("href");if(i&&(r.is(e.params.clicks.externalLinks)||a&&a.indexOf("javascript:")>=0)){var o=r.attr("target");a&&s.b.cordova&&s.b.cordova.InAppBrowser&&("_system"===o||"_blank"===o)&&(t.preventDefault(),s.b.cordova.InAppBrowser.open(a,o))}else{Object.keys(e.modules).forEach((function(r){var i=e.modules[r].clicks;i&&(t.preventF7Router||Object.keys(i).forEach((function(r){var a=n.closest(r).eq(0);a.length>0&&i[r].call(e,a,a.dataset(),t)})))}));var l={};if(i&&(t.preventDefault(),l=r.dataset()),!t.preventF7Router)if(!r.hasClass("prevent-router")&&!r.hasClass("router-prevent"))if(a&&a.length>0&&"#"!==a[0]||r.hasClass("back")){var c;if(l.view&&"current"===l.view?c=e.views.current:l.view?c=g(l.view)[0].f7View:(c=n.parents(".view")[0]&&n.parents(".view")[0].f7View,!r.hasClass("back")&&c&&c.params.linksView&&("string"==typeof c.params.linksView?c=g(c.params.linksView)[0].f7View:c.params.linksView instanceof Be&&(c=c.params.linksView))),c||e.views.main&&(c=e.views.main),!c||!c.router)return;if(l.context&&"string"==typeof l.context)try{l.context=JSON.parse(l.context)}catch(e){}r[0].f7RouteProps&&(l.props=r[0].f7RouteProps),r.hasClass("back")?c.router.back(a,l):c.router.navigate(a,l)}}}))}(this)}}},je={name:"routerTemplateLoader",proto:{templateLoader:function(e,t,n,r,a){var o=this;function s(e){var t,s;try{if("function"==typeof(s=n.context||{}))s=s.call(o);else if("string"==typeof s)try{s=JSON.parse(s)}catch(e){throw a(),e}t="function"==typeof e?e(s):i.a.compile(e)(j.extend({},s||{},{$app:o.app,$root:j.extend({},o.app.data,o.app.methods),$route:n.route,$f7route:n.route,$router:o,$f7router:o,$theme:{ios:"ios"===o.app.theme,md:"md"===o.app.theme,aurora:"aurora"===o.app.theme}}))}catch(e){throw a(),e}r(t,{context:s})}t?(o.xhr&&(o.xhr.abort(),o.xhr=!1),o.xhrRequest(t,n).then((function(e){s(e)})).catch((function(){a()}))):s(e)},modalTemplateLoader:function(e,t,n,r,i){return this.templateLoader(e,t,n,(function(e){r(e)}),i)},tabTemplateLoader:function(e,t,n,r,i){return this.templateLoader(e,t,n,(function(e){r(e)}),i)},pageTemplateLoader:function(e,t,n,r,i){var a=this;return a.templateLoader(e,t,n,(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(a.getPageEl(e),t)}),i)}}},Fe={name:"routerComponentLoader",proto:{componentLoader:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,o=this,s=o.app,l="string"==typeof e?e:t,c=o.replaceRequestUrlParams(l,r);function u(e){var t=r.context||{};if("function"==typeof t)t=t.call(o);else if("string"==typeof t)try{t=JSON.parse(t)}catch(e){throw a(e),e}var n=j.merge({},t,{$route:r.route,$f7route:r.route,$router:o,$f7router:o,$theme:{ios:"ios"===s.theme,md:"md"===s.theme,aurora:"aurora"===s.theme}});r.componentOptions&&r.componentOptions.el&&(e.el=r.componentOptions.el),r.componentOptions&&r.componentOptions.root&&(e.root=r.componentOptions.root),s.component.create(e,n).then((function(e){i(e.el)})).catch((function(e){throw a(e),new Error(e)}))}c&&o.params.componentCache&&o.cache.components.forEach((function(e){e.url===c&&(n=e.component)})),c&&n?u(n):c&&!n?(o.xhr&&(o.xhr.abort(),o.xhr=!1),o.xhrRequest(l,r).then((function(e){var t=s.component.parse(e);o.params.componentCache&&o.cache.components.push({url:c,component:t}),u(t)})).catch((function(e){throw a(),e}))):u(e)},modalComponentLoader:function(e,t,n,r,i,a){this.componentLoader(t,n,r,(function(e){i(e)}),a)},tabComponentLoader:function(e,t,n,r,i,a){this.componentLoader(t,n,r,(function(e){i(e)}),a)},pageComponentLoader:function(e,t,n,r,i,a){this.componentLoader(t,n,r,(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(e,t)}),a)}}};function He(e,t,n,r,i){return{sel:e,data:t,children:n,text:r,elm:i,key:void 0===t?void 0:t.key}}var Ue=He,ze=Array.isArray;function Ve(e){return"string"==typeof e||"number"==typeof e}function qe(e,t,n){var r,i,a,o={};if(void 0!==n?(o=t,ze(n)?r=n:Ve(n)?i=n:n&&n.sel&&(r=[n])):void 0!==t&&(ze(t)?r=t:Ve(t)?i=t:t&&t.sel?r=[t]:o=t),ze(r))for(a=0;a<r.length;++a)Ve(r[a])&&(r[a]=He(void 0,void 0,void 0,r[a],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||function e(t,n,r){if(t.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==n)for(var i=0;i<n.length;++i){var a=n[i].data;void 0!==a&&e(a,n[i].children,n[i].sel)}}(o,r,e),He(e,o,r,i,void 0)}var We,Ge,Ke=qe,Je={},Xe="area base br col command embed hr img input keygen link menuitem meta param source track wbr".split(" "),Qe="hidden checked disabled readonly selected autofocus autoplay required multiple value indeterminate".split(" "),Ze="hidden checked disabled readonly selected autofocus autoplay required multiple readOnly indeterminate".split(" "),et=s.a.createElement("div");function tt(e){return e.split("-").map((function(e,t){return 0===t?e.toLowerCase():e[0].toUpperCase()+e.substr(1)})).join("")}function nt(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(t).forEach((function(n){e[tt(n)]=t[n]}))})),e}function rt(e,t,n,r,i){var a={},o=[],s=[],l=[],c=[],u=!1;e&&e.attrs&&e.attrs.component&&(i=e.attrs.component,delete e.attrs.component,u=!0);var d=i&&i.indexOf("-")>0&&Je[i];if(d&&(o.push((function(n){(n.sel===i||u)&&function(e){var t=e.app,n=e.vnode,r=e.tagName,i=e.data;t.component.create(Object.assign({el:n.elm},Je[r]),{$props:nt(i.attrs||{},i.props||{})},n.children).then((function(e){n.data&&n.data.on&&e&&e.$el&&Object.keys(n.data.on).forEach((function(t){e.$el.on(t,n.data.on[t])})),n.elm.__component__=e}))}({app:t,vnode:n,tagName:i,data:e})})),s.push((function(e){!function(e){var t=e&&e.elm&&e.elm.__component__;if(t){var n=t.el,r=t.$el;e.data&&e.data.on&&r&&Object.keys(e.data.on).forEach((function(t){r.off(t,e.data.on[t])})),t.$destroy&&t.$destroy(),n&&n.parentNode&&n.parentNode.removeChild(n),delete e.elm.__component__}}(e)})),l.push((function(e,t){!function(e){var t=e&&e.elm&&e.elm.__component__;if(t){var n=nt(e.data.attrs||{},e.data.props||{});t.$children=e.children,Object.assign(t.$props,n),t.$update()}}(t)}))),!d){if(!e||!e.attrs||!e.attrs.class)return a;e.attrs.class.split(" ").forEach((function(e){n||o.push.apply(o,L()(t.getVnodeHooks("insert",e))),s.push.apply(s,L()(t.getVnodeHooks("destroy",e))),l.push.apply(l,L()(t.getVnodeHooks("update",e))),c.push.apply(c,L()(t.getVnodeHooks("postpatch",e)))}))}return r&&!n&&c.push((function(e,t){var n=t||e;n&&n.data&&n.data.context&&n.data.context.$options.updated&&n.data.context.$hook("updated")})),0===o.length&&0===s.length&&0===l.length&&0===c.length||(o.length&&(a.insert=function(e){o.forEach((function(t){return t(e)}))}),s.length&&(a.destroy=function(e){s.forEach((function(t){return t(e)}))}),l.length&&(a.update=function(e,t){l.forEach((function(n){return n(e,t)}))}),c.length&&(a.postpatch=function(e,t){c.forEach((function(n){return n(e,t)}))})),a}function it(e,t,n,r,i,a){var o={context:t},l=e.attributes;Array.prototype.forEach.call(l,(function(e){var n=e.name,r=e.value;if(Qe.indexOf(n)>=0)o.props||(o.props={}),"readonly"===n&&(n="readOnly"),Ze.indexOf(n)>=0?o.props[n]=!1!==r:o.props[n]=r;else if("key"===n)o.key=r;else if(0===n.indexOf("@")){o.on||(o.on={});var a=n.substr(1),l=!1,c=!1,u=!1;a.indexOf(".")>=0&&a.split(".").forEach((function(e,t){0===t?a=e:("stop"===e&&(l=!0),"prevent"===e&&(c=!0),"once"===e&&(u=!0))})),o.on[a]=function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.stop,o=i.prevent,l=i.once,c=!1,u=[],d=!0;if((n=e.indexOf("(")<0?e:e.split("(")[0]).indexOf(".")>=0)n.split(".").forEach((function(e,i){if(0!==i||"this"!==e){if(0===i&&"window"===e)return r=s.b,void(d=!1);if(r||(r=t),!r[e])throw new Error("Framework7: Component doesn't have method \"".concat(n.split(".").slice(0,i+1).join("."),'"'));r=r[e]}}));else{if(!t[n])throw new Error("Framework7: Component doesn't have method \"".concat(n,'"'));r=t[n]}function h(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];var d=i[0];if(!l||!c){if(a&&d.stopPropagation(),o&&d.preventDefault(),c=!0,e.indexOf("(")<0)u=i;else{var h=e.split("(")[1].split(")")[0].replace(/'[^']*'|"[^"]*"/g,(function(e){return e.replace(/,/g,"<_comma_>")})).split(",").map((function(e){return e.replace(/<_comma_>/g,",")}));h.forEach((function(e){var n=e.trim();if(isNaN(n))if("true"===n)n=!0;else if("false"===n)n=!1;else if("null"===n)n=null;else if("undefined"===n)n=void 0;else if('"'===n[0])n=n.replace(/"/g,"");else if("'"===n[0])n=n.replace(/'/g,"");else if(n.indexOf(".")>0){var r;n.split(".").forEach((function(e){r||(r=t),r=r[e]})),n=r}else n=t[n];else n=parseFloat(n);u.push(n)}))}r.apply(void 0,L()(u))}}return d&&(r=r.bind(t)),h}(r,t,{stop:l,prevent:c,once:u})}else if("style"===n)if(r.indexOf("{")>=0&&r.indexOf("}")>=0)try{o.style=JSON.parse(r)}catch(e){o.attrs||(o.attrs={}),o.attrs.style=r}else o.attrs||(o.attrs={}),o.attrs.style=r;else o.attrs||(o.attrs={}),o.attrs[n]=r,"id"!==n||o.key||i||(o.key=r)})),i&&t&&t.$id&&t.$style&&t.$styleScoped&&(o.attrs||(o.attrs={}),o.attrs["data-f7-".concat(t.$id)]="");var c=rt(o,n,r,i,a);return c.prepatch=function(e,t){e&&t&&e&&e.data&&e.data.props&&Object.keys(e.data.props).forEach((function(n){Ze.indexOf(n)<0||(t.data||(t.data={}),t.data.props||(t.data.props={}),!0!==e.data.props[n]||n in t.data.props||(t.data.props[n]=!1))}))},c&&(o.hook=c),o}function at(e,t,n,r){for(var i=[],a=e.childNodes,o=0;o<a.length;o+=1){var s=ot(a[o],t,n,r);Array.isArray(s)?i.push.apply(i,L()(s)):s&&i.push(s)}return i}function ot(e,t,n,r,i){if(3===e.nodeType)return e.textContent;if(1!==e.nodeType)return null;var a=e instanceof s.b.SVGElement?e.nodeName:e.nodeName.toLowerCase();return"slot"===a?function(e,t,n,r){var i=e.getAttribute("name")||"default",a=(t.$children||[]).filter((function(e){var t="default";return e.data&&(t=e.data.attrs&&e.data.attrs.slot||"default"),t===i}));return 0===a.length?at(e,t,n,r):a}(e,t,n,r):Ke(a,it(e,t,n,r,i,a),Xe.indexOf(a)>=0?[]:at(e,t,n,r))}var st=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=t.trim(),a=et;0===i.indexOf("<tr")&&(We||(We=s.a.createElement("tbody")),a=We),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(Ge||(Ge=s.a.createElement("tr")),a=Ge),a.innerHTML=i;for(var o=0;o<a.childNodes.length;o+=1)e||1!==a.childNodes[o].nodeType||(e=a.childNodes[o]);var l=ot(e,n,n.$app,r,!0);return a.innerHTML="",l};var lt={createElement:function(e){return document.createElement(e)},createElementNS:function(e,t){return document.createElementNS(e,t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){n&&n.parentNode!==e&&n.__component__&&(n=n.__component__.el),e.insertBefore(t,n)},removeChild:function(e,t){e&&e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function ct(e){return void 0===e}function ut(e){return void 0!==e}var dt=Ue("",{},[],void 0,void 0);function ht(e,t){return e.key===t.key&&e.sel===t.sel}function ft(e,t,n){var r,i,a,o={};for(r=t;r<=n;++r)null!=(a=e[r])&&void 0!==(i=a.key)&&(o[i]=r);return o}var pt=["create","update","remove","destroy","pre","post"];function mt(e,t){var n,r=t.elm,i=e.data.attrs,a=t.data.attrs;if((i||a)&&i!==a){for(n in i=i||{},a=a||{}){var o=a[n];i[n]!==o&&(!0===o?r.setAttribute(n,""):!1===o?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,o):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,o):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}var vt={create:mt,update:mt};function gt(e,t){var n,r,i=t.elm,a=e.data.props,o=t.data.props;if((a||o)&&a!==o){for(n in o=o||{},a=a||{})o[n]||delete i[n];for(n in o)r=o[n],a[n]===r||"value"===n&&i[n]===r||(i[n]=r)}}var yt={create:gt,update:gt},bt="undefined"!=typeof window&&window.requestAnimationFrame||setTimeout;function _t(e,t,n){var r;r=function(){e[t]=n},bt((function(){bt(r)}))}function wt(e,t){var n,r,i=t.elm,a=e.data.style,o=t.data.style;if((a||o)&&a!==o){o=o||{};var s="delayed"in(a=a||{});for(r in a)o[r]||("-"===r[0]&&"-"===r[1]?i.style.removeProperty(r):i.style[r]="");for(r in o)if(n=o[r],"delayed"===r&&o.delayed)for(var l in o.delayed)n=o.delayed[l],s&&n===a.delayed[l]||_t(i.style,l,n);else"remove"!==r&&n!==a[r]&&("-"===r[0]&&"-"===r[1]?i.style.setProperty(r,n):i.style[r]=n)}}function kt(e,t,n){var r=e.type,i=n.data.on;i&&i[r]&&function(e,t,n){"function"==typeof e&&e.apply(void 0,[t].concat(L()(n)))}(i[r],e,t)}function Et(e,t){var n=e.data.on,r=e.listener,i=e.elm,a=t&&t.data.on,o=t&&t.elm;if(n!==a&&(n&&r&&(a?Object.keys(n).forEach((function(e){a[e]||g(i).off(e,r)})):Object.keys(n).forEach((function(e){g(i).off(e,r)}))),a)){var s=e.listener||function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];kt(t,r,e.vnode)};t.listener=s,s.vnode=t,n?Object.keys(a).forEach((function(e){n[e]||g(o).on(e,s)})):Object.keys(a).forEach((function(e){g(o).on(e,s)}))}}var St=function(e,t){var n,r,i={},a=void 0!==t?t:lt;for(n=0;n<pt.length;++n)for(i[pt[n]]=[],r=0;r<e.length;++r){var o=e[r][pt[n]];void 0!==o&&i[pt[n]].push(o)}function s(e,t){return function(){if(0==--t){var n=a.parentNode(e);a.removeChild(n,e)}}}function l(e,t){var n,r=e.data;void 0!==r&&ut(n=r.hook)&&ut(n=n.init)&&(n(e),r=e.data);var o=e.children,s=e.sel;if("!"===s)ct(e.text)&&(e.text=""),e.elm=a.createComment(e.text);else if(void 0!==s){var c=s.indexOf("#"),u=s.indexOf(".",c),d=c>0?c:s.length,h=u>0?u:s.length,f=-1!==c||-1!==u?s.slice(0,Math.min(d,h)):s,p=e.elm=ut(r)&&ut(n=r.ns)?a.createElementNS(n,f):a.createElement(f);for(d<h&&p.setAttribute("id",s.slice(d+1,h)),u>0&&p.setAttribute("class",s.slice(h+1).replace(/\./g," ")),n=0;n<i.create.length;++n)i.create[n](dt,e);if(ze(o))for(n=0;n<o.length;++n){var m=o[n];null!=m&&a.appendChild(p,l(m,t))}else Ve(e.text)&&a.appendChild(p,a.createTextNode(e.text));ut(n=e.data.hook)&&(n.create&&n.create(dt,e),n.insert&&t.push(e))}else e.elm=a.createTextNode(e.text);return e.elm}function c(e,t,n,r,i,o){for(;r<=i;++r){var s=n[r];null!=s&&a.insertBefore(e,l(s,o),t)}}function u(e){var t,n,r=e.data;if(void 0!==r){for(ut(t=r.hook)&&ut(t=t.destroy)&&t(e),t=0;t<i.destroy.length;++t)i.destroy[t](e);if(void 0!==e.children)for(n=0;n<e.children.length;++n)null!=(t=e.children[n])&&"string"!=typeof t&&u(t)}}function d(e,t,n,r){for(;n<=r;++n){var o=void 0,l=void 0,c=void 0,d=t[n];if(null!=d)if(ut(d.sel)){for(u(d),l=i.remove.length+1,c=s(d.elm,l),o=0;o<i.remove.length;++o)i.remove[o](d,c);ut(o=d.data)&&ut(o=o.hook)&&ut(o=o.remove)?o(d,c):c()}else a.removeChild(e,d.elm)}}function h(e,t,n){var r,o;ut(r=t.data)&&ut(o=r.hook)&&ut(r=o.prepatch)&&r(e,t);var s=t.elm=e.elm,u=e.children,f=t.children;if(e!==t){if(void 0!==t.data){for(r=0;r<i.update.length;++r)i.update[r](e,t);ut(r=t.data.hook)&&ut(r=r.update)&&r(e,t)}ct(t.text)?ut(u)&&ut(f)?u!==f&&function(e,t,n,r){for(var i,o,s,u=0,f=0,p=t.length-1,m=t[0],v=t[p],g=n.length-1,y=n[0],b=n[g];u<=p&&f<=g;)null==m?m=t[++u]:null==v?v=t[--p]:null==y?y=n[++f]:null==b?b=n[--g]:ht(m,y)?(h(m,y,r),m=t[++u],y=n[++f]):ht(v,b)?(h(v,b,r),v=t[--p],b=n[--g]):ht(m,b)?(h(m,b,r),a.insertBefore(e,m.elm,a.nextSibling(v.elm)),m=t[++u],b=n[--g]):ht(v,y)?(h(v,y,r),a.insertBefore(e,v.elm,m.elm),v=t[--p],y=n[++f]):(void 0===i&&(i=ft(t,u,p)),ct(o=i[y.key])?(a.insertBefore(e,l(y,r),m.elm),y=n[++f]):((s=t[o]).sel!==y.sel?a.insertBefore(e,l(y,r),m.elm):(h(s,y,r),t[o]=void 0,a.insertBefore(e,s.elm,m.elm)),y=n[++f]));(u<=p||f<=g)&&(u>p?c(e,null==n[g+1]?null:n[g+1].elm,n,f,g,r):d(e,t,u,p))}(s,u,f,n):ut(f)?(ut(e.text)&&a.setTextContent(s,""),c(s,null,f,0,f.length-1,n)):ut(u)?d(s,u,0,u.length-1):ut(e.text)&&a.setTextContent(s,""):e.text!==t.text&&a.setTextContent(s,t.text),ut(o)&&ut(r=o.postpatch)&&r(e,t)}}return function(e,t){var n,r,o,s=[];for(n=0;n<i.pre.length;++n)i.pre[n]();for(function(e){return void 0!==e.sel}(e)||(e=function(e){var t=e.id?"#"+e.id:"",n=e.className?"."+e.className.split(" ").join("."):"";return Ue(a.tagName(e).toLowerCase()+t+n,{},[],void 0,e)}(e)),ht(e,t)?h(e,t,s):(r=e.elm,o=a.parentNode(r),l(t,s),null!==o&&(a.insertBefore(o,t.elm,a.nextSibling(r)),d(o,[e],0,0))),n=0;n<s.length;++n)s[n].data.hook.insert(s[n]);for(n=0;n<i.post.length;++n)i.post[n]();return t}}([vt,yt,{create:wt,update:wt,destroy:function(e){var t,n,r=e.elm,i=e.data.style;if(i&&(t=i.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){var n=e.data.style;if(n&&n.remove){var r,i=e.elm,a=0,o=n.remove,s=0,l=[];for(r in o)l.push(r),i.style[r]=o[r];for(var c=getComputedStyle(i)["transition-property"].split(", ");a<c.length;++a)-1!==l.indexOf(c[a])&&s++;i.addEventListener("transitionend",(function(e){e.target===i&&--s,0===s&&t()}))}else t()}},{create:Et,update:Et,destroy:Et}]),Tt={},Ct=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;o()(this,e);var a=j.id(),l=this;j.merge(l,{$props:{}},r,{$:g,$$:g,$dom7:g,$app:t,$f7:t,$options:j.extend({id:a},n),$id:n.isClassComponent?l.constructor.id:n.id||a,$mixins:n.isClassComponent?l.constructor.mixins:n.mixins,$children:i||[],$isRootComponent:!!n.root});var c=l.$options;if(l.$mixins&&l.$mixins.length)for(var u=l.$mixins.length-1;u>=0;u-=1){var d=l.$mixins[u];"string"==typeof d&&(Tt[d]?l.$mixins[u]=Tt[d]:l.$mixins.splice(u,1))}Object.defineProperty(l,"$slots",{enumerable:!0,configurable:!0,get:function(){var e={};return l.$children.forEach((function(t){var n="default";t.data&&(n=t.data.attrs&&t.data.attrs.slot||"default"),e[n]||(e[n]=[]),e[n].push(t)})),e}}),Object.defineProperty(l,"$root",{enumerable:!0,configurable:!0,get:function(){if(l.$isRootComponent)return l;if(t.rootComponent)return l.$onRootUpdated||(l.$onRootUpdated=function(){return l.$update()},t.on("rootComponentUpdated",l.$onRootUpdated)),t.rootComponent;var e=j.merge({},t.data,t.methods);return s.b&&s.b.Proxy&&(e=new s.b.Proxy(e,{set:function(e,n,r){t.data[n]=r},deleteProperty:function(e,n){delete t.data[n],delete t.methods[n]},has:function(e,n){return n in t.data||n in t.methods}})),e},set:function(){}}),c.render&&(c.render=c.render.bind(l));var h={};return l.$mixins&&l.$mixins.length&&l.$mixins.forEach((function(e){e.methods&&Object.assign(h,e.methods)})),c.methods&&Object.assign(h,c.methods),Object.keys(h).forEach((function(e){l[e]=h[e].bind(l)})),c.on&&Object.keys(c.on).forEach((function(e){c.on[e]=c.on[e].bind(l)})),c.once&&Object.keys(c.once).forEach((function(e){c.once[e]=c.once[e].bind(l)})),l.$style=c.isClassComponent?l.constructor.style:c.style,l.$styleScoped=c.isClassComponent?l.constructor.styleScoped:c.styleScoped,l.__updateQueue=[],new Promise((function(e,t){l.$hook("data",!0).then((function(t){var n={};t.forEach((function(e){Object.assign(n,e||{})})),j.extend(l,n),l.$hook("beforeCreate");var r=l.$render();if(l.$options.el)return r=r.trim(),l.$vnode=st(r,l,!0),l.$style&&(l.$styleEl=s.a.createElement("style"),l.$styleEl.innerHTML=l.$style),l.el=l.$options.el,St(l.el,l.$vnode),l.el=l.$vnode.elm,l.$el=g(l.el),l.$attachEvents(),l.el.f7Component=l,l.$hook("created"),l.$mount(),void e(l);r&&"string"==typeof r?(r=r.trim(),l.$vnode=st(r,l,!0),l.el=s.a.createElement(l.$vnode.sel||"div"),St(l.el,l.$vnode),l.$el=g(l.el)):r&&(l.el=r,l.$el=g(l.el)),l.$style&&(l.$styleEl=s.a.createElement("style"),l.$styleEl.innerHTML=l.$style),l.$attachEvents(),l.el&&(l.el.f7Component=l),l.$hook("created"),e(l)})).catch((function(e){t(e)}))}))}return b()(e,[{key:"$attachEvents",value:function(){var e=this,t=e.$options,n=e.$el;e.$mixins&&e.$mixins.length&&(e.$detachEventsHandlers={},e.$mixins.forEach((function(t){t.on&&Object.keys(t.on).forEach((function(r){var i=t.on[r].bind(e);e.$detachEventsHandlers[r]||(e.$detachEventsHandlers[r]=[]),e.$detachEventsHandlers[r].push(i),n.on(j.eventNameToColonCase(r),i)})),t.once&&Object.keys(t.once).forEach((function(r){var i=t.once[r].bind(e);e.$detachEventsHandlers[r]||(e.$detachEventsHandlers[r]=[]),e.$detachEventsHandlers[r].push(i),n.once(j.eventNameToColonCase(r),i)}))}))),t.on&&Object.keys(t.on).forEach((function(e){n.on(j.eventNameToColonCase(e),t.on[e])})),t.once&&Object.keys(t.once).forEach((function(e){n.once(j.eventNameToColonCase(e),t.once[e])}))}},{key:"$detachEvents",value:function(){var e=this,t=e.$options,n=e.$el;t.on&&Object.keys(t.on).forEach((function(e){n.off(j.eventNameToColonCase(e),t.on[e])})),t.once&&Object.keys(t.once).forEach((function(e){n.off(j.eventNameToColonCase(e),t.once[e])})),e.$detachEventsHandlers&&(Object.keys(e.$detachEventsHandlers).forEach((function(t){e.$detachEventsHandlers[t].forEach((function(e){n.off(j.eventNameToColonCase(t),e)})),e.$detachEventsHandlers[t]=[],delete e.$detachEventsHandlers[t]})),e.$detachEventsHandlers=null,delete e.$detachEventsHandlers)}},{key:"$render",value:function(){var e=this.$options,t="";return e.render?t=e.render():this.render?t=this.render.call(this):e.template&&(t="string"==typeof e.template?i.a.compile(e.template)(this):e.template(this)),t}},{key:"$startUpdateQueue",value:function(){var e=this;e.__requestAnimationFrameId||(e.__requestAnimationFrameId=s.b.requestAnimationFrame((function(){e.__updateIsPending&&function(){var t=e.$render();if(t&&"string"==typeof t){t=t.trim();var n=st(t,e,!1);e.$vnode=St(e.$vnode,n)}}();var t=L()(e.__updateQueue);e.__updateQueue=[],e.__updateIsPending=!1,s.b.cancelAnimationFrame(e.__requestAnimationFrameId),delete e.__requestAnimationFrameId,delete e.__updateIsPending,t.forEach((function(e){return e()})),t=[]})))}},{key:"$tick",value:function(e){var t=this;return new Promise((function(n){t.__updateQueue.push((function(){n(),e&&e()})),t.$startUpdateQueue()}))}},{key:"$update",value:function(e){var t=this;return new Promise((function(n){t.__updateIsPending=!0,t.__updateQueue.push((function(){n(),e&&e(),t.$isRootComponent&&t.$f7.emit("rootComponentUpdated")})),t.$startUpdateQueue()}))}},{key:"$setState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=this;return j.merge(n,e),n.$update(t)}},{key:"$f7ready",value:function(e){var t=this;this.$f7.initialized?e(this.$f7):this.$f7.once("init",(function(){e(t.$f7)}))}},{key:"$mount",value:function(e){this.$hook("beforeMount"),this.$styleEl&&g("head").append(this.$styleEl),e&&e(this.el),this.$hook("mounted")}},{key:"$destroy",value:function(){this.$hook("beforeDestroy"),this.$styleEl&&g(this.$styleEl).remove(),this.$onRootUpdated&&(this.$f7.off("rootComponentUpdated",this.$onRootUpdated),delete this.$onRootUpdated),this.$detachEvents(),this.$hook("destroyed"),this.el&&this.el.f7Component&&(this.el.f7Component=null,delete this.el.f7Component),this.$vnode&&(this.$vnode=St(this.$vnode,{sel:this.$vnode.sel,data:{}})),s.b.cancelAnimationFrame(this.__requestAnimationFrameId),j.deleteProps(this)}},{key:"$hook",value:function(e,t){var n=this;if(t){var r=[];return n.$mixins&&n.$mixins.length&&n.$mixins.forEach((function(t){t[e]&&r.push(t[e].call(n))})),n[e]&&"function"==typeof n[e]&&r.push(n[e].call(n)),n.$options[e]&&r.push(n.$options[e].call(n)),Promise.all(r)}return n.$mixins&&n.$mixins.length&&n.$mixins.forEach((function(t){t[e]&&"function"==typeof t[e]&&t[e].call(n)})),n.$options[e]?n.$options[e].call(n):n[e]?n[e].call(n):void 0}}]),e}();var Mt=function(e){var t,n=j.id(),r="f7_component_create_callback_".concat(n),a="f7_component_render_callback_".concat(n),o=e.match(/<template([ ]?)([a-z0-9-]*)>/),l=o[2]||"t7";o&&(t=e.split(/<template[ ]?[a-z0-9-]*>/).filter((function(e,t){return t>0})).join("<template>").split("</template>").filter((function(e,t,n){return t<n.length-1})).join("</template>").replace(/{{#raw}}([ \n]*)<template/g,"{{#raw}}<template").replace(/\/template>([ \n]*){{\/raw}}/g,"/template>{{/raw}}").replace(/([ \n])<template/g,"$1{{#raw}}<template").replace(/\/template>([ \n])/g,"/template>{{/raw}}$1"));var c,u,d=null,h=!1;if(e.indexOf("<style>")>=0?d=e.split("<style>")[1].split("</style>")[0]:e.indexOf("<style scoped>")>=0&&(h=!0,d=(d=e.split("<style scoped>")[1].split("</style>")[0]).replace(/{{this}}/g,"[data-f7-".concat(n,"]")).replace(/[\n]?([^{^}]*){/gi,(function(e,t){return t=t.split(",").map((function(e){return e.indexOf("@")>=0||e.indexOf("[data-f7-".concat(n,"]"))>=0?e:"[data-f7-".concat(n,"] ").concat(e.trim())})).join(", "),"\n".concat(t," {")}))),e.indexOf("<script>")>=0){var f=e.split("<script>");c=f[f.length-1].split("<\/script>")[0].trim()}else c="return {}";c&&c.trim()||(c="return {}"),c="window.".concat(r," = function () {").concat(c,"}"),(u=s.a.createElement("script")).innerHTML=c,g("head").append(u);var p=s.b[r](),m="function"==typeof p;if(g(u).remove(),s.b[r]=null,delete s.b[r],p.template||p.render||(p.template=t,p.templateType=l),p.template){if("t7"===p.templateType)if(m){var v=i.a.compile(p.template);p.prototype.render=function(){return v(this)}}else p.template=i.a.compile(p.template);if("es"===p.templateType){var y="window.".concat(a," = function () {\n return function render() {\n return `").concat(p.template,"`;\n }\n }");(u=s.a.createElement("script")).innerHTML=y,g("head").append(u),m?p.prototype.render=p.template:p.render=s.b[a](),g(u).remove(),s.b[a]=null,delete s.b[a]}}return m&&(delete p.template,delete p.templateType),d&&(p.style=d,p.styleScoped=h),p.id=n,p};function xt(e,t){Tt[e]=t}function $t(e,t){Je[e]=t}var Lt={name:"component",static:{Component:Ct,registerComponentMixin:xt,registerComponent:$t},create:function(){var e=this;e.component={registerComponentMixin:xt,registerComponent:$t,parse:function(e){return Mt(e)},create:function(t,n,r){return"function"==typeof t?new t(e,{isClassComponent:!0},n,r):new Ct(e,t,n,r)}}}},Pt={name:"history",static:{history:Se},on:{init:function(){Se.init(this)}}},Ot={registrations:[],register:function(e,t){var n=this;return"serviceWorker"in s.b.navigator&&n.serviceWorker.container?new Promise((function(r,i){n.serviceWorker.container.register(e,t?{scope:t}:{}).then((function(e){Ot.registrations.push(e),n.emit("serviceWorkerRegisterSuccess",e),r(e)})).catch((function(e){n.emit("serviceWorkerRegisterError",e),i(e)}))})):new Promise((function(e,t){t(new Error("Service worker is not supported"))}))},unregister:function(e){var t,n=this;return"serviceWorker"in s.b.navigator&&n.serviceWorker.container?(t=e?Array.isArray(e)?e:[e]:Ot.registrations,Promise.all(t.map((function(e){return new Promise((function(t,r){e.unregister().then((function(){Ot.registrations.indexOf(e)>=0&&Ot.registrations.splice(Ot.registrations.indexOf(e),1),n.emit("serviceWorkerUnregisterSuccess",e),t()})).catch((function(t){n.emit("serviceWorkerUnregisterError",e,t),r(t)}))}))})))):new Promise((function(e,t){t(new Error("Service worker is not supported"))}))}},It={name:"sw",params:{serviceWorker:{path:void 0,scope:void 0}},create:function(){j.extend(this,{serviceWorker:{container:"serviceWorker"in s.b.navigator?s.b.navigator.serviceWorker:void 0,registrations:Ot.registrations,register:Ot.register.bind(this),unregister:Ot.unregister.bind(this)}})},on:{init:function(){if("serviceWorker"in s.b.navigator){var e=this;if(e.serviceWorker.container){var t=e.params.serviceWorker.path,n=e.params.serviceWorker.scope;if(t&&(!Array.isArray(t)||t.length))(Array.isArray(t)?t:[t]).forEach((function(t){e.serviceWorker.register(t,n)}))}}}}},At={hide:function(){F.a.cordova&&s.b.StatusBar&&s.b.StatusBar.hide()},show:function(){F.a.cordova&&s.b.StatusBar&&s.b.StatusBar.show()},onClick:function(){var e;(e=g(".popup.modal-in").length>0?g(".popup.modal-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):g(".panel.panel-in").length>0?g(".panel.panel-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):g(".views > .view.tab-active").length>0?g(".views > .view.tab-active").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):g(".views").length>0?g(".views").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):this.root.children(".view").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"))&&e.length>0&&(e.hasClass("tab")&&(e=e.parent(".tabs").children(".page-content.tab-active")),e.length>0&&e.scrollTop(0,300))},setTextColor:function(e){F.a.cordova&&s.b.StatusBar&&("white"===e?s.b.StatusBar.styleLightContent():s.b.StatusBar.styleDefault())},setBackgroundColor:function(e){F.a.cordova&&s.b.StatusBar&&s.b.StatusBar.backgroundColorByHexString(e)},isVisible:function(){return!(!F.a.cordova||!s.b.StatusBar)&&s.b.StatusBar.isVisible},overlaysWebView:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];F.a.cordova&&s.b.StatusBar&&s.b.StatusBar.overlaysWebView(e)},init:function(){var e=this.params.statusbar;e.enabled&&(F.a.cordova&&s.b.StatusBar&&(e.scrollTopOnClick&&g(s.b).on("statusTap",At.onClick.bind(this)),F.a.ios&&(e.iosOverlaysWebView?s.b.StatusBar.overlaysWebView(!0):s.b.StatusBar.overlaysWebView(!1),"white"===e.iosTextColor?s.b.StatusBar.styleLightContent():s.b.StatusBar.styleDefault()),F.a.android&&(e.androidOverlaysWebView?s.b.StatusBar.overlaysWebView(!0):s.b.StatusBar.overlaysWebView(!1),"white"===e.androidTextColor?s.b.StatusBar.styleLightContent():s.b.StatusBar.styleDefault())),e.iosBackgroundColor&&F.a.ios&&At.setBackgroundColor(e.iosBackgroundColor),e.androidBackgroundColor&&F.a.android&&At.setBackgroundColor(e.androidBackgroundColor))}},Dt={name:"statusbar",params:{statusbar:{enabled:!0,scrollTopOnClick:!0,iosOverlaysWebView:!0,iosTextColor:"black",iosBackgroundColor:null,androidOverlaysWebView:!1,androidTextColor:"black",androidBackgroundColor:null}},create:function(){j.extend(this,{statusbar:{hide:At.hide,show:At.show,overlaysWebView:At.overlaysWebView,setTextColor:At.setTextColor,setBackgroundColor:At.setBackgroundColor,isVisible:At.isVisible,init:At.init.bind(this)}})},on:{init:function(){At.init.call(this)}}};var Nt={name:"view",params:{view:{name:void 0,main:!1,router:!0,linksView:null,stackPages:!1,xhrCache:!0,xhrCacheIgnore:[],xhrCacheIgnoreGetParameters:!1,xhrCacheDuration:6e5,componentCache:!0,preloadPreviousPage:!0,allowDuplicateUrls:!1,reloadPages:!1,reloadDetail:!1,masterDetailBreakpoint:0,masterDetailResizable:!1,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0,restoreScrollTopOnBack:!0,unloadTabContent:!0,passRouteQueryToRequest:!0,passRouteParamsToRequest:!1,loadInitialPage:!0,iosSwipeBack:!0,iosSwipeBackAnimateShadow:!0,iosSwipeBackAnimateOpacity:!0,iosSwipeBackActiveArea:30,iosSwipeBackThreshold:0,mdSwipeBack:!1,mdSwipeBackAnimateShadow:!0,mdSwipeBackAnimateOpacity:!1,mdSwipeBackActiveArea:30,mdSwipeBackThreshold:0,auroraSwipeBack:!1,auroraSwipeBackAnimateShadow:!1,auroraSwipeBackAnimateOpacity:!0,auroraSwipeBackActiveArea:30,auroraSwipeBackThreshold:0,pushState:!1,pushStateRoot:void 0,pushStateAnimate:!0,pushStateAnimateOnLoad:!1,pushStateSeparator:"#!",pushStateOnLoad:!0,animate:!0,iosDynamicNavbar:!0,iosAnimateNavbarBackIcon:!0,iosPageLoadDelay:0,mdPageLoadDelay:0,auroraPageLoadDelay:0,routesBeforeEnter:null,routesBeforeLeave:null}},static:{View:Be},create:function(){var e=this;j.extend(e,{views:j.extend([],{create:function(t,n){return new Be(e,t,n)},get:function(e){var t=g(e);if(t.length&&t[0].f7View)return t[0].f7View}})}),Object.defineProperty(e.views,"current",{enumerable:!0,configurable:!0,get:function(){return function(e){var t=g(".popover.modal-in .view"),n=g(".popup.modal-in .view"),r=g(".panel.panel-in .view"),i=g(".views");0===i.length&&(i=e.root);var a=i.children(".view");if(a.length>1&&a.hasClass("tab")&&(a=i.children(".view.tab-active")),t.length>0&&t[0].f7View)return t[0].f7View;if(n.length>0&&n[0].f7View)return n[0].f7View;if(r.length>0&&r[0].f7View)return r[0].f7View;if(a.length>0){if(1===a.length&&a[0].f7View)return a[0].f7View;if(a.length>1)return e.views.main}}(e)}}),e.view=e.views},on:{init:function(){var e=this;g(".view-init").each((function(t,n){if(!n.f7View){var r=g(n).dataset();e.views.create(n,r)}}))},modalOpen:function(e){var t=this;e.$el.find(".view-init").each((function(e,n){if(!n.f7View){var r=g(n).dataset();t.views.create(n,r)}}))},modalBeforeDestroy:function(e){e&&e.$el&&e.$el.find(".view-init").each((function(e,t){var n=t.f7View;n&&n.destroy()}))}},vnode:{"view-init":{insert:function(e){var t=e.elm;if(!t.f7View){var n=g(t).dataset();this.views.create(t,n)}},destroy:function(e){var t=e.elm.f7View;t&&t.destroy()}}}},Rt={size:function(e){var t=this,n=g(e);if(n.hasClass("navbars"))n=n.children(".navbar").each((function(e,n){t.navbar.size(n)}));else{var r=n.children(".navbar-inner");if(r.length){var i=r.hasClass("navbar-inner-centered-title")||t.params.navbar["".concat(t.theme,"CenterTitle")],a="ios"===t.theme&&!t.params.navbar["".concat(t.theme,"CenterTitle")];if((i||a)&&!(n.hasClass("stacked")||n.parents(".stacked").length>0||n.parents(".tab:not(.tab-active)").length>0||n.parents(".popup:not(.modal-in)").length>0)){"ios"!==t.theme&&t.params.navbar["".concat(t.theme,"CenterTitle")]&&r.addClass("navbar-inner-centered-title"),"ios"!==t.theme||t.params.navbar.iosCenterTitle||r.addClass("navbar-inner-left-title");var o,s,l,c,u=n.parents(".view").eq(0),d=t.rtl?r.children(".right"):r.children(".left"),h=t.rtl?r.children(".left"):r.children(".right"),f=r.children(".title"),p=r.children(".subnavbar"),m=0===d.length,v=0===h.length,y=m?0:d.outerWidth(!0),b=v?0:h.outerWidth(!0),_=f.outerWidth(!0),w=r.styles(),k=r[0].offsetWidth-parseInt(w.paddingLeft,10)-parseInt(w.paddingRight,10),E=n.hasClass("navbar-previous"),S=r.hasClass("sliding");u.length>0&&u[0].f7View&&(s=(o=u[0].f7View.router)&&o.dynamicNavbar),v&&(l=k-_),m&&(l=0),m||v||(l=(k-b-_+y)/2);var T=(k-_)/2;k-y-b>_?(T<y&&(T=y),T+_>k-b&&(T=k-b-_),c=T-l):c=0;var C=t.rtl?-1:1;if(s&&"ios"===t.theme){if(f.hasClass("sliding")||f.length>0&&S){var M=-(l+c)*C,x=(k-l-c-_)*C;if(E&&o&&o.params.iosAnimateNavbarBackIcon){var $=n.parent().find(".navbar-current").children(".left.sliding").find(".back .icon ~ span");$.length>0&&(M+=$[0].offsetLeft)}f[0].f7NavbarLeftOffset=M,f[0].f7NavbarRightOffset=x}if(!m&&(d.hasClass("sliding")||S))if(t.rtl)d[0].f7NavbarLeftOffset=-(k-d[0].offsetWidth)/2*C,d[0].f7NavbarRightOffset=y*C;else if(d[0].f7NavbarLeftOffset=-y,d[0].f7NavbarRightOffset=(k-d[0].offsetWidth)/2,o&&o.params.iosAnimateNavbarBackIcon&&d.find(".back .icon").length>0&&d.find(".back .icon ~ span").length){var L=d[0].f7NavbarLeftOffset,P=d[0].f7NavbarRightOffset;d[0].f7NavbarLeftOffset=0,d[0].f7NavbarRightOffset=0,d.find(".back .icon ~ span")[0].f7NavbarLeftOffset=L,d.find(".back .icon ~ span")[0].f7NavbarRightOffset=P-d.find(".back .icon")[0].offsetWidth}v||!h.hasClass("sliding")&&!S||(t.rtl?(h[0].f7NavbarLeftOffset=-b*C,h[0].f7NavbarRightOffset=(k-h[0].offsetWidth)/2*C):(h[0].f7NavbarLeftOffset=-(k-h[0].offsetWidth)/2,h[0].f7NavbarRightOffset=b)),p.length&&(p.hasClass("sliding")||S)&&(p[0].f7NavbarLeftOffset=t.rtl?p[0].offsetWidth:-p[0].offsetWidth,p[0].f7NavbarRightOffset=-p[0].f7NavbarLeftOffset)}if(i){var O=c;t.rtl&&m&&v&&f.length>0&&(O=-O),f.css({left:"".concat(O,"px")})}}}}},hide:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,i=g(e),a=i.hasClass("navbar")&&i.parent(".navbars").length;if(a&&(i=i.parents(".navbars")),i.length&&!i.hasClass("navbar-hidden")){var o="navbar-hidden".concat(t?" navbar-transitioning":""),s=a?i.find(".navbar-current .title-large").length:i.find(".title-large").length;s&&(o+=" navbar-large-hidden"),n&&(o+=" navbar-hidden-statusbar"),i.transitionEnd((function(){i.removeClass("navbar-transitioning")})),i.addClass(o),a?i.children(".navbar").each((function(e,t){g(t).trigger("navbar:hide"),r.emit("navbarHide",t)})):(i.trigger("navbar:hide"),r.emit("navbarHide",i[0]))}},show:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".navbar-hidden",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=g(e),i=r.hasClass("navbar")&&r.parent(".navbars").length;i&&(r=r.parents(".navbars")),r.length&&r.hasClass("navbar-hidden")&&(t&&(r.addClass("navbar-transitioning"),r.transitionEnd((function(){r.removeClass("navbar-transitioning")}))),r.removeClass("navbar-hidden navbar-large-hidden navbar-hidden-statusbar"),i?r.children(".navbar").each((function(e,t){g(t).trigger("navbar:show"),n.emit("navbarShow",t)})):(r.trigger("navbar:show"),n.emit("navbarShow",r[0])))},getElByPage:function(e){var t,n,r;if(e.$navbarEl||e.$el?(r=e,t=e.$el):(t=g(e)).length>0&&(r=t[0].f7Page),r&&r.$navbarEl&&r.$navbarEl.length>0?n=r.$navbarEl:t&&(n=t.children(".navbar")),n&&(!n||0!==n.length))return n[0]},getPageByEl:function(e){var t,n=g(e);return n.parents(".page").length?n.parents(".page")[0]:(n.parents(".view").find(".page").each((function(e,r){r&&r.f7Page&&r.f7Page.navbarEl&&n[0]===r.f7Page.navbarEl&&(t=r)})),t)},collapseLargeTitle:function(e){var t=g(e);if(!(t.hasClass("navbars")&&((t=t.find(".navbar")).length>1&&(t=g(e).find(".navbar-large.navbar-current")),t.length>1||!t.length))){var n=g(this.navbar.getPageByEl(t));t.addClass("navbar-large-collapsed"),n.eq(0).addClass("page-with-navbar-large-collapsed").trigger("page:navbarlargecollapsed"),this.emit("pageNavbarLargeCollapsed",n[0]),t.trigger("navbar:collapse"),this.emit("navbarCollapse",t[0])}},expandLargeTitle:function(e){var t=g(e);if(!(t.hasClass("navbars")&&((t=t.find(".navbar-large")).length>1&&(t=g(e).find(".navbar-large.navbar-current")),t.length>1||!t.length))){var n=g(this.navbar.getPageByEl(t));t.removeClass("navbar-large-collapsed"),n.eq(0).removeClass("page-with-navbar-large-collapsed").trigger("page:navbarlargeexpanded"),this.emit("pageNavbarLargeExpanded",n[0]),t.trigger("navbar:expand"),this.emit("navbarExpand",t[0])}},toggleLargeTitle:function(e){var t=g(e);t.hasClass("navbars")&&((t=t.find(".navbar-large")).length>1&&(t=g(e).find(".navbar-large.navbar-current")),t.length>1||!t.length)||(t.hasClass("navbar-large-collapsed")?this.navbar.expandLargeTitle(t):this.navbar.collapseLargeTitle(t))},initNavbarOnScroll:function(e,t,n,r,i){var a,o,s,l,c,u,d,h,f,p,m,v,y,b,_=this,w=g(e),k=g(t),E=k.find(".title-large"),S=E.length||k.hasClass(".navbar-large"),T=44,C=_.params.navbar.snapPageScrollToLargeTitle,M=_.params.navbar.snapPageScrollToTransparentNavbar;(r||n&&S)&&((f=k.css("--f7-navbar-large-title-height"))&&f.indexOf("px")>=0?(f=parseInt(f,10),Number.isNaN(f)&&E.length?f=E[0].offsetHeight:Number.isNaN(f)&&("ios"===_.theme?f=52:"md"===_.theme?f=48:"aurora"===_.theme&&(f=38))):E.length?f=E[0].offsetHeight:"ios"===_.theme?f=52:"md"===_.theme?f=48:"aurora"===_.theme&&(f=38)),n&&S&&(T+=f);function x(){k.hasClass("with-searchbar-expandable-enabled")||!v||o<0||(o>=f/2&&o<f?g(v).scrollTop(f,100):o<f&&g(v).scrollTop(0,200))}function $(){k.hasClass("with-searchbar-expandable-enabled")||!v||o<0||(o>=p/2&&o<p?g(v).scrollTop(p,100):o<p&&g(v).scrollTop(0,200))}var L=null,P=null;function O(e){v=this,e&&e.target&&e.target!==v||(o=v.scrollTop,m=o,r?function(){if(!(k.hasClass("navbar-hidden")||k.parent(".navbars").hasClass("navbar-hidden"))){var e=k.hasClass("navbar-large-transparent")||k.hasClass("navbar-large")&&k.hasClass("navbar-transparent");L=P,P=Math.min(Math.max(o/f,0),1);var t=L>0&&L<1;k.hasClass("with-searchbar-expandable-enabled")||(h=k.hasClass("navbar-large-collapsed"),0===P&&h?_.navbar.expandLargeTitle(k[0]):1!==P||h||_.navbar.collapseLargeTitle(k[0]),0===P&&h||0===P&&t||1===P&&!h||1===P&&t?("md"===_.theme&&k.find(".navbar-inner").css("overflow",""),k.find(".title").css("opacity",""),k.find(".title-large-text, .subnavbar").css("transform",""),e?k.find(".navbar-bg").css("opacity",""):k.find(".navbar-bg").css("transform","")):P>0&&P<1&&("md"===_.theme&&k.find(".navbar-inner").css("overflow","visible"),k.find(".title").css("opacity",P),k.find(".title-large-text, .subnavbar").css("transform","translate3d(0px, ".concat(-1*P*f,"px, 0)")),e?k.find(".navbar-bg").css("opacity",P):k.find(".navbar-bg").css("transform","translate3d(0px, ".concat(-1*P*f,"px, 0)"))),C&&(ue.a.touch?b&&(clearTimeout(b),b=null,b=setTimeout((function(){x(),clearTimeout(b),b=null}),70)):(clearTimeout(y),y=setTimeout((function(){x()}),300))))}}():i&&function(){var e=k.hasClass("navbar-hidden")||k.parent(".navbars").hasClass("navbar-hidden");if(!k.hasClass("with-searchbar-expandable-enabled")&&!e){p||(p=t.offsetHeight);var n=o/p,r=k.hasClass("navbar-transparent-visible");if(n=Math.max(Math.min(n,1),0),r&&1===n||!r&&0===n)k.find(".navbar-bg, .title").css("opacity","");else{if(r&&0===n)return k.trigger("navbar:transparenthide"),_.emit("navbarTransparentHide",k[0]),k.removeClass("navbar-transparent-visible"),void k.find(".navbar-bg, .title").css("opacity","");if(!r&&1===n)return k.trigger("navbar:transparentshow"),_.emit("navbarTransparentShow",k[0]),k.addClass("navbar-transparent-visible"),void k.find(".navbar-bg, .title").css("opacity","");k.find(".navbar-bg, .title").css("opacity",n),M&&(ue.a.touch?b&&(clearTimeout(b),b=null,b=setTimeout((function(){$(),clearTimeout(b),b=null}),70)):(clearTimeout(y),y=setTimeout((function(){$()}),300)))}}}(),w.hasClass("page-previous")||n&&(w.hasClass("page-with-card-opened")||(s=v.scrollHeight,l=v.offsetHeight,c=o+l>=s,d=k.hasClass("navbar-hidden")||k.parent(".navbars").hasClass("navbar-hidden"),c?_.params.navbar.showOnPageScrollEnd&&(u="show"):u=a>o?_.params.navbar.showOnPageScrollTop||o<=T?"show":"hide":o>T?"hide":"show","show"===u&&d?(_.navbar.show(k),d=!1):"hide"!==u||d||(_.navbar.hide(k),d=!0),a=o)))}function I(){m=!1}function A(){clearTimeout(b),b=null,b=setTimeout((function(){!1!==m&&(i&&!r?$():x(),clearTimeout(b),b=null)}),70)}w.on("scroll",".page-content",O,!0),ue.a.touch&&(r&&C||i&&M)&&(_.on("touchstart:passive",I),_.on("touchend:passive",A)),(r||i)&&w.find(".page-content").each((function(e,t){t.scrollTop>0&&O.call(t)})),w[0].f7DetachNavbarScrollHandlers=function(){delete w[0].f7DetachNavbarScrollHandlers,w.off("scroll",".page-content",O,!0),ue.a.touch&&(r&&C||i&&M)&&(_.off("touchstart:passive",I),_.off("touchend:passive",A))}}},Bt={name:"navbar",create:function(){var e=this;j.extend(e,{navbar:{size:Rt.size.bind(e),hide:Rt.hide.bind(e),show:Rt.show.bind(e),getElByPage:Rt.getElByPage.bind(e),getPageByEl:Rt.getPageByEl.bind(e),collapseLargeTitle:Rt.collapseLargeTitle.bind(e),expandLargeTitle:Rt.expandLargeTitle.bind(e),toggleLargeTitle:Rt.toggleLargeTitle.bind(e),initNavbarOnScroll:Rt.initNavbarOnScroll.bind(e)}})},params:{navbar:{scrollTopOnTitleClick:!0,iosCenterTitle:!0,mdCenterTitle:!1,auroraCenterTitle:!0,hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0,collapseLargeTitleOnScroll:!0,snapPageScrollToLargeTitle:!0,snapPageScrollToTransparentNavbar:!0}},on:{"panelBreakpoint panelCollapsedBreakpoint panelResize viewResize resize viewMasterDetailBreakpoint":function(){var e=this;g(".navbar").each((function(t,n){e.navbar.size(n)}))},pageBeforeRemove:function(e){e.$el[0].f7DetachNavbarScrollHandlers&&e.$el[0].f7DetachNavbarScrollHandlers()},pageBeforeIn:function(e){if("ios"===this.theme){var t,n=e.$el.parents(".view")[0].f7View,r=this.navbar.getElByPage(e);if(t=r?g(r).parents(".navbars"):e.$el.parents(".view").children(".navbars"),e.$el.hasClass("no-navbar")||n.router.dynamicNavbar&&!r){var i=!!(e.pageFrom&&e.router.history.length>0);this.navbar.hide(t,i)}else this.navbar.show(t)}},pageReinit:function(e){var t=g(this.navbar.getElByPage(e));t&&0!==t.length&&this.navbar.size(t)},pageInit:function(e){var t,n,r,i=g(this.navbar.getElByPage(e));i&&0!==i.length&&(this.navbar.size(i),i.find(".title-large").length>0&&i.addClass("navbar-large"),i.hasClass("navbar-large")&&(this.params.navbar.collapseLargeTitleOnScroll&&(t=!0),e.$el.addClass("page-with-navbar-large")),!t&&i.hasClass("navbar-transparent")&&(n=!0),(this.params.navbar.hideOnPageScroll||e.$el.find(".hide-navbar-on-scroll").length||e.$el.hasClass("hide-navbar-on-scroll")||e.$el.find(".hide-bars-on-scroll").length||e.$el.hasClass("hide-bars-on-scroll"))&&(r=!(e.$el.find(".keep-navbar-on-scroll").length||e.$el.hasClass("keep-navbar-on-scroll")||e.$el.find(".keep-bars-on-scroll").length||e.$el.hasClass("keep-bars-on-scroll"))),(t||r||n)&&this.navbar.initNavbarOnScroll(e.el,i[0],r,t,n))},"panelOpen panelSwipeOpen modalOpen":function(e){var t=this;e.$el.find(".navbar:not(.navbar-previous):not(.stacked)").each((function(e,n){t.navbar.size(n)}))},tabShow:function(e){var t=this;g(e).find(".navbar:not(.navbar-previous):not(.stacked)").each((function(e,n){t.navbar.size(n)}))}},clicks:{".navbar .title":function(e){if(this.params.navbar.scrollTopOnTitleClick&&!(e.closest("a").length>0)){var t,n=e.parents(".navbar"),r=n.parents(".navbars");0===(t=n.parents(".page-content")).length&&(n.parents(".page").length>0&&(t=n.parents(".page").find(".page-content")),0===t.length&&r.length&&r.nextAll(".page-current:not(.stacked)").length>0&&(t=r.nextAll(".page-current:not(.stacked)").find(".page-content")),0===t.length&&n.nextAll(".page-current:not(.stacked)").length>0&&(t=n.nextAll(".page-current:not(.stacked)").find(".page-content"))),t&&t.length>0&&(t.hasClass("tab")&&(t=t.parent(".tabs").children(".page-content.tab-active")),t.length>0&&t.scrollTop(0,300))}}},vnode:{navbar:{postpatch:function(e){this.navbar.size(e.elm)}}}},Yt={setHighlight:function(e){if("md"===this.theme){var t=g(e);if(0!==t.length&&(t.hasClass("tabbar")||t.hasClass("tabbar-labels"))){var n=t.find(".tab-link-highlight"),r=t.find(".tab-link").length;if(0!==r){0===n.length?(t.children(".toolbar-inner").append('<span class="tab-link-highlight"></span>'),n=t.find(".tab-link-highlight")):n.next().length&&t.children(".toolbar-inner").append(n);var i,a,o=t.find(".tab-link-active");if(t.hasClass("tabbar-scrollable")&&o&&o[0])i="".concat(o[0].offsetWidth,"px"),a="".concat(o[0].offsetLeft,"px");else{var s=o.index();i="".concat(100/r,"%"),a="".concat(100*(this.rtl?-s:s),"%")}j.nextFrame((function(){n.css("width",i).transform("translate3d(".concat(a,",0,0)"))}))}else n.remove()}}},init:function(e){this.toolbar.setHighlight(e)},hide:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=g(e);if(!r.hasClass("toolbar-hidden")){var i="toolbar-hidden".concat(t?" toolbar-transitioning":"");r.transitionEnd((function(){r.removeClass("toolbar-transitioning")})),r.addClass(i),r.trigger("toolbar:hide"),n.emit("toolbarHide",r[0])}},show:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=g(e);r.hasClass("toolbar-hidden")&&(t&&(r.addClass("toolbar-transitioning"),r.transitionEnd((function(){r.removeClass("toolbar-transitioning")}))),r.removeClass("toolbar-hidden"),r.trigger("toolbar:show"),n.emit("toolbarShow",r[0]))},initToolbarOnScroll:function(e){var t,n,r,i,a,o,s,l=this,c=g(e),u=c.parents(".view").children(".toolbar");(0===u.length&&(u=c.find(".toolbar")),0===u.length&&(u=c.parents(".views").children(".tabbar, .tabbar-labels")),0!==u.length)&&(c.on("scroll",".page-content",d,!0),c[0].f7ScrollToolbarHandler=d);function d(e){if(!c.hasClass("page-with-card-opened")&&!c.hasClass("page-previous")){e&&e.target&&e.target!==this||(n=this.scrollTop,r=this.scrollHeight,i=this.offsetHeight,a=n+i>=r,s=u.hasClass("toolbar-hidden"),a?l.params.toolbar.showOnPageScrollEnd&&(o="show"):o=t>n?l.params.toolbar.showOnPageScrollTop||n<=44?"show":"hide":n>44?"hide":"show","show"===o&&s?(l.toolbar.show(u),s=!1):"hide"!==o||s||(l.toolbar.hide(u),s=!0),t=n)}}}},jt={name:"toolbar",create:function(){j.extend(this,{toolbar:{hide:Yt.hide.bind(this),show:Yt.show.bind(this),setHighlight:Yt.setHighlight.bind(this),initToolbarOnScroll:Yt.initToolbarOnScroll.bind(this),init:Yt.init.bind(this)}})},params:{toolbar:{hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0}},on:{pageBeforeRemove:function(e){e.$el[0].f7ScrollToolbarHandler&&e.$el.off("scroll",".page-content",e.$el[0].f7ScrollToolbarHandler,!0)},pageBeforeIn:function(e){var t=e.$el.parents(".view").children(".toolbar");0===t.length&&(t=e.$el.parents(".views").children(".tabbar, .tabbar-labels")),0===t.length&&(t=e.$el.find(".toolbar")),0!==t.length&&(e.$el.hasClass("no-toolbar")?this.toolbar.hide(t):this.toolbar.show(t))},pageInit:function(e){var t=this;if(e.$el.find(".tabbar, .tabbar-labels").each((function(e,n){t.toolbar.init(n)})),t.params.toolbar.hideOnPageScroll||e.$el.find(".hide-toolbar-on-scroll").length||e.$el.hasClass("hide-toolbar-on-scroll")||e.$el.find(".hide-bars-on-scroll").length||e.$el.hasClass("hide-bars-on-scroll")){if(e.$el.find(".keep-toolbar-on-scroll").length||e.$el.hasClass("keep-toolbar-on-scroll")||e.$el.find(".keep-bars-on-scroll").length||e.$el.hasClass("keep-bars-on-scroll"))return;t.toolbar.initToolbarOnScroll(e.el)}},init:function(){var e=this;e.root.find(".tabbar, .tabbar-labels").each((function(t,n){e.toolbar.init(n)}))}},vnode:{tabbar:{insert:function(e){this.toolbar.init(e.elm)}}}},Ft=function(){function e(t,n,r){o()(this,e);var i=this;if(t){var a=t[0].getBoundingClientRect(),s={x:n-a.left,y:r-a.top},l=a.width,c=a.height,u=Math.max(Math.pow(Math.pow(c,2)+Math.pow(l,2),.5),48);return i.$rippleWaveEl=g('<div class="ripple-wave" style="width: '.concat(u,"px; height: ").concat(u,"px; margin-top:-").concat(u/2,"px; margin-left:-").concat(u/2,"px; left:").concat(s.x,"px; top:").concat(s.y,'px;"></div>')),t.prepend(i.$rippleWaveEl),i.rippleTransform="translate3d(".concat(l/2-s.x,"px, ").concat(c/2-s.y,"px, 0) scale(1)"),j.nextFrame((function(){i&&i.$rippleWaveEl&&i.$rippleWaveEl.transform(i.rippleTransform)})),i}}return b()(e,[{key:"destroy",value:function(){var e=this;e.$rippleWaveEl&&e.$rippleWaveEl.remove(),Object.keys(e).forEach((function(t){e[t]=null,delete e[t]})),e=null}},{key:"remove",value:function(){var e=this;if(!e.removing){var t=this.$rippleWaveEl,n=this.rippleTransform,r=j.nextTick((function(){e.destroy()}),400);e.removing=!0,t.addClass("ripple-wave-fill").transform(n.replace("scale(1)","scale(1.01)")).transitionEnd((function(){clearTimeout(r),j.nextFrame((function(){t.addClass("ripple-wave-out").transform(n.replace("scale(1)","scale(1.01)")),r=j.nextTick((function(){e.destroy()}),700),t.transitionEnd((function(){clearTimeout(r),e.destroy()}))}))}))}}}]),e}(),Ht={name:"touch-ripple",static:{TouchRipple:Ft},create:function(){this.touchRipple={create:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return q()(Ft,t)}}}};function Ut(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var zt=[],Vt=[];var qt=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(Ut()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e,t){var i;o()(this,r),i=n.call(this,t,[e]);var a=k()(i),s={};return a.useModulesParams(s),a.params=j.extend(s,t),a.opened=!1,a.useModules(),C()(i,k()(i))}return b()(r,[{key:"onOpen",value:function(){this.opened=!0,zt.push(this),g("html").addClass("with-modal-".concat(this.type.toLowerCase())),this.$el.trigger("modal:open ".concat(this.type.toLowerCase(),":open")),this.emit("local::open modalOpen ".concat(this.type,"Open"),this)}},{key:"onOpened",value:function(){this.$el.trigger("modal:opened ".concat(this.type.toLowerCase(),":opened")),this.emit("local::opened modalOpened ".concat(this.type,"Opened"),this)}},{key:"onClose",value:function(){this.opened=!1,this.type&&this.$el&&(zt.splice(zt.indexOf(this),1),g("html").removeClass("with-modal-".concat(this.type.toLowerCase())),this.$el.trigger("modal:close ".concat(this.type.toLowerCase(),":close")),this.emit("local::close modalClose ".concat(this.type,"Close"),this))}},{key:"onClosed",value:function(){this.type&&this.$el&&(this.$el.removeClass("modal-out"),this.$el.hide(),this.$el.trigger("modal:closed ".concat(this.type.toLowerCase(),":closed")),this.emit("local::closed modalClosed ".concat(this.type,"Closed"),this))}},{key:"open",value:function(e){var t,n=this,r=n.app,i=n.$el,a=n.$backdropEl,o=n.type,l=!0;if(void 0!==e?l=e:void 0!==n.params.animate&&(l=n.params.animate),!i||i.hasClass("modal-in"))return n;if("dialog"===o&&r.params.modal.queueDialogs&&(g(".dialog.modal-in").length>0?t=!0:zt.length>0&&zt.forEach((function(e){"dialog"===e.type&&(t=!0)})),t))return Vt.push(n),n;var c=i.parent(),u=i.parents(s.a).length>0;function d(){i.hasClass("modal-out")?n.onClosed():i.hasClass("modal-in")&&n.onOpened()}return r.params.modal.moveToRoot&&!c.is(r.root)&&(r.root.append(i),n.once("".concat(o,"Closed"),(function(){u?c.append(i):i.remove()}))),i.show(),n._clientLeft=i[0].clientLeft,l?(a&&(a.removeClass("not-animated"),a.addClass("backdrop-in")),i.animationEnd((function(){d()})),i.transitionEnd((function(){d()})),i.removeClass("modal-out not-animated").addClass("modal-in"),n.onOpen()):(a&&a.addClass("backdrop-in not-animated"),i.removeClass("modal-out").addClass("modal-in not-animated"),n.onOpen(),n.onOpened()),n}},{key:"close",value:function(e){var t=this,n=t.$el,r=t.$backdropEl,i=!0;if(void 0!==e?i=e:void 0!==t.params.animate&&(i=t.params.animate),!n||!n.hasClass("modal-in"))return Vt.indexOf(t)>=0&&Vt.splice(Vt.indexOf(t),1),t;if(r){var a=!0;"popup"===t.type&&t.$el.prevAll(".popup.modal-in").each((function(e,n){var r=n.f7Modal;r&&r.params.closeByBackdropClick&&r.params.backdrop&&r.backdropEl===t.backdropEl&&(a=!1)})),a&&(r[i?"removeClass":"addClass"]("not-animated"),r.removeClass("backdrop-in"))}function o(){n.hasClass("modal-out")?t.onClosed():n.hasClass("modal-in")&&t.onOpened()}return n[i?"removeClass":"addClass"]("not-animated"),i?(n.animationEnd((function(){o()})),n.transitionEnd((function(){o()})),n.removeClass("modal-in").addClass("modal-out"),t.onClose()):(n.addClass("not-animated").removeClass("modal-in").addClass("modal-out"),t.onClose(),t.onClosed()),"dialog"===t.type&&0!==Vt.length&&Vt.shift().open(),t}},{key:"destroy",value:function(){this.destroyed||(this.emit("local::beforeDestroy modalBeforeDestroy ".concat(this.type,"BeforeDestroy"),this),this.$el&&(this.$el.trigger("modal:beforedestroy ".concat(this.type.toLowerCase(),":beforedestroy")),this.$el.length&&this.$el[0].f7Modal&&delete this.$el[0].f7Modal),j.deleteProps(this),this.destroyed=!0)}}]),r}(z);function Wt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Gt=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(Wt()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e,t){var i;o()(this,r);var a=j.extend({backdrop:!0,closeByBackdropClick:!0,on:{}},t);i=n.call(this,e,a);var s,l,c=k()(i);if(c.params=a,(s=c.params.el?g(c.params.el):g(c.params.content))&&s.length>0&&s[0].f7Modal)return C()(i,s[0].f7Modal);if(0===s.length)return C()(i,c.destroy());function u(e){c&&!c.destroyed&&l&&e.target===l[0]&&c.close()}return c.params.backdrop&&0===(l=e.root.children(".custom-modal-backdrop")).length&&(l=g('<div class="custom-modal-backdrop"></div>'),e.root.append(l)),c.on("customModalOpened",(function(){c.params.closeByBackdropClick&&c.params.backdrop&&e.on("click",u)})),c.on("customModalClose",(function(){c.params.closeByBackdropClick&&c.params.backdrop&&e.off("click",u)})),j.extend(c,{app:e,$el:s,el:s[0],$backdropEl:l,backdropEl:l&&l[0],type:"customModal"}),s[0].f7Modal=c,C()(i,c)}return r}(qt),Kt={name:"modal",static:{Modal:qt,CustomModal:Gt},create:function(){var e=this;e.customModal={create:function(t){return new Gt(e,t)}}},params:{modal:{moveToRoot:!0,queueDialogs:!0}}};function Jt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Xt=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(Jt()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e,t){var i;o()(this,r);var a=j.extend({title:e.params.dialog.title,text:void 0,content:"",buttons:[],verticalButtons:!1,onClick:void 0,cssClass:void 0,destroyOnClose:!1,on:{}},t);void 0===a.closeByBackdropClick&&(a.closeByBackdropClick=e.params.dialog.closeByBackdropClick),void 0===a.backdrop&&(a.backdrop=e.params.dialog.backdrop),i=n.call(this,e,a);var l,c,u,d=k()(i),h=a.title,f=a.text,p=a.content,m=a.buttons,v=a.verticalButtons,y=a.cssClass,b=a.backdrop;if(d.params=a,d.params.el)l=g(d.params.el);else{var _=["dialog"];0===m.length&&_.push("dialog-no-buttons"),m.length>0&&_.push("dialog-buttons-".concat(m.length)),v&&_.push("dialog-buttons-vertical"),y&&_.push(y);var w="";m.length>0&&(w='\n <div class="dialog-buttons">\n '.concat(m.map((function(e){return'\n <span class="dialog-button'.concat(e.bold?" dialog-button-bold":"").concat(e.color?" color-".concat(e.color):"").concat(e.cssClass?" ".concat(e.cssClass):"",'">').concat(e.text,"</span>\n ")})).join(""),"\n </div>\n "));var E='\n <div class="'.concat(_.join(" "),'">\n <div class="dialog-inner">\n ').concat(h?'<div class="dialog-title">'.concat(h,"</div>"):"","\n ").concat(f?'<div class="dialog-text">'.concat(f,"</div>"):"","\n ").concat(p,"\n </div>\n ").concat(w,"\n </div>\n ");l=g(E)}if(l&&l.length>0&&l[0].f7Modal)return C()(i,l[0].f7Modal);if(0===l.length)return C()(i,d.destroy());function S(e){var t=g(this).index(),n=m[t];n.onClick&&n.onClick(d,e),d.params.onClick&&d.params.onClick(d,t),!1!==n.close&&d.close()}function T(e){var t=e.keyCode;m.forEach((function(n,r){n.keyCodes&&n.keyCodes.indexOf(t)>=0&&(s.a.activeElement&&s.a.activeElement.blur(),n.onClick&&n.onClick(d,e),d.params.onClick&&d.params.onClick(d,r),!1!==n.close&&d.close())}))}function M(e){var t=e.target;0===g(t).closest(d.el).length&&d.params.closeByBackdropClick&&d.backdropEl&&d.backdropEl===t&&d.close()}return b&&0===(c=e.root.children(".dialog-backdrop")).length&&(c=g('<div class="dialog-backdrop"></div>'),e.root.append(c)),m&&m.length>0&&(d.on("open",(function(){l.find(".dialog-button").each((function(e,t){m[e].keyCodes&&(u=!0),g(t).on("click",S)})),!u||e.device.ios||e.device.android||e.device.cordova||g(s.a).on("keydown",T)})),d.on("close",(function(){l.find(".dialog-button").each((function(e,t){g(t).off("click",S)})),!u||e.device.ios||e.device.android||e.device.cordova||g(s.a).off("keydown",T),u=!1}))),j.extend(d,{app:e,$el:l,el:l[0],$backdropEl:c,backdropEl:c&&c[0],type:"dialog",setProgress:function(t,n){return e.progressbar.set(l.find(".progressbar"),t,n),d},setText:function(e){var t=l.find(".dialog-text");return 0===t.length&&(t=g('<div class="dialog-text"></div>'),void 0!==h?t.insertAfter(l.find(".dialog-title")):l.find(".dialog-inner").prepend(t)),t.html(e),d.params.text=e,d},setTitle:function(e){var t=l.find(".dialog-title");return 0===t.length&&(t=g('<div class="dialog-title"></div>'),l.find(".dialog-inner").prepend(t)),t.html(e),d.params.title=e,d}}),d.on("opened",(function(){d.params.closeByBackdropClick&&e.on("click",M)})),d.on("close",(function(){d.params.closeByBackdropClick&&e.off("click",M)})),l[0].f7Modal=d,d.params.destroyOnClose&&d.once("closed",(function(){setTimeout((function(){d.destroy()}),0)})),C()(i,d)}return r}(qt);function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach((function(t){K()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var en={name:"dialog",params:{dialog:{title:void 0,buttonOk:"OK",buttonCancel:"Cancel",usernamePlaceholder:"Username",passwordPlaceholder:"Password",preloaderTitle:"Loading... ",progressTitle:"Loading... ",backdrop:!0,closeByBackdropClick:!1,destroyPredefinedDialogs:!0,keyboardActions:!0,autoFocus:!0}},static:{Dialog:Xt},create:function(){var e=this;function t(){return e.params.dialog.title||e.name}var n=e.params.dialog.destroyPredefinedDialogs,r=e.params.dialog.keyboardActions,i=e.params.dialog.autoFocus?{on:{opened:function(e){e.$el.find("input").eq(0).focus()}}}:{};e.dialog=j.extend(Q({app:e,constructor:Xt,defaultSelector:".dialog.modal-in"}),{alert:function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=a[0],l=a[1],c=a[2];return 2===a.length&&"function"==typeof a[1]&&(s=a[0],c=a[1],l=a[2]),new Xt(e,{title:void 0===l?t():l,text:s,buttons:[{text:e.params.dialog.buttonOk,bold:!0,onClick:c,keyCodes:r?[13,27]:null}],destroyOnClose:n}).open()},prompt:function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var l=o[0],c=o[1],u=o[2],d=o[3],h=o[4];return"function"==typeof o[1]&&(l=o[0],u=o[1],d=o[2],h=o[3],c=o[4]),h=null==h?"":h,new Xt(e,Zt({title:void 0===c?t():c,text:l,content:'<div class="dialog-input-field input"><input type="text" class="dialog-input" value="'.concat(h,'"></div>'),buttons:[{text:e.params.dialog.buttonCancel,keyCodes:r?[27]:null,color:"aurora"===e.theme?"gray":null},{text:e.params.dialog.buttonOk,bold:!0,keyCodes:r?[13]:null}],onClick:function(e,t){var n=e.$el.find(".dialog-input").val();0===t&&d&&d(n),1===t&&u&&u(n)},destroyOnClose:n},i)).open()},confirm:function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=a[0],l=a[1],c=a[2],u=a[3];return"function"==typeof a[1]&&(s=a[0],c=a[1],u=a[2],l=a[3]),new Xt(e,{title:void 0===l?t():l,text:s,buttons:[{text:e.params.dialog.buttonCancel,onClick:u,keyCodes:r?[27]:null,color:"aurora"===e.theme?"gray":null},{text:e.params.dialog.buttonOk,bold:!0,onClick:c,keyCodes:r?[13]:null}],destroyOnClose:n}).open()},login:function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var l=o[0],c=o[1],u=o[2],d=o[3];return"function"==typeof o[1]&&(l=o[0],u=o[1],d=o[2],c=o[3]),new Xt(e,Zt({title:void 0===c?t():c,text:l,content:'\n <div class="dialog-input-field dialog-input-double input">\n <input type="text" name="dialog-username" placeholder="'.concat(e.params.dialog.usernamePlaceholder,'" class="dialog-input">\n </div>\n <div class="dialog-input-field dialog-input-double input">\n <input type="password" name="dialog-password" placeholder="').concat(e.params.dialog.passwordPlaceholder,'" class="dialog-input">\n </div>'),buttons:[{text:e.params.dialog.buttonCancel,keyCodes:r?[27]:null,color:"aurora"===e.theme?"gray":null},{text:e.params.dialog.buttonOk,bold:!0,keyCodes:r?[13]:null}],onClick:function(e,t){var n=e.$el.find('[name="dialog-username"]').val(),r=e.$el.find('[name="dialog-password"]').val();0===t&&d&&d(n,r),1===t&&u&&u(n,r)},destroyOnClose:n},i)).open()},password:function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var l=o[0],c=o[1],u=o[2],d=o[3];return"function"==typeof o[1]&&(l=o[0],u=o[1],d=o[2],c=o[3]),new Xt(e,Zt({title:void 0===c?t():c,text:l,content:'\n <div class="dialog-input-field input">\n <input type="password" name="dialog-password" placeholder="'.concat(e.params.dialog.passwordPlaceholder,'" class="dialog-input">\n </div>'),buttons:[{text:e.params.dialog.buttonCancel,keyCodes:r?[27]:null,color:"aurora"===e.theme?"gray":null},{text:e.params.dialog.buttonOk,bold:!0,keyCodes:r?[13]:null}],onClick:function(e,t){var n=e.$el.find('[name="dialog-password"]').val();0===t&&d&&d(n),1===t&&u&&u(n)},destroyOnClose:n},i)).open()},preloader:function(t,r){var i=j["".concat(e.theme,"PreloaderContent")]||"";return new Xt(e,{title:null==t?e.params.dialog.preloaderTitle:t,content:'<div class="preloader'.concat(r?" color-".concat(r):"",'">').concat(i,"</div>"),cssClass:"dialog-preloader",destroyOnClose:n}).open()},progress:function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var a=r[0],o=r[1],s=r[2];2===r.length?"number"==typeof r[0]?(o=r[0],s=r[1],a=r[2]):"string"==typeof r[0]&&"string"==typeof r[1]&&(a=r[0],s=r[1],o=r[2]):1===r.length&&"number"==typeof r[0]&&(o=r[0],a=r[1],s=r[2]);var l=void 0===o,c=new Xt(e,{title:void 0===a?e.params.dialog.progressTitle:a,cssClass:"dialog-progress",content:'\n <div class="progressbar'.concat(l?"-infinite":"").concat(s?" color-".concat(s):"",'">\n ').concat(l?"":"<span></span>","\n </div>\n "),destroyOnClose:n});return l||c.setProgress(o),c.open()}})}};function tn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var nn=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(tn()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e,t){var i;o()(this,r);var a=j.extend({on:{}},e.params.popup,t);i=n.call(this,e,a);var l,c,u,d,h=k()(i);if(h.params=a,(l=h.params.el?g(h.params.el).eq(0):g(h.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0))&&l.length>0&&l[0].f7Modal)return C()(i,l[0].f7Modal);if(0===l.length)return C()(i,h.destroy());function f(t){var n=t.target,r=g(n);if(!(!e.device.desktop&&e.device.cordova&&(s.b.Keyboard&&s.b.Keyboard.isVisible||s.b.cordova.plugins&&s.b.cordova.plugins.Keyboard&&s.b.cordova.plugins.Keyboard.isVisible))&&0===r.closest(h.el).length&&h.params&&h.params.closeByBackdropClick&&h.params.backdrop&&h.backdropEl&&h.backdropEl===n){var i=!0;h.$el.nextAll(".popup.modal-in").each((function(e,t){var n=t.f7Modal;n&&n.params.closeByBackdropClick&&n.params.backdrop&&n.backdropEl===h.backdropEl&&(i=!1)})),i&&h.close()}}function p(e){27===e.keyCode&&h.params.closeOnEscape&&h.close()}function m(t){return(e.height-2*t)/e.height}h.params.backdrop&&h.params.backdropEl?c=g(h.params.backdropEl):h.params.backdrop&&0===(c=e.root.children(".popup-backdrop")).length&&(c=g('<div class="popup-backdrop"></div>'),e.root.append(c)),j.extend(h,{app:e,push:l.hasClass("popup-push")||h.params.push,$el:l,el:l[0],$backdropEl:c,backdropEl:c&&c[0],type:"popup",$htmlEl:g("html")}),h.params.push&&l.addClass("popup-push");var v,y,b,_,w,E,S,T,M,x,$,L=!0,P=!1,O=!1;function I(e){!P&&L&&h.params.swipeToClose&&(h.params.swipeHandler&&0===g(e.target).closest(h.params.swipeHandler).length||(P=!0,O=!1,v={x:"touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,y:"touchstart"===e.type?e.targetTouches[0].pageY:e.pageY},_=j.now(),b=void 0,h.params.swipeHandler||"touchstart"!==e.type||(E=g(e.target).closest(".page-content")[0])))}function A(t){if(P){if(y={x:"touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,y:"touchmove"===t.type?t.targetTouches[0].pageY:t.pageY},void 0===b&&(b=!!(b||Math.abs(y.x-v.x)>Math.abs(y.y-v.y))),b)return P=!1,void(O=!1);w=v.y-y.y,d&&u&&w>0&&(w=0);var n=w<0?"to-bottom":"to-top";if(l.transition(0),"string"==typeof h.params.swipeToClose&&n!==h.params.swipeToClose)return l.transform(""),void l.transition("");if(O)h.emit("local::swipeMove popupSwipeMove",h),h.$el.trigger("popup:swipemove");else{if(d&&u&&(x=l[0].offsetHeight,0===($=l.prevAll(".popup.modal-in").eq(0)).length&&($=e.root.children(".view, .views"))),E&&(S=E.scrollTop,M=E.scrollHeight,T=E.offsetHeight,!(M===T||"to-bottom"===n&&0===S||"to-top"===n&&S===M-T)))return l.transform(""),l.transition(""),P=!1,void(O=!1);O=!0,h.emit("local::swipeStart popupSwipeStart",h),h.$el.trigger("popup:swipestart")}if(t.preventDefault(),d&&u){var r=1-Math.abs(w/x),i=1-(1-m(u))*r;$.hasClass("popup")?$.hasClass("popup-push")?$.transition(0).transform("translate3d(0, calc(-1 * ".concat(r," * (var(--f7-popup-push-offset) + 10px)) , 0px) scale(").concat(i,")")):$.transition(0).transform("translate3d(0, 0px , 0px) scale(".concat(i,")")):$.transition(0).transform("translate3d(0,0,0) scale(".concat(i,")"))}l.transition(0).transform("translate3d(0,".concat(-w,"px,0)"))}}function D(){if(P=!1,O){h.emit("local::swipeEnd popupSwipeEnd",h),h.$el.trigger("popup:swipeend"),O=!1,L=!1,l.transition(""),d&&u&&$.transition("").transform("");var e=w<=0?"to-bottom":"to-top";if("string"==typeof h.params.swipeToClose&&e!==h.params.swipeToClose)return l.transform(""),void(L=!0);var t=Math.abs(w),n=(new Date).getTime()-_;n<300&&t>20||n>=300&&t>100?j.nextTick((function(){"to-bottom"===e?l.addClass("swipe-close-to-bottom"):l.addClass("swipe-close-to-top"),l.transform(""),h.emit("local::swipeclose popupSwipeClose",h),h.$el.trigger("popup:swipeclose"),h.close(),L=!0})):(L=!0,l.transform(""))}}var N,R=!!ue.a.passiveListener&&{passive:!0};return h.params.swipeToClose&&(l.on(e.touchEvents.start,I,R),e.on("touchmove",A),e.on("touchend:passive",D),h.once("popupDestroy",(function(){l.off(e.touchEvents.start,I,R),e.off("touchmove",A),e.off("touchend:passive",D)}))),h.on("open",(function(){N=!1,h.params.closeOnEscape&&g(s.a).on("keydown",p),l.prevAll(".popup.modal-in").addClass("popup-behind"),h.push&&(d=h.push&&(e.width<630||e.height<630||l.hasClass("popup-tablet-fullscreen"))),d&&(u=parseInt(l.css("--f7-popup-push-offset"),10),Number.isNaN(u)&&(u=0),u&&(l.addClass("popup-push"),h.$htmlEl.addClass("with-modal-popup-push"),h.$htmlEl[0].style.setProperty("--f7-popup-push-scale",m(u))))})),h.on("opened",(function(){l.removeClass("swipe-close-to-bottom swipe-close-to-top"),h.params.closeByBackdropClick&&e.on("click",f)})),h.on("close",(function(){N=h.$el.prevAll(".popup-push.modal-in").length>0,h.params.closeOnEscape&&g(s.a).off("keydown",p),h.params.closeByBackdropClick&&e.off("click",f),l.prevAll(".popup.modal-in").eq(0).removeClass("popup-behind"),d&&u&&!N&&(h.$htmlEl.removeClass("with-modal-popup-push"),h.$htmlEl.addClass("with-modal-popup-push-closing"))})),h.on("closed",(function(){d&&u&&!N&&(h.$htmlEl.removeClass("with-modal-popup-push-closing"),h.$htmlEl[0].style.removeProperty("--f7-popup-push-scale"))})),l[0].f7Modal=h,C()(i,h)}return r}(qt),rn={name:"popup",params:{popup:{backdrop:!0,backdropEl:void 0,closeByBackdropClick:!0,closeOnEscape:!1,swipeToClose:!1,swipeHandler:null,push:!1}},static:{Popup:nn},create:function(){this.popup=Q({app:this,constructor:nn,defaultSelector:".popup.modal-in",parentSelector:".popup"})},clicks:{".popup-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.popup.open(t.popup,t.animate,e)},".popup-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.popup.close(t.popup,t.animate,e)}}};function an(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var on=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(an()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e,t){var i;o()(this,r);var a=j.extend({on:{}},t);i=n.call(this,e,a);var s,l=k()(i);return l.params=a,(s=l.params.el?g(l.params.el).eq(0):g(l.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0))&&s.length>0&&s[0].f7Modal?C()(i,s[0].f7Modal):0===s.length?C()(i,l.destroy()):(j.extend(l,{app:e,$el:s,el:s[0],type:"loginScreen"}),s[0].f7Modal=l,C()(i,l))}return r}(qt),sn={name:"loginScreen",static:{LoginScreen:on},create:function(){this.loginScreen=Q({app:this,constructor:on,defaultSelector:".login-screen.modal-in"})},clicks:{".login-screen-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.loginScreen.open(t.loginScreen,t.animate,e)},".login-screen-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.loginScreen.close(t.loginScreen,t.animate,e)}}};function ln(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var cn=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(ln()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e,t){var i;o()(this,r);var a=j.extend({on:{}},e.params.popover,t);i=n.call(this,e,a);var l,c=k()(i);if(c.params=a,(l=c.params.el?g(c.params.el).eq(0):g(c.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0))&&l.length>0&&l[0].f7Modal)return C()(i,l[0].f7Modal);var u,d,h=g(c.params.targetEl).eq(0);if(0===l.length)return C()(i,c.destroy());c.params.backdrop&&c.params.backdropEl?u=g(c.params.backdropEl):c.params.backdrop&&0===(u=e.root.children(".popover-backdrop")).length&&(u=g('<div class="popover-backdrop"></div>'),e.root.append(u)),0===l.find(".popover-angle").length?(d=g('<div class="popover-angle"></div>'),l.prepend(d)):d=l.find(".popover-angle");var f=c.open;function p(){c.resize()}function m(t){var n=t.target,r=g(n);!e.device.desktop&&e.device.cordova&&(s.b.Keyboard&&s.b.Keyboard.isVisible||s.b.cordova.plugins&&s.b.cordova.plugins.Keyboard&&s.b.cordova.plugins.Keyboard.isVisible)||0===r.closest(c.el).length&&(c.params.closeByBackdropClick&&c.params.backdrop&&c.backdropEl&&c.backdropEl===n||c.params.closeByOutsideClick)&&c.close()}function v(e){27===e.keyCode&&c.params.closeOnEscape&&c.close()}return j.extend(c,{app:e,$el:l,el:l[0],$targetEl:h,targetEl:h[0],$angleEl:d,angleEl:d[0],$backdropEl:u,backdropEl:u&&u[0],type:"popover",open:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1];return"boolean"==typeof t[0]&&(i=t[0],r=t[1]),r&&(c.$targetEl=g(r),c.targetEl=c.$targetEl[0]),f.call(c,i)}}),c.on("popoverOpen",(function(){c.resize(),e.on("resize",p),g(s.b).on("keyboardDidShow keyboardDidHide",p),c.on("popoverClose popoverBeforeDestroy",(function(){e.off("resize",p),g(s.b).off("keyboardDidShow keyboardDidHide",p)}))})),c.params.closeOnEscape&&(c.on("popoverOpen",(function(){g(s.a).on("keydown",v)})),c.on("popoverClose",(function(){g(s.a).off("keydown",v)}))),c.on("popoverOpened",(function(){(c.params.closeByOutsideClick||c.params.closeByBackdropClick)&&e.on("click",m)})),c.on("popoverClose",(function(){(c.params.closeByOutsideClick||c.params.closeByBackdropClick)&&e.off("click",m)})),l[0].f7Modal=c,C()(i,c)}return b()(r,[{key:"resize",value:function(){var e=this.app,t=this.$el,n=this.$targetEl,r=this.$angleEl,i=this.params,a=i.targetX,o=i.targetY;t.css({left:"",top:""});var s,l,c,u,d,h,f=[t.width(),t.height()],p=f[0],m=f[1],v=0;"ios"===e.theme||"aurora"===e.theme?(r.removeClass("on-left on-right on-top on-bottom").css({left:"",top:""}),v=r.width()/2):t.removeClass("popover-on-left popover-on-right popover-on-top popover-on-bottom popover-on-middle").css({left:"",top:""});var y=parseInt(g("html").css("--f7-safe-area-top"),10);if(Number.isNaN(y)&&(y=0),n&&n.length>0){c=n.outerWidth(),u=n.outerHeight();var b=n.offset();d=b.left-e.left,h=b.top-e.top;var _=n.parents(".page");_.length>0&&(h-=_[0].scrollTop)}else void 0!==a&&"undefined"!==o&&(d=a,h=o,c=this.params.targetWidth||0,u=this.params.targetHeight||0);var w,k=0,E=0,S=0,T="md"===e.theme?"bottom":"top";"md"===e.theme?(m<e.height-h-u?(T="bottom",E=h+u):m<h-y?(E=h-m,T="top"):(T="middle",E=u/2+h-m/2),E=Math.max(8,Math.min(E,e.height-m-8)),d<e.width/2?(w="right",k="middle"===T?d+c:d):(w="left",k="middle"===T?d-p:d+c-p),k=Math.max(8,Math.min(k,e.width-p-8)),t.addClass("popover-on-".concat(T," popover-on-").concat(w))):(m+v<h-y?E=h-m-v:m+v<e.height-h-u?(T="bottom",E=h+u+v):(T="middle",S=E=u/2+h-m/2,S-=E=Math.max(5,Math.min(E,e.height-m-5))),"top"===T||"bottom"===T?(S=k=c/2+d-p/2,k=Math.max(5,Math.min(k,e.width-p-5)),"top"===T&&r.addClass("on-bottom"),"bottom"===T&&r.addClass("on-top"),s=p/2-v+(S-=k),s=Math.max(Math.min(s,p-2*v-13),13),r.css({left:"".concat(s,"px")})):"middle"===T&&(k=d-p-v,r.addClass("on-right"),(k<5||k+p>e.width)&&(k<5&&(k=d+c+v),k+p>e.width&&(k=e.width-p-5),r.removeClass("on-right").addClass("on-left")),l=m/2-v+S,l=Math.max(Math.min(l,m-2*v-13),13),r.css({top:"".concat(l,"px")})));t.css({top:"".concat(E,"px"),left:"".concat(k,"px")})}}]),r}(qt),un={name:"popover",params:{popover:{backdrop:!0,backdropEl:void 0,closeByBackdropClick:!0,closeByOutsideClick:!0,closeOnEscape:!1}},static:{Popover:cn},create:function(){var e=this;e.popover=j.extend(Q({app:e,constructor:cn,defaultSelector:".popover.modal-in"}),{open:function(t,n,r){var i=g(t);if(i.length>1){var a=g(n).parents(".page");a.length&&i.each((function(e,t){var n=g(t);n.parents(a)[0]===a[0]&&(i=n)}))}i.length>1&&(i=i.eq(i.length-1));var o=i[0].f7Modal,s=i.dataset();return o||(o=new cn(e,Object.assign({el:i,targetEl:n},s))),o.open(n,r)}})},clicks:{".popover-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.popover.open(t.popover,e,t.animate)},".popover-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.popover.close(t.popover,t.animate,e)}}};function dn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var hn=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(dn()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e,t){var i;o()(this,r);var a=j.extend({on:{}},e.params.actions,t);i=n.call(this,e,a);var l,c,u,d=k()(i);if(d.params=a,d.params.buttons&&(l=d.params.buttons,Array.isArray(l[0])||(l=[l])),d.groups=l,d.params.el?c=g(d.params.el).eq(0):d.params.content?c=g(d.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0):d.params.buttons&&(d.params.convertToPopover&&(d.popoverHtml=d.renderPopover()),d.actionsHtml=d.render()),c&&c.length>0&&c[0].f7Modal)return C()(i,c[0].f7Modal);if(c&&0===c.length&&!d.actionsHtml&&!d.popoverHtml)return C()(i,d.destroy());d.params.backdrop&&d.params.backdropEl?u=g(d.params.backdropEl):d.params.backdrop&&0===(u=e.root.children(".actions-backdrop")).length&&(u=g('<div class="actions-backdrop"></div>'),e.root.append(u));var h,f=d.open,p=d.close;function m(e){var t,n,r=g(this);if(r.hasClass("list-button")||r.hasClass("item-link")?(t=r.parents("li").index(),n=r.parents(".list").index()):(t=r.index(),n=r.parents(".actions-group").index()),void 0!==l){var i=l[n][t];i.onClick&&i.onClick(d,e),d.params.onClick&&d.params.onClick(d,e),!1!==i.close&&d.close()}}function v(t){var n=t.target,r=g(n);!e.device.desktop&&e.device.cordova&&(s.b.Keyboard&&s.b.Keyboard.isVisible||s.b.cordova.plugins&&s.b.cordova.plugins.Keyboard&&s.b.cordova.plugins.Keyboard.isVisible)||0===r.closest(d.el).length&&(d.params.closeByBackdropClick&&d.params.backdrop&&d.backdropEl&&d.backdropEl===n||d.params.closeByOutsideClick)&&d.close()}function y(e){27===e.keyCode&&d.params.closeOnEscape&&d.close()}return d.open=function(t){var n=!1,r=d.params,i=r.targetEl,a=r.targetX,o=r.targetY,s=r.targetWidth,l=r.targetHeight;return d.params.convertToPopover&&(i||void 0!==a&&void 0!==o)&&(d.params.forceToPopover||e.device.ios&&e.device.ipad||e.width>=768||e.device.desktop&&"aurora"===e.theme)&&(n=!0),n&&d.popoverHtml?((h=e.popover.create({content:d.popoverHtml,backdrop:d.params.backdrop,targetEl:i,targetX:a,targetY:o,targetWidth:s,targetHeight:l,on:{open:function(){d.$el||(d.$el=h.$el),d.$el.trigger("modal:open ".concat(d.type.toLowerCase(),":open")),d.emit("local::open modalOpen ".concat(d.type,"Open"),d)},opened:function(){d.$el||(d.$el=h.$el),d.$el.trigger("modal:opened ".concat(d.type.toLowerCase(),":opened")),d.emit("local::opened modalOpened ".concat(d.type,"Opened"),d)},close:function(){d.$el||(d.$el=h.$el),d.$el.trigger("modal:close ".concat(d.type.toLowerCase(),":close")),d.emit("local::close modalClose ".concat(d.type,"Close"),d)},closed:function(){d.$el||(d.$el=h.$el),d.$el.trigger("modal:closed ".concat(d.type.toLowerCase(),":closed")),d.emit("local::closed modalClosed ".concat(d.type,"Closed"),d)}}})).open(t),h.once("popoverOpened",(function(){h.$el.find(".list-button, .item-link").each((function(e,t){g(t).on("click",m)}))})),h.once("popoverClosed",(function(){h.$el.find(".list-button, .item-link").each((function(e,t){g(t).off("click",m)})),j.nextTick((function(){h.destroy(),h=void 0}))}))):(d.$el=d.actionsHtml?g(d.actionsHtml):d.$el,d.$el[0].f7Modal=d,d.groups&&(d.$el.find(".actions-button").each((function(e,t){g(t).on("click",m)})),d.once("actionsClosed",(function(){d.$el.find(".actions-button").each((function(e,t){g(t).off("click",m)}))}))),d.el=d.$el[0],f.call(d,t)),d},d.close=function(e){return h?h.close(e):p.call(d,e),d},j.extend(d,{app:e,$el:c,el:c?c[0]:void 0,$backdropEl:u,backdropEl:u&&u[0],type:"actions"}),d.params.closeOnEscape&&(d.on("open",(function(){g(s.a).on("keydown",y)})),d.on("close",(function(){g(s.a).off("keydown",y)}))),d.on("opened",(function(){(d.params.closeByBackdropClick||d.params.closeByOutsideClick)&&e.on("click",v)})),d.on("close",(function(){(d.params.closeByBackdropClick||d.params.closeByOutsideClick)&&e.off("click",v)})),c&&(c[0].f7Modal=d),C()(i,d)}return b()(r,[{key:"render",value:function(){if(this.params.render)return this.params.render.call(this,this);var e=this.groups,t=this.params.cssClass;return'\n <div class="actions-modal'.concat(this.params.grid?" actions-grid":""," ").concat(t||"",'">\n ').concat(e.map((function(e){return'<div class="actions-group">\n '.concat(e.map((function(e){var t=["actions-".concat(e.label?"label":"button")],n=e.color,r=e.bg,i=e.bold,a=e.disabled,o=e.label,s=e.text,l=e.icon;return n&&t.push("color-".concat(n)),r&&t.push("bg-color-".concat(r)),i&&t.push("actions-button-bold"),a&&t.push("disabled"),o?'<div class="'.concat(t.join(" "),'">').concat(s,"</div>"):'\n <div class="'.concat(t.join(" "),'">\n ').concat(l?'<div class="actions-button-media">'.concat(l,"</div>"):"",'\n <div class="actions-button-text">').concat(s,"</div>\n </div>").trim()})).join(""),"\n </div>")})).join(""),"\n </div>\n ").trim()}},{key:"renderPopover",value:function(){if(this.params.renderPopover)return this.params.renderPopover.call(this,this);var e=this.groups,t=this.params.cssClass;return'\n <div class="popover popover-from-actions '.concat(t||"",'">\n <div class="popover-inner">\n ').concat(e.map((function(e){return'\n <div class="list">\n <ul>\n '.concat(e.map((function(e){var t=[],n=e.color,r=e.bg,i=e.bold,a=e.disabled,o=e.label,s=e.text,l=e.icon;return n&&t.push("color-".concat(n)),r&&t.push("bg-color-".concat(r)),i&&t.push("popover-from-actions-bold"),a&&t.push("disabled"),o?(t.push("popover-from-actions-label"),'<li class="'.concat(t.join(" "),'">').concat(s,"</li>")):l?(t.push("item-link item-content"),'\n <li>\n <a class="'.concat(t.join(" "),'">\n <div class="item-media">\n ').concat(l,'\n </div>\n <div class="item-inner">\n <div class="item-title">\n ').concat(s,"\n </div>\n </div>\n </a>\n </li>\n ")):(t.push("list-button"),'\n <li>\n <a class="'.concat(t.join(" "),'">').concat(s,"</a>\n </li>\n "))})).join(""),"\n </ul>\n </div>\n ")})).join(""),"\n </div>\n </div>\n ").trim()}}]),r}(qt),fn={name:"actions",params:{actions:{convertToPopover:!0,forceToPopover:!1,backdrop:!0,backdropEl:void 0,cssClass:null,closeByBackdropClick:!0,closeOnEscape:!1,render:null,renderPopover:null}},static:{Actions:hn},create:function(){this.actions=Q({app:this,constructor:hn,defaultSelector:".actions-modal.modal-in"})},clicks:{".actions-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.actions.open(t.actions,t.animate,e)},".actions-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.actions.close(t.actions,t.animate,e)}}};function pn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var mn=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(pn()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e,t){var i;o()(this,r);var a=j.extend({on:{}},e.params.sheet,t);i=n.call(this,e,a);var l,c,u,d,h=k()(i);if(h.params=a,void 0===h.params.backdrop&&(h.params.backdrop="ios"!==e.theme),(l=h.params.el?g(h.params.el).eq(0):g(h.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0))&&l.length>0&&l[0].f7Modal)return C()(i,l[0].f7Modal);if(0===l.length)return C()(i,h.destroy());function f(t){var n=t.target,r=g(n);!e.device.desktop&&e.device.cordova&&(s.b.Keyboard&&s.b.Keyboard.isVisible||s.b.cordova.plugins&&s.b.cordova.plugins.Keyboard&&s.b.cordova.plugins.Keyboard.isVisible)||0===r.closest(h.el).length&&(h.params.closeByBackdropClick&&h.params.backdrop&&h.backdropEl&&h.backdropEl===n||h.params.closeByOutsideClick)&&h.close()}function p(e){27===e.keyCode&&h.params.closeOnEscape&&h.close()}function m(t){return(e.height-2*t)/e.height}h.params.backdrop&&h.params.backdropEl?c=g(h.params.backdropEl):h.params.backdrop&&0===(c=e.root.children(".sheet-backdrop")).length&&(c=g('<div class="sheet-backdrop"></div>'),e.root.append(c)),j.extend(h,{app:e,push:l.hasClass("sheet-modal-push")||h.params.push,$el:l,el:l[0],$backdropEl:c,backdropEl:c&&c[0],type:"sheet",$htmlEl:g("html")}),h.params.push&&l.addClass("sheet-modal-push");var v,y,b,_,w,E,S,T,M,x,$,L,P,O,I,A,D,N,R=!1,B=!1;function Y(e){R||!h.params.swipeToClose&&!h.params.swipeToStep||h.params.swipeHandler&&0===g(e.target).closest(h.params.swipeHandler).length||(R=!0,B=!1,v={x:"touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,y:"touchstart"===e.type?e.targetTouches[0].pageY:e.pageY},_=j.now(),b=void 0,E=l.hasClass("sheet-modal-top"),h.params.swipeHandler||"touchstart"!==e.type||(I=g(e.target).closest(".page-content")[0]))}function F(t){if(R){if(y={x:"touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,y:"touchmove"===t.type?t.targetTouches[0].pageY:t.pageY},void 0===b&&(b=!!(b||Math.abs(y.x-v.x)>Math.abs(y.y-v.y))),b)return R=!1,void(B=!1);var n,r=(w=v.y-y.y)<0?"to-bottom":"to-top";if(!B){if(I&&!l.hasClass("modal-in-swipe-step")&&(A=I.scrollTop,D=I.scrollHeight,N=I.offsetHeight,!(D===N||"to-bottom"===r&&0===A||"to-top"===r&&A===D-N)))return l.transform(""),R=!1,void(B=!1);h.push&&d&&(P=e.root.children(".view, .views")),x=l[0].offsetHeight,T=j.getTranslate(l[0],"y"),E?($=h.params.swipeToClose?-x:-S,L=0):($=0,L=h.params.swipeToClose?x:S),B=!0}if(M=T-w,M=Math.min(Math.max(M,$),L),t.preventDefault(),h.push&&d){var i=(M-T)/x;h.params.swipeToStep&&(i=E?M/S:1-(S-M)/S),i=Math.abs(i);var a=1-(i=Math.min(Math.max(i,0),1)),o=1-(1-m(d))*a;P.transition(0).transform("translate3d(0,0,0) scale(".concat(o,")")),h.params.swipeToStep&&P.css("border-radius","".concat(O*a,"px"))}if(l.transition(0).transform("translate3d(0,".concat(M,"px,0)")),h.params.swipeToStep)n=E?1-M/S:(S-M)/S,n=Math.min(Math.max(n,0),1),l.trigger("sheet:stepprogress",n),h.emit("local::stepProgress sheetStepProgress",h,n)}}function H(){if(R=!1,B){B=!1,l.transform("").transition(""),h.push&&d&&(P.transition("").transform(""),P.css("border-radius",""));var e=w<0?"to-bottom":"to-top",t=Math.abs(w);if(0!==t&&M!==T){var n=(new Date).getTime()-_;if(h.params.swipeToStep){var r=E?"to-bottom":"to-top",i=E?"to-top":"to-bottom",a=Math.abs(M),o=Math.abs(S);if(n<300&&t>10)return e===r&&a<o&&(l.removeClass("modal-in-swipe-step"),l.trigger("sheet:stepprogress",1),h.emit("local::stepProgress sheetStepProgress",h,1),l.trigger("sheet:stepopen"),h.emit("local::stepOpen sheetStepOpen",h),h.push&&d&&(h.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",m(d)),P.css("border-radius",""))),e===i&&a>o&&(h.params.swipeToClose?h.close():(l.addClass("modal-in-swipe-step"),l.trigger("sheet:stepprogress",0),h.emit("local::stepProgress sheetStepProgress",h,0),l.trigger("sheet:stepclose"),h.emit("local::stepClose sheetStepClose",h),h.push&&d&&(h.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),P.css("border-radius","0px")))),void(e===i&&a<=o&&(l.addClass("modal-in-swipe-step"),l.trigger("sheet:stepprogress",0),h.emit("local::stepProgress sheetStepProgress",h,0),l.trigger("sheet:stepclose"),h.emit("local::stepClose sheetStepClose",h),h.push&&d&&(h.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),P.css("border-radius","0px"))));if(n>=300){var s=!l.hasClass("modal-in-swipe-step");s?s&&(a>o+(x-o)/2?h.params.swipeToClose&&h.close():a>o/2&&(l.addClass("modal-in-swipe-step"),l.trigger("sheet:stepprogress",0),h.emit("local::stepProgress sheetStepProgress",h,0),l.trigger("sheet:stepclose"),h.emit("local::stepClose sheetStepClose",h),h.push&&d&&(h.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),P.css("border-radius","0px")))):a<o/2?(l.removeClass("modal-in-swipe-step"),l.trigger("sheet:stepprogress",1),h.emit("local::stepProgress sheetStepProgress",h,1),l.trigger("sheet:stepopen"),h.emit("local::stepOpen sheetStepOpen",h),h.push&&d&&(h.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",m(d)),P.css("border-radius",""))):a-o>(x-o)/2&&h.params.swipeToClose&&h.close()}}else{if(e!==(E?"to-top":"to-bottom"))return;(n<300&&t>20||n>=300&&t>x/2)&&h.close()}}}}function U(){h.setSwipeStep(!0)}h.setSwipeStep=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=l.find(".sheet-modal-swipe-step").eq(0);t.length&&(S=l.hasClass("sheet-modal-top")?-(t.offset().top-l.offset().top+t[0].offsetHeight):l[0].offsetHeight-(t.offset().top-l.offset().top+t[0].offsetHeight),l[0].style.setProperty("--f7-sheet-swipe-step","".concat(S,"px")),e||l.addClass("modal-in-swipe-step"))};var z=!!ue.a.passiveListener&&{passive:!0};return(h.params.swipeToClose||h.params.swipeToStep)&&(l.on(e.touchEvents.start,Y,z),e.on("touchmove",F),e.on("touchend:passive",H),h.once("sheetDestroy",(function(){l.off(e.touchEvents.start,Y,z),e.off("touchmove",F),e.off("touchend:passive",H)}))),h.on("open",(function(){h.params.closeOnEscape&&g(s.a).on("keydown",p),l.prevAll(".popup.modal-in").addClass("popup-behind"),h.params.swipeToStep&&(h.setSwipeStep(!1),e.on("resize",U)),h.params.scrollToEl&&function(){var e=g(h.params.scrollToEl).eq(0);if(0!==e.length&&0!==(u=e.parents(".page-content")).length){var t,n=parseInt(u.css("padding-top"),10),r=parseInt(u.css("padding-bottom"),10),i=u[0].offsetHeight-n-l.height(),a=u[0].scrollHeight-n-l.height(),o=u.scrollTop(),s=e.offset().top-n+e[0].offsetHeight;if(s>i){var c=o+s-i;c+i>a&&(t=c+i-a+r,i===a&&(t=l.height()),u.css({"padding-bottom":"".concat(t,"px")})),u.scrollTop(c,300)}}}(),h.push&&(d=parseInt(l.css("--f7-sheet-push-offset"),10),Number.isNaN(d)&&(d=0),d&&(l.addClass("sheet-modal-push"),h.$htmlEl.addClass("with-modal-sheet-push"),h.params.swipeToStep?(P=e.root.children(".view, .views"),O=parseFloat(l.css("border-".concat(E?"bottom":"top","-left-radius"))),P.css("border-radius","0px")):h.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",m(d))))})),h.on("opened",(function(){(h.params.closeByOutsideClick||h.params.closeByBackdropClick)&&e.on("click",f)})),h.on("close",(function(){h.params.swipeToStep&&(l.removeClass("modal-in-swipe-step"),e.off("resize",U)),h.params.closeOnEscape&&g(s.a).off("keydown",p),h.params.scrollToEl&&u&&u.length>0&&u.css({"padding-bottom":""}),(h.params.closeByOutsideClick||h.params.closeByBackdropClick)&&e.off("click",f),l.prevAll(".popup.modal-in").eq(0).removeClass("popup-behind"),h.push&&d&&(h.$htmlEl.removeClass("with-modal-sheet-push"),h.$htmlEl.addClass("with-modal-sheet-push-closing"))})),h.on("closed",(function(){h.push&&d&&(h.$htmlEl.removeClass("with-modal-sheet-push-closing"),h.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"))})),h.stepOpen=function(){l.removeClass("modal-in-swipe-step"),h.push&&(d||(d=parseInt(l.css("--f7-sheet-push-offset"),10),Number.isNaN(d)&&(d=0)),d&&h.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",m(d)))},h.stepClose=function(){l.addClass("modal-in-swipe-step"),h.push&&h.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale")},h.stepToggle=function(){l.toggleClass("modal-in-swipe-step")},l[0].f7Modal=h,C()(i,h)}return r}(qt),vn={name:"sheet",params:{sheet:{push:!1,backdrop:void 0,backdropEl:void 0,closeByBackdropClick:!0,closeByOutsideClick:!1,closeOnEscape:!1,swipeToClose:!1,swipeToStep:!1,swipeHandler:null}},static:{Sheet:mn},create:function(){var e=this;e.sheet=j.extend({},Q({app:e,constructor:mn,defaultSelector:".sheet-modal.modal-in"}),{stepOpen:function(t){var n=e.sheet.get(t);if(n&&n.stepOpen)return n.stepOpen()},stepClose:function(t){var n=e.sheet.get(t);if(n&&n.stepClose)return n.stepClose()},stepToggle:function(t){var n=e.sheet.get(t);if(n&&n.stepToggle)return n.stepToggle()}})},clicks:{".sheet-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;g(".sheet-modal.modal-in").length>0&&t.sheet&&g(t.sheet)[0]!==g(".sheet-modal.modal-in")[0]&&n.sheet.close(".sheet-modal.modal-in"),n.sheet.open(t.sheet,t.animate,e)},".sheet-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.sheet.close(t.sheet,t.animate,e)}}};function gn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var yn=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(gn()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e,t){var i;o()(this,r);var a=j.extend({on:{}},e.params.toast,t);i=n.call(this,e,a);var l=k()(i);l.app=e,l.params=a;var c,u,d=l.params,h=d.closeButton,f=d.closeTimeout;if(l.params.el)c=g(l.params.el);else{var p=l.render();c=g(p)}return c&&c.length>0&&c[0].f7Modal?C()(i,c[0].f7Modal):0===c.length?C()(i,l.destroy()):(j.extend(l,{$el:c,el:c[0],type:"toast"}),c[0].f7Modal=l,h&&(c.find(".toast-button").on("click",(function(){l.emit("local::closeButtonClick toastCloseButtonClick",l),l.close()})),l.on("beforeDestroy",(function(){c.find(".toast-button").off("click")}))),l.on("open",(function(){g(".toast.modal-in").each((function(t,n){var r=e.toast.get(n);n!==l.el&&r&&r.close()})),f&&(u=j.nextTick((function(){l.close()}),f))})),l.on("close",(function(){s.b.clearTimeout(u)})),l.params.destroyOnClose&&l.once("closed",(function(){setTimeout((function(){l.destroy()}),0)})),C()(i,l))}return b()(r,[{key:"render",value:function(){if(this.params.render)return this.params.render.call(this,this);var e=this.params,t=e.position,n=e.cssClass,r=e.icon,i=e.text,a=e.closeButton,o=e.closeButtonColor,s=e.closeButtonText;return'\n <div class="toast toast-'.concat(t," ").concat(n||""," ").concat(r?"toast-with-icon":"",'">\n <div class="toast-content">\n ').concat(r?'<div class="toast-icon">'.concat(r,"</div>"):"",'\n <div class="toast-text">').concat(i,"</div>\n ").concat(a&&!r?'\n <a class="toast-button button '.concat(o?"color-".concat(o):"",'">').concat(s,"</a>\n ").trim():"","\n </div>\n </div>\n ").trim()}}]),r}(qt),bn={name:"toast",static:{Toast:yn},create:function(){var e=this;e.toast=j.extend({},Q({app:e,constructor:yn,defaultSelector:".toast.modal-in"}),{show:function(t){return j.extend(t,{destroyOnClose:!0}),new yn(e,t).open()}})},params:{toast:{icon:null,text:null,position:"bottom",closeButton:!1,closeButtonColor:null,closeButtonText:"Ok",closeTimeout:null,cssClass:null,render:null}}},_n={init:function(e){var t=g(e);0===t.length||t.children(".preloader-inner").length>0||t.children(".preloader-inner-line").length>0||t.append(j["".concat(this.theme,"PreloaderContent")])},visible:!1,show:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"white",t=this;if(!_n.visible){var n=j["".concat(t.theme,"PreloaderContent")]||"";g("html").addClass("with-modal-preloader"),t.root.append('\n <div class="preloader-backdrop"></div>\n <div class="preloader-modal">\n <div class="preloader color-'.concat(e,'">').concat(n,"</div>\n </div>\n ")),_n.visible=!0}},showIn:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"white",n=this,r=j["".concat(n.theme,"PreloaderContent")]||"";g(e||"html").addClass("with-modal-preloader"),g(e||n.root).append('\n <div class="preloader-backdrop"></div>\n <div class="preloader-modal">\n <div class="preloader color-'.concat(t,'">').concat(r,"</div>\n </div>\n "))},hide:function(){_n.visible&&(g("html").removeClass("with-modal-preloader"),this.root.find(".preloader-backdrop, .preloader-modal").remove(),_n.visible=!1)},hideIn:function(e){g(e||"html").removeClass("with-modal-preloader"),g(e||this.root).find(".preloader-backdrop, .preloader-modal").remove()}},wn={name:"preloader",create:function(){j.extend(this,{preloader:{init:_n.init.bind(this),show:_n.show.bind(this),hide:_n.hide.bind(this),showIn:_n.showIn.bind(this),hideIn:_n.hideIn.bind(this)}})},on:{photoBrowserOpen:function(e){var t=this;e.$el.find(".preloader").each((function(e,n){t.preloader.init(n)}))},tabMounted:function(e){var t=this;g(e).find(".preloader").each((function(e,n){t.preloader.init(n)}))},pageInit:function(e){var t=this;e.$el.find(".preloader").each((function(e,n){t.preloader.init(n)}))}},vnode:{preloader:{insert:function(e){var t=e.elm;this.preloader.init(t)}}}},kn={set:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2];if("number"==typeof n[0]&&(a=n[0],o=n[1],i=e.root),null==a)return i;a||(a=0);var s=g(i||e.root);if(0===s.length)return i;var l,c=Math.min(Math.max(a,0),100);if(0===(l=s.hasClass("progressbar")?s.eq(0):s.children(".progressbar")).length||l.hasClass("progressbar-infinite"))return l;var u=l.children("span");return 0===u.length&&(u=g("<span></span>"),l.append(u)),u.transition(void 0!==o?o:"").transform("translate3d(".concat(-100+c,"%,0,0)")),l[0]},show:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2],s="determined";2===n.length?"string"!=typeof n[0]&&"object"!==O()(n[0])||"string"!=typeof n[1]?"number"==typeof n[0]&&"string"==typeof n[1]&&(a=n[0],o=n[1],i=e.root):(i=n[0],o=n[1],a=n[2],s="infinite"):1===n.length?"number"==typeof n[0]?(i=e.root,a=n[0]):"string"==typeof n[0]&&(s="infinite",i=e.root,o=n[0]):0===n.length&&(s="infinite",i=e.root);var l,c=g(i);if(0!==c.length)return c.hasClass("progressbar")||c.hasClass("progressbar-infinite")?l=c:0===(l=c.children(".progressbar:not(.progressbar-out), .progressbar-infinite:not(.progressbar-out)")).length&&(l=g('\n <span class="progressbar'.concat("infinite"===s?"-infinite":"").concat(o?" color-".concat(o):"",' progressbar-in">\n ').concat("infinite"===s?"":"<span></span>","\n </span>")),c.append(l)),void 0!==a&&e.progressbar.set(l,a),l[0]},hide:function(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this,i=g(e||r.root);if(0!==i.length)return 0===(t=i.hasClass("progressbar")||i.hasClass("progressbar-infinite")?i:i.children(".progressbar, .progressbar-infinite")).length||!t.hasClass("progressbar-in")||t.hasClass("progressbar-out")||t.removeClass("progressbar-in").addClass("progressbar-out").animationEnd((function(){n&&t.remove()})),t}},En={name:"progressbar",create:function(){j.extend(this,{progressbar:{set:kn.set.bind(this),show:kn.show.bind(this),hide:kn.hide.bind(this)}})},on:{tabMounted:function(e){var t=this;g(e).find(".progressbar").each((function(e,n){var r=g(n);t.progressbar.set(r,r.attr("data-progress"))}))},pageInit:function(e){var t=this;e.$el.find(".progressbar").each((function(e,n){var r=g(n);t.progressbar.set(r,r.attr("data-progress"))}))}},vnode:{progressbar:{insert:function(e){var t=e.elm;this.progressbar.set(t,t.getAttribute("data-progress"))},update:function(e){var t=e.elm;this.progressbar.set(t,t.getAttribute("data-progress"))}}}},Sn={init:function(){var e,t,n,r,i,a,o,l,c,u,d,h,f,p,m,v,y,b,_,w,k,E=this;function S(r,s){t=!1,e=!0,k=!1,n="touchstart"===r.type?r.targetTouches[0].pageY:r.pageY,i=g(r.target).closest("li").eq(0),f=i.index(),o=i.parents(".sortable");var l=i.parents(".list-group");l.length&&l.parents(o).length&&(o=l),a=o.children("ul").children("li:not(.disallow-sorting):not(.no-sorting)"),E.panel&&(E.panel.allowOpen=!1),E.swipeout&&(E.swipeout.allow=!1),s&&(i.addClass("sorting"),o.addClass("sortable-sorting"),k=!0)}var T=!!E.support.passiveListener&&{passive:!1,capture:!1};g(s.a).on(E.touchEvents.start,".list.sortable .sortable-handler",S,T),E.on("touchmove:active",(function(s){if(e&&i){var f="touchmove"===s.type?s.targetTouches[0].pageY:s.pageY;if(!t){p=i.parents(".page"),m=i.parents(".page-content");var k=parseInt(m.css("padding-top"),10),E=parseInt(m.css("padding-bottom"),10);w=m[0].scrollTop,y=p.offset().top+k,v=p.height()-k-E,i.addClass("sorting"),o.addClass("sortable-sorting"),b=i[0].offsetTop,c=i[0].offsetTop,u=i.parent().height()-b-i.height(),l=i[0].offsetHeight,_=i.offset().top}t=!0,s.preventDefault(),s.f7PreventSwipePanel=!0,r=f-n;var S=m[0].scrollTop-w,T=Math.min(Math.max(r+S,-c),u);i.transform("translate3d(0,".concat(T,"px,0)"));var C,M=!0;r+S+44<-c&&(M=!1),r+S-44>u&&(M=!1),h=void 0,d=void 0,M&&(_+r+l+44>y+v&&(C=_+r+l+44-(y+v)),_+r<y+44&&(C=_+r-y-44),C&&(m[0].scrollTop+=C)),a.each((function(e,t){var n=g(t);if(n[0]!==i[0]){var r=n[0].offsetTop,a=n.height(),o=b+T;o>=r-a/2&&i.index()<n.index()?(n.transform("translate3d(0, ".concat(-l,"px,0)")),d=n,h=void 0):o<=r+a/2&&i.index()>n.index()?(n.transform("translate3d(0, ".concat(l,"px,0)")),d=void 0,h||(h=n)):n.transform("translate3d(0, 0%,0)")}}))}})),E.on("touchend:passive",(function(){if(!e||!t)return e&&!t&&(E.panel&&(E.panel.allowOpen=!0),E.swipeout&&(E.swipeout.allow=!0),k&&(i.removeClass("sorting"),o.removeClass("sortable-sorting"))),e=!1,void(t=!1);var n;E.panel&&(E.panel.allowOpen=!0),E.swipeout&&(E.swipeout.allow=!0),a.transform(""),i.removeClass("sorting"),o.removeClass("sortable-sorting"),d?n=d.index():h&&(n=h.index());var r=o.dataset().sortableMoveElements;if(void 0===r&&(r=E.params.sortable.moveElements),r&&(d&&i.insertAfter(d),h&&i.insertBefore(h)),(d||h)&&o.hasClass("virtual-list")){void 0===(f=i[0].f7VirtualListIndex)&&(f=i.attr("data-virtual-list-index")),h?void 0===(n=h[0].f7VirtualListIndex)&&(n=h.attr("data-virtual-list-index")):void 0===(n=d[0].f7VirtualListIndex)&&(n=d.attr("data-virtual-list-index")),n=null!==n?parseInt(n,10):void 0;var s=o[0].f7VirtualList;f&&(f=parseInt(f,10)),n&&(n=parseInt(n,10)),s&&s.moveItem(f,n)}void 0===n||Number.isNaN(n)||n===f||(i.trigger("sortable:sort",{from:f,to:n}),E.emit("sortableSort",i[0],{from:f,to:n,el:i[0]},o[0])),h=void 0,d=void 0,e=!1,t=!1})),g(s.a).on("taphold",".sortable-tap-hold",(function(e,t){S(t,!0)}))},enable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".list.sortable",t=this,n=g(e);0!==n.length&&(n.addClass("sortable-enabled"),n.trigger("sortable:enable"),t.emit("sortableEnable",n[0]))},disable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".list.sortable",t=this,n=g(e);0!==n.length&&(n.removeClass("sortable-enabled"),n.trigger("sortable:disable"),t.emit("sortableDisable",n[0]))},toggle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".list.sortable",t=this,n=g(e);0!==n.length&&(n.hasClass("sortable-enabled")?t.sortable.disable(n):t.sortable.enable(n))}},Tn={name:"sortable",params:{sortable:{moveElements:!0}},create:function(){j.extend(this,{sortable:{init:Sn.init.bind(this),enable:Sn.enable.bind(this),disable:Sn.disable.bind(this),toggle:Sn.toggle.bind(this)}})},on:{init:function(){this.params.sortable&&this.sortable.init()}},clicks:{".sortable-enable":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.sortable.enable(t.sortable)},".sortable-disable":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.sortable.disable(t.sortable)},".sortable-toggle":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.sortable.toggle(t.sortable)}}},Cn={init:function(){var e,t,n,r,i,a,o,l,c,u,d,h,f,p,m,v,y,b,_,w,k,E=this,S={};var T=!!E.support.passiveListener&&{passive:!0};E.on("touchstart",(function(e){if(Cn.el){var t=g(e.target);g(Cn.el).is(t[0])||t.parents(".swipeout").is(Cn.el)||t.hasClass("modal-in")||(t.attr("class")||"").indexOf("-backdrop")>0||t.hasClass("actions-modal")||t.parents(".actions-modal.modal-in, .dialog.modal-in").length>0||E.swipeout.close(Cn.el)}})),g(s.a).on(E.touchEvents.start,"li.swipeout",(function(i){Cn.allow&&(t=!1,e=!0,n=void 0,S.x="touchstart"===i.type?i.targetTouches[0].pageX:i.pageX,S.y="touchstart"===i.type?i.targetTouches[0].pageY:i.pageY,r=(new Date).getTime(),a=g(this))}),T),E.on("touchmove:active",(function(r){if(e){var s="touchmove"===r.type?r.targetTouches[0].pageX:r.pageX,T="touchmove"===r.type?r.targetTouches[0].pageY:r.pageY;if(void 0===n&&(n=!!(n||Math.abs(T-S.y)>Math.abs(s-S.x))),n)e=!1;else{if(!t){if(g(".list.sortable-opened").length>0)return;o=a.find(".swipeout-content"),l=a.find(".swipeout-actions-right"),c=a.find(".swipeout-actions-left"),u=null,d=null,m=null,v=null,_=null,b=null,c.length>0&&(u=c.outerWidth(),m=c.children("a"),b=c.find(".swipeout-overswipe")),l.length>0&&(d=l.outerWidth(),v=l.children("a"),_=l.find(".swipeout-overswipe")),(f=a.hasClass("swipeout-opened"))&&(p=a.find(".swipeout-actions-left.swipeout-actions-opened").length>0?"left":"right"),a.removeClass("swipeout-transitioning"),E.params.swipeout.noFollow||(a.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),a.removeClass("swipeout-opened"))}if(t=!0,r.preventDefault(),i=s-S.x,h=i,f&&("right"===p?h-=d:h+=u),h>0&&0===c.length||h<0&&0===l.length){if(!f)return e=!1,t=!1,o.transform(""),v&&v.length>0&&v.transform(""),void(m&&m.length>0&&m.transform(""));h=0}var C,M;if(h<0?y="to-left":h>0?y="to-right":y||(y="to-left"),r.f7PreventSwipePanel=!0,E.params.swipeout.noFollow)return f?("right"===p&&i>0&&E.swipeout.close(a),"left"===p&&i<0&&E.swipeout.close(a)):(i<0&&l.length>0&&E.swipeout.open(a,"right"),i>0&&c.length>0&&E.swipeout.open(a,"left")),e=!1,void(t=!1);if(w=!1,k=!1,l.length>0){var x=h;M=x/d,x<-d&&(x=-d-Math.pow(-x-d,.8),h=x,_.length>0&&(k=!0)),"to-left"!==y&&(M=0,x=0),v.each((function(e,t){var n=g(t);void 0===t.f7SwipeoutButtonOffset&&(n[0].f7SwipeoutButtonOffset=t.offsetLeft),C=t.f7SwipeoutButtonOffset,_.length>0&&n.hasClass("swipeout-overswipe")&&"to-left"===y&&(n.css({left:"".concat(k?-C:0,"px")}),k?(n.hasClass("swipeout-overswipe-active")||(a.trigger("swipeout:overswipeenter"),E.emit("swipeoutOverswipeEnter",a[0])),n.addClass("swipeout-overswipe-active")):(n.hasClass("swipeout-overswipe-active")&&(a.trigger("swipeout:overswipeexit"),E.emit("swipeoutOverswipeExit",a[0])),n.removeClass("swipeout-overswipe-active"))),n.transform("translate3d(".concat(x-C*(1+Math.max(M,-1)),"px,0,0)"))}))}if(c.length>0){var $=h;M=$/u,$>u&&($=u+Math.pow($-u,.8),h=$,b.length>0&&(w=!0)),"to-right"!==y&&($=0,M=0),m.each((function(e,t){var n=g(t);void 0===t.f7SwipeoutButtonOffset&&(n[0].f7SwipeoutButtonOffset=u-t.offsetLeft-t.offsetWidth),C=t.f7SwipeoutButtonOffset,b.length>0&&n.hasClass("swipeout-overswipe")&&"to-right"===y&&(n.css({left:"".concat(w?C:0,"px")}),w?(n.hasClass("swipeout-overswipe-active")||(a.trigger("swipeout:overswipeenter"),E.emit("swipeoutOverswipeEnter",a[0])),n.addClass("swipeout-overswipe-active")):(n.hasClass("swipeout-overswipe-active")&&(a.trigger("swipeout:overswipeexit"),E.emit("swipeoutOverswipeExit",a[0])),n.removeClass("swipeout-overswipe-active"))),m.length>1&&n.css("z-index",m.length-e),n.transform("translate3d(".concat($+C*(1-Math.min(M,1)),"px,0,0)"))}))}a.trigger("swipeout",M),E.emit("swipeout",a[0],M),o.transform("translate3d(".concat(h,"px,0,0)"))}}})),E.on("touchend:passive",(function(){if(!e||!t)return e=!1,void(t=!1);e=!1,t=!1;var n,s,p,b,_=(new Date).getTime()-r,S="to-left"===y?l:c,T="to-left"===y?d:u;if(n=_<300&&(i<-10&&"to-left"===y||i>10&&"to-right"===y)||_>=300&&Math.abs(h)>T/2?"open":"close",_<300&&(0===Math.abs(h)&&(n="close"),Math.abs(h)===T&&(n="open")),"open"===n){Cn.el=a[0],a.trigger("swipeout:open"),E.emit("swipeoutOpen",a[0]),a.addClass("swipeout-opened swipeout-transitioning");var C="to-left"===y?-T:T;if(o.transform("translate3d(".concat(C,"px,0,0)")),S.addClass("swipeout-actions-opened"),s="to-left"===y?v:m)for(p=0;p<s.length;p+=1)g(s[p]).transform("translate3d(".concat(C,"px,0,0)"));k&&l.find(".swipeout-overswipe").trigger("click","f7Overswipe"),w&&c.find(".swipeout-overswipe").trigger("click","f7Overswipe")}else a.trigger("swipeout:close"),E.emit("swipeoutClose",a[0]),Cn.el=void 0,a.addClass("swipeout-transitioning").removeClass("swipeout-opened"),o.transform(""),S.removeClass("swipeout-actions-opened");m&&m.length>0&&m!==s&&m.each((function(e,t){var n=g(t);void 0===(b=t.f7SwipeoutButtonOffset)&&(n[0].f7SwipeoutButtonOffset=u-t.offsetLeft-t.offsetWidth),n.transform("translate3d(".concat(b,"px,0,0)"))})),v&&v.length>0&&v!==s&&v.each((function(e,t){var n=g(t);void 0===(b=t.f7SwipeoutButtonOffset)&&(n[0].f7SwipeoutButtonOffset=t.offsetLeft),n.transform("translate3d(".concat(-b,"px,0,0)"))})),o.transitionEnd((function(){f&&"open"===n||!f&&"close"===n||(a.trigger("open"===n?"swipeout:opened":"swipeout:closed"),E.emit("open"===n?"swipeoutOpened":"swipeoutClosed",a[0]),a.removeClass("swipeout-transitioning"),f&&"close"===n&&(l.length>0&&v.transform(""),c.length>0&&m.transform("")))}))}))},allow:!0,el:void 0,open:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2];"function"==typeof n[1]&&(i=n[0],o=n[1],a=n[2]);var s=g(i).eq(0);if(0!==s.length&&s.hasClass("swipeout")&&!s.hasClass("swipeout-opened")){a||(a=s.find(".swipeout-actions-right").length>0?"right":"left");var l=s.find(".swipeout-actions-".concat(a)),c=s.find(".swipeout-content");if(0!==l.length){s.trigger("swipeout:open").addClass("swipeout-opened").removeClass("swipeout-transitioning"),e.emit("swipeoutOpen",s[0]),l.addClass("swipeout-actions-opened");var u=l.children("a"),d=l.outerWidth(),h="right"===a?-d:d;u.length>1&&u.each((function(e,t){var n=g(t);"right"===a?n.transform("translate3d(".concat(-t.offsetLeft,"px,0,0)")):n.css("z-index",u.length-e).transform("translate3d(".concat(d-t.offsetWidth-t.offsetLeft,"px,0,0)"))})),s.addClass("swipeout-transitioning"),c.transitionEnd((function(){s.trigger("swipeout:opened"),e.emit("swipeoutOpened",s[0]),o&&o.call(s[0])})),j.nextFrame((function(){u.transform("translate3d(".concat(h,"px,0,0)")),c.transform("translate3d(".concat(h,"px,0,0)"))})),Cn.el=s[0]}}},close:function(e,t){var n=this,r=g(e).eq(0);if(0!==r.length&&r.hasClass("swipeout-opened")){var i,a=r.find(".swipeout-actions-opened").hasClass("swipeout-actions-right")?"right":"left",o=r.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),s=o.children("a"),l=o.outerWidth();Cn.allow=!1,r.trigger("swipeout:close"),n.emit("swipeoutClose",r[0]),r.removeClass("swipeout-opened").addClass("swipeout-transitioning"),r.find(".swipeout-content").transform("").transitionEnd(c),i=setTimeout(c,500),s.each((function(e,t){var n=g(t);"right"===a?n.transform("translate3d(".concat(-t.offsetLeft,"px,0,0)")):n.transform("translate3d(".concat(l-t.offsetWidth-t.offsetLeft,"px,0,0)")),n.css({left:"0px"}).removeClass("swipeout-overswipe-active")})),Cn.el&&Cn.el===r[0]&&(Cn.el=void 0)}function c(){Cn.allow=!0,r.hasClass("swipeout-opened")||(r.removeClass("swipeout-transitioning"),s.transform(""),r.trigger("swipeout:closed"),n.emit("swipeoutClosed",r[0]),t&&t.call(r[0]),i&&clearTimeout(i))}},delete:function(e,t){var n=this,r=g(e).eq(0);0!==r.length&&(Cn.el=void 0,r.trigger("swipeout:delete"),n.emit("swipeoutDelete",r[0]),r.css({height:"".concat(r.outerHeight(),"px")}),r.transitionEnd((function(){if(r.trigger("swipeout:deleted"),n.emit("swipeoutDeleted",r[0]),t&&t.call(r[0]),r.parents(".virtual-list").length>0){var e=r.parents(".virtual-list")[0].f7VirtualList,i=r[0].f7VirtualListIndex;e&&void 0!==i&&e.deleteItem(i)}else n.params.swipeout.removeElements?n.params.swipeout.removeElementsWithTimeout?setTimeout((function(){r.remove()}),n.params.swipeout.removeElementsTimeout):r.remove():r.removeClass("swipeout-deleting swipeout-transitioning")})),j.nextFrame((function(){r.addClass("swipeout-deleting swipeout-transitioning").css({height:"0px"}).find(".swipeout-content").transform("translate3d(-100%,0,0)")})))}},Mn={name:"swipeout",params:{swipeout:{actionsNoFold:!1,noFollow:!1,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0}},create:function(){j.extend(this,{swipeout:{init:Cn.init.bind(this),open:Cn.open.bind(this),close:Cn.close.bind(this),delete:Cn.delete.bind(this)}}),Object.defineProperty(this.swipeout,"el",{enumerable:!0,configurable:!0,get:function(){return Cn.el},set:function(e){Cn.el=e}}),Object.defineProperty(this.swipeout,"allow",{enumerable:!0,configurable:!0,get:function(){return Cn.allow},set:function(e){Cn.allow=e}})},clicks:{".swipeout-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.swipeout.open(t.swipeout,t.side)},".swipeout-close":function(e){var t=e.closest(".swipeout");0!==t.length&&this.swipeout.close(t)},".swipeout-delete":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=e.closest(".swipeout");if(0!==r.length){var i=t.confirm,a=t.confirmTitle;t.confirm?n.dialog.confirm(i,a,(function(){n.swipeout.delete(r)})):n.swipeout.delete(r)}}},on:{init:function(){this.params.swipeout&&this.swipeout.init()}}},xn={toggleClicked:function(e){var t=e.closest(".accordion-item").eq(0);t.length||(t=e.parents("li").eq(0));var n=e.parents(".accordion-item-content").eq(0);n.length&&n.parents(t).length||e.parents("li").length>1&&e.parents("li")[0]!==t[0]||this.accordion.toggle(t)},open:function(e){var t=this,n=g(e),r=!1;function i(){r=!0}if(n.trigger("accordion:beforeopen",{prevent:i},i),t.emit("accordionBeforeOpen",n[0],i),!r){var a=n.parents(".accordion-list").eq(0),o=n.children(".accordion-item-content");if(o.removeAttr("aria-hidden"),0===o.length&&(o=n.find(".accordion-item-content")),0!==o.length){var s=a.length>0&&n.parent().children(".accordion-item-opened");s.length>0&&t.accordion.close(s),o.transitionEnd((function(){n.hasClass("accordion-item-opened")?(o.transition(0),o.css("height","auto"),j.nextFrame((function(){o.transition(""),n.trigger("accordion:opened"),t.emit("accordionOpened",n[0])}))):(o.css("height",""),n.trigger("accordion:closed"),t.emit("accordionClosed",n[0]))})),o.css("height","".concat(o[0].scrollHeight,"px")),n.trigger("accordion:open"),n.addClass("accordion-item-opened"),t.emit("accordionOpen",n[0])}}},close:function(e){var t=this,n=g(e),r=!1;function i(){r=!0}if(n.trigger("accordion:beforeclose",{prevent:i},i),t.emit("accordionBeforeClose",n[0],i),!r){var a=n.children(".accordion-item-content");0===a.length&&(a=n.find(".accordion-item-content")),n.removeClass("accordion-item-opened"),a.attr("aria-hidden",!0),a.transition(0),a.css("height","".concat(a[0].scrollHeight,"px")),a.transitionEnd((function(){n.hasClass("accordion-item-opened")?(a.transition(0),a.css("height","auto"),j.nextFrame((function(){a.transition(""),n.trigger("accordion:opened"),t.emit("accordionOpened",n[0])}))):(a.css("height",""),n.trigger("accordion:closed"),t.emit("accordionClosed",n[0]))})),j.nextFrame((function(){a.transition(""),a.css("height",""),n.trigger("accordion:close"),t.emit("accordionClose",n[0])}))}},toggle:function(e){var t=g(e);0!==t.length&&(t.hasClass("accordion-item-opened")?this.accordion.close(e):this.accordion.open(e))}},$n={name:"accordion",create:function(){j.extend(this,{accordion:{open:xn.open.bind(this),close:xn.close.bind(this),toggle:xn.toggle.bind(this)}})},clicks:{".accordion-item .item-link, .accordion-item-toggle, .links-list.accordion-list > ul > li > a":function(e){xn.toggleClicked.call(this,e)}}};function Ln(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Pn=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(Ln()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o()(this,r),t=n.call(this,i,[e]);var a,l=k()(t);"md"===e.theme?a=48:"ios"===e.theme?a=44:"aurora"===e.theme&&(a=38);var c={cols:1,height:a,cache:!0,dynamicHeightBufferSize:1,showFilteredItemsOnly:!1,renderExternal:void 0,setListHeight:!0,searchByItem:void 0,searchAll:void 0,itemTemplate:void 0,ul:null,createUl:!0,scrollableParentEl:void 0,renderItem:function(e){return'\n <li>\n <div class="item-content">\n <div class="item-inner">\n <div class="item-title">'.concat(e,"</div>\n </div>\n </div>\n </li>\n ").trim()},on:{}};if(l.useModulesParams(c),l.params=j.extend(c,i),void 0!==l.params.height&&l.params.height||(l.params.height=a),l.$el=g(i.el),l.el=l.$el[0],0===l.$el.length)return C()(t,void 0);l.$el[0].f7VirtualList=l,l.items=l.params.items,l.params.showFilteredItemsOnly&&(l.filteredItems=[]),l.params.itemTemplate?"string"==typeof l.params.itemTemplate?l.renderItem=e.t7.compile(l.params.itemTemplate):"function"==typeof l.params.itemTemplate&&(l.renderItem=l.params.itemTemplate):l.params.renderItem&&(l.renderItem=l.params.renderItem),l.$pageContentEl=l.$el.parents(".page-content"),l.pageContentEl=l.$pageContentEl[0],l.$scrollableParentEl=l.params.scrollableParentEl?g(l.params.scrollableParentEl).eq(0):l.$pageContentEl,!l.$scrollableParentEl.length&&l.$pageContentEl.length&&(l.$scrollableParentEl=l.$pageContentEl),l.scrollableParentEl=l.$scrollableParentEl[0],void 0!==l.params.updatableScroll?l.updatableScroll=l.params.updatableScroll:(l.updatableScroll=!0,F.a.ios&&F.a.osVersion.split(".")[0]<8&&(l.updatableScroll=!1));var u,d=l.params.ul;l.$ul=d?g(l.params.ul):l.$el.children("ul"),0===l.$ul.length&&l.params.createUl&&(l.$el.append("<ul></ul>"),l.$ul=l.$el.children("ul")),l.ul=l.$ul[0],u=l.ul||l.params.createUl?l.$ul:l.$el,j.extend(l,{$itemsWrapEl:u,itemsWrapEl:u[0],domCache:{},displayDomCache:{},tempDomElement:s.a.createElement("ul"),lastRepaintY:null,fragment:s.a.createDocumentFragment(),pageHeight:void 0,rowsPerScreen:void 0,rowsBefore:void 0,rowsAfter:void 0,rowsToRender:void 0,maxBufferHeight:0,listHeight:void 0,dynamicHeight:"function"==typeof l.params.height}),l.useModules();var h,f,p,m,v=l.handleScroll.bind(l),y=l.handleResize.bind(l);return l.attachEvents=function(){h=l.$el.parents(".page").eq(0),f=l.$el.parents(".tab").eq(0),p=l.$el.parents(".panel").eq(0),m=l.$el.parents(".popup").eq(0),l.$scrollableParentEl.on("scroll",v),h&&h.on("page:reinit",y),f&&f.on("tab:show",y),p&&p.on("panel:open",y),m&&m.on("popup:open",y),e.on("resize",y)},l.detachEvents=function(){l.$scrollableParentEl.off("scroll",v),h&&h.off("page:reinit",y),f&&f.off("tab:show",y),p&&p.off("panel:open",y),m&&m.off("popup:open",y),e.off("resize",y)},l.init(),C()(t,l)}return b()(r,[{key:"setListSize",value:function(){var e=this,t=e.filteredItems||e.items;if(e.pageHeight=e.$scrollableParentEl[0].offsetHeight,e.dynamicHeight){e.listHeight=0,e.heights=[];for(var n=0;n<t.length;n+=1){var r=e.params.height(t[n]);e.listHeight+=r,e.heights.push(r)}}else e.listHeight=Math.ceil(t.length/e.params.cols)*e.params.height,e.rowsPerScreen=Math.ceil(e.pageHeight/e.params.height),e.rowsBefore=e.params.rowsBefore||2*e.rowsPerScreen,e.rowsAfter=e.params.rowsAfter||e.rowsPerScreen,e.rowsToRender=e.rowsPerScreen+e.rowsBefore+e.rowsAfter,e.maxBufferHeight=e.rowsBefore/2*e.params.height;(e.updatableScroll||e.params.setListHeight)&&e.$itemsWrapEl.css({height:"".concat(e.listHeight,"px")})}},{key:"render",value:function(e,t){var n=this;e&&(n.lastRepaintY=null);var r=-(n.$el[0].getBoundingClientRect().top-n.$scrollableParentEl[0].getBoundingClientRect().top);if(void 0!==t&&(r=t),null===n.lastRepaintY||Math.abs(r-n.lastRepaintY)>n.maxBufferHeight||!n.updatableScroll&&n.$scrollableParentEl[0].scrollTop+n.pageHeight>=n.$scrollableParentEl[0].scrollHeight){n.lastRepaintY=r;var i,a,o,s=n.filteredItems||n.items,l=0,c=0;if(n.dynamicHeight){var u,d=0;n.maxBufferHeight=n.pageHeight;for(var h=0;h<n.heights.length;h+=1)u=n.heights[h],void 0===i&&(d+u>=r-2*n.pageHeight*n.params.dynamicHeightBufferSize?i=h:l+=u),void 0===a&&((d+u>=r+2*n.pageHeight*n.params.dynamicHeightBufferSize||h===n.heights.length-1)&&(a=h+1),c+=u),d+=u;a=Math.min(a,s.length)}else(i=(parseInt(r/n.params.height,10)-n.rowsBefore)*n.params.cols)<0&&(i=0),a=Math.min(i+n.rowsToRender*n.params.cols,s.length);var f,p=[];for(n.reachEnd=!1,f=i;f<a;f+=1){var m=void 0,v=n.items.indexOf(s[f]);f===i&&(n.currentFromIndex=v),f===a-1&&(n.currentToIndex=v),n.filteredItems?n.items[v]===n.filteredItems[n.filteredItems.length-1]&&(n.reachEnd=!0):v===n.items.length-1&&(n.reachEnd=!0),n.params.renderExternal?p.push(s[f]):n.domCache[v]?(m=n.domCache[v]).f7VirtualListIndex=v:(n.renderItem?n.tempDomElement.innerHTML=n.renderItem(s[f],v).trim():n.tempDomElement.innerHTML=s[f].toString().trim(),m=n.tempDomElement.childNodes[0],n.params.cache&&(n.domCache[v]=m),m.f7VirtualListIndex=v),f===i&&(o=n.dynamicHeight?l:f*n.params.height/n.params.cols),n.params.renderExternal||(m.style.top="".concat(o,"px"),n.emit("local::itemBeforeInsert vlItemBeforeInsert",n,m,s[f]),n.fragment.appendChild(m))}n.updatableScroll||(n.dynamicHeight?n.itemsWrapEl.style.height="".concat(c,"px"):n.itemsWrapEl.style.height="".concat(f*n.params.height/n.params.cols,"px")),n.params.renderExternal?s&&0===s.length&&(n.reachEnd=!0):(n.emit("local::beforeClear vlBeforeClear",n,n.fragment),n.itemsWrapEl.innerHTML="",n.emit("local::itemsBeforeInsert vlItemsBeforeInsert",n,n.fragment),s&&0===s.length?(n.reachEnd=!0,n.params.emptyTemplate&&(n.itemsWrapEl.innerHTML=n.params.emptyTemplate)):n.itemsWrapEl.appendChild(n.fragment),n.emit("local::itemsAfterInsert vlItemsAfterInsert",n,n.fragment)),void 0!==t&&e&&n.$scrollableParentEl.scrollTop(t,0),n.params.renderExternal&&n.params.renderExternal(n,{fromIndex:i,toIndex:a,listHeight:n.listHeight,topPosition:o,items:p})}}},{key:"filterItems",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this;n.filteredItems=[];for(var r=0;r<e.length;r+=1)n.filteredItems.push(n.items[e[r]]);t&&(n.$scrollableParentEl[0].scrollTop=0),n.update()}},{key:"resetFilter",value:function(){var e=this;e.params.showFilteredItemsOnly?e.filteredItems=[]:(e.filteredItems=null,delete e.filteredItems),e.update()}},{key:"scrollToItem",value:function(e){var t=this;if(e>t.items.length)return!1;var n=0;if(t.dynamicHeight)for(var r=0;r<e;r+=1)n+=t.heights[r];else n=e*t.params.height;var i=t.$el[0].offsetTop;return t.render(!0,i+n-parseInt(t.$scrollableParentEl.css("padding-top"),10)),!0}},{key:"handleScroll",value:function(){this.render()}},{key:"isVisible",value:function(){return!!(this.el.offsetWidth||this.el.offsetHeight||this.el.getClientRects().length)}},{key:"handleResize",value:function(){this.isVisible()&&(this.setListSize(),this.render(!0))}},{key:"appendItems",value:function(e){for(var t=0;t<e.length;t+=1)this.items.push(e[t]);this.update()}},{key:"appendItem",value:function(e){this.appendItems([e])}},{key:"replaceAllItems",value:function(e){this.items=e,delete this.filteredItems,this.domCache={},this.update()}},{key:"replaceItem",value:function(e,t){this.items[e]=t,this.params.cache&&delete this.domCache[e],this.update()}},{key:"prependItems",value:function(e){for(var t=this,n=e.length-1;n>=0;n-=1)t.items.unshift(e[n]);if(t.params.cache){var r={};Object.keys(t.domCache).forEach((function(n){r[parseInt(n,10)+e.length]=t.domCache[n]})),t.domCache=r}t.update()}},{key:"prependItem",value:function(e){this.prependItems([e])}},{key:"moveItem",value:function(e,t){var n=this,r=e,i=t;if(r!==i){var a=n.items.splice(r,1)[0];if(i>=n.items.length?(n.items.push(a),i=n.items.length-1):n.items.splice(i,0,a),n.params.cache){var o={};Object.keys(n.domCache).forEach((function(e){var t=parseInt(e,10),a=r<i?r:i,s=r<i?i:r,l=r<i?-1:1;(t<a||t>s)&&(o[t]=n.domCache[t]),t===a&&(o[s]=n.domCache[t]),t>a&&t<=s&&(o[t+l]=n.domCache[t])})),n.domCache=o}n.update()}}},{key:"insertItemBefore",value:function(e,t){var n=this;if(0!==e)if(e>=n.items.length)n.appendItem(t);else{if(n.items.splice(e,0,t),n.params.cache){var r={};Object.keys(n.domCache).forEach((function(t){var i=parseInt(t,10);i>=e&&(r[i+1]=n.domCache[i])})),n.domCache=r}n.update()}else n.prependItem(t)}},{key:"deleteItems",value:function(e){for(var t,n=this,r=0,i=function(i){var a=e[i];void 0!==t&&a>t&&(r=-i),a+=r,t=e[i];var o=n.items.splice(a,1)[0];if(n.filteredItems&&n.filteredItems.indexOf(o)>=0&&n.filteredItems.splice(n.filteredItems.indexOf(o),1),n.params.cache){var s={};Object.keys(n.domCache).forEach((function(e){var t=parseInt(e,10);t===a?delete n.domCache[a]:parseInt(e,10)>a?s[t-1]=n.domCache[e]:s[t]=n.domCache[e]})),n.domCache=s}},a=0;a<e.length;a+=1)i(a);n.update()}},{key:"deleteAllItems",value:function(){var e=this;e.items=[],delete e.filteredItems,e.params.cache&&(e.domCache={}),e.update()}},{key:"deleteItem",value:function(e){this.deleteItems([e])}},{key:"clearCache",value:function(){this.domCache={}}},{key:"update",value:function(e){e&&this.params.cache&&(this.domCache={}),this.setListSize(),this.render(!0)}},{key:"init",value:function(){this.attachEvents(),this.setListSize(),this.render()}},{key:"destroy",value:function(){var e=this;e.detachEvents(),e.$el[0].f7VirtualList=null,delete e.$el[0].f7VirtualList,j.deleteProps(e),e=null}}]),r}(z),On={name:"virtualList",static:{VirtualList:Pn},create:function(){this.virtualList=W({defaultSelector:".virtual-list",constructor:Pn,app:this,domProp:"f7VirtualList"})}};function In(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var An=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(In()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o()(this,r),t=n.call(this,i,[e]);var a,s,l,c,u=k()(t),d={el:null,listEl:null,indexes:"auto",iosItemHeight:14,mdItemHeight:14,auroraItemHeight:14,scrollList:!0,label:!1,renderItem:function(e,t){return"\n <li>".concat(e,"</li>\n ").trim()},renderSkipPlaceholder:function(){return'<li class="list-index-skip-placeholder"></li>'},on:{}};if(u.useModulesParams(d),u.params=j.extend(d,i),!u.params.el)return C()(t,u);if((a=g(u.params.el))[0].f7ListIndex)return C()(t,a[0].f7ListIndex);if(0===(c=a.find("ul")).length&&(c=g("<ul></ul>"),a.append(c)),u.params.listEl&&(s=g(u.params.listEl)),"auto"===u.params.indexes&&!s)return C()(t,u);function h(){var e={index:u};u.calcSize(),e!==u.height&&u.render()}function f(e){var t=g(e.target).closest("li");if(t.length){var n=t.index();if(u.skipRate>0){var r=n/(t.siblings("li").length-1);n=Math.round((u.indexes.length-1)*r)}var i=u.indexes[n];u.$el.trigger("listindex:click",{content:i,index:n}),u.emit("local::click listIndexClick",u,i,n),u.$el.trigger("listindex:select",{content:i,index:n}),u.emit("local::select listIndexSelect",u,i,n),u.$listEl&&u.params.scrollList&&u.scrollListToIndex(i,n)}}s?l=s.parents(".page-content").eq(0):0===(l=a.siblings(".page-content").eq(0)).length&&(l=a.parents(".page").eq(0).find(".page-content").eq(0)),a[0].f7ListIndex=u,j.extend(u,{app:e,$el:a,el:a&&a[0],$ul:c,ul:c&&c[0],$listEl:s,listEl:s&&s[0],$pageContentEl:l,pageContentEl:l&&l[0],indexes:i.indexes,height:0,skipRate:0}),u.useModules();var p,m,v,y,b,_={},w=null;function E(e){var t=c.children();t.length&&(v=t[0].getBoundingClientRect().top,y=t[t.length-1].getBoundingClientRect().top+t[0].offsetHeight,_.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,_.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,p=!0,m=!1,w=null)}function S(e){if(p){!m&&u.params.label&&(b=g('<span class="list-index-label"></span>'),a.append(b)),m=!0;var t="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY;e.preventDefault();var n=(t-v)/(y-v);n=Math.min(Math.max(n,0),1);var r=Math.round((u.indexes.length-1)*n),i=u.indexes[r],o=y-v,s=(u.height-o)/2+(1-n)*o;r!==w&&(u.params.label&&b.html(i).transform("translateY(-".concat(s,"px)")),u.$listEl&&u.params.scrollList&&u.scrollListToIndex(i,r)),w=r,u.$el.trigger("listindex:select"),u.emit("local::select listIndexSelect",u,i,r)}}function T(){p&&(p=!1,m=!1,u.params.label&&(b&&b.remove(),b=void 0))}var M=!!e.support.passiveListener&&{passive:!0};return u.attachEvents=function(){a.parents(".tab").on("tab:show",h),a.parents(".page").on("page:reinit",h),a.parents(".panel").on("panel:open",h),a.parents(".sheet-modal, .actions-modal, .popup, .popover, .login-screen, .dialog, .toast").on("modal:open",h),e.on("resize",h),a.on("click",f),a.on(e.touchEvents.start,E,M),e.on("touchmove:active",S),e.on("touchend:passive",T)},u.detachEvents=function(){a.parents(".tab").off("tab:show",h),a.parents(".page").off("page:reinit",h),a.parents(".panel").off("panel:open",h),a.parents(".sheet-modal, .actions-modal, .popup, .popover, .login-screen, .dialog, .toast").off("modal:open",h),e.off("resize",h),a.off("click",f),a.off(e.touchEvents.start,E,M),e.off("touchmove:active",S),e.off("touchend:passive",T)},u.init(),C()(t,u)}return b()(r,[{key:"scrollListToIndex",value:function(e,t){var n,r=this.$listEl,i=this.$pageContentEl,a=this.app;if(!r||!i||0===i.length)return this;if(r.find(".list-group-title, .item-divider").each((function(t,r){if(!n){var i=g(r);i.text()===e&&(n=i)}})),!n||0===n.length)return this;var o=n.parent().offset().top,s=parseInt(i.css("padding-top"),10),l=i[0].scrollTop,c=n.offset().top;if(i.parents(".page-with-navbar-large").length){var u=a.navbar.getElByPage(i.parents(".page-with-navbar-large").eq(0)),d=g(u).find(".title-large");d.length&&(s-=d[0].offsetHeight||0)}return o<=s?i.scrollTop(o+l-s):i.scrollTop(c+l-s),this}},{key:"renderSkipPlaceholder",value:function(){return this.params.renderSkipPlaceholder.call(this)}},{key:"renderItem",value:function(e,t){return this.params.renderItem.call(this,e,t)}},{key:"render",value:function(){var e,t=this,n=t.$ul,r=t.indexes,i=t.skipRate,a=r.map((function(n,r){if(r%i!=0&&i>0)return e=!0,"";var a=t.renderItem(n,r);return e&&(a=t.renderSkipPlaceholder()+a),e=!1,a})).join("");return n.html(a),t}},{key:"calcSize",value:function(){var e=this.app,t=this.params,n=this.el,r=this.indexes,i=n.offsetHeight,a=t["".concat(e.theme,"ItemHeight")],o=Math.floor(i/a),s=r.length,l=0;return s>o&&(l=Math.ceil((2*s-1)/o)),this.height=i,this.skipRate=l,this}},{key:"calcIndexes",value:function(){var e=this;return"auto"===e.params.indexes?(e.indexes=[],e.$listEl.find(".list-group-title, .item-divider").each((function(t,n){var r=g(n).text();e.indexes.indexOf(r)<0&&e.indexes.push(r)}))):e.indexes=e.params.indexes,e}},{key:"update",value:function(){return this.calcIndexes(),this.calcSize(),this.render(),this}},{key:"init",value:function(){this.calcIndexes(),this.calcSize(),this.render(),this.attachEvents()}},{key:"destroy",value:function(){var e=this;e.$el.trigger("listindex:beforedestroy",e),e.emit("local::beforeDestroy listIndexBeforeDestroy"),e.detachEvents(),e.$el[0]&&(e.$el[0].f7ListIndex=null,delete e.$el[0].f7ListIndex),j.deleteProps(e),e=null}}]),r}(z),Dn={name:"listIndex",static:{ListIndex:An},create:function(){this.listIndex=W({defaultSelector:".list-index",constructor:An,app:this,domProp:"f7ListIndex"})},on:{tabMounted:function(e){var t=this;g(e).find(".list-index-init").each((function(e,n){var r=j.extend(g(n).dataset(),{el:n});t.listIndex.create(r)}))},tabBeforeRemove:function(e){g(e).find(".list-index-init").each((function(e,t){t.f7ListIndex&&t.f7ListIndex.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".list-index-init").each((function(e,n){var r=j.extend(g(n).dataset(),{el:n});t.listIndex.create(r)}))},pageBeforeRemove:function(e){e.$el.find(".list-index-init").each((function(e,t){t.f7ListIndex&&t.f7ListIndex.destroy()}))}},vnode:{"list-index-init":{insert:function(e){var t=e.elm,n=j.extend(g(t).dataset(),{el:t});this.listIndex.create(n)},destroy:function(e){var t=e.elm;t.f7ListIndex&&t.f7ListIndex.destroy()}}}},Nn={show:function(){for(var e,t,n,r,i=this,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];1===o.length&&o[0].constructor===Object?(e=o[0].tabEl,t=o[0].tabLinkEl,n=o[0].animate,r=o[0].tabRoute):(e=o[0],t=o[1],n=o[2],r=o[3],"boolean"==typeof o[1]&&(e=o[0],n=o[1],t=o[2],r=o[3],o.length>2&&t.constructor===Object&&(e=o[0],n=o[1],r=o[2],t=o[3]))),void 0===n&&(n=!0);var l,c=g(e);if(r&&c[0]&&(c[0].f7TabRoute=r),0===c.length||c.hasClass("tab-active"))return{$newTabEl:c,newTabEl:c[0]};t&&(l=g(t));var u=c.parent(".tabs");if(0===u.length)return{$newTabEl:c,newTabEl:c[0]};i.swipeout&&(i.swipeout.allowOpen=!0);var d=[];function h(e){d.push(e)}function f(){d.forEach((function(e){e()}))}var p,m=!1;if(u.parent().hasClass("tabs-animated-wrap")){u.parent()[n?"removeClass":"addClass"]("not-animated");var v=parseFloat(u.css("transition-duration").replace(",","."));n&&v&&(u.transitionEnd(f),m=!0);var y=100*(i.rtl?c.index():-c.index());u.transform("translate3d(".concat(y,"%,0,0)"))}u.parent().hasClass("tabs-swipeable-wrap")&&i.swiper&&((p=u.parent()[0].swiper)&&p.activeIndex!==c.index()?(m=!0,p.once("slideChangeTransitionEnd",(function(){f()})).slideTo(c.index(),n?void 0:0)):p&&p.animating&&(m=!0,p.once("slideChangeTransitionEnd",(function(){f()}))));var b=u.children(".tab-active");if(b.removeClass("tab-active"),(!p||p&&!p.animating||p&&r)&&(b.hasClass("view")&&b.children(".page").length&&b.children(".page").each((function(e,t){g(t).trigger("page:tabhide"),i.emit("pageTabHide",t)})),b.trigger("tab:hide"),i.emit("tabHide",b[0])),c.addClass("tab-active"),(!p||p&&!p.animating||p&&r)&&(c.hasClass("view")&&c.children(".page").length&&c.children(".page").each((function(e,t){g(t).trigger("page:tabshow"),i.emit("pageTabShow",t)})),c.trigger("tab:show"),i.emit("tabShow",c[0])),!l&&((!(l=g("string"==typeof e?'.tab-link[href="'.concat(e,'"]'):'.tab-link[href="#'.concat(c.attr("id"),'"]')))||l&&0===l.length)&&g("[data-tab]").each((function(e,t){c.is(g(t).attr("data-tab"))&&(l=g(t))})),r&&(!l||l&&0===l.length)&&0===(l=g('[data-route-tab-id="'.concat(r.route.tab.id,'"]'))).length&&(l=g('.tab-link[href="'.concat(r.url,'"]'))),l.length>1&&c.parents(".page").length&&(l=l.filter((function(e,t){return g(t).parents(".page")[0]===c.parents(".page")[0]})),"ios"===i.theme&&0===l.length&&r))){var _=c.parents(".page"),w=g(i.navbar.getElByPage(_));0===(l=w.find('[data-route-tab-id="'.concat(r.route.tab.id,'"]'))).length&&(l=w.find('.tab-link[href="'.concat(r.url,'"]')))}if(l.length>0){var k;if(b&&b.length>0){var E=b.attr("id");E&&(!(k=g('.tab-link[href="#'.concat(E,'"]')))||k&&0===k.length)&&(k=g('.tab-link[data-route-tab-id="'.concat(E,'"]'))),(!k||k&&0===k.length)&&g("[data-tab]").each((function(e,t){b.is(g(t).attr("data-tab"))&&(k=g(t))})),(!k||k&&0===k.length)&&(k=l.siblings(".tab-link-active"))}else r&&(k=l.siblings(".tab-link-active"));if(k&&k.length>1&&b&&b.parents(".page").length&&(k=k.filter((function(e,t){return g(t).parents(".page")[0]===b.parents(".page")[0]}))),k&&k.length>0&&k.removeClass("tab-link-active"),l&&l.length>0&&(l.addClass("tab-link-active"),"md"===i.theme&&i.toolbar)){var S=l.parents(".tabbar, .tabbar-labels");S.length>0&&i.toolbar.setHighlight(S)}}return{$newTabEl:c,newTabEl:c[0],$oldTabEl:b,oldTabEl:b[0],onTabsChanged:h,animated:m}}},Rn={name:"tabs",create:function(){j.extend(this,{tab:{show:Nn.show.bind(this)}})},clicks:{".tab-link":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;(e.attr("href")&&0===e.attr("href").indexOf("#")||e.attr("data-tab"))&&n.tab.show({tabEl:t.tab||e.attr("href"),tabLinkEl:e,animate:t.animate})}}};var Bn=function(e){var t=e.app;if(!e.swipeInitialized){j.extend(e,{swipeable:!0,swipeInitialized:!0});var n,r,i,a,o,s,l,c,u,d,h,f,p,m=e.params,v=e.$el,y=e.$backdropEl,b=e.side,_=e.effect,w={},k=0;t.on("touchstart:passive",E),t.on("touchmove:active",S),t.on("touchend:passive",T),t.on("gesturestart",C),t.on("gestureend",M),e.on("panelDestroy",(function(){t.off("touchstart:passive",E),t.off("touchmove:active",S),t.off("touchend:passive",T),t.off("gesturestart",C),t.off("gestureend",M)}))}function E(c){if(e.swipeable&&!i&&t.panel.allowOpen&&(m.swipe||m.swipeOnlyClose)&&!r&&!(g(".modal-in:not(.toast):not(.notification), .photo-browser-in").length>0)){var u=(n=t.panel.get("left"===b?"right":"left")||{}).opened&&n.$el&&!n.$el.hasClass("panel-in-breakpoint");if((e.opened||!u)&&(m.swipeOnlyClose||!u)&&(!c.target||"input"!==c.target.nodeName.toLowerCase()||"range"!==c.target.type)&&!(g(c.target).closest(".range-slider, .tabs-swipeable-wrap, .calendar-months, .no-swipe-panel, .card-opened").length>0)&&(w.x="touchstart"===c.type?c.targetTouches[0].pageX:c.pageX,w.y="touchstart"===c.type?c.targetTouches[0].pageY:c.pageY,!m.swipeOnlyClose||e.opened)){if(m.swipeActiveArea&&!e.opened){if("left"===b&&w.x>m.swipeActiveArea)return;if("right"===b&&w.x<t.width-m.swipeActiveArea)return}k=0,p=g(e.getViewEl()),a=!1,r=!0,o=void 0,s=!1,l=j.now(),f=void 0}}}function S(n){if(r&&!i&&!s&&!((k+=1)<2))if(n.f7PreventSwipePanel||t.preventSwipePanelBySwipeBack||t.preventSwipePanel)r=!1;else{var l="touchmove"===n.type?n.targetTouches[0].pageX:n.pageX,g="touchmove"===n.type?n.targetTouches[0].pageY:n.pageY;if(void 0===o&&(o=!!(o||Math.abs(g-w.y)>Math.abs(l-w.x))),o)r=!1;else{if(!f){if(f=l>w.x?"to-right":"to-left",m.swipeActiveArea>0&&!e.opened){if("left"===b&&w.x>m.swipeActiveArea)return void(r=!1);if("right"===b&&w.x<t.width-m.swipeActiveArea)return void(r=!1)}if(v.hasClass("panel-in-breakpoint"))return void(r=!1);if("left"===b&&"to-left"===f&&!v.hasClass("panel-in")||"right"===b&&"to-right"===f&&!v.hasClass("panel-in"))return void(r=!1)}var E=e.opened?0:-m.swipeThreshold;"right"===b&&(E=-E),a||(e.opened||(e.insertToRoot(),v.addClass("panel-in-swipe"),y.css("visibility","visible"),v.trigger("panel:swipeopen"),e.emit("local::swipeOpen panelSwipeOpen",e)),h=v[0].offsetWidth,"reveal"===_&&v.hasClass("panel-in-collapsed")&&(h-=parseFloat(p.css("margin-".concat(b)))),v.transition(0)),a=!0,n.preventDefault(),c=l-w.x+E,"right"===b?"cover"===_?((u=c+(e.opened?0:h))<0&&(u=0),u>h&&(u=h)):((u=c-(e.opened?h:0))>0&&(u=0),u<-h&&(u=-h)):((u=c+(e.opened?h:0))<0&&(u=0),u>h&&(u=h));var S=Math.abs(u/h);if("reveal"===_?(m.swipeNoFollow||(p.transform("translate3d(".concat(u,"px,0,0)")).transition(0),y.transform("translate3d(".concat(u,"px,0,0)")).transition(0)),v.trigger("panel:swipe",Math.abs(u/h)),e.emit("local::swipe panelSwipe",e,Math.abs(u/h))):("left"===b&&(u-=h),m.swipeNoFollow||(v.transform("translate3d(".concat(u,"px,0,0)")).transition(0),y.transition(0),d=1-Math.abs(u/h),y.css({opacity:d})),v.trigger("panel:swipe",Math.abs(u/h)),e.emit("local::swipe panelSwipe",e,Math.abs(u/h))),m.swipeNoFollow)(e.opened&&0===S||!e.opened&&1===S)&&(s=!0,T(n))}}}function T(t){if(!r||!a)return r=!1,void(a=!1);var n="gesturestart"===t.type||i;r=!1,a=!1;var o,s=(new Date).getTime()-l,d=(0===u||Math.abs(u)===h)&&!m.swipeNoFollow,f=m.swipeThreshold||0;"swap"===(o=n?"reset":e.opened?"cover"===_?0===u?"reset":s<300&&Math.abs(u)>0?"swap":s>=300&&Math.abs(u)<h/2?"reset":"swap":u===-h?"reset":s<300&&Math.abs(u)>=0||s>=300&&Math.abs(u)<=h/2?"left"===b&&u===h?"reset":"swap":"reset":Math.abs(c)<f?"reset":"cover"===_?0===u||s<300&&Math.abs(u)>0||s>=300&&Math.abs(u)<h/2?"swap":"reset":0===u?"reset":s<300&&Math.abs(u)>0||s>=300&&Math.abs(u)>=h/2?"swap":"reset")&&(e.opened?e.close(!d):e.open(!d));var w=!0;if("reset"===o&&!e.opened)if(d)v.removeClass("panel-in-swipe");else{w=!1;var k="reveal"===_?p:v;g("html").addClass("with-panel-closing"),k.transitionEnd((function(){v.hasClass("panel-in")||(v.removeClass("panel-in-swipe"),g("html").removeClass("with-panel-closing"))}))}"reveal"===_&&j.nextFrame((function(){p.transition(""),p.transform("")})),w&&v.removeClass("panel-in-swipe"),v.transition("").transform(""),y.transform("").transition("").css({opacity:"",visibility:""})}function C(e){i=!0,T(e)}function M(){i=!1}};var Yn=function(e){var t=e.app;if(!e.resizableInitialized){j.extend(e,{resizable:!0,resizableWidth:null,resizableInitialized:!0});var n=g("html"),r=e.$el,i=e.$backdropEl,a=e.side,o=e.effect;if(r){var s,l,c,u,d,h,f,p,m={};0===e.$el.find(".panel-resize-handler").length&&e.$el.append('<div class="panel-resize-handler"></div>'),e.$resizeHandlerEl=e.$el.children(".panel-resize-handler"),r.addClass("panel-resizable");var v=!!ue.a.passiveListener&&{passive:!0};e.$el.on(t.touchEvents.start,".panel-resize-handler",b,v),t.on("touchmove:active",_),t.on("touchend:passive",w),t.on("resize",k),e.on("beforeOpen",k),e.once("panelDestroy",(function(){r.removeClass("panel-resizable"),e.$resizeHandlerEl.remove(),e.$el.off(t.touchEvents.start,".panel-resize-handler",b,v),t.off("touchmove:active",_),t.off("touchend:passive",w),t.off("resize",k),e.off("beforeOpen",k)}))}}function y(e){if(!e)return null;if(e.indexOf("%")>=0||e.indexOf("vw")>=0)return parseInt(e,10)/100*t.width;var n=parseInt(e,10);return Number.isNaN(n)?null:n}function b(t){e.resizable&&r.hasClass("panel-resizable")&&(m.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,m.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY,l=!1,s=!0,h=y(r.css("min-width")),f=y(r.css("max-width")),p=r.hasClass("panel-in-breakpoint"))}function _(v){if(s){var y="touchmove"===v.type?v.targetTouches[0].pageX:v.pageX;l||(u=r[0].offsetWidth,r.transition(0),r.addClass("panel-resizing"),n.css("cursor","col-resize"),("reveal"===o||p)&&(d=g(e.getViewEl())),"reveal"!==o||p||(i.transition(0),d.transition(0))),l=!0,v.preventDefault(),c=y-m.x;var b="left"===a?u+c:u-c;h&&!Number.isNaN(h)&&(b=Math.max(b,h)),f&&!Number.isNaN(f)&&(b=Math.min(b,f)),b=Math.min(Math.max(b,0),t.width),e.resizableWidth=b,r[0].style.width="".concat(b,"px"),"reveal"!==o||p?p&&d&&d.css("margin-".concat(a),"".concat(b,"px")):(d&&d.transform("translate3d(".concat("left"===a?b:-b,"px, 0, 0)")),i&&i.transform("translate3d(".concat("left"===a?b:-b,"px, 0, 0)"))),r.trigger("panel:resize",b),e.emit("local::resize panelResize",e,b)}}function w(){if(g("html").css("cursor",""),!s||!l)return s=!1,void(l=!1);s=!1,l=!1,n[0].style.setProperty("--f7-panel-".concat(a,"-width"),"".concat(e.resizableWidth,"px")),r[0].style.width="","reveal"!==o||p||(d.transform(""),i.transform("")),r.removeClass("panel-resizing"),j.nextFrame((function(){p||(r.transition(""),"reveal"===o&&(i.transition(""),d&&d.transition("")))}))}function k(){e.opened&&e.resizableWidth&&(h=y(r.css("min-width")),f=y(r.css("max-width")),h&&!Number.isNaN(h)&&e.resizableWidth<h&&(e.resizableWidth=Math.max(e.resizableWidth,h)),f&&!Number.isNaN(f)&&e.resizableWidth>f&&(e.resizableWidth=Math.min(e.resizableWidth,f)),e.resizableWidth=Math.min(Math.max(e.resizableWidth,0),t.width),n[0].style.setProperty("--f7-panel-".concat(a,"-width"),"".concat(e.resizableWidth,"px")))}};function jn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Fn=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(jn()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o()(this,r);var a=j.extend({on:{}},e.params.panel,i);t=n.call(this,a,[e]);var s,l=k()(t);if(l.params=a,l.params.el?s=g(l.params.el).eq(0):l.params.content&&(s=g(l.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0)),0===s.length)return C()(t,l);if(s[0].f7Panel)return C()(t,s[0].f7Panel);s[0].f7Panel=l;var c,u=l.params,d=u.side,h=u.effect,f=u.resizable;return void 0===d&&(d=s.hasClass("panel-left")?"left":"right"),void 0===h&&(h=s.hasClass("panel-cover")?"cover":"reveal"),void 0===f&&(f=s.hasClass("panel-resizable")),l.params.backdrop&&l.params.backdropEl?c=g(l.params.backdropEl):l.params.backdrop&&0===(c=e.root.children(".panel-backdrop")).length&&(c=g('<div class="panel-backdrop"></div>'),e.root.prepend(c)),j.extend(l,{app:e,side:d,effect:h,resizable:f,$el:s,el:s[0],opened:!1,$backdropEl:c,backdropEl:c&&c[0]}),l.useModules(),l.init(),C()(t,l)}return b()(r,[{key:"getViewEl",value:function(){var e=this.app;return e.root.children(".views").length>0?e.root.children(".views")[0]:e.root.children(".view")[0]}},{key:"enableVisibleBreakpoint",value:function(){return this.visibleBreakpointDisabled=!1,this.setVisibleBreakpoint(),this}},{key:"disableVisibleBreakpoint",value:function(){return this.visibleBreakpointDisabled=!0,this.setVisibleBreakpoint(),this}},{key:"toggleVisibleBreakpoint",value:function(){return this.visibleBreakpointDisabled=!this.visibleBreakpointDisabled,this.setVisibleBreakpoint(),this}},{key:"setVisibleBreakpoint",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.app;t.visibleBreakpointResizeHandler||(t.visibleBreakpointResizeHandler=function(){t.setVisibleBreakpoint()},n.on("resize",t.visibleBreakpointResizeHandler));var r=t.side,i=t.$el,a=t.params,o=t.visibleBreakpointDisabled,s=a.visibleBreakpoint,l=g(t.getViewEl()),c=i.hasClass("panel-in-breakpoint");n.width>=s&&null!=s&&!o?c?l.css(K()({},"margin-".concat(r),"".concat(i.width(),"px"))):(g("html").removeClass("with-panel-".concat(r,"-reveal with-panel-").concat(r,"-cover with-panel")),i.addClass("panel-in-breakpoint").removeClass("panel-in panel-in-collapsed"),t.onOpen(!1),t.onOpened(),l.css(K()({},"margin-".concat(r),"".concat(i.width(),"px"))),n.allowPanelOpen=!0,e&&(t.emit("local::breakpoint panelBreakpoint",t),t.$el.trigger("panel:breakpoint"))):c&&(i.removeClass("panel-in-breakpoint panel-in"),t.onClose(),t.onClosed(),l.css(K()({},"margin-".concat(r),"")),e&&(t.emit("local::breakpoint panelBreakpoint",t),t.$el.trigger("panel:breakpoint")))}},{key:"enableCollapsedBreakpoint",value:function(){return this.collapsedBreakpointDisabled=!1,this.setCollapsedBreakpoint(),this}},{key:"disableCollapsedBreakpoint",value:function(){return this.collapsedBreakpointDisabled=!0,this.setCollapsedBreakpoint(),this}},{key:"toggleCollapsedBreakpoint",value:function(){return this.collapsedBreakpointDisabled=!this.collapsedBreakpointDisabled,this.setCollapsedBreakpoint(),this}},{key:"setCollapsedBreakpoint",value:function(e){var t=this,n=t.app;t.collapsedBreakpointResizeHandler||(t.collapsedBreakpointResizeHandler=function(){t.setCollapsedBreakpoint()},n.on("resize",t.collapsedBreakpointResizeHandler));var r=t.side,i=t.$el,a=t.params,o=t.collapsedBreakpointDisabled;if(!i.hasClass("panel-in-breakpoint")){var s=a.collapsedBreakpoint,l=i.hasClass("panel-in-collapsed");n.width>=s&&null!=s&&!o?l||(g("html").removeClass("with-panel-".concat(r,"-reveal with-panel-").concat(r,"-cover with-panel")),i.addClass("panel-in-collapsed").removeClass("panel-in"),t.collapsed=!0,n.allowPanelOpen=!0,e&&(t.emit("local::collapsedBreakpoint panelCollapsedBreakpoint",t),t.$el.trigger("panel:collapsedbreakpoint"))):l&&(i.removeClass("panel-in-collapsed panel-in"),t.collapsed=!1,e&&(t.emit("local::collapsedBreakpoint panelCollapsedBreakpoint",t),t.$el.trigger("panel:collapsedbreakpoint")))}}},{key:"enableResizable",value:function(){return this.resizableInitialized?(this.resizable=!0,this.$el.addClass("panel-resizable")):Yn(this),this}},{key:"disableResizable",value:function(){return this.resizable=!1,this.$el.removeClass("panel-resizable"),this}},{key:"enableSwipe",value:function(){return this.swipeInitialized?this.swipeable=!0:Bn(this),this}},{key:"disableSwipe",value:function(){return this.swipeable=!1,this}},{key:"onOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.app;t.opened=!0,n.panel.allowOpen=!1,t.$el.trigger("panel:beforeopen"),t.emit("local::beforeOpen panelBeforeOpen",t),e&&g("html").addClass("with-panel with-panel-".concat(t.side,"-").concat(t.effect)),t.$el.trigger("panel:open"),t.emit("local::open panelOpen",t)}},{key:"onOpened",value:function(){this.app.panel.allowOpen=!0,this.$el.trigger("panel:opened"),this.emit("local::opened panelOpened",this)}},{key:"onClose",value:function(){var e=this.app;this.opened=!1,e.panel.allowOpen=!1,this.$el.trigger("panel:beforeclose"),this.emit("local::beforeClose panelBeforeClose",this),g("html").addClass("with-panel-closing"),g("html").removeClass("with-panel with-panel-".concat(this.side,"-").concat(this.effect)),this.$el.trigger("panel:close"),this.emit("local::close panelClose",this)}},{key:"onClosed",value:function(){this.app.panel.allowOpen=!0,g("html").removeClass("with-panel-closing"),this.$el.removeClass("panel-out"),this.$el.trigger("panel:closed"),this.emit("local::closed panelClosed",this)}},{key:"toggle",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.params.visibleBreakpoint,r=t.app;return r.width>=n&&null!=n?t.toggleVisibleBreakpoint():(t.opened?t.close(e):t.open(e),t)}},{key:"insertToRoot",value:function(){var e=this.$el,t=this.app,n=this.$backdropEl,r=e.parent(),i=e.parents(document).length>0;if(!r.is(t.root)||e.prevAll(".views, .view").length){var a=t.root.children(".panel, .views, .view").eq(0),o=t.root.children(".panel-backdrop").eq(0);a.length?e.insertBefore(a):o?e.insertBefore(o):t.root.prepend(e),n&&n.length&&(!n.parent().is(t.root)&&0===n.nextAll(".panel").length||n.parent().is(t.root)&&0===n.nextAll(".panel").length)&&n.insertBefore(e),this.once("panelClosed",(function(){i?r.append(e):e.remove()}))}}},{key:"open",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.app;if(!n.panel.allowOpen)return!1;var r=t.effect,i=t.$el,a=t.$backdropEl,o=t.opened;if(!i||i.hasClass("panel-in"))return t;if(t.insertToRoot(),o||i.hasClass("panel-in-breakpoint")||i.hasClass("panel-in"))return!1;var s=n.panel.get(".panel-in");s&&s!==t&&s.close(e),i[e?"removeClass":"addClass"]("not-animated"),i.addClass("panel-in"),a[e?"removeClass":"addClass"]("not-animated"),"cover"===t.effect&&(t._clientLeft=i[0].clientLeft);var l="reveal"===r?i.nextAll(".view, .views").eq(0):i;function c(){l.transitionEnd((function(e){g(e.target).is(l)?i.hasClass("panel-out")?t.onClosed():t.onOpened():c()}))}return e?(a&&a.removeClass("not-animated"),c(),i.removeClass("panel-out not-animated").addClass("panel-in"),t.onOpen()):(a&&a.addClass("not-animated"),i.removeClass("panel-out").addClass("panel-in not-animated"),t.onOpen(),t.onOpened()),!0}},{key:"close",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.effect,r=t.$el,i=t.$backdropEl,a=t.opened;if(!a||r.hasClass("panel-in-breakpoint")||!r.hasClass("panel-in"))return t;r[e?"removeClass":"addClass"]("not-animated"),i[e?"removeClass":"addClass"]("not-animated");var o="reveal"===n?r.nextAll(".view, .views").eq(0):r;function s(){r.hasClass("panel-out")?t.onClosed():r.hasClass("panel-in")&&t.onOpened(),g("html").removeClass("with-panel-closing")}return e?(o.transitionEnd((function(){s()})),r.removeClass("panel-in").addClass("panel-out"),t.onClose()):(r.addClass("not-animated").removeClass("panel-in").addClass("panel-out"),t.onClose(),t.onClosed()),t}},{key:"init",value:function(){void 0!==this.params.visibleBreakpoint&&this.setVisibleBreakpoint(),void 0!==this.params.collapsedBreakpoint&&this.setCollapsedBreakpoint(),this.params.swipe&&this.enableSwipe(),this.resizable&&this.enableResizable()}},{key:"destroy",value:function(){var e=this,t=e.app;if(e.$el){if(e.emit("local::beforeDestroy panelBeforeDestroy",e),e.$el.trigger("panel:beforedestroy"),e.visibleBreakpointResizeHandler&&t.off("resize",e.visibleBreakpointResizeHandler),e.collapsedBreakpointResizeHandler&&t.off("resize",e.collapsedBreakpointResizeHandler),e.$el.hasClass("panel-in-breakpoint")||e.$el.hasClass("panel-in-collapsed")){var n=g(e.getViewEl());e.$el.removeClass("panel-in-breakpoint panel-in-collapsed panel-in"),n.css(K()({},"margin-".concat(e.side),"")),e.emit("local::breakpoint panelBreakpoint",e),e.$el.trigger("panel:breakpoint")}e.$el.trigger("panel:destroy"),e.emit("local::destroy panelDestroy",e),e.el&&(e.el.f7Panel=null,delete e.el.f7Panel),j.deleteProps(e),e=null}}}]),r}(z),Hn={name:"panel",params:{panel:{opened:void 0,side:void 0,effect:void 0,resizable:void 0,backdrop:!0,backdropEl:void 0,visibleBreakpoint:void 0,collapsedBreakpoint:void 0,swipe:!1,swipeNoFollow:!1,swipeOnlyClose:!1,swipeActiveArea:0,swipeThreshold:0,closeByBackdropClick:!0}},static:{Panel:Fn},instance:{panel:{allowOpen:!0}},create:function(){var e=this;j.extend(e.panel,{create:function(t){return new Fn(e,t)},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".panel";if(e instanceof Fn)return e;"left"!==e&&"right"!==e||(e=".panel-".concat(e));var t=g(e);return 0===t.length||t.length>1?void 0:t[0].f7Panel},destroy:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".panel",n=e.panel.get(t);if(n&&n.destroy)return n.destroy()},open:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".panel",n=arguments.length>1?arguments[1]:void 0;"left"!==t&&"right"!==t||(t=".panel-".concat(t));var r=e.panel.get(t);return r&&r.open?r.open(n):r?void 0:(r=e.panel.create({el:t})).open(n)},close:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".panel-in",n=arguments.length>1?arguments[1]:void 0;"left"!==t&&"right"!==t||(t=".panel-".concat(t));var r=e.panel.get(t);return r&&r.open?r.close(n):r?void 0:(r=e.panel.create({el:t})).close(n)},toggle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".panel",n=arguments.length>1?arguments[1]:void 0;"left"!==t&&"right"!==t||(t=".panel-".concat(t));var r=e.panel.get(t);return r&&r.toggle?r.toggle(n):r?void 0:(r=e.panel.create({el:t})).toggle(n)}})},on:{init:function(){var e=this;g(".panel-init").each((function(t,n){var r=Object.assign({el:n},g(n).dataset()||{});e.panel.create(r)}))},pageInit:function(e){var t=this;e.$el.find(".panel-init").each((function(e,n){var r=Object.assign({el:n},g(n).dataset()||{});t.panel.create(r)}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".panel-init").each((function(e,n){var r=t.panel.get(n);r&&r.destroy&&r.destroy()}))}},vnode:{"panel-init":{insert:function(e){var t=e.elm,n=Object.assign({el:t},g(t).dataset()||{});this.panel.create(n)},destroy:function(e){var t=e.elm,n=this.panel.get(t);n&&n.destroy&&n.destroy()}}},clicks:{".panel-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.panel.open(t.panel,t.animate)},".panel-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.panel.close(t.panel,t.animate)},".panel-toggle":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.panel.toggle(t.panel,t.animate)},".panel-backdrop":function(){var e=g(".panel-in:not(.panel-out)");if(e.length){var t=e[0]&&e[0].f7Panel;e.trigger("panel:backdrop-click"),t&&t.emit("backdropClick",t),this.emit("panelBackdropClick",t||e[0]),this.params.panel.closeByBackdropClick&&this.panel.close()}}}},Un={open:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".card-expandable",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=g(e).eq(0);if(r&&r.length&&!(r.hasClass("card-opened")||r.hasClass("card-opening")||r.hasClass("card-closing"))){var i,a=r.parents(".page").eq(0);if(a.length)if(!a.find(".card-opened").length)if(r.trigger("card:beforeopen",{prevent:G}),n.emit("cardBeforeOpen",r[0],G),!i){var o,s,l,c=Object.assign({animate:t},n.params.card,r.dataset()),u=r.parents(".page-content");r.attr("data-backdrop-el")&&(o=g(r.attr("data-backdrop-el"))),!o&&c.backdrop&&((o=u.find(".card-backdrop")).length||(o=g('<div class="card-backdrop"></div>'),u.append(o))),c.hideNavbarOnOpen&&((s=a.children(".navbar")).length||a[0].f7Page&&(s=a[0].f7Page.$navbarEl)),c.hideToolbarOnOpen&&((l=a.children(".toolbar")).length||(l=a.parents(".view").children(".toolbar")),l.length||(l=a.parents(".views").children(".toolbar")));var d,h=r.css("transform");h&&h.match(/[2-9]/)&&(d=!0);var f=r.children(".card-content"),p=g(document.createElement("div")).addClass("card-expandable-size");r.append(p);var m,v=r[0].offsetWidth,y=r[0].offsetHeight,b=a[0].offsetWidth,_=a[0].offsetHeight,w=p[0].offsetWidth||b,k=p[0].offsetHeight||_;s&&!c.hideStatusbarOnOpen&&k===_&&(m=parseInt(s.css("--f7-safe-area-top"),10),Number.isNaN(m)&&(m=0)),m&&(k-=m);var E,S,T=w/v,C=k/y,M=r.offset(),x=a.offset();if(m&&(x.top+=m/2),M.left-=x.left,d){var $=h.replace(/matrix\(|\)/g,"").split(",").map((function(e){return e.trim()}));if($&&$.length>1){var L=parseFloat($[0]);E=M.left-v*(1-L)/2,S=M.top-x.top-y*(1-L)/2,n.rtl&&(E-=r[0].scrollLeft)}else E=r[0].offsetLeft,S=r[0].offsetTop-(u.length?u[0].scrollTop:0)}else E=M.left,S=M.top-x.top,n.rtl&&(E-=r[0].scrollLeft);S-=(_-k)/2;var P=w-v-(E-=(b-w)/2);if(n.rtl){var O=[P,E];E=O[0],P=O[1]}var I,A,D,N,R,B,Y,j,F,H,U,z,V=k-y-S,q=(P-E)/2,W=(V-S)/2;c.hideNavbarOnOpen&&s&&s.length&&(s.closest(".navbar-hidden").length?r[0].f7KeepNavbarOnClose=!0:(delete r[0].f7KeepNavbarOnClose,n.navbar.hide(s,c.animate,c.hideStatusbarOnOpen))),c.hideToolbarOnOpen&&l&&l.length&&(l.closest(".toolbar-hidden").length?r[0].f7KeepToolbarOnClose=!0:(delete r[0].f7KeepToolbarOnClose,n.toolbar.hide(l,c.animate))),o&&o.removeClass("card-backdrop-out").addClass("card-backdrop-in"),r.removeClass("card-transitioning"),c.animate&&r.addClass("card-opening"),r.trigger("card:open"),n.emit("cardOpen",r[0]),f.css({width:"".concat(w,"px"),height:"".concat(k,"px")}).transform("translate3d(".concat(n.rtl?E+q:-E-q,"px, 0px, 0) scale(").concat(1/T,", ").concat(1/C,")")),r.transform("translate3d(".concat(n.rtl?-q:q,"px, ").concat(W,"px, 0) scale(").concat(T,", ").concat(C,")")),c.animate?r.transitionEnd((function(){K()})):K(),r[0].detachEventHandlers=function(){n.off("resize",J),ue.a.touch&&c.swipeToClose&&(n.off("touchstart:passive",X),n.off("touchmove:active",Q),n.off("touchend:passive",Z))},n.on("resize",J),ue.a.touch&&c.swipeToClose&&(n.on("touchstart:passive",X),n.on("touchmove:active",Q),n.on("touchend:passive",Z))}}function G(){i=!0}function K(){a.addClass("page-with-card-opened"),n.device.ios&&u.length&&(u.css("height","".concat(u[0].offsetHeight+1,"px")),setTimeout((function(){u.css("height","")}))),r.addClass("card-opened"),r.removeClass("card-opening"),r.trigger("card:opened"),n.emit("cardOpened",r[0],a[0])}function J(){if(r.removeClass("card-transitioning"),v=r[0].offsetWidth,y=r[0].offsetHeight,b=a[0].offsetWidth,_=a[0].offsetHeight,w=p[0].offsetWidth||b,k=p[0].offsetHeight||_,m=0,s&&!c.hideStatusbarOnOpen&&k===_&&(m=parseInt(s.css("--f7-safe-area-top"),10),Number.isNaN(m)&&(m=0)),m&&(k-=m),T=w/v,C=k/y,r.transform("translate3d(0px, 0px, 0) scale(1)"),M=r.offset(),x=a.offset(),m&&(x.top+=m/2),M.left-=x.left,M.top-=x.top,E=M.left-(b-w)/2,n.rtl&&(E-=r[0].scrollLeft),S=M.top-(_-k)/2,P=w-v-E,V=k-y-S,n.rtl){var e=[P,E];E=e[0],P=e[1]}q=(P-E)/2,W=(V-S)/2,r.transform("translate3d(".concat(n.rtl?-q:q,"px, ").concat(W,"px, 0) scale(").concat(T,", ").concat(C,")")),f.css({width:"".concat(w,"px"),height:"".concat(k,"px")}).transform("translate3d(".concat(n.rtl?E+q:-E-q,"px, 0px, 0) scale(").concat(1/T,", ").concat(1/C,")"))}function X(e){g(e.target).closest(r).length&&r.hasClass("card-opened")&&(z=r.find(c.scrollableEl),I=z[0]&&z[0]!==f[0]&&!z[0].contains(e.target)?0:z.scrollTop(),A=!0,N=e.targetTouches[0].pageX,R=e.targetTouches[0].pageY,j=void 0,H=!1,U=!1)}function Q(e){if(A){if(B=e.targetTouches[0].pageX,Y=e.targetTouches[0].pageY,void 0===j&&(j=!!(j||Math.abs(Y-R)>Math.abs(B-N))),U||H||(!j&&e.targetTouches[0].clientX<=50?U=!0:H=!0),!U&&!H||H&&0!==I)return A=!0,void(D=!0);D||r.removeClass("card-transitioning"),D=!0,((F=H?Math.max((Y-R)/150,0):Math.max((B-N)/(v/2),0))>0&&H||U)&&(H&&n.device.ios&&z[0]===f[0]&&(z.css("-webkit-overflow-scrolling","auto"),z.scrollTop(0)),e.preventDefault()),F>1&&(F=Math.pow(F,.3)),F>(H?1.3:1.1)?(A=!1,D=!1,n.card.close(r)):r.transform("translate3d(".concat(n.rtl?-q:q,"px, ").concat(W,"px, 0) scale(").concat(T*(1-.2*F),", ").concat(C*(1-.2*F),")"))}}function Z(){A&&D&&(A=!1,D=!1,n.device.ios&&z.css("-webkit-overflow-scrolling",""),F>=.8?n.card.close(r):r.addClass("card-transitioning").transform("translate3d(".concat(n.rtl?-q:q,"px, ").concat(W,"px, 0) scale(").concat(T,", ").concat(C,")")))}},close:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".card-expandable.card-opened",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=g(e).eq(0);if(r&&r.length&&r.hasClass("card-opened")&&!r.hasClass("card-opening")&&!r.hasClass("card-closing")){var i=r.children(".card-content"),a=r.parents(".page-content"),o=r.parents(".page").eq(0);if(o.length){var s,l,c,u=Object.assign({animate:t},n.params.card,r.dataset()),d=r.find(u.scrollableEl);r.attr("data-backdrop-el")&&(c=g(r.attr("data-backdrop-el"))),u.backdrop&&(c=r.parents(".page-content").find(".card-backdrop")),u.hideNavbarOnOpen&&((s=o.children(".navbar")).length||o[0].f7Page&&(s=o[0].f7Page.$navbarEl),s&&s.length&&!r[0].f7KeepNavbarOnClose&&n.navbar.show(s,u.animate)),u.hideToolbarOnOpen&&((l=o.children(".toolbar")).length||(l=o.parents(".view").children(".toolbar")),l.length||(l=o.parents(".views").children(".toolbar")),l&&l.length&&!r[0].f7KeepToolbarOnClose&&n.toolbar.show(l,u.animate)),o.removeClass("page-with-card-opened"),n.device.ios&&a.length&&(a.css("height","".concat(a[0].offsetHeight+1,"px")),setTimeout((function(){a.css("height","")}))),c&&c.length&&c.removeClass("card-backdrop-in").addClass("card-backdrop-out"),r.removeClass("card-opened card-transitioning"),u.animate?r.addClass("card-closing"):r.addClass("card-no-transition"),r.transform(""),r.trigger("card:close"),n.emit("cardClose",r[0],o[0]);var h=r.hasClass("card-expandable-animate-width");h&&i.css({width:"",height:""}),i.transform("").scrollTop(0,t?300:0),d.length&&d[0]!==i[0]&&d.scrollTop(0,t?300:0),t?i.transitionEnd((function(){f()})):f(),r[0].detachEventHandlers&&(r[0].detachEventHandlers(),delete r[0].detachEventHandlers)}}function f(){h||i.css({width:"",height:""}),c&&c.length&&c.removeClass("card-backdrop-in card-backdrop-out"),r.removeClass("card-closing card-no-transition"),r.trigger("card:closed"),r.find(".card-expandable-size").remove(),n.emit("cardClosed",r[0],o[0])}},toggle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".card-expandable",t=arguments.length>1?arguments[1]:void 0,n=this,r=g(e).eq(0);r.length&&(r.hasClass("card-opened")?n.card.close(r,t):n.card.open(r,t))}},zn={name:"card",params:{card:{hideNavbarOnOpen:!0,hideStatusbarOnOpen:!0,hideToolbarOnOpen:!0,scrollableEl:".card-content",swipeToClose:!0,closeByBackdropClick:!0,backdrop:!0}},create:function(){j.extend(this,{card:{open:Un.open.bind(this),close:Un.close.bind(this),toggle:Un.toggle.bind(this)}})},on:{pageBeforeIn:function(e){if(this.params.card.hideNavbarOnOpen&&e.navbarEl&&e.$el.find(".card-opened.card-expandable").length&&this.navbar.hide(e.navbarEl,!0,this.params.card.hideStatusbarOnOpen),this.params.card.hideToolbarOnOpen&&e.$el.find(".card-opened.card-expandable").length){var t=e.$el.children(".toolbar");t.length||(t=e.$el.parents(".view").children(".toolbar")),t.length||(t=e.$el.parents(".views").children(".toolbar")),t&&t.length&&this.toolbar.hide(t)}}},clicks:{".card-close":function(e,t){this.card.close(t.card,t.animate)},".card-open":function(e,t){this.card.open(t.card,t.animate)},".card-expandable":function(e,t,n){e.hasClass("card-opened")||e.hasClass("card-opening")||e.hasClass("card-closing")||g(n.target).closest(".card-prevent-open, .card-close").length||this.card.open(e)},".card-backdrop-in":function(){var e=!1;this.params.card.closeByBackdropClick&&(e=!0);var t=g(".card-opened");t.length&&("true"===t.attr("data-close-by-backdrop-click")?e=!0:"false"===t.attr("data-close-by-backdrop-click")&&(e=!1),e&&this.card.close(t))}}},Vn={store:function(e,t){var n=e,r=g(e);r.length&&r.is("form")&&r.attr("id")&&(n=r.attr("id")),this.form.data["form-".concat(n)]=t,s.b.localStorage["f7form-".concat(n)]=JSON.stringify(t)},get:function(e){var t=e,n=g(e);return n.length&&n.is("form")&&n.attr("id")&&(t=n.attr("id")),s.b.localStorage["f7form-".concat(t)]?JSON.parse(s.b.localStorage["f7form-".concat(t)]):this.form.data["form-".concat(t)]?this.form.data["form-".concat(t)]:void 0},remove:function(e){var t=e,n=g(e);n.length&&n.is("form")&&n.attr("id")&&(t=n.attr("id")),this.form.data["form-".concat(t)]&&(this.form.data["form-".concat(t)]="",delete this.form.data["form-".concat(t)]),s.b.localStorage["f7form-".concat(t)]&&(s.b.localStorage["f7form-".concat(t)]="",s.b.localStorage.removeItem("f7form-".concat(t)))}},qn={init:function(e){var t=this,n=g(e),r=n.attr("id");if(r){var i=t.form.getFormData(r);i&&t.form.fillFromData(n,i),n.on("change submit",(function(){var e=t.form.convertToData(n);e&&(t.form.storeFormData(r,e),n.trigger("form:storedata",e),t.emit("formStoreData",n[0],e))}))}},destroy:function(e){g(e).off("change submit")}};function Wn(e){var t=g(e).eq(0);if(0!==t.length){var n={},r=["submit","image","button","file"],i=[];return t.find("input, select, textarea").each((function(e,a){var o=g(a);if(!o.hasClass("ignore-store-data")&&!o.hasClass("no-store-data")){var s=o.attr("name"),l=o.attr("type"),c=a.nodeName.toLowerCase();if(!(r.indexOf(l)>=0)&&!(i.indexOf(s)>=0)&&s)if("select"===c&&o.prop("multiple"))i.push(s),n[s]=[],t.find('select[name="'.concat(s,'"] option')).each((function(e,t){t.selected&&n[s].push(t.value)}));else switch(l){case"checkbox":i.push(s),n[s]=[],t.find('input[name="'.concat(s,'"]')).each((function(e,t){t.checked&&n[s].push(t.value)}));break;case"radio":i.push(s),t.find('input[name="'.concat(s,'"]')).each((function(e,t){t.checked&&(n[s]=t.value)}));break;default:n[s]=o.val()}}})),t.trigger("form:todata",n),this.emit("formToData",t[0],n),n}}function Gn(e,t){var n=g(e).eq(0);if(n.length){var r=t,i=n.attr("id");if(!r&&i&&(r=this.form.getFormData(i)),r){var a=["submit","image","button","file"],o=[];n.find("input, select, textarea").each((function(e,t){var i=g(t);if(!i.hasClass("ignore-store-data")&&!i.hasClass("no-store-data")){var s=i.attr("name"),l=i.attr("type"),c=t.nodeName.toLowerCase();if(void 0!==r[s]&&null!==r[s]&&!(a.indexOf(l)>=0)&&!(o.indexOf(s)>=0)&&s){if("select"===c&&i.prop("multiple"))o.push(s),n.find('select[name="'.concat(s,'"] option')).each((function(e,t){var n=t;r[s].indexOf(t.value)>=0?n.selected=!0:n.selected=!1}));else switch(l){case"checkbox":o.push(s),n.find('input[name="'.concat(s,'"]')).each((function(e,t){var n=t;r[s].indexOf(t.value)>=0?n.checked=!0:n.checked=!1}));break;case"radio":o.push(s),n.find('input[name="'.concat(s,'"]')).each((function(e,t){var n=t;r[s]===t.value?n.checked=!0:n.checked=!1}));break;default:i.val(r[s])}"select"!==c&&"input"!==c&&"textarea"!==c||i.trigger("change","fromdata")}}})),n.trigger("form:fromdata",r),this.emit("formFromData",n[0],r)}}}function Kn(){var e=this;g(s.a).on("submit change","form.form-ajax-submit, form.form-ajax-submit-onchange",(function(t,n){var r=g(this);if(("change"!==t.type||r.hasClass("form-ajax-submit-onchange"))&&("submit"===t.type&&t.preventDefault(),"change"!==t.type||"fromdata"!==n)){var i,a=(r.attr("method")||"GET").toUpperCase(),o=r.prop("enctype")||r.attr("enctype"),l=r.attr("action");if(l)i="POST"===a?"application/x-www-form-urlencoded"===o?e.form.convertToData(r[0]):new s.b.FormData(r[0]):j.serializeObject(e.form.convertToData(r[0])),e.request({method:a,url:l,contentType:o,data:i,beforeSend:function(t){r.trigger("formajax:beforesend",{data:i,xhr:t}),e.emit("formAjaxBeforeSend",r[0],i,t)},error:function(t){r.trigger("formajax:error",{data:i,xhr:t}),e.emit("formAjaxError",r[0],i,t)},complete:function(t){r.trigger("formajax:complete",{data:i,xhr:t}),e.emit("formAjaxComplete",r[0],i,t)},success:function(t,n,a){r.trigger("formajax:success",{data:i,xhr:a}),e.emit("formAjaxSuccess",r[0],i,a)}})}}))}var Jn={name:"form",create:function(){j.extend(this,{form:{data:{},storeFormData:Vn.store.bind(this),getFormData:Vn.get.bind(this),removeFormData:Vn.remove.bind(this),convertToData:Wn.bind(this),fillFromData:Gn.bind(this),storage:{init:qn.init.bind(this),destroy:qn.destroy.bind(this)}}})},on:{init:function(){Kn.call(this)},tabBeforeRemove:function(e){var t=this;g(e).find(".form-store-data").each((function(e,n){t.form.storage.destroy(n)}))},tabMounted:function(e){var t=this;g(e).find(".form-store-data").each((function(e,n){t.form.storage.init(n)}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".form-store-data").each((function(e,n){t.form.storage.destroy(n)}))},pageInit:function(e){var t=this;e.$el.find(".form-store-data").each((function(e,n){t.form.storage.init(n)}))}}},Xn={ignoreTypes:["checkbox","button","submit","range","radio","image"],createTextareaResizableShadow:function(){var e=g(s.a.createElement("textarea"));e.addClass("textarea-resizable-shadow"),e.prop({disabled:!0,readonly:!0}),Xn.textareaResizableShadow=e},textareaResizableShadow:void 0,resizeTextarea:function(e){var t=g(e);Xn.textareaResizableShadow||Xn.createTextareaResizableShadow();var n=Xn.textareaResizableShadow;if(t.length&&t.hasClass("resizable")){0===Xn.textareaResizableShadow.parents().length&&this.root.append(n);var r=s.b.getComputedStyle(t[0]);"padding-top padding-bottom padding-left padding-right margin-left margin-right margin-top margin-bottom width font-size font-family font-style font-weight line-height font-variant text-transform letter-spacing border box-sizing display".split(" ").forEach((function(e){var t=r[e];"font-size line-height letter-spacing width".split(" ").indexOf(e)>=0&&(t=t.replace(",",".")),n.css(e,t)}));var i=t[0].clientHeight;n.val("");var a=n[0].scrollHeight;n.val(t.val()),n.css("height",0);var o=n[0].scrollHeight;i!==o&&(o>a?t.css("height","".concat(o,"px")):o<i&&t.css("height",""),(o>a||o<i)&&(t.trigger("textarea:resize",{initialHeight:a,currentHeight:i,scrollHeight:o}),this.emit("textareaResize",{initialHeight:a,currentHeight:i,scrollHeight:o})))}},validate:function(e){var t=g(e);if(!t.length)return!0;var n=t.parents(".item-input"),r=t.parents(".input"),i=t[0].validity,a=t.dataset().errorMessage||t[0].validationMessage||"";if(!i)return!0;if(!i.valid){var o=t.nextAll(".item-input-error-message, .input-error-message");return a&&(0===o.length&&(o=g('<div class="'.concat(r.length?"input-error-message":"item-input-error-message",'"></div>'))).insertAfter(t),o.text(a)),o.length>0&&(n.addClass("item-input-with-error-message"),r.addClass("input-with-error-message")),n.addClass("item-input-invalid"),r.addClass("input-invalid"),t.addClass("input-invalid"),!1}return n.removeClass("item-input-invalid item-input-with-error-message"),r.removeClass("input-invalid input-with-error-message"),t.removeClass("input-invalid"),!0},validateInputs:function(e){var t=this;return g(e).find("input, textarea, select").toArray().map((function(e){return t.input.validate(e)})).indexOf(!1)<0},focus:function(e){var t=g(e),n=t.attr("type");Xn.ignoreTypes.indexOf(n)>=0||(t.parents(".item-input").addClass("item-input-focused"),t.parents(".input").addClass("input-focused"),t.addClass("input-focused"))},blur:function(e){var t=g(e);t.parents(".item-input").removeClass("item-input-focused"),t.parents(".input").removeClass("input-focused"),t.removeClass("input-focused")},checkEmptyState:function(e){var t=g(e);if(t.is("input, select, textarea, .item-input [contenteditable]")||(t=t.find("input, select, textarea, .item-input [contenteditable]").eq(0)),t.length){var n;n=t[0].hasAttribute("contenteditable")?t.find(".text-editor-placeholder").length?"":t.html():t.val();var r=t.parents(".item-input"),i=t.parents(".input");n&&"string"==typeof n&&""!==n.trim()||Array.isArray(n)&&n.length>0?(r.addClass("item-input-with-value"),i.addClass("input-with-value"),t.addClass("input-with-value"),t.trigger("input:notempty"),this.emit("inputNotEmpty",t[0])):(r.removeClass("item-input-with-value"),i.removeClass("input-with-value"),t.removeClass("input-with-value"),t.trigger("input:empty"),this.emit("inputEmpty",t[0]))}},scrollIntoView:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=g(e),a=i.parents(".page-content, .panel, .card-expandable .card-content").eq(0);if(!a.length)return!1;var o=a[0].offsetHeight,s=a[0].scrollTop,l=parseInt(a.css("padding-top"),10),c=parseInt(a.css("padding-bottom"),10),u=a.offset().top-s,d=i.offset().top-u,h=i[0].offsetHeight,f=d+s-l,p=d+s-o+c+h,m=f+(p-f)/2;return s>f?(a.scrollTop(n?m:f,t),!0):s<p?(a.scrollTop(n?m:p,t),!0):(r&&a.scrollTop(n?m:p,t),!1)},init:function(){var e=this;Xn.createTextareaResizableShadow(),g(s.a).on("click",".input-clear-button",(function(){var t=g(this).siblings("input, textarea").eq(0),n=t.val();t.val("").trigger("input change").focus().trigger("input:clear",n),e.emit("inputClear",n)})),g(s.a).on("mousedown",".input-clear-button",(function(e){e.preventDefault()})),g(s.a).on("change input","input, textarea, select, .item-input [contenteditable]",(function(){var t=g(this),n=t.attr("type"),r=t[0].nodeName.toLowerCase(),i=t[0].hasAttribute("contenteditable");Xn.ignoreTypes.indexOf(n)>=0||(e.input.checkEmptyState(t),i||(null!==t.attr("data-validate-on-blur")||!t.dataset().validate&&null===t.attr("validate")||e.input.validate(t),"textarea"===r&&t.hasClass("resizable")&&e.input.resizeTextarea(t)))}),!0),g(s.a).on("focus","input, textarea, select, .item-input [contenteditable]",(function(){var t=this;e.params.input.scrollIntoViewOnFocus&&(F.a.android?g(s.b).once("resize",(function(){s.a&&s.a.activeElement===t&&e.input.scrollIntoView(t,e.params.input.scrollIntoViewDuration,e.params.input.scrollIntoViewCentered,e.params.input.scrollIntoViewAlways)})):e.input.scrollIntoView(t,e.params.input.scrollIntoViewDuration,e.params.input.scrollIntoViewCentered,e.params.input.scrollIntoViewAlways)),e.input.focus(t)}),!0),g(s.a).on("blur","input, textarea, select, .item-input [contenteditable]",(function(){var t=g(this),n=t[0].nodeName.toLowerCase();e.input.blur(t),(t.dataset().validate||null!==t.attr("validate")||null!==t.attr("data-validate-on-blur"))&&e.input.validate(t),"textarea"===n&&t.hasClass("resizable")&&Xn.textareaResizableShadow&&Xn.textareaResizableShadow.remove()}),!0),g(s.a).on("invalid","input, textarea, select",(function(t){var n=g(this);null!==n.attr("data-validate-on-blur")||!n.dataset().validate&&null===n.attr("validate")||(t.preventDefault(),e.input.validate(n))}),!0)}},Qn={name:"input",params:{input:{scrollIntoViewOnFocus:F.a.android,scrollIntoViewCentered:!1,scrollIntoViewDuration:0,scrollIntoViewAlways:!1}},create:function(){j.extend(this,{input:{scrollIntoView:Xn.scrollIntoView.bind(this),focus:Xn.focus.bind(this),blur:Xn.blur.bind(this),validate:Xn.validate.bind(this),validateInputs:Xn.validateInputs.bind(this),checkEmptyState:Xn.checkEmptyState.bind(this),resizeTextarea:Xn.resizeTextarea.bind(this),init:Xn.init.bind(this)}})},on:{init:function(){this.input.init()},tabMounted:function(e){var t=this,n=g(e);n.find(".item-input, .input").each((function(e,n){g(n).find("input, select, textarea, [contenteditable]").each((function(e,n){var r=g(n);Xn.ignoreTypes.indexOf(r.attr("type"))>=0||t.input.checkEmptyState(r)}))})),n.find("textarea.resizable").each((function(e,n){t.input.resizeTextarea(n)}))},pageInit:function(e){var t=this,n=e.$el;n.find(".item-input, .input").each((function(e,n){g(n).find("input, select, textarea, [contenteditable]").each((function(e,n){var r=g(n);Xn.ignoreTypes.indexOf(r.attr("type"))>=0||t.input.checkEmptyState(r)}))})),n.find("textarea.resizable").each((function(e,n){t.input.resizeTextarea(n)}))},"panelBreakpoint panelCollapsedBreakpoint panelResize panelOpen panelSwipeOpen resize viewMasterDetailBreakpoint":function(e){var t=this;e&&e.$el?e.$el.find("textarea.resizable").each((function(e,n){t.input.resizeTextarea(n)})):g("textarea.resizable").each((function(e,n){t.input.resizeTextarea(n)}))}}};function Zn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var er=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(Zn()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o()(this,r),t=n.call(this,i,[e]);var a=k()(t),s={};a.useModulesParams(s),a.params=j.extend(s,i);var l=a.params.el;if(!l)return C()(t,a);var c=g(l);if(0===c.length)return C()(t,a);if(c[0].f7Toggle)return C()(t,c[0].f7Toggle);var u,d=c.children('input[type="checkbox"]');j.extend(a,{app:e,$el:c,el:c[0],$inputEl:d,inputEl:d[0],disabled:c.hasClass("disabled")||d.hasClass("disabled")||d.attr("disabled")||d[0].disabled}),Object.defineProperty(a,"checked",{enumerable:!0,configurable:!0,set:function(e){a&&void 0!==a.$inputEl&&a.checked!==e&&(d[0].checked=e,a.$inputEl.trigger("change"))},get:function(){return d[0].checked}}),c[0].f7Toggle=a;var h,f,p,m,v,y={};function b(e){u||a.disabled||(y.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,y.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,f=0,u=!0,h=void 0,m=j.now(),v=a.checked,p=c[0].offsetWidth,j.nextTick((function(){u&&c.addClass("toggle-active-state")})))}function _(t){if(u&&!a.disabled){var n,r="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,i="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,o=e.rtl?-1:1;if(void 0===h&&(h=!!(h||Math.abs(i-y.y)>Math.abs(r-y.x))),h)u=!1;else t.preventDefault(),(f=r-y.x)*o<0&&Math.abs(f)>p/3&&v&&(n=!0),f*o>0&&Math.abs(f)>p/3&&!v&&(n=!0),n&&(y.x=r,a.checked=!v,v=!v)}}function w(){if(!u||a.disabled)return h&&c.removeClass("toggle-active-state"),void(u=!1);var t,n=e.rtl?-1:1;u=!1,c.removeClass("toggle-active-state"),j.now()-m<300&&(f*n<0&&v&&(t=!0),f*n>0&&!v&&(t=!0),t&&(a.checked=!v))}function E(){a.$el.trigger("toggle:change"),a.emit("local::change toggleChange",a)}return a.attachEvents=function(){var t=!!ue.a.passiveListener&&{passive:!0};c.on(e.touchEvents.start,b,t),e.on("touchmove",_),e.on("touchend:passive",w),a.$inputEl.on("change",E)},a.detachEvents=function(){var t=!!ue.a.passiveListener&&{passive:!0};c.off(e.touchEvents.start,b,t),e.off("touchmove",_),e.off("touchend:passive",w),a.$inputEl.off("change",E)},a.useModules(),a.init(),t}return b()(r,[{key:"toggle",value:function(){this.checked=!this.checked}},{key:"init",value:function(){this.attachEvents()}},{key:"destroy",value:function(){var e=this;e.$el.trigger("toggle:beforedestroy"),e.emit("local::beforeDestroy toggleBeforeDestroy",e),delete e.$el[0].f7Toggle,e.detachEvents(),j.deleteProps(e),e=null}}]),r}(z),tr={name:"toggle",create:function(){this.toggle=W({defaultSelector:".toggle",constructor:er,app:this,domProp:"f7Toggle"})},static:{Toggle:er},on:{tabMounted:function(e){var t=this;g(e).find(".toggle-init").each((function(e,n){return t.toggle.create({el:n})}))},tabBeforeRemove:function(e){g(e).find(".toggle-init").each((function(e,t){t.f7Toggle&&t.f7Toggle.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".toggle-init").each((function(e,n){return t.toggle.create({el:n})}))},pageBeforeRemove:function(e){e.$el.find(".toggle-init").each((function(e,t){t.f7Toggle&&t.f7Toggle.destroy()}))}},vnode:{"toggle-init":{insert:function(e){var t=e.elm;this.toggle.create({el:t})},destroy:function(e){var t=e.elm;t.f7Toggle&&t.f7Toggle.destroy()}}}};function nr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var rr=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(nr()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e,t){var i;o()(this,r),i=n.call(this,t,[e]);var a=k()(i),s={el:null,inputEl:null,dual:!1,step:1,label:!1,min:0,max:100,value:0,draggableBar:!0,vertical:!1,verticalReversed:!1,formatLabel:null,scale:!1,scaleSteps:5,scaleSubSteps:0,formatScaleLabel:null,limitKnobPosition:"ios"===e.theme};a.useModulesParams(s),a.params=j.extend(s,t);var l=a.params.el;if(!l)return C()(i,a);var c=g(l);if(0===c.length)return C()(i,a);if(c[0].f7Range)return C()(i,c[0].f7Range);var u,d=c.dataset();"step min max value scaleSteps scaleSubSteps".split(" ").forEach((function(e){void 0===t[e]&&void 0!==d[e]&&(a.params[e]=parseFloat(d[e]))})),"dual label vertical verticalReversed scale".split(" ").forEach((function(e){void 0===t[e]&&void 0!==d[e]&&(a.params[e]=d[e])})),a.params.value||(void 0!==d.value&&(a.params.value=d.value),void 0!==d.valueLeft&&void 0!==d.valueRight&&(a.params.value=[parseFloat(d.valueLeft),parseFloat(d.valueRight)])),a.params.dual||(a.params.inputEl?u=g(a.params.inputEl):c.find('input[type="range"]').length&&(u=c.find('input[type="range"]').eq(0)));var h=a.params,f=h.dual,p=h.step,m=h.label,v=h.min,y=h.max,b=h.value,_=h.vertical,w=h.verticalReversed,E=h.scale,S=h.scaleSteps,T=h.scaleSubSteps,M=h.limitKnobPosition;j.extend(a,{app:e,$el:c,el:c[0],$inputEl:u,inputEl:u?u[0]:void 0,dual:f,step:p,label:m,min:v,max:y,value:b,previousValue:b,vertical:_,verticalReversed:w,scale:E,scaleSteps:S,scaleSubSteps:T,limitKnobPosition:M}),u&&("step min max".split(" ").forEach((function(e){!t[e]&&u.attr(e)&&(a.params[e]=parseFloat(u.attr(e)),a[e]=parseFloat(u.attr(e)))})),void 0!==u.val()&&(a.params.value=parseFloat(u.val()),a.value=parseFloat(u.val()))),a.dual&&c.addClass("range-slider-dual"),a.label&&c.addClass("range-slider-label"),a.vertical?(c.addClass("range-slider-vertical"),a.verticalReversed&&c.addClass("range-slider-vertical-reversed")):c.addClass("range-slider-horizontal");var x=g('<div class="range-bar"></div>'),$=g('<div class="range-bar-active"></div>');x.append($);var L='\n <div class="range-knob-wrap">\n <div class="range-knob"></div>\n '.concat(a.label?'<div class="range-knob-label"></div>':"","\n </div>\n "),P=[g(L)];a.dual&&P.push(g(L)),c.append(x),P.forEach((function(e){c.append(e)}));var O,I,A=[];a.label&&(A.push(P[0].find(".range-knob-label")),a.dual&&A.push(P[1].find(".range-knob-label"))),a.scale&&a.scaleSteps>1&&(O=g('\n <div class="range-scale">\n '.concat(a.renderScale(),"\n </div>\n ")),c.append(O)),j.extend(a,{knobs:P,labels:A,$barEl:x,$barActiveEl:$,$scaleEl:O}),c[0].f7Range=a;var D,N,R,B,Y,F,H,U,z,V,q,W={};function G(){H=!0}function K(e){if(!I&&(a.params.draggableBar||0!==g(e.target).closest(".range-knob").length)){var t;H=!1,W.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,W.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,"touchstart"===e.type&&(U=e.targetTouches[0].identifier),I=!0,D=void 0,N=c.offset(),R=N.left,B=N.top,a.vertical?(t=(W.y-B)/a.rangeHeight,a.verticalReversed||(t=1-t)):t=a.app.rtl?(R+a.rangeWidth-W.x)/a.rangeWidth:(W.x-R)/a.rangeWidth;var n=t*(a.max-a.min)+a.min;a.dual?Math.abs(a.value[0]-n)<Math.abs(a.value[1]-n)?(F=0,Y=a.knobs[0],n=[n,a.value[1]]):(F=1,Y=a.knobs[1],n=[a.value[0],n]):(Y=a.knobs[0],n=t*(a.max-a.min)+a.min),j.nextTick((function(){I&&Y.addClass("range-knob-active-state")}),70),a.on("change",G),a.setValue(n,!0)}}function J(e){if(I){var t,n;if("touchmove"===e.type)for(var r=0;r<e.targetTouches.length;r+=1)e.targetTouches[r].identifier===U&&(t=e.targetTouches[r].pageX,n=e.targetTouches[r].pageY);else t=e.pageX,n=e.pageY;if(void 0!==t||void 0!==n)if(void 0!==D||a.vertical||(D=!!(D||Math.abs(n-W.y)>Math.abs(t-W.x))),D)I=!1;else{var i;e.preventDefault(),a.vertical?(i=(n-B)/a.rangeHeight,a.verticalReversed||(i=1-i)):i=a.app.rtl?(R+a.rangeWidth-t)/a.rangeWidth:(t-R)/a.rangeWidth;var o,s,l=i*(a.max-a.min)+a.min;if(a.dual)0===F?(o=l)>(s=a.value[1])&&(s=o):(s=l)<(o=a.value[0])&&(o=s),l=[o,s];a.setValue(l,!0)}}}function X(e){if("touchend"===e.type){for(var t,n=0;n<e.changedTouches.length;n+=1)e.changedTouches[n].identifier===U&&(t=!0);if(!t)return}if(!I)return D&&Y.removeClass("range-knob-active-state"),void(I=!1);a.off("change",G),I=!1,Y.removeClass("range-knob-active-state"),H&&a.$inputEl&&!a.dual&&a.$inputEl.trigger("change"),H=!1,void 0!==a.previousValue&&(a.dual&&(a.previousValue[0]!==a.value[0]||a.previousValue[1]!==a.value[1])||!a.dual&&a.previousValue!==a.value)&&(a.$el.trigger("range:changed",a.value),a.emit("local::changed rangeChanged",a,a.value))}function Q(){a.calcSize(),a.layout()}return a.attachEvents=function(){var t=!!ue.a.passiveListener&&{passive:!0};a.$el.on(e.touchEvents.start,K,t),e.on("touchmove",J),e.on("touchend:passive",X),e.on("tabShow",Q),e.on("resize",Q),(z=a.$el.parents(".sheet-modal, .actions-modal, .popup, .popover, .login-screen, .dialog, .toast")).on("modal:open",Q),(V=a.$el.parents(".panel")).on("panel:open",Q),(q=a.$el.parents(".page").eq(0)).on("page:reinit",Q)},a.detachEvents=function(){var t=!!ue.a.passiveListener&&{passive:!0};a.$el.off(e.touchEvents.start,K,t),e.off("touchmove",J),e.off("touchend:passive",X),e.off("tabShow",Q),e.off("resize",Q),z&&z.off("modal:open",Q),V&&V.off("panel:open",Q),q&&q.off("page:reinit",Q),z=null,V=null,q=null},a.useModules(),a.init(),C()(i,a)}return b()(r,[{key:"calcSize",value:function(){if(this.vertical){var e=this.$el.outerHeight();if(0===e)return;this.rangeHeight=e,this.knobHeight=this.knobs[0].outerHeight()}else{var t=this.$el.outerWidth();if(0===t)return;this.rangeWidth=t,this.knobWidth=this.knobs[0].outerWidth()}}},{key:"layout",value:function(){var e=this,t=e.app,n=e.knobWidth,r=e.knobHeight,i=e.rangeWidth,a=e.rangeHeight,o=e.min,s=e.max,l=e.knobs,c=e.$barActiveEl,u=e.value,d=e.label,h=e.labels,f=e.vertical,p=e.verticalReversed,m=e.limitKnobPosition,v=f?r:n,g=f?a:i,y=f?p?"top":"bottom":t.rtl?"right":"left";if(e.dual){var b,_=[(u[0]-o)/(s-o),(u[1]-o)/(s-o)];c.css((b={},K()(b,y,"".concat(100*_[0],"%")),K()(b,f?"height":"width","".concat(100*(_[1]-_[0]),"%")),b)),l.forEach((function(t,n){var r=g*_[n];if(m){var i=g*_[n]-v/2;i<0&&(r=v/2),i+v>g&&(r=g-v/2)}t.css(y,"".concat(r,"px")),d&&h[n].text(e.formatLabel(u[n],h[n][0]))}))}else{var w=(u-o)/(s-o);c.css(f?"height":"width","".concat(100*w,"%"));var k=g*w;if(m){var E=g*w-v/2;E<0&&(k=v/2),E+v>g&&(k=g-v/2)}l[0].css(y,"".concat(k,"px")),d&&h[0].text(e.formatLabel(u,h[0][0]))}e.dual&&u.indexOf(o)>=0||!e.dual&&u===o?e.$el.addClass("range-slider-min"):e.$el.removeClass("range-slider-min"),e.dual&&u.indexOf(s)>=0||!e.dual&&u===s?e.$el.addClass("range-slider-max"):e.$el.removeClass("range-slider-max")}},{key:"setValue",value:function(e,t){var n,r,i=this,a=i.step,o=i.min,s=i.max;if(i.dual){r=[i.value[0],i.value[1]];var l=e;if(Array.isArray(l)||(l=[e,e]),e[0]>e[1]&&(l=[l[0],l[0]]),(l=l.map((function(e){return Math.max(Math.min(Math.round(e/a)*a,s),o)})))[0]===i.value[0]&&l[1]===i.value[1])return i;l.forEach((function(e,t){i.value[t]=e})),n=r[0]!==l[0]||r[1]!==l[1],i.layout()}else{r=i.value;var c=Math.max(Math.min(Math.round(e/a)*a,s),o);i.value=c,i.layout(),n=r!==c}return n&&(i.previousValue=r),n?(i.$el.trigger("range:change",i.value),i.$inputEl&&!i.dual&&(i.$inputEl.val(i.value),t?i.$inputEl.trigger("input"):i.$inputEl.trigger("input change")),t||(i.$el.trigger("range:changed",i.value),i.emit("local::changed rangeChanged",i,i.value)),i.emit("local::change rangeChange",i,i.value),i):i}},{key:"getValue",value:function(){return this.value}},{key:"formatLabel",value:function(e,t){return this.params.formatLabel?this.params.formatLabel.call(this,e,t):e}},{key:"formatScaleLabel",value:function(e){return this.params.formatScaleLabel?this.params.formatScaleLabel.call(this,e):e}},{key:"renderScale",value:function(){var e=this,t=e.app,n=e.verticalReversed,r=e.vertical?n?"top":"bottom":t.rtl?"right":"left",i="";return Array.from({length:e.scaleSteps+1}).forEach((function(t,n){var a=(e.max-e.min)/e.scaleSteps,o=e.min+a*n,s=(o-e.min)/(e.max-e.min);i+='<div class="range-scale-step" style="'.concat(r,": ").concat(100*s,'%">').concat(e.formatScaleLabel(o),"</div>"),e.scaleSubSteps&&e.scaleSubSteps>1&&n<e.scaleSteps&&Array.from({length:e.scaleSubSteps-1}).forEach((function(t,n){var s=a/e.scaleSubSteps,l=(o+s*(n+1)-e.min)/(e.max-e.min);i+='<div class="range-scale-step range-scale-substep" style="'.concat(r,": ").concat(100*l,'%"></div>')}))})),i}},{key:"updateScale",value:function(){if(!this.scale||this.scaleSteps<2)return this.$scaleEl&&this.$scaleEl.remove(),void delete this.$scaleEl;this.$scaleEl||(this.$scaleEl=g('<div class="range-scale"></div>'),this.$el.append(this.$scaleEl)),this.$scaleEl.html(this.renderScale())}},{key:"init",value:function(){return this.calcSize(),this.layout(),this.attachEvents(),this}},{key:"destroy",value:function(){var e=this;e.$el.trigger("range:beforedestroy"),e.emit("local::beforeDestroy rangeBeforeDestroy",e),delete e.$el[0].f7Range,e.detachEvents(),j.deleteProps(e),e=null}}]),r}(z),ir={name:"range",create:function(){var e=this;e.range=j.extend(W({defaultSelector:".range-slider",constructor:rr,app:e,domProp:"f7Range"}),{getValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".range-slider",n=e.range.get(t);if(n)return n.getValue()},setValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".range-slider",n=arguments.length>1?arguments[1]:void 0,r=e.range.get(t);if(r)return r.setValue(n)}})},static:{Range:rr},on:{tabMounted:function(e){var t=this;g(e).find(".range-slider-init").each((function(e,n){return new rr(t,{el:n})}))},tabBeforeRemove:function(e){g(e).find(".range-slider-init").each((function(e,t){t.f7Range&&t.f7Range.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".range-slider-init").each((function(e,n){return new rr(t,{el:n})}))},pageBeforeRemove:function(e){e.$el.find(".range-slider-init").each((function(e,t){t.f7Range&&t.f7Range.destroy()}))}},vnode:{"range-slider-init":{insert:function(e){var t=e.elm;this.range.create({el:t})},destroy:function(e){var t=e.elm;t.f7Range&&t.f7Range.destroy()}}}};function ar(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var or=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(ar()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e,t){var i;o()(this,r),i=n.call(this,t,[e]);var a=k()(i),s={el:null,inputEl:null,valueEl:null,value:0,formatValue:null,step:1,min:0,max:100,watchInput:!0,autorepeat:!1,autorepeatDynamic:!1,wraps:!1,manualInputMode:!1,decimalPoint:4,buttonsEndInputMode:!0};a.useModulesParams(s),a.params=j.extend(s,t),a.params.value<a.params.min&&(a.params.value=a.params.min),a.params.value>a.params.max&&(a.params.value=a.params.max);var l=a.params.el;if(!l)return C()(i,a);var c,u,d=g(l);if(0===d.length)return C()(i,a);if(d[0].f7Stepper)return C()(i,d[0].f7Stepper);if(a.params.inputEl?c=g(a.params.inputEl):d.find(".stepper-input-wrap").find("input, textarea").length&&(c=d.find(".stepper-input-wrap").find("input, textarea").eq(0)),c&&c.length){"step min max".split(" ").forEach((function(e){!t[e]&&c.attr(e)&&(a.params[e]=parseFloat(c.attr(e)))}));var h=parseInt(a.params.decimalPoint,10);Number.isNaN(h)?a.params.decimalPoint=0:a.params.decimalPoint=h;var f=parseFloat(c.val());void 0!==t.value||Number.isNaN(f)||!f&&0!==f||(a.params.value=f)}a.params.valueEl?u=g(a.params.valueEl):d.find(".stepper-value").length&&(u=d.find(".stepper-value").eq(0));var p=d.find(".stepper-button-plus"),m=d.find(".stepper-button-minus"),v=a.params,y=v.step,b=v.min,_=v.max,w=v.value,E=v.decimalPoint;j.extend(a,{app:e,$el:d,el:d[0],$buttonPlusEl:p,buttonPlusEl:p[0],$buttonMinusEl:m,buttonMinusEl:m[0],$inputEl:c,inputEl:c?c[0]:void 0,$valueEl:u,valueEl:u?u[0]:void 0,step:y,min:b,max:_,value:w,decimalPoint:E,typeModeChanged:!1}),d[0].f7Stepper=a;var S,T,M,x,$,L={},P=null,O=!1,I=!1;function A(e){S||(I||(g(e.target).closest(p).length?P="increment":g(e.target).closest(m).length&&(P="decrement"),P&&(L.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,L.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,S=!0,T=void 0,function e(t,n,r,i,a,o){clearTimeout($),$=setTimeout((function(){1===t&&(M=!0,O=!0),clearInterval(x),o(),x=setInterval((function(){o()}),a),t<n&&e(t+1,n,r,i,a/2,o)}),1===t?r:i)}(1,a.params.autorepeatDynamic?4:1,500,1e3,300,(function(){a[P]()})))))}function D(e){if(S&&!I){var t="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,n="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY;void 0!==T||O||(T=!!(T||Math.abs(n-L.y)>Math.abs(t-L.x)));var r=Math.pow(Math.pow(t-L.x,2)+Math.pow(n-L.y,2),.5);(T||r>20)&&(S=!1,clearTimeout($),clearInterval(x))}}function N(){clearTimeout($),clearInterval(x),P=null,O=!1,S=!1}function R(){I?a.params.buttonsEndInputMode&&(I=!1,a.endTypeMode(!0)):M?M=!1:a.decrement(!0)}function B(){I?a.params.buttonsEndInputMode&&(I=!1,a.endTypeMode(!0)):M?M=!1:a.increment(!0)}function Y(e){!e.target.readOnly&&a.params.manualInputMode&&(I=!0,"number"==typeof e.target.selectionStart&&(e.target.selectionStart=e.target.value.length,e.target.selectionEnd=e.target.value.length))}function F(e){13!==e.keyCode&&13!==e.which||(e.preventDefault(),I=!1,a.endTypeMode())}function H(){I=!1,a.endTypeMode(!0)}function U(e){I?a.typeValue(e.target.value):e.detail&&e.detail.sentByF7Stepper||a.setValue(e.target.value,!0)}return a.attachEvents=function(){m.on("click",R),p.on("click",B),a.params.watchInput&&c&&c.length&&(c.on("input",U),c.on("click",Y),c.on("blur",H),c.on("keyup",F)),a.params.autorepeat&&(e.on("touchstart:passive",A),e.on("touchmove:active",D),e.on("touchend:passive",N))},a.detachEvents=function(){m.off("click",R),p.off("click",B),a.params.watchInput&&c&&c.length&&(c.off("input",U),c.off("click",Y),c.off("blur",H),c.off("keyup",F))},a.useModules(),a.init(),C()(i,a)}return b()(r,[{key:"minus",value:function(){return this.decrement()}},{key:"plus",value:function(){return this.increment()}},{key:"decrement",value:function(){return this.setValue(this.value-this.step,!1,!0)}},{key:"increment",value:function(){return this.setValue(this.value+this.step,!1,!0)}},{key:"setValue",value:function(e,t,n){var r=this.step,i=this.min,a=this.max,o=this.value,s=Math.round(e/r)*r;if(this.params.wraps&&n?(s>a&&(s=i),s<i&&(s=a)):s=Math.max(Math.min(s,a),i),Number.isNaN(s)&&(s=o),this.value=s,!(o!==s)&&!t)return this;this.$el.trigger("stepper:change",this.value);var l=this.formatValue(this.value);return this.$inputEl&&this.$inputEl.length&&(this.$inputEl.val(l),this.$inputEl.trigger("input change",{sentByF7Stepper:!0})),this.$valueEl&&this.$valueEl.length&&this.$valueEl.html(l),this.emit("local::change stepperChange",this,this.value),this}},{key:"endTypeMode",value:function(e){var t=this.min,n=this.max,r=parseFloat(this.value);if(Number.isNaN(r)&&(r=0),r=Math.max(Math.min(r,n),t),this.value=r,!this.typeModeChanged)return this.$inputEl&&this.$inputEl.length&&!e&&this.$inputEl.blur(),this;this.typeModeChanged=!1,this.$el.trigger("stepper:change",this.value);var i=this.formatValue(this.value);return this.$inputEl&&this.$inputEl.length&&(this.$inputEl.val(i),this.$inputEl.trigger("input change",{sentByF7Stepper:!0}),e||this.$inputEl.blur()),this.$valueEl&&this.$valueEl.length&&this.$valueEl.html(i),this.emit("local::change stepperChange",this,this.value),this}},{key:"typeValue",value:function(e){this.typeModeChanged=!0;var t=String(e);if(t.lastIndexOf(".")+1!==t.length&&t.lastIndexOf(",")+1!==t.length){var n=parseFloat(t.replace(",","."));if(0===n)return this.value=t.replace(",","."),this.$inputEl.val(this.value),this;if(Number.isNaN(n))return this.value=0,this.$inputEl.val(this.value),this;var r=Math.pow(10,this.params.decimalPoint);return n=Math.round(n*r).toFixed(this.params.decimalPoint+1)/r,this.value=parseFloat(String(n).replace(",",".")),this.$inputEl.val(this.value),this}return t.lastIndexOf(".")!==t.indexOf(".")||t.lastIndexOf(",")!==t.indexOf(",")?(t=t.slice(0,-1),this.value=t,this.$inputEl.val(this.value),this):(this.value=t,this.$inputEl.val(t),this)}},{key:"getValue",value:function(){return this.value}},{key:"formatValue",value:function(e){return this.params.formatValue?this.params.formatValue.call(this,e):e}},{key:"init",value:function(){if(this.attachEvents(),this.$valueEl&&this.$valueEl.length){var e=this.formatValue(this.value);this.$valueEl.html(e)}return this}},{key:"destroy",value:function(){var e=this;e.$el.trigger("stepper:beforedestroy"),e.emit("local::beforeDestroy stepperBeforeDestroy",e),delete e.$el[0].f7Stepper,e.detachEvents(),j.deleteProps(e),e=null}}]),r}(z),sr={name:"stepper",create:function(){var e=this;e.stepper=j.extend(W({defaultSelector:".stepper",constructor:or,app:e,domProp:"f7Stepper"}),{getValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".stepper",n=e.stepper.get(t);if(n)return n.getValue()},setValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".stepper",n=arguments.length>1?arguments[1]:void 0,r=e.stepper.get(t);if(r)return r.setValue(n)}})},static:{Stepper:or},on:{tabMounted:function(e){var t=this;g(e).find(".stepper-init").each((function(e,n){var r=g(n).dataset();t.stepper.create(j.extend({el:n},r||{}))}))},tabBeforeRemove:function(e){g(e).find(".stepper-init").each((function(e,t){t.f7Stepper&&t.f7Stepper.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".stepper-init").each((function(e,n){var r=g(n).dataset();t.stepper.create(j.extend({el:n},r||{}))}))},pageBeforeRemove:function(e){e.$el.find(".stepper-init").each((function(e,t){t.f7Stepper&&t.f7Stepper.destroy()}))}},vnode:{"stepper-init":{insert:function(e){var t=e.elm,n=g(t).dataset();this.stepper.create(j.extend({el:t},n||{}))},destroy:function(e){var t=e.elm;t.f7Stepper&&t.f7Stepper.destroy()}}}};function lr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var cr=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(lr()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o()(this,r),t=n.call(this,i,[e]);var a=k()(t),s=j.extend({on:{}},e.params.smartSelect);void 0===s.searchbarDisableButton&&(s.searchbarDisableButton="aurora"!==e.theme),a.useModulesParams(s),a.params=j.extend({},s,i),a.app=e;var l=g(a.params.el).eq(0);if(0===l.length)return C()(t,a);if(l[0].f7SmartSelect)return C()(t,l[0].f7SmartSelect);var c,u=l.find("select").eq(0);if(0===u.length)return C()(t,a);a.params.setValueText&&(0===(c=g(a.params.valueEl)).length&&(c=l.find(".item-after")),0===c.length&&(c=g('<div class="item-after"></div>')).insertAfter(l.find(".item-title")));var d=i.url;d||(l.attr("href")&&"#"!==l.attr("href")?d=l.attr("href"):u.attr("name")&&(d="".concat(u.attr("name").toLowerCase(),"-select/"))),d||(d=a.params.url);var h=u[0].multiple,f=h?"checkbox":"radio",p=j.id();function m(){a.open()}function v(){var e=a.$selectEl.val();a.$el.trigger("smartselect:change",e),a.emit("local::change smartSelectChange",a,e),a.vl&&a.vl.clearCache(),a.setValueText()}function y(){var e,t,n,r=this.value,i=[];if("checkbox"===this.type){for(var o=0;o<a.selectEl.options.length;o+=1)(e=a.selectEl.options[o]).value===r&&(e.selected=this.checked),e.selected&&(t=(n=e.dataset?e.dataset.displayAs:g(e).data("display-value-as"))&&void 0!==n?n:e.textContent,i.push(t.trim()));a.maxLength&&a.checkMaxLength()}else i=[t=(n=(e=a.$selectEl.find('option[value="'.concat(r,'"]'))[0]).dataset?e.dataset.displayAs:g(e).data("display-as"))&&void 0!==n?n:e.textContent],a.selectEl.value=r;a.$selectEl.trigger("change"),a.params.setValueText&&a.$valueEl.text(a.formatValueText(i)),a.params.closeOnSelect&&"radio"===a.inputType&&a.close()}return j.extend(a,{$el:l,el:l[0],$selectEl:u,selectEl:u[0],$valueEl:c,valueEl:c&&c[0],url:d,multiple:h,inputType:f,id:p,inputName:"".concat(f,"-").concat(p),selectName:u.attr("name"),maxLength:u.attr("maxlength")||i.maxLength}),l[0].f7SmartSelect=a,a.attachEvents=function(){l.on("click",m),l.on("change","select",v)},a.detachEvents=function(){l.off("click",m),l.off("change","select",v)},a.attachInputsEvents=function(){a.$containerEl.on("change",'input[type="checkbox"], input[type="radio"]',y)},a.detachInputsEvents=function(){a.$containerEl.off("change",'input[type="checkbox"], input[type="radio"]',y)},a.useModules(),a.init(),C()(t,a)}return b()(r,[{key:"setValue",value:function(e){var t,n,r,i=this,a=e,o=[];if(i.multiple){Array.isArray(a)||(a=[a]);for(var s=0;s<i.selectEl.options.length;s+=1)t=i.selectEl.options[s],a.indexOf(t.value)>=0?t.selected=!0:t.selected=!1,t.selected&&(r=(n=t.dataset?t.dataset.displayAs:g(t).data("display-value-as"))&&void 0!==n?n:t.textContent,o.push(r.trim()))}else(t=i.$selectEl.find('option[value="'.concat(a,'"]'))[0])&&(o=[r=(n=t.dataset?t.dataset.displayAs:g(t).data("display-as"))&&void 0!==n?n:t.textContent]),i.selectEl.value=a;return i.params.setValueText&&i.$valueEl.text(i.formatValueText(o)),i.$selectEl.trigger("change"),i}},{key:"unsetValue",value:function(){var e=this;e.params.setValueText&&e.$valueEl.text(e.formatValueText([])),e.$selectEl.find("option").each((function(e,t){t.selected=!1,t.checked=!1})),e.$selectEl[0].value=null,e.$containerEl&&e.$containerEl.find('input[name="'.concat(e.inputName,'"][type="checkbox"], input[name="').concat(e.inputName,'"][type="radio"]')).prop("checked",!1),e.$selectEl.trigger("change")}},{key:"getValue",value:function(){return this.$selectEl.val()}},{key:"checkMaxLength",value:function(){var e=this.$containerEl;this.selectEl.selectedOptions.length>=this.maxLength?e.find('input[type="checkbox"]').each((function(e,t){t.checked?g(t).parents("li").removeClass("disabled"):g(t).parents("li").addClass("disabled")})):e.find(".disabled").removeClass("disabled")}},{key:"formatValueText",value:function(e){return this.params.formatValueText?this.params.formatValueText.call(this,e,this):e.join(", ")}},{key:"setValueText",value:function(e){var t=[];void 0!==e?t=Array.isArray(e)?e:[e]:this.$selectEl.find("option").each((function(e,n){var r=g(n);if(n.selected){var i=n.dataset?n.dataset.displayAs:r.data("display-value-as");i&&void 0!==i?t.push(i):t.push(n.textContent.trim())}})),this.params.setValueText&&this.$valueEl.text(this.formatValueText(t))}},{key:"getItemsData",value:function(){var e,t=this,n=t.app.theme,r=[];return t.$selectEl.find("option").each((function(i,a){var o=g(a),s=o.dataset(),l=s.optionImage||t.params.optionImage,c=s.optionIcon||t.params.optionIcon,u="ios"===n&&(s.optionIconIos||t.params.optionIconIos),d="md"===n&&(s.optionIconMd||t.params.optionIconMd),h="aurora"===n&&(s.optionIconAurora||t.params.optionIconAurora),f=l||c||u||d||h,p=s.optionColor,m=s.optionClass||"";o[0].disabled&&(m+=" disabled");var v=o.parent("optgroup")[0],y=v&&v.label,b=!1;v&&v!==e&&(b=!0,e=v,r.push({groupLabel:y,isLabel:b})),r.push({value:o[0].value,text:o[0].textContent.trim(),selected:o[0].selected,groupEl:v,groupLabel:y,image:l,icon:c,iconIos:u,iconMd:d,iconAurora:h,color:p,className:m,disabled:o[0].disabled,id:t.id,hasMedia:f,checkbox:"checkbox"===t.inputType,radio:"radio"===t.inputType,inputName:t.inputName,inputType:t.inputType})})),t.items=r,r}},{key:"renderSearchbar",value:function(){var e=this;return e.params.renderSearchbar?e.params.renderSearchbar.call(e):'\n <form class="searchbar">\n <div class="searchbar-inner">\n <div class="searchbar-input-wrap">\n <input type="search" placeholder="'.concat(e.params.searchbarPlaceholder,'"/>\n <i class="searchbar-icon"></i>\n <span class="input-clear-button"></span>\n </div>\n ').concat(e.params.searchbarDisableButton?'\n <span class="searchbar-disable-button">'.concat(e.params.searchbarDisableText,"</span>\n "):"","\n </div>\n </form>\n ")}},{key:"renderItem",value:function(e,t){var n,r=this;if(r.params.renderItem)return r.params.renderItem.call(r,e,t);if(e.isLabel)n='<li class="item-divider">'.concat(e.groupLabel,"</li>");else{var i,a=e.selected;if(r.params.virtualList){var o=r.getValue();a=r.multiple?o.indexOf(e.value)>=0:o===e.value,r.multiple&&(i=r.multiple&&!a&&o.length===parseInt(r.maxLength,10))}var s=e.icon,l=e.iconIos,c=e.iconMd,u=e.iconAurora,d=s||l||c||u,h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.indexOf(":")>=0?e.split(":")[1]:""}(s||l||c||u||""),f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(e.indexOf(":")>=0){var t=e.split(":")[0];return"f7"===t&&(t="f7-icons"),"material"===t&&(t="material-icons"),t}return e}(s||l||c||u||"");n='\n <li class="'.concat(e.className||"").concat(i?" disabled":"",'">\n <label class="item-').concat(e.inputType,' item-content">\n <input type="').concat(e.inputType,'" name="').concat(e.inputName,'" value="').concat(e.value,'" ').concat(a?"checked":"",'/>\n <i class="icon icon-').concat(e.inputType,'"></i>\n ').concat(e.hasMedia?'\n <div class="item-media">\n '.concat(d?'<i class="icon '.concat(f,'">').concat(h,"</i>"):"","\n ").concat(e.image?'<img src="'.concat(e.image,'">'):"","\n </div>\n "):"",'\n <div class="item-inner">\n <div class="item-title').concat(e.color?" text-color-".concat(e.color):"",'">').concat(e.text,"</div>\n </div>\n </label>\n </li>\n ")}return n}},{key:"renderItems",value:function(){var e=this;return e.params.renderItems?e.params.renderItems.call(e,e.items):"\n ".concat(e.items.map((function(t,n){return"".concat(e.renderItem(t,n))})).join(""),"\n ")}},{key:"renderPage",value:function(){var e=this;if(e.params.renderPage)return e.params.renderPage.call(e,e.items);var t=e.params.pageTitle;if(void 0===t){var n=e.$el.find(".item-title");t=n.length?n.text().trim():""}var r=e.params.cssClass;return'\n <div class="page smart-select-page '.concat(r,'" data-name="smart-select-page" data-select-name="').concat(e.selectName,'">\n <div class="navbar ').concat(e.params.navbarColorTheme?"color-".concat(e.params.navbarColorTheme):"",'">\n <div class="navbar-bg"></div>\n <div class="navbar-inner sliding ').concat(e.params.navbarColorTheme?"color-".concat(e.params.navbarColorTheme):"",'">\n <div class="left">\n <a class="link back">\n <i class="icon icon-back"></i>\n <span class="if-not-md">').concat(e.params.pageBackLinkText,"</span>\n </a>\n </div>\n ").concat(t?'<div class="title">'.concat(t,"</div>"):"","\n ").concat(e.params.searchbar?'<div class="subnavbar">'.concat(e.renderSearchbar(),"</div>"):"","\n </div>\n </div>\n ").concat(e.params.searchbar?'<div class="searchbar-backdrop"></div>':"",'\n <div class="page-content">\n <div class="list smart-select-list-').concat(e.id," ").concat(e.params.virtualList?" virtual-list":""," ").concat(e.params.formColorTheme?"color-".concat(e.params.formColorTheme):"",'">\n <ul>').concat(!e.params.virtualList&&e.renderItems(e.items),"</ul>\n </div>\n </div>\n </div>\n ")}},{key:"renderPopup",value:function(){var e=this;if(e.params.renderPopup)return e.params.renderPopup.call(e,e.items);var t=e.params.pageTitle;if(void 0===t){var n=e.$el.find(".item-title");t=n.length?n.text().trim():""}var r=e.params.cssClass||"";return'\n <div class="popup smart-select-popup '.concat(r," ").concat(e.params.popupTabletFullscreen?"popup-tablet-fullscreen":"",'" data-select-name="').concat(e.selectName,'">\n <div class="view">\n <div class="page smart-select-page ').concat(e.params.searchbar?"page-with-subnavbar":"",'" data-name="smart-select-page">\n <div class="navbar ').concat(e.params.navbarColorTheme?"color-".concat(e.params.navbarColorTheme):"",'">\n <div class="navbar-bg"></div>\n <div class="navbar-inner sliding">\n ').concat(t?'<div class="title">'.concat(t,"</div>"):"",'\n <div class="right">\n <a class="link popup-close" data-popup=".smart-select-popup[data-select-name=\'').concat(e.selectName,"']\">").concat(e.params.popupCloseLinkText,"</span></a>\n </div>\n ").concat(e.params.searchbar?'<div class="subnavbar">'.concat(e.renderSearchbar(),"</div>"):"","\n </div>\n </div>\n ").concat(e.params.searchbar?'<div class="searchbar-backdrop"></div>':"",'\n <div class="page-content">\n <div class="list smart-select-list-').concat(e.id," ").concat(e.params.virtualList?" virtual-list":""," ").concat(e.params.formColorTheme?"color-".concat(e.params.formColorTheme):"",'">\n <ul>').concat(!e.params.virtualList&&e.renderItems(e.items),"</ul>\n </div>\n </div>\n </div>\n </div>\n </div>\n ")}},{key:"renderSheet",value:function(){var e=this;if(e.params.renderSheet)return e.params.renderSheet.call(e,e.items);var t=e.params.cssClass;return'\n <div class="sheet-modal smart-select-sheet '.concat(t,'" data-select-name="').concat(e.selectName,'">\n <div class="toolbar toolbar-top ').concat(e.params.toolbarColorTheme?"color-".concat(e.params.toolbarColorTheme):"",'">\n <div class="toolbar-inner">\n <div class="left"></div>\n <div class="right">\n <a class="link sheet-close">').concat(e.params.sheetCloseLinkText,'</a>\n </div>\n </div>\n </div>\n <div class="sheet-modal-inner">\n <div class="page-content">\n <div class="list smart-select-list-').concat(e.id," ").concat(e.params.virtualList?" virtual-list":""," ").concat(e.params.formColorTheme?"color-".concat(e.params.formColorTheme):"",'">\n <ul>').concat(!e.params.virtualList&&e.renderItems(e.items),"</ul>\n </div>\n </div>\n </div>\n </div>\n ")}},{key:"renderPopover",value:function(){var e=this;if(e.params.renderPopover)return e.params.renderPopover.call(e,e.items);var t=e.params.cssClass;return'\n <div class="popover smart-select-popover '.concat(t,'" data-select-name="').concat(e.selectName,'">\n <div class="popover-inner">\n <div class="list smart-select-list-').concat(e.id," ").concat(e.params.virtualList?" virtual-list":""," ").concat(e.params.formColorTheme?"color-".concat(e.params.formColorTheme):"",'">\n <ul>').concat(!e.params.virtualList&&e.renderItems(e.items),"</ul>\n </div>\n </div>\n </div>\n ")}},{key:"scrollToSelectedItem",value:function(){var e=this,t=e.params,n=e.$containerEl;if(!e.opened)return e;if(t.virtualList){var r;e.vl.items.forEach((function(e,t){void 0===r&&e.selected&&(r=t)})),void 0!==r&&e.vl.scrollToItem(r)}else{var i=n.find("input:checked").parents("li");if(!i.length)return e;var a=n.find(".page-content");a.scrollTop(i.offset().top-a.offset().top-parseInt(a.css("padding-top"),10))}return e}},{key:"onOpen",value:function(e,t){var n=this,r=n.app,i=g(t);if(n.$containerEl=i,n.openedIn=e,n.opened=!0,n.params.virtualList&&(n.vl=r.virtualList.create({el:i.find(".virtual-list"),items:n.items,renderItem:n.renderItem.bind(n),height:n.params.virtualListHeight,searchByItem:function(e,t){return!!(t.text&&t.text.toLowerCase().indexOf(e.trim().toLowerCase())>=0)}})),n.params.scrollToSelectedItem&&n.scrollToSelectedItem(),n.params.searchbar){var a=i.find(".searchbar");if("page"===e&&"ios"===r.theme&&(a=g(r.navbar.getElByPage(i)).find(".searchbar")),n.params.appendSearchbarNotFound&&("page"===e||"popup"===e)){var o=null;(o="string"==typeof n.params.appendSearchbarNotFound?g('<div class="block searchbar-not-found">'.concat(n.params.appendSearchbarNotFound,"</div>")):"boolean"==typeof n.params.appendSearchbarNotFound?g('<div class="block searchbar-not-found">Nothing found</div>'):n.params.appendSearchbarNotFound)&&i.find(".page-content").append(o[0])}var s=j.extend({el:a,backdropEl:i.find(".searchbar-backdrop"),searchContainer:".smart-select-list-".concat(n.id),searchIn:".item-title"},"object"===O()(n.params.searchbar)?n.params.searchbar:{});n.searchbar=r.searchbar.create(s)}n.maxLength&&n.checkMaxLength(),n.params.closeOnSelect&&n.$containerEl.find('input[type="radio"][name="'.concat(n.inputName,'"]:checked')).parents("label").once("click",(function(){n.close()})),n.attachInputsEvents(),n.$el.trigger("smartselect:open"),n.emit("local::open smartSelectOpen",n)}},{key:"onOpened",value:function(){this.$el.trigger("smartselect:opened"),this.emit("local::opened smartSelectOpened",this)}},{key:"onClose",value:function(){var e=this;e.destroyed||(e.vl&&e.vl.destroy&&(e.vl.destroy(),e.vl=null,delete e.vl),e.searchbar&&e.searchbar.destroy&&(e.searchbar.destroy(),e.searchbar=null,delete e.searchbar),e.detachInputsEvents(),e.$el.trigger("smartselect:close"),e.emit("local::close smartSelectClose",e))}},{key:"onClosed",value:function(){var e=this;e.destroyed||(e.opened=!1,e.$containerEl=null,delete e.$containerEl,e.$el.trigger("smartselect:closed"),e.emit("local::closed smartSelectClosed",e))}},{key:"openPage",value:function(){var e=this;if(e.opened)return e;e.getItemsData();var t=e.renderPage(e.items);return e.view.router.navigate({url:e.url,route:{content:t,path:e.url,on:{pageBeforeIn:function(t,n){e.onOpen("page",n.el)},pageAfterIn:function(t,n){e.onOpened("page",n.el)},pageBeforeOut:function(t,n){e.onClose("page",n.el)},pageAfterOut:function(t,n){e.onClosed("page",n.el)}}}}),e}},{key:"openPopup",value:function(){var e=this;if(e.opened)return e;e.getItemsData();var t={content:e.renderPopup(e.items),push:e.params.popupPush,swipeToClose:e.params.popupSwipeToClose,on:{popupOpen:function(t){e.onOpen("popup",t.el)},popupOpened:function(t){e.onOpened("popup",t.el)},popupClose:function(t){e.onClose("popup",t.el)},popupClosed:function(t){e.onClosed("popup",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:t}}):e.modal=e.app.popup.create(t).open(),e}},{key:"openSheet",value:function(){var e=this;if(e.opened)return e;e.getItemsData();var t={content:e.renderSheet(e.items),backdrop:!1,scrollToEl:e.$el,closeByOutsideClick:!0,push:e.params.sheetPush,swipeToClose:e.params.sheetSwipeToClose,on:{sheetOpen:function(t){e.onOpen("sheet",t.el)},sheetOpened:function(t){e.onOpened("sheet",t.el)},sheetClose:function(t){e.onClose("sheet",t.el)},sheetClosed:function(t){e.onClosed("sheet",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,sheet:t}}):e.modal=e.app.sheet.create(t).open(),e}},{key:"openPopover",value:function(){var e=this;if(e.opened)return e;e.getItemsData();var t={content:e.renderPopover(e.items),targetEl:e.$el,on:{popoverOpen:function(t){e.onOpen("popover",t.el)},popoverOpened:function(t){e.onOpened("popover",t.el)},popoverClose:function(t){e.onClose("popover",t.el)},popoverClosed:function(t){e.onClosed("popover",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popover:t}}):e.modal=e.app.popover.create(t).open(),e}},{key:"open",value:function(e){var t=this;if(t.opened)return t;var n=!1;function r(){n=!0}if(t.$el&&t.$el.trigger("smartselect:beforeopen",{prevent:r}),t.emit("local::beforeOpen smartSelectBeforeOpen",t,r),n)return t;var i=e||t.params.openIn;return t["open".concat(i.split("").map((function(e,t){return 0===t?e.toUpperCase():e})).join(""))](),t}},{key:"close",value:function(){var e=this;return e.opened?(e.params.routableModals&&e.view||"page"===e.openedIn?e.view.router.back():(e.modal.once("modalClosed",(function(){j.nextTick((function(){e.destroyed||(e.modal.destroy(),delete e.modal)}))})),e.modal.close()),e):e}},{key:"init",value:function(){this.attachEvents(),this.setValueText()}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy smartSelectBeforeDestroy",e),e.$el.trigger("smartselect:beforedestroy"),e.detachEvents(),delete e.$el[0].f7SmartSelect,j.deleteProps(e),e.destroyed=!0}},{key:"view",get:function(){var e,t=this.params,n=this.$el;if(t.view&&(e=t.view),e||(e=n.parents(".view").length&&n.parents(".view")[0].f7View),!e&&"page"===t.openIn)throw Error("Smart Select requires initialized View");return e}}]),r}(z),ur={name:"smartSelect",params:{smartSelect:{el:void 0,valueEl:void 0,setValueText:!0,formatValueText:null,openIn:"page",popupPush:!1,popupSwipeToClose:void 0,sheetPush:!1,sheetSwipeToClose:void 0,pageTitle:void 0,pageBackLinkText:"Back",popupCloseLinkText:"Close",popupTabletFullscreen:!1,sheetCloseLinkText:"Done",searchbar:!1,searchbarPlaceholder:"Search",searchbarDisableText:"Cancel",searchbarDisableButton:void 0,closeOnSelect:!1,virtualList:!1,virtualListHeight:void 0,scrollToSelectedItem:!1,formColorTheme:void 0,navbarColorTheme:void 0,routableModals:!0,url:"select/",cssClass:"",renderPage:void 0,renderPopup:void 0,renderSheet:void 0,renderPopover:void 0,renderItems:void 0,renderItem:void 0,renderSearchbar:void 0}},static:{SmartSelect:cr},create:function(){var e=this;e.smartSelect=j.extend(W({defaultSelector:".smart-select",constructor:cr,app:e,domProp:"f7SmartSelect"}),{open:function(t){var n=e.smartSelect.get(t);if(n&&n.open)return n.open()},close:function(t){var n=e.smartSelect.get(t);if(n&&n.close)return n.close()}})},on:{tabMounted:function(e){var t=this;g(e).find(".smart-select-init").each((function(e,n){t.smartSelect.create(j.extend({el:n},g(n).dataset()))}))},tabBeforeRemove:function(e){g(e).find(".smart-select-init").each((function(e,t){t.f7SmartSelect&&t.f7SmartSelect.destroy&&t.f7SmartSelect.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".smart-select-init").each((function(e,n){t.smartSelect.create(j.extend({el:n},g(n).dataset()))}))},pageBeforeRemove:function(e){e.$el.find(".smart-select-init").each((function(e,t){t.f7SmartSelect&&t.f7SmartSelect.destroy&&t.f7SmartSelect.destroy()}))}},clicks:{".smart-select":function(e,t){e[0].f7SmartSelect||this.smartSelect.create(j.extend({el:e},t)).open()}},vnode:{"smart-select-init":{insert:function(e){var t=e.elm;this.smartSelect.create(j.extend({el:t},g(t).dataset()))},destroy:function(e){var t=e.elm;t.f7SmartSelect&&t.f7SmartSelect.destroy&&t.f7SmartSelect.destroy()}}}};function dr(e,t){var n=t.css("min-".concat(e));return"auto"===n||"none"===n?n=0:n.indexOf("px")>=0?n=parseFloat(n):n.indexOf("%")>=0&&(n=t.parent()[0]["height"===e?"offsetHeight":"offsetWidth"]*parseFloat(n)/100),n}function hr(e,t){var n=t.css("max-".concat(e));return"auto"===n||"none"===n?n=null:n.indexOf("px")>=0?n=parseFloat(n):n.indexOf("%")>=0&&(n=t.parent()[0]["height"===e?"offsetHeight":"offsetWidth"]*parseFloat(n)/100),n}var fr={init:function(){var e,t,n,r,i,a,o,s,l,c,u,d,h,f,p,m,v,y=this;g(document).on(y.touchEvents.start,".col > .resize-handler, .row > .resize-handler",(function(s){e||t||(i=g(s.target).closest(".resize-handler"),n="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,r="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY,e=!0,a=void 0,o=void 0,v=void 0)})),y.on("touchmove",(function(g){if(e){var b=1===i.parent(".row").length,_=b?"height":"width",w=b?"offsetHeight":"offsetWidth";t||(!(a=i.parent(b?".row":".col")).length||a.hasClass("resizable")&&!a.hasClass("resizable-fixed")||(a=a.prevAll(".resizable:not(.resizable-fixed)").eq(0)),!(o=a.next(b?".row":".col")).length||o.hasClass("resizable")&&!o.hasClass("resizable-fixed")||(o=o.nextAll(".resizable:not(.resizable-fixed)").eq(0)),a.length&&(s=a[0][w],l=dr(_,a),c=hr(_,a),f=a.parent()[0][w],p=a.parent().children(b?".row":'[class*="col-"], .col').length,m=parseFloat(a.css(b?"--f7-grid-row-gap":"--f7-grid-gap"))),o.length&&(u=o[0][w],d=dr(_,o),h=hr(_,o),a.length||(f=o.parent()[0][w],p=o.parent().children(b?".row":'[class*="col-"], .col').length,m=parseFloat(o.css(b?"--f7-grid-row-gap":"--f7-grid-gap"))))),t=!0;var k="touchmove"===g.type?g.targetTouches[0].pageX:g.pageX,E="touchmove"===g.type?g.targetTouches[0].pageY:g.pageY;if(void 0!==v||b||(v=!!(v||Math.abs(E-r)>Math.abs(k-n))),v)return e=!1,void(t=!1);var S=a.hasClass("resizable-absolute")||o.hasClass("resizable-absolute"),T=!b||b&&!S;if(T&&!o.length||!a.length)return e=!1,void(t=!1);g.preventDefault();var C,M,x=b?E-r:k-n;if(a.length&&((C=s+x)<l&&(x=(C=l)-s),c&&C>c&&(x=(C=c)-s)),o.length&&T&&((M=u-x)<d&&(C=s+(x=u-(M=d))),h&&M>h&&(C=s+(x=u-(M=h)))),S)return a[0].style[_]="".concat(C,"px"),T&&(o[0].style[_]="".concat(M,"px")),a.trigger("grid:resize"),o.trigger("grid:resize"),y.emit("gridResize",a[0]),void y.emit("gridResize",o[0]);var $=(p-1)*m/p,L=b?"".concat(p-1," * var(--f7-grid-row-gap) / ").concat(p):"(var(--f7-cols-per-row) - 1) * var(--f7-grid-gap) / var(--f7-cols-per-row)",P=C+$,O=M+$;a[0].style[_]="calc(".concat(P/f*100,"% - ").concat(L,")"),o[0].style[_]="calc(".concat(O/f*100,"% - ").concat(L,")"),a.trigger("grid:resize"),o.trigger("grid:resize"),y.emit("gridResize",a[0]),y.emit("gridResize",o[0])}})),y.on("touchend",(function(){e&&(t||(e=!1),e=!1,t=!1)}))}},pr={name:"grid",create:function(){j.extend(this,{grid:{init:fr.init.bind(this)}})},on:{init:function(){this.grid.init()}}},mr=n(38),vr=n.n(mr);function gr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var yr=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(gr()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o()(this,r),t=n.call(this,i,[e]);var a,s,l=k()(t);if(l.params=j.extend({},e.params.calendar,i),l.params.containerEl&&0===(a=g(l.params.containerEl)).length)return C()(t,l);l.params.inputEl&&(s=g(l.params.inputEl));var c="horizontal"===l.params.direction,u=1;c&&(u=e.rtl?-1:1),j.extend(l,{app:e,$containerEl:a,containerEl:a&&a[0],inline:a&&a.length>0,$inputEl:s,inputEl:s&&s[0],initialized:!1,opened:!1,url:l.params.url,isHorizontal:c,inverter:u,animating:!1,hasTimePicker:l.params.timePicker&&!l.params.rangePicker&&!l.params.multiple}),l.dayFormatter=new Intl.DateTimeFormat(l.params.locale,{day:"numeric"}),l.monthFormatter=new Intl.DateTimeFormat(l.params.locale,{month:"long"}),l.yearFormatter=new Intl.DateTimeFormat(l.params.locale,{year:"numeric"}),l.timeSelectorFormatter=new Intl.DateTimeFormat(l.params.locale,l.params.timePickerFormat);var d=l.params,h=d.monthNames,f=d.monthNamesShort,p=d.dayNames,m=d.dayNamesShort,v=l.getIntlNames(),y=v.monthNamesIntl,b=v.monthNamesShortIntl,_=v.dayNamesIntl,w=v.dayNamesShortIntl;function E(){l.open()}function S(e){e.preventDefault()}function T(){l.setValue([]),l.opened&&l.update()}function M(e){var t=g(e.target);!l.destroyed&&l.params&&(l.isPopover()||l.opened&&!l.closing&&(t.closest('[class*="backdrop"]').length||(s&&s.length>0?t[0]!==s[0]&&0===t.closest(".sheet-modal, .calendar-modal").length&&l.close():0===g(e.target).closest(".sheet-modal, .calendar-modal").length&&l.close())))}return"auto"===h&&(h=y),"auto"===f&&(f=b),"auto"===p&&(p=_),"auto"===m&&(m=w),j.extend(l,{monthNames:h,monthNamesShort:f,dayNames:p,dayNamesShort:m}),j.extend(l,{attachInputEvents:function(){l.$inputEl.on("click",E),l.$inputEl.on("input:clear",T),l.params.inputReadOnly&&l.$inputEl.on("focus mousedown",S)},detachInputEvents:function(){l.$inputEl.off("click",E),l.$inputEl.off("input:clear",T),l.params.inputReadOnly&&l.$inputEl.off("focus mousedown",S)},attachHtmlEvents:function(){e.on("click",M)},detachHtmlEvents:function(){e.off("click",M)}}),l.attachCalendarEvents=function(){var t,n,r,i,a,o,s,c,u,d,h,f,p,m=!0,v=l.$el,y=l.$wrapperEl;function b(e){n||t||(t=!0,r="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,a=r,i="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,o=i,s=(new Date).getTime(),h=0,m=!0,p=void 0,c=l.monthsTranslate)}function _(e){if(t){var s=l.isHorizontal;a="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,o="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,void 0===p&&(p=!!(p||Math.abs(o-i)>Math.abs(a-r))),s&&p?t=!1:(e.preventDefault(),l.animating?t=!1:(m=!1,n||(n=!0,u=y[0].offsetWidth,d=y[0].offsetHeight,y.transition(0)),h=(f=s?a-r:o-i)/(s?u:d),c=100*(l.monthsTranslate*l.inverter+h),y.transform("translate3d(".concat(s?c:0,"%, ").concat(s?0:c,"%, 0)"))))}}function w(){if(!t||!n)return t=!1,void(n=!1);t=!1,n=!1,(new Date).getTime()-s<300?Math.abs(f)<10?l.resetMonth():f>=10?e.rtl?l.nextMonth():l.prevMonth():e.rtl?l.prevMonth():l.nextMonth():h<=-.5?e.rtl?l.prevMonth():l.nextMonth():h>=.5?e.rtl?l.nextMonth():l.prevMonth():l.resetMonth(),setTimeout((function(){m=!0}),100)}function k(e){if(m){var t=g(e.target).parents(".calendar-day");if(0===t.length&&g(e.target).hasClass("calendar-day")&&(t=g(e.target)),0!==t.length&&!t.hasClass("calendar-day-disabled")){l.params.rangePicker||(t.hasClass("calendar-day-next")&&l.nextMonth(),t.hasClass("calendar-day-prev")&&l.prevMonth());var n=parseInt(t.attr("data-year"),10),r=parseInt(t.attr("data-month"),10),i=parseInt(t.attr("data-day"),10);if(l.emit("local::dayClick calendarDayClick",l,t[0],n,r,i),!t.hasClass("calendar-day-selected")||l.params.multiple||l.params.rangePicker){var a=new Date(n,r,i,0,0,0);l.hasTimePicker&&(l.value&&l.value[0]?a.setHours(l.value[0].getHours(),l.value[0].getMinutes()):a.setHours((new Date).getHours(),(new Date).getMinutes())),l.addValue(a)}l.params.closeOnSelect&&(l.params.rangePicker&&2===l.value.length||!l.params.rangePicker)&&l.close()}}}function E(){l.nextMonth()}function S(){l.prevMonth()}function T(){l.nextYear()}function C(){l.prevYear()}function M(){v.append(l.renderMonthPicker())}function x(){var e=g(this);if(e.hasClass("calendar-month-picker-item-current"))v.find(".calendar-month-picker").remove();else{v.find(".calendar-month-picker-item-current").add(e).toggleClass("calendar-month-picker-item-current");var t=e.index()-(parseInt(l.$el.find(".calendar-month-current").attr("data-locale-month"),10)-l.currentMonth);l.setYearMonth(l.currentYear,t,0),setTimeout((function(){v.find(".calendar-month-picker").remove()}),200)}}function $(){v.append(l.renderYearPicker());var e=v.find(".calendar-year-picker-item-current"),t=v.find(".calendar-year-picker");e&&e.length&&t.scrollTop(e[0].offsetTop-t[0].offsetHeight/2+e[0].offsetHeight/2)}function L(){var e=g(this);if(e.hasClass("calendar-year-picker-item-current"))v.find(".calendar-year-picker").remove();else{v.find(".calendar-year-picker-item-current").add(e).toggleClass("calendar-year-picker-item-current");var t=parseInt(e.attr("data-year"),10);l.setYearMonth(t,void 0,0),setTimeout((function(){v.find(".calendar-year-picker").remove()}),200)}}function P(){l.openTimePicker()}function O(){l.closeTimePicker()}var I=!("touchstart"!==e.touchEvents.start||!e.support.passiveListener)&&{passive:!0,capture:!1};v.find(".calendar-prev-month-button").on("click",S),v.find(".calendar-next-month-button").on("click",E),v.find(".calendar-prev-year-button").on("click",C),v.find(".calendar-next-year-button").on("click",T),l.params.monthPicker&&(v.find(".current-month-value").on("click",M),v.on("click",".calendar-month-picker-item",x)),l.params.yearPicker&&(v.find(".current-year-value").on("click",$),v.on("click",".calendar-year-picker-item",L)),l.hasTimePicker&&(v.find(".calendar-time-selector a").on("click",P),v.on("click",".calendar-time-picker-close",O)),y.on("click",k),l.params.touchMove&&(y.on(e.touchEvents.start,b,I),e.on("touchmove:active",_),e.on("touchend:passive",w)),l.detachCalendarEvents=function(){v.find(".calendar-prev-month-button").off("click",S),v.find(".calendar-next-month-button").off("click",E),v.find(".calendar-prev-year-button").off("click",C),v.find(".calendar-next-year-button").off("click",T),l.params.monthPicker&&(v.find(".current-month-value").off("click",M),v.off("click",".calendar-month-picker-item",x)),l.params.yearPicker&&(v.find(".current-year-value").off("click",$),v.off("click",".calendar-year-picker-item",L)),l.hasTimePicker&&(v.find(".calendar-time-selector a").off("click",P),v.off("click",".calendar-time-picker-close",O)),y.off("click",k),l.params.touchMove&&(y.off(e.touchEvents.start,b,I),e.off("touchmove:active",_),e.off("touchend:passive",w))}},l.init(),C()(t,l)}return b()(r,[{key:"getIntlNames",value:function(){for(var e,t,n,r=this.params.locale,i=[],a=[],o=[],s=[],l=new Intl.DateTimeFormat(r,{month:"long"}),c=new Intl.DateTimeFormat(r,{month:"short"}),u=new Intl.DateTimeFormat(r,{weekday:"long"}),d=new Intl.DateTimeFormat(r,{weekday:"short"}),h=0;h<24;h+=1){var f=(new Date).setMonth(h,1),p=this.yearFormatter.format(f);e&&p!==e&&(t&&(n=!0),t=!0,e=p),e||(e=p),t&&e===p&&!n&&(i.push(l.format(f)),a.push(c.format(f)))}for(var m=(new Date).getDay(),v=0;v<7;v+=1){var g=(new Date).getTime()+24*(v-m)*60*60*1e3;o.push(u.format(g)),s.push(d.format(g))}return{monthNamesIntl:i,monthNamesShortIntl:a,dayNamesIntl:o,dayNamesShortIntl:s}}},{key:"normalizeDate",value:function(e){var t=new Date(e);return this.hasTimePicker?new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes()):new Date(t.getFullYear(),t.getMonth(),t.getDate())}},{key:"normalizeValues",value:function(e){var t=this,n=[];return e&&Array.isArray(e)&&(n=e.map((function(e){return t.normalizeDate(e)}))),n}},{key:"initInput",value:function(){this.$inputEl&&this.params.inputReadOnly&&this.$inputEl.prop("readOnly",!0)}},{key:"isPopover",value:function(){var e=this.app,t=this.modal,n=this.params;if("sheet"===n.openIn)return!1;if(t&&"popover"!==t.type)return!1;if(!this.inline&&this.inputEl){if("popover"===n.openIn)return!0;if(e.device.ios)return!!e.device.ipad;if(e.width>=768)return!0;if(e.device.desktop&&"aurora"===e.theme)return!0}return!1}},{key:"formatDate",value:function(e){var t=new Date(e),n=t.getFullYear(),r=t.getMonth(),i=r+1,a=t.getDate(),o=t.getDay(),s=this.monthNames,l=this.monthNamesShort,c=this.dayNames,u=this.dayNamesShort,d=this.params,h=d.dateFormat,f=d.locale;function p(e){return e<10?"0".concat(e):e}if("string"==typeof h){var m={yyyy:n,yy:String(n).substring(2),mm:p(i),m:i,MM:s[r],M:l[r],dd:p(a),d:a,DD:c[o],D:u[o]};if(this.params.timePicker){var v=t.getHours(),g=t.getMinutes(),y=t.getSeconds(),b=v;v>12&&(b=v-12),0===v&&(b=12);var _=v>=12&&0!==v?"pm":"am";Object.assign(m,{HH:p(v),H:v,hh:p(b),h:b,ss:p(y),s:y,":mm":p(g),":m":g,a:_,A:_.toUpperCase()})}var w=new RegExp(Object.keys(m).map((function(e){return"(".concat(e,")")})).join("|"),"g");return h.replace(w,(function(e){return e in m?m[e]:e}))}return"function"==typeof h?h(t):new Intl.DateTimeFormat(f,h).format(t)}},{key:"formatValue",value:function(){var e=this,t=e.value;return e.params.formatValue?e.params.formatValue.call(e,t):t.map((function(t){return e.formatDate(t)})).join(e.params.rangePicker?" - ":", ")}},{key:"addValue",value:function(e){var t=this.params,n=t.multiple,r=t.rangePicker,i=t.rangePickerMinDays,a=t.rangePickerMaxDays;if(n){var o;this.value||(this.value=[]);for(var s=0;s<this.value.length;s+=1)new Date(e).getTime()===new Date(this.value[s]).getTime()&&(o=s);void 0===o?this.value.push(e):this.value.splice(o,1),this.updateValue()}else r?(this.value||(this.value=[]),2!==this.value.length&&0!==this.value.length||(this.value=[]),0===this.value.length||Math.abs(this.value[0].getTime()-e.getTime())>=60*(i-1)*60*24*1e3&&(0===a||Math.abs(this.value[0].getTime()-e.getTime())<=60*(a-1)*60*24*1e3)?this.value.push(e):this.value=[],this.value.sort((function(e,t){return e-t})),this.updateValue()):(this.value=[e],this.updateValue())}},{key:"setValue",value:function(e){var t=this.value;if(Array.isArray(t)&&Array.isArray(e)&&t.length===e.length){var n=!0;if(t.forEach((function(t,r){t!==e[r]&&(n=!1)})),n)return}this.value=e,this.updateValue()}},{key:"getValue",value:function(){return this.value}},{key:"updateValue",value:function(e){var t,n,r=this.$el,i=this.$wrapperEl,a=this.$inputEl,o=this.value,s=this.params;if(r&&r.length>0)if(i.find(".calendar-day-selected").removeClass("calendar-day-selected"),s.rangePicker&&2===o.length)for(t=new Date(o[0]).getTime();t<=new Date(o[1]).getTime();t+=864e5)n=new Date(t),i.find('.calendar-day[data-date="'.concat(n.getFullYear(),"-").concat(n.getMonth(),"-").concat(n.getDate(),'"]')).addClass("calendar-day-selected");else for(t=0;t<this.value.length;t+=1)n=new Date(o[t]),i.find('.calendar-day[data-date="'.concat(n.getFullYear(),"-").concat(n.getMonth(),"-").concat(n.getDate(),'"]')).addClass("calendar-day-selected");if(e||this.emit("local::change calendarChange",this,o),r&&r.length>0&&this.hasTimePicker&&r.find(".calendar-time-selector a").text(o&&o.length?this.timeSelectorFormatter.format(o[0]):this.params.timePickerPlaceholder),a&&a.length||s.header){var l=this.formatValue(o);s.header&&r&&r.length&&r.find(".calendar-selected-date").text(l),a&&a.length&&!e&&(a.val(l),a.trigger("change"))}}},{key:"updateCurrentMonthYear",value:function(e){var t,n,r=this.$months,i=this.$el,a=this.monthNames;void 0===e?(this.currentMonth=parseInt(r.eq(1).attr("data-month"),10),this.currentYear=parseInt(r.eq(1).attr("data-year"),10),t=r.eq(1).attr("data-locale-month"),n=r.eq(1).attr("data-locale-year")):(this.currentMonth=parseInt(r.eq("next"===e?r.length-1:0).attr("data-month"),10),this.currentYear=parseInt(r.eq("next"===e?r.length-1:0).attr("data-year"),10),t=r.eq("next"===e?r.length-1:0).attr("data-locale-month"),n=r.eq("next"===e?r.length-1:0).attr("data-locale-year")),i.find(".current-month-value").text(a[t]),i.find(".current-year-value").text(n)}},{key:"update",value:function(){var e=this,t=e.currentYear,n=e.currentMonth,r=e.$wrapperEl,i=new Date(t,n),a=e.renderMonth(i,"prev"),o=e.renderMonth(i),s=e.renderMonth(i,"next");r.transition(0).html("".concat(a).concat(o).concat(s)).transform("translate3d(0,0,0)"),e.$months=r.find(".calendar-month"),e.monthsTranslate=0,e.setMonthsTranslate(),e.$months.each((function(t,n){e.emit("local::monthAdd calendarMonthAdd",n)}))}},{key:"onMonthChangeStart",value:function(e){var t=this.$months,n=this.currentYear,r=this.currentMonth;this.updateCurrentMonthYear(e),t.removeClass("calendar-month-current calendar-month-prev calendar-month-next");var i="next"===e?t.length-1:0;t.eq(i).addClass("calendar-month-current"),t.eq("next"===e?i-1:i+1).addClass("next"===e?"calendar-month-prev":"calendar-month-next"),this.emit("local::monthYearChangeStart calendarMonthYearChangeStart",this,n,r)}},{key:"onMonthChangeEnd",value:function(e,t){var n,r,i,a=this.currentYear,o=this.currentMonth,s=this.$wrapperEl,l=this.monthsTranslate;this.animating=!1,s.find(".calendar-month:not(.calendar-month-prev):not(.calendar-month-current):not(.calendar-month-next)").remove(),void 0===e&&(e="next",t=!0),t?(s.find(".calendar-month-next, .calendar-month-prev").remove(),r=this.renderMonth(new Date(a,o),"prev"),n=this.renderMonth(new Date(a,o),"next")):i=this.renderMonth(new Date(a,o),e),("next"===e||t)&&s.append(i||n),("prev"===e||t)&&s.prepend(i||r);var c=s.find(".calendar-month");this.$months=c,this.setMonthsTranslate(l),this.emit("local::monthAdd calendarMonthAdd",this,"next"===e?c.eq(c.length-1)[0]:c.eq(0)[0]),this.emit("local::monthYearChangeEnd calendarMonthYearChangeEnd",this,a,o)}},{key:"setMonthsTranslate",value:function(e){var t=this.$months,n=this.isHorizontal,r=this.inverter;e=e||this.monthsTranslate||0,void 0===this.monthsTranslate&&(this.monthsTranslate=e),t.removeClass("calendar-month-current calendar-month-prev calendar-month-next");var i=100*-(e+1)*r,a=100*-e*r,o=100*-(e-1)*r;t.eq(0).transform("translate3d(".concat(n?i:0,"%, ").concat(n?0:i,"%, 0)")).addClass("calendar-month-prev"),t.eq(1).transform("translate3d(".concat(n?a:0,"%, ").concat(n?0:a,"%, 0)")).addClass("calendar-month-current"),t.eq(2).transform("translate3d(".concat(n?o:0,"%, ").concat(n?0:o,"%, 0)")).addClass("calendar-month-next")}},{key:"nextMonth",value:function(e){var t=this,n=t.params,r=t.$wrapperEl,i=t.inverter,a=t.isHorizontal;void 0!==e&&"object"!==O()(e)||(e="",n.animate||(e=0));var o=parseInt(t.$months.eq(t.$months.length-1).attr("data-month"),10),s=parseInt(t.$months.eq(t.$months.length-1).attr("data-year"),10),l=new Date(s,o).getTime(),c=!t.animating;if(n.maxDate&&l>new Date(n.maxDate).getTime())t.resetMonth();else{if(t.monthsTranslate-=1,o===t.currentMonth){var u=100*-t.monthsTranslate*i,d=g(t.renderMonth(l,"next")).transform("translate3d(".concat(a?u:0,"%, ").concat(a?0:u,"%, 0)")).addClass("calendar-month-next");r.append(d[0]),t.$months=r.find(".calendar-month"),t.emit("local::monthAdd calendarMonthAdd",t.$months.eq(t.$months.length-1)[0])}t.animating=!0,t.onMonthChangeStart("next");var h=100*t.monthsTranslate*i;r.transition(e).transform("translate3d(".concat(a?h:0,"%, ").concat(a?0:h,"%, 0)")),c&&r.transitionEnd((function(){t.onMonthChangeEnd("next")})),n.animate||t.onMonthChangeEnd("next")}}},{key:"prevMonth",value:function(e){var t=this,n=t.params,r=t.$wrapperEl,i=t.inverter,a=t.isHorizontal;void 0!==e&&"object"!==O()(e)||(e="",n.animate||(e=0));var o=parseInt(t.$months.eq(0).attr("data-month"),10),s=parseInt(t.$months.eq(0).attr("data-year"),10),l=new Date(s,o+1,-1).getTime(),c=!t.animating;if(n.minDate){var u=new Date(n.minDate);if(l<(u=new Date(u.getFullYear(),u.getMonth(),1)).getTime())return void t.resetMonth()}if(t.monthsTranslate+=1,o===t.currentMonth){var d=100*-t.monthsTranslate*i,h=g(t.renderMonth(l,"prev")).transform("translate3d(".concat(a?d:0,"%, ").concat(a?0:d,"%, 0)")).addClass("calendar-month-prev");r.prepend(h[0]),t.$months=r.find(".calendar-month"),t.emit("local::monthAdd calendarMonthAdd",t.$months.eq(0)[0])}t.animating=!0,t.onMonthChangeStart("prev");var f=100*t.monthsTranslate*i;r.transition(e).transform("translate3d(".concat(a?f:0,"%, ").concat(a?0:f,"%, 0)")),c&&r.transitionEnd((function(){t.onMonthChangeEnd("prev")})),n.animate||t.onMonthChangeEnd("prev")}},{key:"resetMonth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this,n=t.$wrapperEl,r=t.inverter,i=t.isHorizontal,a=t.monthsTranslate,o=100*a*r;n.transition(e).transform("translate3d(".concat(i?o:0,"%, ").concat(i?0:o,"%, 0)"))}},{key:"setYearMonth",value:function(e,t,n){var r,i=this,a=i.params,o=i.isHorizontal,s=i.$wrapperEl,l=i.inverter;if(void 0===e&&(e=i.currentYear),void 0===t&&(t=i.currentMonth),void 0!==n&&"object"!==O()(n)||(n="",a.animate||(n=0)),r=e<i.currentYear?new Date(e,t+1,-1).getTime():new Date(e,t).getTime(),a.maxDate&&r>new Date(a.maxDate).getTime())return!1;if(a.minDate){var c=new Date(a.minDate);if(r<(c=new Date(c.getFullYear(),c.getMonth(),1)).getTime())return!1}var u=new Date(i.currentYear,i.currentMonth).getTime(),d=r>u?"next":"prev",h=i.renderMonth(new Date(e,t));i.monthsTranslate=i.monthsTranslate||0;var f,p=i.monthsTranslate,m=!i.animating&&0!==n;r>u?(i.monthsTranslate-=1,i.animating||i.$months.eq(i.$months.length-1).remove(),s.append(h),i.$months=s.find(".calendar-month"),f=100*-(p-1)*l,i.$months.eq(i.$months.length-1).transform("translate3d(".concat(o?f:0,"%, ").concat(o?0:f,"%, 0)")).addClass("calendar-month-next")):(i.monthsTranslate+=1,i.animating||i.$months.eq(0).remove(),s.prepend(h),i.$months=s.find(".calendar-month"),f=100*-(p+1)*l,i.$months.eq(0).transform("translate3d(".concat(o?f:0,"%, ").concat(o?0:f,"%, 0)")).addClass("calendar-month-prev")),i.emit("local::monthAdd calendarMonthAdd","next"===d?i.$months.eq(i.$months.length-1)[0]:i.$months.eq(0)[0]),i.animating=!0,i.onMonthChangeStart(d);var v=100*i.monthsTranslate*l;s.transition(n).transform("translate3d(".concat(o?v:0,"%, ").concat(o?0:v,"%, 0)")),m&&s.transitionEnd((function(){i.onMonthChangeEnd(d,!0)})),a.animate&&0!==n||i.onMonthChangeEnd(d,!0)}},{key:"nextYear",value:function(){this.setYearMonth(this.currentYear+1)}},{key:"prevYear",value:function(){this.setYearMonth(this.currentYear-1)}},{key:"dateInRange",value:function(e,t){var n,r=!1;if(!t)return!1;if(Array.isArray(t))for(n=0;n<t.length;n+=1)t[n].from||t[n].to?t[n].from&&t[n].to?e<=new Date(t[n].to).getTime()&&e>=new Date(t[n].from).getTime()&&(r=!0):t[n].from?e>=new Date(t[n].from).getTime()&&(r=!0):t[n].to&&e<=new Date(t[n].to).getTime()&&(r=!0):t[n].date?e===new Date(t[n].date).getTime()&&(r=!0):e===new Date(t[n]).getTime()&&(r=!0);else t.from||t.to?t.from&&t.to?e<=new Date(t.to).getTime()&&e>=new Date(t.from).getTime()&&(r=!0):t.from?e>=new Date(t.from).getTime()&&(r=!0):t.to&&e<=new Date(t.to).getTime()&&(r=!0):t.date?r=e===new Date(t.date).getTime():"function"==typeof t&&(r=t(new Date(e)));return r}},{key:"daysInMonth",value:function(e){var t=new Date(e);return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}},{key:"renderMonths",value:function(e){return this.params.renderMonths?this.params.renderMonths.call(this,e):'\n <div class="calendar-months-wrapper">\n '.concat(this.renderMonth(e,"prev"),"\n ").concat(this.renderMonth(e),"\n ").concat(this.renderMonth(e,"next"),"\n </div>\n ").trim()}},{key:"renderMonth",value:function(e,t){var n=this,r=n.params,i=n.value;if(r.renderMonth)return r.renderMonth.call(n,e,t);var a=new Date(e),o=a.getFullYear(),s=a.getMonth(),l=n.monthNames.indexOf(n.monthFormatter.format(a));l<0&&(l=s);var c=n.yearFormatter.format(a);"next"===t&&(a=11===s?new Date(o+1,0):new Date(o,s+1,1)),"prev"===t&&(a=0===s?new Date(o-1,11):new Date(o,s-1,1)),"next"!==t&&"prev"!==t||(s=a.getMonth(),o=a.getFullYear(),(l=n.monthNames.indexOf(n.monthFormatter.format(a)))<0&&(l=s),c=n.yearFormatter.format(a));var u,d,h=[],f=(new Date).setHours(0,0,0,0),p=r.minDate?new Date(r.minDate).getTime():null,m=r.maxDate?new Date(r.maxDate).getTime():null,v=n.daysInMonth(new Date(a.getFullYear(),a.getMonth()).getTime()-864e6),g=n.daysInMonth(a),y=6===r.firstDay?0:1,b="",_=r.firstDay-1+0,w=new Date(a.getFullYear(),a.getMonth()).getDay();if(0===w&&(w=7),i&&i.length)for(var k=0;k<i.length;k+=1)h.push(new Date(i[k]).setHours(0,0,0,0));for(var E=1;E<=6;E+=1){for(var S="",T=function(e){var t=void 0,i=(_+=1)-w,a="";1===E&&1===e&&i>y&&1!==r.firstDay&&(i=(_-=7)-w);var l=e-1+r.firstDay>6?e-1-7+r.firstDay:e-1+r.firstDay;i<0?(i=v+i+1,a+=" calendar-day-prev",t=new Date(s-1<0?o-1:o,s-1<0?11:s-1,i).getTime()):(i+=1)>g?(i-=g,a+=" calendar-day-next",t=new Date(s+1>11?o+1:o,s+1>11?0:s+1,i).getTime()):t=new Date(o,s,i).getTime(),t===f&&(a+=" calendar-day-today"),r.rangePicker&&2===h.length?t>=h[0]&&t<=h[1]&&(a+=" calendar-day-selected"):h.indexOf(t)>=0&&(a+=" calendar-day-selected"),r.weekendDays.indexOf(l)>=0&&(a+=" calendar-day-weekend");var c="";if(d=!1,r.events&&n.dateInRange(t,r.events)&&(d=!0),d&&(a+=" calendar-day-has-events",c='\n <span class="calendar-day-events">\n <span class="calendar-day-event"></span>\n </span>\n ',Array.isArray(r.events))){var b=[];r.events.forEach((function(e){var r=e.color||"";b.indexOf(r)<0&&n.dateInRange(t,e)&&b.push(r)})),c='\n <span class="calendar-day-events">\n '.concat(b.map((function(e){return'\n <span class="calendar-day-event" style="'.concat(e?"background-color: ".concat(e):"",'"></span>\n ').trim()})).join(""),"\n </span>\n ")}if(r.rangesClasses)for(var k=0;k<r.rangesClasses.length;k+=1)n.dateInRange(t,r.rangesClasses[k].range)&&(a+=" ".concat(r.rangesClasses[k].cssClass));u=!1,(p&&t<p||m&&t>m)&&(u=!0),r.disabled&&n.dateInRange(t,r.disabled)&&(u=!0),u&&(a+=" calendar-day-disabled");var T=(t=new Date(t)).getFullYear(),C=t.getMonth(),M=n.dayFormatter.format(t);S+='\n <div data-year="'.concat(T,'" data-month="').concat(C,'" data-day="').concat(i,'" class="calendar-day').concat(a,'" data-date="').concat(T,"-").concat(C,"-").concat(i,'">\n <span class="calendar-day-number">').concat(M).concat(c,"</span>\n </div>").trim()},C=1;C<=7;C+=1)T(C);b+='<div class="calendar-row">'.concat(S,"</div>")}return b='<div class="calendar-month" data-year="'.concat(o,'" data-month="').concat(s,'" data-locale-year="').concat(c,'" data-locale-month="').concat(l,'">').concat(b,"</div>")}},{key:"renderWeekHeader",value:function(){if(this.params.renderWeekHeader)return this.params.renderWeekHeader.call(this);for(var e=this.params,t="",n=0;n<7;n+=1){var r=n+e.firstDay>6?n-7+e.firstDay:n+e.firstDay,i=this.dayNamesShort[r];t+='<div class="calendar-week-day">'.concat(i,"</div>")}return'\n <div class="calendar-week-header">\n '.concat(t,"\n </div>\n ").trim()}},{key:"renderMonthSelector",value:function(){return this.params.renderMonthSelector?this.params.renderMonthSelector.call(this):'\n <div class="calendar-month-selector">\n <a class="link icon-only calendar-prev-month-button">\n <i class="icon icon-prev"></i>\n </a>\n '.concat(this.params.monthPicker?'\n <a class="current-month-value link"></a>\n ':'\n <span class="current-month-value"></span>\n ','\n <a class="link icon-only calendar-next-month-button">\n <i class="icon icon-next"></i>\n </a>\n </div>\n ').trim()}},{key:"renderMonthPicker",value:function(){var e=parseInt(this.$el.find(".calendar-month-current").attr("data-locale-month"),10);return'\n <div class="calendar-month-picker">\n '.concat(this.monthNames.map((function(t,n){return'\n <div class="calendar-month-picker-item '.concat(e===n?"calendar-month-picker-item-current":"",'">\n <span>').concat(t,"</span>\n </div>\n ")})).join(""),"\n </div>\n ")}},{key:"renderYearSelector",value:function(){return this.params.renderYearSelector?this.params.renderYearSelector.call(this):'\n <div class="calendar-year-selector">\n <a class="link icon-only calendar-prev-year-button">\n <i class="icon icon-prev"></i>\n </a>\n '.concat(this.params.yearPicker?'\n <a class="current-year-value link"></a>\n ':'\n <span class="current-year-value"></span>\n ','\n <a class="link icon-only calendar-next-year-button">\n <i class="icon icon-next"></i>\n </a>\n </div>\n ').trim()}},{key:"renderYearPicker",value:function(){var e=this,t=e.currentYear,n=e.params.yearPickerMin||(new Date).getFullYear()-100;e.params.minDate&&(n=Math.max(n,new Date(e.params.minDate).getFullYear()));var r=e.params.yearPickerMax||(new Date).getFullYear()+100;e.params.maxDate&&(r=Math.min(r,new Date(e.params.maxDate).getFullYear()));for(var i=[],a=n;a<=r;a+=1)i.push(a);return'\n <div class="calendar-year-picker">\n '.concat(i.map((function(n){return'\n <div data-year="'.concat(n,'" class="calendar-year-picker-item ').concat(n===t?"calendar-year-picker-item-current":"",'">\n <span>').concat(e.yearFormatter.format((new Date).setFullYear(n)),"</span>\n </div>\n ")})).join(""),"\n </div>\n ")}},{key:"renderTimeSelector",value:function(){var e,t=this.value&&this.value[0];return t&&(e=this.timeSelectorFormatter.format(t)),'\n <div class="calendar-time-selector"><a class="link">'.concat(e||this.params.timePickerPlaceholder,"</a></div>\n ")}},{key:"renderHeader",value:function(){return this.params.renderHeader?this.params.renderHeader.call(this):'\n <div class="calendar-header">\n <div class="calendar-selected-date">'.concat(this.params.headerPlaceholder,"</div>\n </div>\n ").trim()}},{key:"renderFooter",value:function(){var e=this.app;return this.params.renderFooter?this.params.renderFooter.call(this):'\n <div class="calendar-footer">\n <a class="'.concat("md"===e.theme?"button":"link",' calendar-close sheet-close popover-close">').concat(this.params.toolbarCloseText,"</a>\n </div>\n ").trim()}},{key:"renderToolbar",value:function(){return this.params.renderToolbar?this.params.renderToolbar.call(this,this):'\n <div class="toolbar toolbar-top no-shadow">\n <div class="toolbar-inner">\n '.concat(this.params.monthSelector?this.renderMonthSelector():"","\n ").concat(this.params.yearSelector?this.renderYearSelector():"","\n </div>\n </div>\n ").trim()}},{key:"renderInline",value:function(){var e=this.params,t=e.cssClass,n=e.toolbar,r=e.header,i=e.footer,a=e.rangePicker,o=e.weekHeader,s=this.value,l=this.hasTimePicker,c=s&&s.length?s[0]:(new Date).setHours(0,0,0);return'\n <div class="calendar calendar-inline '.concat(a?"calendar-range":""," ").concat(t||"",'">\n ').concat(r?this.renderHeader():"","\n ").concat(n?this.renderToolbar():"","\n ").concat(o?this.renderWeekHeader():"",'\n <div class="calendar-months">\n ').concat(this.renderMonths(c),"\n </div>\n ").concat(l?this.renderTimeSelector():"","\n ").concat(i?this.renderFooter():"","\n </div>\n ").trim()}},{key:"renderCustomModal",value:function(){var e=this.params,t=e.cssClass,n=e.toolbar,r=e.header,i=e.footer,a=e.rangePicker,o=e.weekHeader,s=this.value,l=this.hasTimePicker,c=s&&s.length?s[0]:(new Date).setHours(0,0,0);return'\n <div class="calendar calendar-modal '.concat(a?"calendar-range":""," ").concat(t||"",'">\n ').concat(r?this.renderHeader():"","\n ").concat(n?this.renderToolbar():"","\n ").concat(o?this.renderWeekHeader():"",'\n <div class="calendar-months">\n ').concat(this.renderMonths(c),"\n </div>\n ").concat(l?this.renderTimeSelector():"","\n ").concat(i?this.renderFooter():"","\n </div>\n ").trim()}},{key:"renderSheet",value:function(){var e=this.params,t=e.cssClass,n=e.toolbar,r=e.header,i=e.footer,a=e.rangePicker,o=e.weekHeader,s=this.value,l=this.hasTimePicker,c=s&&s.length?s[0]:(new Date).setHours(0,0,0);return'\n <div class="sheet-modal calendar calendar-sheet '.concat(a?"calendar-range":""," ").concat(t||"",'">\n ').concat(r?this.renderHeader():"","\n ").concat(n?this.renderToolbar():"","\n ").concat(o?this.renderWeekHeader():"",'\n <div class="sheet-modal-inner calendar-months">\n ').concat(this.renderMonths(c),"\n </div>\n ").concat(l?this.renderTimeSelector():"","\n ").concat(i?this.renderFooter():"","\n </div>\n ").trim()}},{key:"renderPopover",value:function(){var e=this.params,t=e.cssClass,n=e.toolbar,r=e.header,i=e.footer,a=e.rangePicker,o=e.weekHeader,s=this.value,l=this.hasTimePicker,c=s&&s.length?s[0]:(new Date).setHours(0,0,0);return'\n <div class="popover calendar-popover">\n <div class="popover-inner">\n <div class="calendar '.concat(a?"calendar-range":""," ").concat(t||"",'">\n ').concat(r?this.renderHeader():"","\n ").concat(n?this.renderToolbar():"","\n ").concat(o?this.renderWeekHeader():"",'\n <div class="calendar-months">\n ').concat(this.renderMonths(c),"\n </div>\n ").concat(l?this.renderTimeSelector():"","\n ").concat(i?this.renderFooter():"","\n </div>\n </div>\n </div>\n ").trim()}},{key:"render",value:function(){var e=this.params;if(e.render)return e.render.call(this);if(!this.inline){var t=e.openIn;return"auto"===t&&(t=this.isPopover()?"popover":"sheet"),"popover"===t?this.renderPopover():"sheet"===t?this.renderSheet():this.renderCustomModal()}return this.renderInline()}},{key:"openTimePicker",value:function(){var e=this.$el,t=this.app;if(e&&e.length){e.append('<div class="calendar-time-picker"></div>');for(var n,r=[],i=[],a=0;a<=23;a+=1)r.push(a);for(var o=0;o<=59;o+=1)i.push(o);n=this.value&&this.value.length?[this.value[0].getHours(),this.value[0].getMinutes()]:[(new Date).getHours(),(new Date).getMinutes()],this.timePickerInstance=t.picker.create({containerEl:e.find(".calendar-time-picker"),value:n,toolbar:!0,rotateEffect:!1,toolbarCloseText:this.params.toolbarCloseText,cols:[{values:r},{divider:!0,content:":"},{values:i,displayValues:i.map((function(e){return e<10?"0".concat(e):e}))}]}),this.timePickerInstance.$el.find(".toolbar a").removeClass("sheet-close popover-close").addClass("calendar-time-picker-close")}}},{key:"closeTimePicker",value:function(){if(this.timePickerInstance){var e=this.timePickerInstance.value.map((function(e){return parseInt(e,10)})),t=vr()(e,2),n=t[0],r=t[1],i=this.value&&this.value.length&&this.value[0];i?(i=new Date(i)).setHours(n,r):(i=new Date).setHours(n,r,0,0),this.setValue([i]),this.timePickerInstance.close(),this.timePickerInstance.destroy(),delete this.timePickerInstance}this.$el&&this.$el.length&&this.$el.find(".calendar-time-picker").remove()}},{key:"onOpen",value:function(){var e=this,t=e.initialized,n=e.$el,r=e.app,i=e.$inputEl,a=e.inline,o=e.value,s=e.params;e.closing=!1,e.opened=!0,e.opening=!0,e.attachCalendarEvents();var l=!o&&s.value;t?o&&e.setValue(o,0):o?e.setValue(o,0):s.value&&e.setValue(e.normalizeValues(s.value),0),e.updateCurrentMonthYear(),e.monthsTranslate=0,e.setMonthsTranslate(),l?e.updateValue():s.header&&o&&e.updateValue(!0),!a&&i&&i.length&&"md"===r.theme&&i.trigger("focus"),e.initialized=!0,e.$months.each((function(t,n){e.emit("local::monthAdd calendarMonthAdd",n)})),n&&n.trigger("calendar:open"),i&&i.trigger("calendar:open"),e.emit("local::open calendarOpen",e)}},{key:"onOpened",value:function(){this.opening=!1,this.$el&&this.$el.trigger("calendar:opened"),this.$inputEl&&this.$inputEl.trigger("calendar:opened"),this.emit("local::opened calendarOpened",this)}},{key:"onClose",value:function(){var e=this.app;this.opening=!1,this.closing=!0,this.$inputEl&&"md"===e.theme&&this.$inputEl.trigger("blur"),this.detachCalendarEvents&&this.detachCalendarEvents(),this.$el&&this.$el.trigger("calendar:close"),this.$inputEl&&this.$inputEl.trigger("calendar:close"),this.emit("local::close calendarClose",this)}},{key:"onClosed",value:function(){var e=this;e.opened=!1,e.closing=!1,e.inline||j.nextTick((function(){e.modal&&e.modal.el&&e.modal.destroy&&(e.params.routableModals||e.modal.destroy()),delete e.modal})),e.timePickerInstance&&(e.timePickerInstance.destroy&&e.timePickerInstance.destroy(),delete e.timePickerInstance),e.$el&&e.$el.trigger("calendar:closed"),e.$inputEl&&e.$inputEl.trigger("calendar:closed"),e.emit("local::closed calendarClosed",e)}},{key:"open",value:function(){var e=this,t=e.app,n=e.opened,r=e.inline,i=e.$inputEl,a=e.params;if(!n){if(r)return e.$el=g(e.render()),e.$el[0].f7Calendar=e,e.$wrapperEl=e.$el.find(".calendar-months-wrapper"),e.$months=e.$wrapperEl.find(".calendar-month"),e.$containerEl.append(e.$el),e.onOpen(),void e.onOpened();var o=a.openIn;"auto"===o&&(o=e.isPopover()?"popover":"sheet");var s=e.render(),l={targetEl:i,scrollToEl:a.scrollToInput?i:void 0,content:s,backdrop:!0===a.backdrop||"popover"===o&&!1!==t.params.popover.backdrop&&!1!==a.backdrop,closeByBackdropClick:a.closeByBackdropClick,on:{open:function(){e.modal=this,e.$el="popover"===o?this.$el.find(".calendar"):this.$el,e.$wrapperEl=e.$el.find(".calendar-months-wrapper"),e.$months=e.$wrapperEl.find(".calendar-month"),e.$el[0].f7Calendar=e,"customModal"===o&&g(e.$el).find(".calendar-close").once("click",(function(){e.close()})),e.onOpen()},opened:function(){e.onOpened()},close:function(){e.onClose()},closed:function(){e.onClosed()}}};"sheet"===o&&(l.push=a.sheetPush,l.swipeToClose=a.sheetSwipeToClose),a.routableModals&&e.view?e.view.router.navigate({url:e.url,route:K()({path:e.url},o,l)}):(e.modal=t[o].create(l),e.modal.open())}}},{key:"close",value:function(){var e=this.opened,t=this.inline;if(e)return t?(this.onClose(),void this.onClosed()):void(this.params.routableModals&&this.view?this.view.router.back():this.modal.close())}},{key:"init",value:function(){if(this.initInput(),this.inline)return this.open(),void this.emit("local::init calendarInit",this);!this.initialized&&this.params.value&&this.setValue(this.normalizeValues(this.params.value)),this.$inputEl&&this.attachInputEvents(),this.params.closeByOutsideClick&&this.attachHtmlEvents(),this.emit("local::init calendarInit",this)}},{key:"destroy",value:function(){if(!this.destroyed){var e=this.$el;this.emit("local::beforeDestroy calendarBeforeDestroy",this),e&&e.trigger("calendar:beforedestroy"),this.close(),this.$inputEl&&this.detachInputEvents(),this.params.closeByOutsideClick&&this.detachHtmlEvents(),this.timePickerInstance&&(this.timePickerInstance.destroy&&this.timePickerInstance.destroy(),delete this.timePickerInstance),e&&e.length&&delete this.$el[0].f7Calendar,j.deleteProps(this),this.destroyed=!0}}},{key:"view",get:function(){var e,t=this.$inputEl,n=this.app,r=this.params;return r.view?e=r.view:t&&(e=t.parents(".view").length&&t.parents(".view")[0].f7View),e||(e=n.views.main),e}}]),r}(z),br={name:"calendar",static:{Calendar:yr},create:function(){this.calendar=W({defaultSelector:".calendar",constructor:yr,app:this,domProp:"f7Calendar"}),this.calendar.close=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".calendar",t=g(e);if(0!==t.length){var n=t[0].f7Calendar;!n||n&&!n.opened||n.close()}}},params:{calendar:{dateFormat:void 0,monthNames:"auto",monthNamesShort:"auto",dayNames:"auto",dayNamesShort:"auto",locale:void 0,firstDay:1,weekendDays:[0,6],multiple:!1,rangePicker:!1,rangePickerMinDays:1,rangePickerMaxDays:0,direction:"horizontal",minDate:null,maxDate:null,disabled:null,events:null,rangesClasses:null,touchMove:!0,animate:!0,closeOnSelect:!1,monthSelector:!0,monthPicker:!0,yearSelector:!0,yearPicker:!0,yearPickerMin:void 0,yearPickerMax:void 0,timePicker:!1,timePickerFormat:{hour:"numeric",minute:"numeric"},timePickerPlaceholder:"Select time",weekHeader:!0,value:null,containerEl:null,openIn:"auto",sheetPush:!1,sheetSwipeToClose:void 0,formatValue:null,inputEl:null,inputReadOnly:!0,closeByOutsideClick:!0,scrollToInput:!0,header:!1,headerPlaceholder:"Select date",toolbar:!0,toolbarCloseText:"Done",footer:!1,cssClass:null,routableModals:!0,view:null,url:"date/",backdrop:null,closeByBackdropClick:!0,renderWeekHeader:null,renderMonths:null,renderMonth:null,renderMonthSelector:null,renderYearSelector:null,renderHeader:null,renderFooter:null,renderToolbar:null,renderInline:null,renderPopover:null,renderSheet:null,render:null}}},_r=function(e,t){var n=this,r=n.app,i=g(e),a=i.index(),o=n.cols[a];if(!o.divider){var s,l,c,u,d;o.$el=i,o.el=i[0],o.$itemsEl=o.$el.find(".picker-items"),o.items=o.$itemsEl.find(".picker-item"),o.replaceValues=function(e,t){o.detachEvents(),o.values=e,o.displayValues=t,o.$itemsEl.html(n.renderColumn(o,!0)),o.items=o.$itemsEl.find(".picker-item"),o.calcSize(),o.setValue(o.values[0],0,!0),o.attachEvents()},o.calcSize=function(){n.params.rotateEffect&&(o.$el.removeClass("picker-column-absolute"),o.width||o.$el.css({width:""}));var e=0,t=o.$el[0].offsetHeight;s=o.items[0].offsetHeight,l=s*o.items.length,c=t/2-l+s/2,u=t/2-s/2,o.width&&(e=o.width,parseInt(e,10)===e&&(e+="px"),o.$el.css({width:e})),n.params.rotateEffect&&(o.width||(o.items.each((function(t,n){var r=g(n).children("span");e=Math.max(e,r[0].offsetWidth)})),o.$el.css({width:"".concat(e+2,"px")})),o.$el.addClass("picker-column-absolute"))},o.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=o.$itemsEl.find('.picker-item[data-picker-value="'.concat(e,'"]')).index();if(void 0!==i&&-1!==i){var a=-i*s+u;o.$itemsEl.transition(t),o.$itemsEl.transform("translate3d(0,".concat(a,"px,0)")),n.params.updateValuesOnMomentum&&o.activeIndex&&o.activeIndex!==i&&(j.cancelAnimationFrame(d),o.$itemsEl.transitionEnd((function(){j.cancelAnimationFrame(d)})),C()),o.updateItems(i,a,t,r)}},o.updateItems=function(e,t,r,i){void 0===t&&(t=j.getTranslate(o.$itemsEl[0],"y")),void 0===e&&(e=-Math.round((t-u)/s)),e<0&&(e=0),e>=o.items.length&&(e=o.items.length-1);var a=o.activeIndex;o.activeIndex=e,o.$itemsEl.find(".picker-item-selected").removeClass("picker-item-selected"),o.items.transition(r);var l=o.items.eq(e).addClass("picker-item-selected").transform("");n.params.rotateEffect&&o.items.each((function(e,r){var i=g(r),a=(i.index()*s-(u-t))/s,l=Math.ceil(o.height/s/2)+1,c=-18*a;c>180&&(c=180),c<-180&&(c=-180),Math.abs(a)>l?i.addClass("picker-item-far"):i.removeClass("picker-item-far"),i.transform("translate3d(0, ".concat(-t+u,"px, ").concat(n.needsOriginFix?-110:0,"px) rotateX(").concat(c,"deg)"))})),(i||void 0===i)&&(o.value=l.attr("data-picker-value"),o.displayValue=o.displayValues?o.displayValues[e]:o.value,a!==e&&(o.onChange&&o.onChange(n,o.value,o.displayValue),n.updateValue()))};var h,f,p,m,v,y,b,_,w,k,E,S=!0,T=!!r.support.passiveListener&&{passive:!1,capture:!1};o.attachEvents=function(){o.$el.on(r.touchEvents.start,M,T),r.on("touchmove:active",x),r.on("touchend:passive",$),n.params.mousewheel&&o.$el.on("wheel",L),o.items.on("click",P)},o.detachEvents=function(){o.$el.off(r.touchEvents.start,M,T),r.off("touchmove:active",x),r.off("touchend:passive",$),n.params.mousewheel&&o.$el.off("wheel",L),o.items.off("click",P)},o.init=function(){o.calcSize(),o.$itemsEl.transform("translate3d(0,".concat(u,"px,0)")).transition(0),0===a&&o.$el.addClass("picker-column-first"),a===n.cols.length-1&&o.$el.addClass("picker-column-last"),t&&o.updateItems(0,u,0),o.attachEvents()},o.destroy=function(){o.detachEvents()},o.init()}function C(){d=j.requestAnimationFrame((function(){o.updateItems(void 0,void 0,0),C()}))}function M(e){f||h||(e.preventDefault(),h=!0,p="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,m=p,v=(new Date).getTime(),S=!0,y=j.getTranslate(o.$itemsEl[0],"y"),_=y)}function x(e){h&&(e.preventDefault(),S=!1,m="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,f||(j.cancelAnimationFrame(d),f=!0,y=j.getTranslate(o.$itemsEl[0],"y"),_=y,o.$itemsEl.transition(0)),b=void 0,(_=y+(m-p))<c&&(_=c-Math.pow(c-_,.8),b="min"),_>u&&(_=u+Math.pow(_-u,.8),b="max"),o.$itemsEl.transform("translate3d(0,".concat(_,"px,0)")),o.updateItems(void 0,_,0,n.params.updateValuesOnTouchmove),k=_-w||_,w=_)}function $(){if(!h||!f)return h=!1,void(f=!1);var e;h=!1,f=!1,o.$itemsEl.transition(""),b&&("min"===b?o.$itemsEl.transform("translate3d(0,".concat(c,"px,0)")):o.$itemsEl.transform("translate3d(0,".concat(u,"px,0)"))),e=(new Date).getTime()-v>300?_:_+k*n.params.momentumRatio,e=Math.max(Math.min(e,u),c);var t=Math.round(Math.abs((e-u)/s));n.params.freeMode||(e=-t*s+u),o.$itemsEl.transform("translate3d(0,".concat(parseInt(e,10),"px,0)")),o.updateItems(t,e,"",!0),n.params.updateValuesOnMomentum&&(C(),o.$itemsEl.transitionEnd((function(){j.cancelAnimationFrame(d)}))),setTimeout((function(){S=!0}),100)}function L(e){var t=e.deltaX,r=e.deltaY;Math.abs(t)>Math.abs(r)||(clearTimeout(E),e.preventDefault(),j.cancelAnimationFrame(d),y=j.getTranslate(o.$itemsEl[0],"y"),o.$itemsEl.transition(0),b=void 0,(_=y-r)<c&&(_=c,b="min"),_>u&&(_=u,b="max"),o.$itemsEl.transform("translate3d(0,".concat(_,"px,0)")),o.updateItems(void 0,_,0,n.params.updateValuesOnMousewheel),E=setTimeout((function(){o.$itemsEl.transition(""),b&&("min"===b?o.$itemsEl.transform("translate3d(0,".concat(c,"px,0)")):o.$itemsEl.transform("translate3d(0,".concat(u,"px,0)"))),(new Date).getTime();var e=_;e=Math.max(Math.min(e,u),c);var t=Math.round(Math.abs((e-u)/s));n.params.freeMode||(e=-t*s+u),o.$itemsEl.transform("translate3d(0,".concat(parseInt(e,10),"px,0)")),o.updateItems(t,e,"",!0)}),200))}function P(){if(S){j.cancelAnimationFrame(d);var e=g(this).attr("data-picker-value");o.setValue(e)}}};function wr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var kr=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(wr()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o()(this,r),t=n.call(this,i,[e]);var a,l,c=k()(t);if(c.params=j.extend({},e.params.picker,i),c.params.containerEl&&0===(a=g(c.params.containerEl)).length)return C()(t,c);c.params.inputEl&&(l=g(c.params.inputEl));var u=c.params.scrollToInput?l:void 0;if(c.params.scrollToEl){var d=g(c.params.scrollToEl);d.length>0&&(u=d)}function h(){c.resizeCols()}function f(){c.open()}function p(e){e.preventDefault()}function m(e){if(!c.destroyed&&c.params){var t=g(e.target);c.isPopover()||c.opened&&!c.closing&&(t.closest('[class*="backdrop"]').length||(l&&l.length>0?t[0]!==l[0]&&0===t.closest(".sheet-modal").length&&c.close():0===g(e.target).closest(".sheet-modal").length&&c.close()))}}return j.extend(c,{app:e,$containerEl:a,containerEl:a&&a[0],inline:a&&a.length>0,needsOriginFix:e.device.ios||s.b.navigator.userAgent.toLowerCase().indexOf("safari")>=0&&s.b.navigator.userAgent.toLowerCase().indexOf("chrome")<0&&!e.device.android,cols:[],$inputEl:l,inputEl:l&&l[0],$scrollToEl:u,initialized:!1,opened:!1,url:c.params.url}),j.extend(c,{attachResizeEvent:function(){e.on("resize",h)},detachResizeEvent:function(){e.off("resize",h)},attachInputEvents:function(){c.$inputEl.on("click",f),c.params.inputReadOnly&&c.$inputEl.on("focus mousedown",p)},detachInputEvents:function(){c.$inputEl.off("click",f),c.params.inputReadOnly&&c.$inputEl.off("focus mousedown",p)},attachHtmlEvents:function(){e.on("click",m)},detachHtmlEvents:function(){e.off("click",m)}}),c.init(),C()(t,c)}return b()(r,[{key:"initInput",value:function(){this.$inputEl&&this.params.inputReadOnly&&this.$inputEl.prop("readOnly",!0)}},{key:"resizeCols",value:function(){if(this.opened)for(var e=0;e<this.cols.length;e+=1)this.cols[e].divider||(this.cols[e].calcSize(),this.cols[e].setValue(this.cols[e].value,0,!1))}},{key:"isPopover",value:function(){var e=this.app,t=this.modal,n=this.params;if("sheet"===n.openIn)return!1;if(t&&"popover"!==t.type)return!1;if(!this.inline&&this.inputEl){if("popover"===n.openIn)return!0;if(e.device.ios)return!!e.device.ipad;if(e.width>=768)return!0;if(e.device.desktop&&"aurora"===e.theme)return!0}return!1}},{key:"formatValue",value:function(){var e=this.value,t=this.displayValue;return this.params.formatValue?this.params.formatValue.call(this,e,t):e.join(" ")}},{key:"setValue",value:function(e,t){var n=0;if(0===this.cols.length)return this.value=e,void this.updateValue(e);for(var r=0;r<this.cols.length;r+=1)this.cols[r]&&!this.cols[r].divider&&(this.cols[r].setValue(e[n],t),n+=1)}},{key:"getValue",value:function(){return this.value}},{key:"updateValue",value:function(e){var t,n=e||[],r=[];if(0===this.cols.length)for(var i=this.params.cols.filter((function(e){return!e.divider})),a=0;a<i.length;a+=1)void 0!==(t=i[a]).displayValues&&void 0!==t.values&&-1!==t.values.indexOf(n[a])?r.push(t.displayValues[t.values.indexOf(n[a])]):r.push(n[a]);else for(var o=0;o<this.cols.length;o+=1)this.cols[o].divider||(n.push(this.cols[o].value),r.push(this.cols[o].displayValue));n.indexOf(void 0)>=0||(this.value=n,this.displayValue=r,this.emit("local::change pickerChange",this,this.value,this.displayValue),this.inputEl&&(this.$inputEl.val(this.formatValue()),this.$inputEl.trigger("change")))}},{key:"initColumn",value:function(e,t){_r.call(this,e,t)}},{key:"destroyColumn",value:function(e){var t=g(e).index();this.cols[t]&&this.cols[t].destroy&&this.cols[t].destroy()}},{key:"renderToolbar",value:function(){return this.params.renderToolbar?this.params.renderToolbar.call(this,this):'\n <div class="toolbar toolbar-top no-shadow">\n <div class="toolbar-inner">\n <div class="left"></div>\n <div class="right">\n <a class="link sheet-close popover-close">'.concat(this.params.toolbarCloseText,"</a>\n </div>\n </div>\n </div>\n ").trim()}},{key:"renderColumn",value:function(e,t){var n,r,i="picker-column ".concat(e.textAlign?"picker-column-".concat(e.textAlign):""," ").concat(e.cssClass||"");return e.divider?n='\n <div class="'.concat(i,' picker-column-divider">').concat(e.content,"</div>\n "):(r=e.values.map((function(t,n){return'\n <div class="picker-item" data-picker-value="'.concat(t,'">\n <span>').concat(e.displayValues?e.displayValues[n]:t,"</span>\n </div>\n ")})).join(""),n='\n <div class="'.concat(i,'">\n <div class="picker-items">').concat(r,"</div>\n </div>\n ")),t?r.trim():n.trim()}},{key:"renderInline",value:function(){var e=this,t=e.params,n=t.rotateEffect,r=t.cssClass,i=t.toolbar;return'\n <div class="picker picker-inline '.concat(n?"picker-3d":""," ").concat(r||"",'">\n ').concat(i?e.renderToolbar():"",'\n <div class="picker-columns">\n ').concat(e.cols.map((function(t){return e.renderColumn(t)})).join(""),'\n <div class="picker-center-highlight"></div>\n </div>\n </div>\n ').trim()}},{key:"renderSheet",value:function(){var e=this,t=e.params,n=t.rotateEffect,r=t.cssClass,i=t.toolbar;return'\n <div class="sheet-modal picker picker-sheet '.concat(n?"picker-3d":""," ").concat(r||"",'">\n ').concat(i?e.renderToolbar():"",'\n <div class="sheet-modal-inner picker-columns">\n ').concat(e.cols.map((function(t){return e.renderColumn(t)})).join(""),'\n <div class="picker-center-highlight"></div>\n </div>\n </div>\n ').trim()}},{key:"renderPopover",value:function(){var e=this,t=e.params,n=t.rotateEffect,r=t.cssClass,i=t.toolbar;return'\n <div class="popover picker-popover">\n <div class="popover-inner">\n <div class="picker '.concat(n?"picker-3d":""," ").concat(r||"",'">\n ').concat(i?e.renderToolbar():"",'\n <div class="picker-columns">\n ').concat(e.cols.map((function(t){return e.renderColumn(t)})).join(""),'\n <div class="picker-center-highlight"></div>\n </div>\n </div>\n </div>\n </div>\n ').trim()}},{key:"render",value:function(){return this.params.render?this.params.render.call(this):this.inline?this.renderInline():this.isPopover()?this.renderPopover():this.renderSheet()}},{key:"onOpen",value:function(){var e=this,t=e.initialized,n=e.$el,r=e.app,i=e.$inputEl,a=e.inline,o=e.value,s=e.params;e.opened=!0,e.closing=!1,e.opening=!0,e.attachResizeEvent(),n.find(".picker-column").each((function(n,r){var i=!0;(!t&&s.value||t&&o)&&(i=!1),e.initColumn(r,i)})),t?o&&e.setValue(o,0):o?e.setValue(o,0):s.value&&e.setValue(s.value,0),!a&&i&&i.length&&"md"===r.theme&&i.trigger("focus"),e.initialized=!0,n&&n.trigger("picker:open"),i&&i.trigger("picker:open"),e.emit("local::open pickerOpen",e)}},{key:"onOpened",value:function(){this.opening=!1,this.$el&&this.$el.trigger("picker:opened"),this.$inputEl&&this.$inputEl.trigger("picker:opened"),this.emit("local::opened pickerOpened",this)}},{key:"onClose",value:function(){var e=this.app;this.opening=!1,this.closing=!0,this.detachResizeEvent(),this.cols.forEach((function(e){e.destroy&&e.destroy()})),this.$inputEl&&"md"===e.theme&&this.$inputEl.trigger("blur"),this.$el&&this.$el.trigger("picker:close"),this.$inputEl&&this.$inputEl.trigger("picker:close"),this.emit("local::close pickerClose",this)}},{key:"onClosed",value:function(){var e=this;e.opened=!1,e.closing=!1,e.inline||j.nextTick((function(){e.modal&&e.modal.el&&e.modal.destroy&&(e.params.routableModals||e.modal.destroy()),delete e.modal})),e.$el&&e.$el.trigger("picker:closed"),e.$inputEl&&e.$inputEl.trigger("picker:closed"),e.emit("local::closed pickerClosed",e)}},{key:"open",value:function(){var e=this,t=e.app,n=e.opened,r=e.inline,i=e.$inputEl,a=e.$scrollToEl,o=e.params;if(!n){if(0===e.cols.length&&o.cols.length&&o.cols.forEach((function(t){e.cols.push(t)})),r)return e.$el=g(e.render()),e.$el[0].f7Picker=e,e.$containerEl.append(e.$el),e.onOpen(),void e.onOpened();var s=e.isPopover(),l=s?"popover":"sheet",c={targetEl:i,scrollToEl:a,content:e.render(),backdrop:void 0!==o.backdrop?o.backdrop:s,on:{open:function(){e.modal=this,e.$el=s?this.$el.find(".picker"):this.$el,e.$el[0].f7Picker=e,e.onOpen()},opened:function(){e.onOpened()},close:function(){e.onClose()},closed:function(){e.onClosed()}}};"sheet"===l&&(c.push=o.sheetPush,c.swipeToClose=o.sheetSwipeToClose),o.routableModals&&e.view?e.view.router.navigate({url:e.url,route:K()({path:e.url},l,c)}):(e.modal=t[l].create(c),e.modal.open())}}},{key:"close",value:function(){var e=this.opened,t=this.inline;if(e)return t?(this.onClose(),void this.onClosed()):void(this.params.routableModals&&this.view?this.view.router.back():this.modal.close())}},{key:"init",value:function(){if(this.initInput(),this.inline)return this.open(),void this.emit("local::init pickerInit",this);!this.initialized&&this.params.value&&this.setValue(this.params.value),this.$inputEl&&this.attachInputEvents(),this.params.closeByOutsideClick&&this.attachHtmlEvents(),this.emit("local::init pickerInit",this)}},{key:"destroy",value:function(){if(!this.destroyed){var e=this.$el;this.emit("local::beforeDestroy pickerBeforeDestroy",this),e&&e.trigger("picker:beforedestroy"),this.close(),this.$inputEl&&this.detachInputEvents(),this.params.closeByOutsideClick&&this.detachHtmlEvents(),e&&e.length&&delete this.$el[0].f7Picker,j.deleteProps(this),this.destroyed=!0}}},{key:"view",get:function(){var e,t=this.app,n=this.params,r=this.$inputEl;return n.view?e=n.view:r&&(e=r.parents(".view").length&&r.parents(".view")[0].f7View),e||(e=t.views.main),e}}]),r}(z),Er={name:"picker",static:{Picker:kr},create:function(){this.picker=W({defaultSelector:".picker",constructor:kr,app:this,domProp:"f7Picker"}),this.picker.close=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".picker",t=g(e);if(0!==t.length){var n=t[0].f7Picker;!n||n&&!n.opened||n.close()}}},params:{picker:{updateValuesOnMomentum:!1,updateValuesOnTouchmove:!0,updateValuesOnMousewheel:!0,mousewheel:!0,rotateEffect:!1,momentumRatio:7,freeMode:!1,cols:[],containerEl:null,openIn:"auto",sheetPush:!1,sheetSwipeToClose:void 0,backdrop:void 0,formatValue:null,inputEl:null,inputReadOnly:!0,closeByOutsideClick:!0,scrollToInput:!0,scrollToEl:void 0,toolbar:!0,toolbarCloseText:"Done",cssClass:null,routableModals:!0,view:null,url:"select/",renderToolbar:null,render:null}}},Sr={handleScroll:function(e,t){var n,r=g(e),i=r[0].scrollTop,a=r[0].scrollHeight,o=r[0].offsetHeight,s=r[0].getAttribute("data-infinite-distance"),l=r.find(".virtual-list"),c=r.hasClass("infinite-scroll-top");if(s||(s=50),"string"==typeof s&&s.indexOf("%")>=0&&(s=parseInt(s,10)/100*o),s>o&&(s=o),c)i<s&&(r.trigger("infinite",t),this.emit("infinite",r[0],t));else if(i+o>=a-s){if(l.length>0&&(n=l.eq(-1)[0].f7VirtualList)&&!n.reachEnd&&!n.params.updatableScroll)return;r.trigger("infinite",t),this.emit("infinite",r[0],t)}},create:function(e){var t=g(e),n=this;function r(e){n.infiniteScroll.handle(this,e)}t.each((function(e,t){t.f7InfiniteScrollHandler=r,t.addEventListener("scroll",t.f7InfiniteScrollHandler)}))},destroy:function(e){g(e).each((function(e,t){t.removeEventListener("scroll",t.f7InfiniteScrollHandler),delete t.f7InfiniteScrollHandler}))}},Tr={name:"infiniteScroll",create:function(){j.extend(this,{infiniteScroll:{handle:Sr.handleScroll.bind(this),create:Sr.create.bind(this),destroy:Sr.destroy.bind(this)}})},on:{tabMounted:function(e){var t=this,n=g(e),r=n.find(".infinite-scroll-content");n.is(".infinite-scroll-content")&&r.add(n),r.each((function(e,n){t.infiniteScroll.create(n)}))},tabBeforeRemove:function(e){var t=g(e),n=this,r=t.find(".infinite-scroll-content");t.is(".infinite-scroll-content")&&r.add(t),r.each((function(e,t){n.infiniteScroll.destroy(t)}))},pageInit:function(e){var t=this;e.$el.find(".infinite-scroll-content").each((function(e,n){t.infiniteScroll.create(n)}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".infinite-scroll-content").each((function(e,n){t.infiniteScroll.destroy(n)}))}}};function Cr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Mr=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(Cr()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e,t){var i;o()(this,r),i=n.call(this,{},[e]);var a=k()(i),s=g(t),l=s.find(".ptr-preloader");a.$el=s,a.el=s[0],a.app=e,a.bottom=a.$el.hasClass("ptr-bottom"),a.useModulesParams({});var c,u,d,h="md"===e.theme,f="ios"===e.theme,p="aurora"===e.theme;a.done=function(){return(h?l:s).transitionEnd((function(){s.removeClass("ptr-transitioning ptr-pull-up ptr-pull-down ptr-closing"),s.trigger("ptr:done"),a.emit("local::done ptrDone",s[0])})),s.removeClass("ptr-refreshing").addClass("ptr-transitioning ptr-closing"),a},a.refresh=function(){return s.hasClass("ptr-refreshing")||(s.addClass("ptr-transitioning ptr-refreshing"),s.trigger("ptr:refresh",a.done),a.emit("local::refresh ptrRefresh",s[0],a.done)),a},a.mousewheel="true"===s.attr("data-ptr-mousewheel");var m,v,y,b,_,w,E,S,T,M,x,$,L,P={},O=!1,I=!1,A=!1,D=0,N=!1,R=s.parents(".page");if((R.find(".navbar").length>0||R.parents(".view").children(".navbars").length>0)&&(N=!0),R.hasClass("no-navbar")&&(N=!1),!a.bottom){var B=e.navbar.getElByPage(R[0]);if(B){var Y=g(B),j=Y.hasClass("navbar-large-transparent")||Y.hasClass("navbar-large")&&Y.hasClass("navbar-transparent"),H=Y.hasClass("navbar-transparent")&&!Y.hasClass("navbar-large");j?s.addClass("ptr-with-navbar-large-transparent"):H&&s.addClass("ptr-with-navbar-transparent")}}function U(e){if(u){if("android"!==F.a.os)return;if("targetTouches"in e&&e.targetTouches.length>1)return}s.hasClass("ptr-refreshing")||g(e.target).closest(".sortable-handler, .ptr-ignore, .card-expandable.card-opened").length||(d=!1,S=!1,u=!0,m=void 0,_=void 0,"touchstart"===e.type&&(c=e.targetTouches[0].identifier),P.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,P.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY)}function z(e){if(u){var n,r,i;if("touchmove"===e.type){if(c&&e.touches)for(var o=0;o<e.touches.length;o+=1)e.touches[o].identifier===c&&(i=e.touches[o]);i||(i=e.targetTouches[0]),n=i.pageX,r=i.pageY}else n=e.pageX,r=e.pageY;if(n&&r)if(void 0===m&&(m=!!(m||Math.abs(r-P.y)>Math.abs(n-P.x))),m){if(b=s[0].scrollTop,!d){var f;if(s.removeClass("ptr-transitioning"),T=s[0].scrollHeight,M=s[0].offsetHeight,a.bottom&&(x=T-M),b>T)return void(u=!1);var p=g(e.target).closest(".ptr-watch-scroll");if(p.length&&p.each((function(e,n){n!==t&&n.scrollHeight>n.offsetHeight&&"auto"===g(n).css("overflow")&&(!a.bottom&&n.scrollTop>0||a.bottom&&n.scrollTop<n.scrollHeight-n.offsetHeight)&&(f=!0)})),f)return void(u=!1);E&&(w=s.attr("data-ptr-distance")).indexOf("%")>=0&&(w=T*parseInt(w,10)/100),D=s.hasClass("ptr-refreshing")?w:0,I=!(T!==M&&"ios"===F.a.os&&!h),A=!1}d=!0,v=r-P.y,void 0===_&&(a.bottom?b!==x:0!==b)&&(_=!0),(a.bottom?v<0&&b>=x||b>x:v>0&&b<=0||b<0)?("ios"===F.a.os&&parseInt(F.a.osVersion.split(".")[0],10)>7&&(a.bottom||0!==b||_||(I=!0),a.bottom&&b===x&&!_&&(I=!0)),I||!a.bottom||h||(s.css("-webkit-overflow-scrolling","auto"),s.scrollTop(x),A=!0),(I||A)&&(e.cancelable&&e.preventDefault(),y=(a.bottom?-1*Math.pow(Math.abs(v),.85):Math.pow(v,.85))+D,h?l.transform("translate3d(0,".concat(y,"px,0)")).find(".ptr-arrow").transform("rotate(".concat(Math.abs(v)/66*180+100,"deg)")):a.bottom?s.children().transform("translate3d(0,".concat(y,"px,0)")):s.transform("translate3d(0,".concat(y,"px,0)"))),(I||A)&&Math.pow(Math.abs(v),.85)>w||!I&&Math.abs(v)>=2*w?(O=!0,s.addClass("ptr-pull-up").removeClass("ptr-pull-down")):(O=!1,s.removeClass("ptr-pull-up").addClass("ptr-pull-down")),S||(s.trigger("ptr:pullstart"),a.emit("local::pullStart ptrPullStart",s[0]),S=!0),s.trigger("ptr:pullmove",{event:e,scrollTop:b,translate:y,touchesDiff:v}),a.emit("local::pullMove ptrPullMove",s[0],{event:e,scrollTop:b,translate:y,touchesDiff:v})):(S=!1,s.removeClass("ptr-pull-up ptr-pull-down"),O=!1)}else u=!1}}function V(e){return"touchend"===e.type&&e.changedTouches&&e.changedTouches.length>0&&c&&e.changedTouches[0].identifier!==c?(u=!1,m=!1,d=!1,void(c=null)):u&&d?(y&&(s.addClass("ptr-transitioning"),y=0),h?l.transform("").find(".ptr-arrow").transform(""):a.bottom?s.children().transform(""):s.transform(""),I||!a.bottom||h||s.css("-webkit-overflow-scrolling",""),O?(s.addClass("ptr-refreshing"),s.trigger("ptr:refresh",a.done),a.emit("local::refresh ptrRefresh",s[0],a.done)):s.removeClass("ptr-pull-down"),u=!1,d=!1,void(S&&(s.trigger("ptr:pullend"),a.emit("local::pullEnd ptrPullEnd",s[0])))):(u=!1,void(d=!1))}N||a.bottom||s.addClass("ptr-no-navbar"),s.attr("data-ptr-distance")?E=!0:h?w=66:f?w=44:p&&(w=38);var q=!0,W=0;function G(){q=!0,L=!1,W=0,y&&(s.addClass("ptr-transitioning"),y=0),h?l.transform("").find(".ptr-arrow").transform(""):a.bottom?s.children().transform(""):s.transform(""),O?(s.addClass("ptr-refreshing"),s.trigger("ptr:refresh",a.done),a.emit("local::refresh ptrRefresh",s[0],a.done)):s.removeClass("ptr-pull-down"),S&&(s.trigger("ptr:pullend"),a.emit("local::pullEnd ptrPullEnd",s[0]))}function K(e){if(q){var n=e.deltaX,r=e.deltaY;if(!(Math.abs(n)>Math.abs(r)||s.hasClass("ptr-refreshing")||g(e.target).closest(".sortable-handler, .ptr-ignore, .card-expandable.card-opened").length)){if(clearTimeout($),b=s[0].scrollTop,!L){var i;if(s.removeClass("ptr-transitioning"),T=s[0].scrollHeight,M=s[0].offsetHeight,a.bottom&&(x=T-M),b>T)return void(q=!1);var o=g(e.target).closest(".ptr-watch-scroll");if(o.length&&o.each((function(e,n){n!==t&&n.scrollHeight>n.offsetHeight&&"auto"===g(n).css("overflow")&&(!a.bottom&&n.scrollTop>0||a.bottom&&n.scrollTop<n.scrollHeight-n.offsetHeight)&&(i=!0)})),i)return void(q=!1);E&&(w=s.attr("data-ptr-distance")).indexOf("%")>=0&&(w=T*parseInt(w,10)/100)}d=!0,v=W-=r,void 0===_&&(a.bottom?b!==x:0!==b)&&(_=!0),(a.bottom?v<0&&b>=x||b>x:v>0&&b<=0||b<0)?(e.cancelable&&e.preventDefault(),y=v,Math.abs(y)>w&&(y=w+Math.pow(Math.abs(y)-w,.7),a.bottom&&(y=-y)),h?l.transform("translate3d(0,".concat(y,"px,0)")).find(".ptr-arrow").transform("rotate(".concat(Math.abs(v)/66*180+100,"deg)")):a.bottom?s.children().transform("translate3d(0,".concat(y,"px,0)")):s.transform("translate3d(0,".concat(y,"px,0)")),Math.abs(y)>w?(O=!0,s.addClass("ptr-pull-up").removeClass("ptr-pull-down")):(O=!1,s.removeClass("ptr-pull-up").addClass("ptr-pull-down")),S||(s.trigger("ptr:pullstart"),a.emit("local::pullStart ptrPullStart",s[0]),S=!0),s.trigger("ptr:pullmove",{event:e,scrollTop:b,translate:y,touchesDiff:v}),a.emit("local::pullMove ptrPullMove",s[0],{event:e,scrollTop:b,translate:y,touchesDiff:v})):(S=!1,s.removeClass("ptr-pull-up ptr-pull-down"),O=!1),$=setTimeout(G,300)}}}return R.length&&s.length?(s[0].f7PullToRefresh=a,a.attachEvents=function(){var t=!!ue.a.passiveListener&&{passive:!0};s.on(e.touchEvents.start,U,t),e.on("touchmove:active",z),e.on("touchend:passive",V),a.mousewheel&&!a.bottom&&s.on("wheel",K)},a.detachEvents=function(){var t=!!ue.a.passiveListener&&{passive:!0};s.off(e.touchEvents.start,U,t),e.off("touchmove:active",z),e.off("touchend:passive",V),a.mousewheel&&!a.bottom&&s.off("wheel",K)},a.useModules(),a.init(),C()(i,a)):C()(i,a)}return b()(r,[{key:"init",value:function(){this.attachEvents()}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy ptrBeforeDestroy",e),e.$el.trigger("ptr:beforedestroy"),delete e.el.f7PullToRefresh,e.detachEvents(),j.deleteProps(e),e=null}}]),r}(z),xr={name:"pullToRefresh",create:function(){var e=this;e.ptr=j.extend(W({defaultSelector:".ptr-content",constructor:Mr,app:e,domProp:"f7PullToRefresh"}),{done:function(t){var n=e.ptr.get(t);if(n)return n.done()},refresh:function(t){var n=e.ptr.get(t);if(n)return n.refresh()}})},static:{PullToRefresh:Mr},on:{tabMounted:function(e){var t=this,n=g(e),r=n.find(".ptr-content");n.is(".ptr-content")&&r.add(n),r.each((function(e,n){t.ptr.create(n)}))},tabBeforeRemove:function(e){var t=g(e),n=this,r=t.find(".ptr-content");t.is(".ptr-content")&&r.add(t),r.each((function(e,t){n.ptr.destroy(t)}))},pageInit:function(e){var t=this;e.$el.find(".ptr-content").each((function(e,n){t.ptr.create(n)}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".ptr-content").each((function(e,n){t.ptr.destroy(n)}))}}},$r={destroy:function(e){var t=g(e).closest(".page");t.length&&t[0].f7LazyDestroy&&t[0].f7LazyDestroy()},create:function(e){var t=this,n=g(e).closest(".page").eq(0),r=n.find(".lazy");if(0!==r.length||n.hasClass("lazy")){var i=t.params.lazy.placeholder;!1!==i&&r.each((function(e,t){g(t).attr("data-src")&&!g(t).attr("src")&&g(t).attr("src",i)}));var a=[],o=!1;if(t.params.lazy.observer&&ue.a.intersectionObserver){var l=n[0].f7LazyObserver;return l||(l=new s.b.IntersectionObserver((function(e,n){e.forEach((function(e){if(e.isIntersecting){if(t.params.lazy.sequential&&o)return void(a.indexOf(e.target)<0&&a.push(e.target));o=!0,t.lazy.loadImage(e.target,c),n.unobserve(e.target)}}))}),{root:n[0]})),r.each((function(e,t){t.f7LazyObserverAdded||(t.f7LazyObserverAdded=!0,l.observe(t))})),void(n[0].f7LazyDestroy||(n[0].f7LazyDestroy=function(){l.disconnect(),delete n[0].f7LazyDestroy,delete n[0].f7LazyObserver}))}n[0].f7LazyDestroy||(n[0].f7LazyDestroy=function(){n[0].f7LazyAttached=!1,delete n[0].f7LazyAttached,n.off("lazy",u),n.off("scroll",u,!0),n.find(".tab").off("tab:mounted tab:show",u),t.off("resize",u)}),n[0].f7LazyAttached||(n[0].f7LazyAttached=!0,n.on("lazy",u),n.on("scroll",u,!0),n.find(".tab").on("tab:mounted tab:show",u),t.on("resize",u)),u()}function c(e){a.indexOf(e)>=0&&a.splice(a.indexOf(e),1),o=!1,t.params.lazy.sequential&&a.length>0&&(o=!0,t.lazy.loadImage(a[0],c))}function u(){t.lazy.load(n,(function(e){t.params.lazy.sequential&&o?a.indexOf(e)<0&&a.push(e):(o=!0,t.lazy.loadImage(e,c))}))}},isInViewport:function(e){var t=e.getBoundingClientRect(),n=this.params.lazy.threshold||0;return t.top>=0-n&&t.left>=0-n&&t.top<=this.height+n&&t.left<=this.width+n},loadImage:function(e,t){var n=this,r=g(e),i=r.attr("data-background"),a=i||r.attr("data-src");function o(){r.removeClass("lazy").addClass("lazy-loaded"),i?r.css("background-image","url(".concat(a,")")):a&&r.attr("src",a),t&&t(e),r.trigger("lazy:loaded"),n.emit("lazyLoaded",r[0])}if(!a)return r.trigger("lazy:load"),n.emit("lazyLoad",r[0]),void o();var l=new s.b.Image;l.onload=o,l.onerror=function(){r.removeClass("lazy").addClass("lazy-loaded"),i?r.css("background-image","url(".concat(n.params.lazy.placeholder||"",")")):r.attr("src",n.params.lazy.placeholder||""),t&&t(e),r.trigger("lazy:error"),n.emit("lazyError",r[0])},l.src=a,r.removeAttr("data-src").removeAttr("data-background"),r.trigger("lazy:load"),n.emit("lazyLoad",r[0])},load:function(e,t){var n=this,r=g(e);r.hasClass("page")||(r=r.parents(".page").eq(0)),0!==r.length&&r.find(".lazy").each((function(e,r){g(r).parents(".tab:not(.tab-active)").length>0||n.lazy.isInViewport(r)&&(t?t(r):n.lazy.loadImage(r))}))}},Lr={name:"lazy",params:{lazy:{placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEXCwsK592mkAAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",threshold:0,sequential:!0,observer:!0}},create:function(){j.extend(this,{lazy:{create:$r.create.bind(this),destroy:$r.destroy.bind(this),loadImage:$r.loadImage.bind(this),load:$r.load.bind(this),isInViewport:$r.isInViewport.bind(this)}})},on:{pageInit:function(e){(e.$el.find(".lazy").length>0||e.$el.hasClass("lazy"))&&this.lazy.create(e.$el)},pageAfterIn:function(e){this.params.lazy.observer&&ue.a.intersectionObserver||(e.$el.find(".lazy").length>0||e.$el.hasClass("lazy"))&&this.lazy.create(e.$el)},pageBeforeRemove:function(e){(e.$el.find(".lazy").length>0||e.$el.hasClass("lazy"))&&this.lazy.destroy(e.$el)},tabMounted:function(e){var t=g(e);(t.find(".lazy").length>0||t.hasClass("lazy"))&&this.lazy.create(t)},tabBeforeRemove:function(e){if(!this.params.lazy.observer||!ue.a.intersectionObserver){var t=g(e);(t.find(".lazy").length>0||t.hasClass("lazy"))&&this.lazy.destroy(t)}}}};function Pr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Or=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(Pr()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o()(this,r),t=n.call(this,i,[e]);var a=k()(t),s={};a.useModulesParams(s),a.params=j.extend(s,i);var l=g(a.params.el);if(0===l.length)return C()(t,void 0);if(a.$el=l,a.el=l[0],a.$el[0].f7DataTable){var c=a.$el[0].f7DataTable;return a.destroy(),C()(t,c)}function u(e){if(!e.detail||!e.detail.sentByF7DataTable){var t=g(this),n=t[0].checked,r=t.parents("td,th").index();if(t.parents("thead").length>0)0===r&&l.find("tbody tr")[n?"addClass":"removeClass"]("data-table-row-selected"),l.find("tbody tr td:nth-child(".concat(r+1,") input")).prop("checked",n).trigger("change",{sentByF7DataTable:!0}),t.prop("indeterminate",!1);else{0===r&&t.parents("tr")[n?"addClass":"removeClass"]("data-table-row-selected");var i=l.find("tbody .checkbox-cell:nth-child(".concat(r+1,') input[type="checkbox"]:checked')).length,o=l.find("tbody tr").length,s=l.find("thead .checkbox-cell:nth-child(".concat(r+1,') input[type="checkbox"]'));n?i===o&&s.prop("checked",!0).trigger("change",{sentByF7DataTable:!0}):s.prop("checked",!1),s.prop("indeterminate",i>0&&i<o)}a.checkSelectedHeader()}}function d(){var e,t=g(this),n=t.hasClass("sortable-cell-active"),r=t.hasClass("sortable-desc")?"desc":"asc";n?(e="desc"===r?"asc":"desc",t.removeClass("sortable-desc sortable-asc").addClass("sortable-".concat(e))):(l.find("thead .sortable-cell-active").removeClass("sortable-cell-active"),t.addClass("sortable-cell-active"),e=r),t.trigger("datatable:sort",e),a.emit("local::sort dataTableSort",a,e)}return a.$el[0].f7DataTable=a,j.extend(a,{collapsible:l.hasClass("data-table-collapsible"),$headerEl:l.find(".data-table-header"),$headerSelectedEl:l.find(".data-table-header-selected")}),a.attachEvents=function(){a.$el.on("change",'.checkbox-cell input[type="checkbox"]',u),a.$el.find("thead .sortable-cell").on("click",d)},a.detachEvents=function(){a.$el.off("change",'.checkbox-cell input[type="checkbox"]',u),a.$el.find("thead .sortable-cell").off("click",d)},a.useModules(),a.init(),C()(t,a)}return b()(r,[{key:"setCollapsibleLabels",value:function(){var e=this;e.collapsible&&e.$el.find("tbody td:not(.checkbox-cell)").each((function(t,n){var r=g(n),i=r.index(),a=r.attr("data-collapsible-title");a||""===a||r.attr("data-collapsible-title",e.$el.find("thead th").eq(i).text())}))}},{key:"checkSelectedHeader",value:function(){if(this.$headerEl.length>0&&this.$headerSelectedEl.length>0){var e=this.$el.find("tbody .checkbox-cell input:checked").length;this.$el[e>0?"addClass":"removeClass"]("data-table-has-checked"),this.$headerSelectedEl.find(".data-table-selected-count").text(e)}}},{key:"init",value:function(){this.attachEvents(),this.setCollapsibleLabels(),this.checkSelectedHeader()}},{key:"destroy",value:function(){var e=this;e.$el.trigger("datatable:beforedestroy"),e.emit("local::beforeDestroy dataTableBeforeDestroy",e),e.attachEvents(),e.$el[0]&&(e.$el[0].f7DataTable=null,delete e.$el[0].f7DataTable),j.deleteProps(e),e=null}}]),r}(z),Ir={name:"dataTable",static:{DataTable:Or},create:function(){this.dataTable=W({defaultSelector:".data-table",constructor:Or,app:this,domProp:"f7DataTable"})},on:{tabBeforeRemove:function(e){var t=this;g(e).find(".data-table-init").each((function(e,n){t.dataTable.destroy(n)}))},tabMounted:function(e){var t=this;g(e).find(".data-table-init").each((function(e,n){t.dataTable.create({el:n})}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".data-table-init").each((function(e,n){t.dataTable.destroy(n)}))},pageInit:function(e){var t=this;e.$el.find(".data-table-init").each((function(e,n){t.dataTable.create({el:n})}))}},vnode:{"data-table-init":{insert:function(e){var t=e.elm;this.dataTable.create({el:t})},destroy:function(e){var t=e.elm;this.dataTable.destroy(t)}}}},Ar={morphOpen:function(e,t){var n=this,r=g(e),i=g(t);if(0!==i.length){i.transition(0).addClass("fab-morph-target-visible");var a={width:i[0].offsetWidth,height:i[0].offsetHeight,offset:i.offset(),borderRadius:i.css("border-radius"),zIndex:i.css("z-index")},o={width:r[0].offsetWidth,height:r[0].offsetHeight,offset:r.offset(),translateX:j.getTranslate(r[0],"x"),translateY:j.getTranslate(r[0],"y")};r[0].f7FabMorphData={$targetEl:i,target:a,fab:o};var s=o.offset.left+o.width/2-(a.offset.left+a.width/2)-o.translateX,l=o.offset.top+o.height/2-(a.offset.top+a.height/2)-o.translateY,c=a.width/o.width,u=a.height/o.height,d=Math.ceil(parseInt(a.borderRadius,10)/Math.max(c,u));d>0&&(d+=2),r[0].f7FabMorphResizeHandler=function(){r.transition(0).transform(""),i.transition(0),a.width=i[0].offsetWidth,a.height=i[0].offsetHeight,a.offset=i.offset(),o.offset=r.offset();var e=o.offset.left+o.width/2-(a.offset.left+a.width/2)-o.translateX,t=o.offset.top+o.height/2-(a.offset.top+a.height/2)-o.translateY,n=a.width/o.width,s=a.height/o.height;r.transform("translate3d(".concat(-e,"px, ").concat(-t,"px, 0) scale(").concat(n,", ").concat(s,")"))},i.css("opacity",0).transform("scale(".concat(1/c,", ").concat(1/u,")")),r.addClass("fab-opened").css("z-index",a.zIndex-1).transform("translate3d(".concat(-s,"px, ").concat(-l,"px, 0)")),r.transitionEnd((function(){i.transition(""),j.nextFrame((function(){i.css("opacity",1).transform("scale(1,1)"),r.transform("translate3d(".concat(-s,"px, ").concat(-l,"px, 0) scale(").concat(c,", ").concat(u,")")).css("border-radius","".concat(d,"px")).css("box-shadow","none").css("opacity","0")})),n.on("resize",r[0].f7FabMorphResizeHandler),i.parents(".page-content").length>0&&i.parents(".page-content").on("scroll",r[0].f7FabMorphResizeHandler)}))}},morphClose:function(e){var t=g(e),n=t[0].f7FabMorphData;if(n){var r=n.$targetEl,i=n.target,a=n.fab;if(0!==r.length){var o=a.offset.left+a.width/2-(i.offset.left+i.width/2)-a.translateX,s=a.offset.top+a.height/2-(i.offset.top+i.height/2)-a.translateY,l=i.width/a.width,c=i.height/a.height;this.off("resize",t[0].f7FabMorphResizeHandler),r.parents(".page-content").length>0&&r.parents(".page-content").off("scroll",t[0].f7FabMorphResizeHandler),r.css("opacity",0).transform("scale(".concat(1/l,", ").concat(1/c,")")),t.transition("").css("box-shadow","").css("border-radius","").css("opacity","1").transform("translate3d(".concat(-o,"px, ").concat(-s,"px, 0)")),t.transitionEnd((function(){t.css("z-index","").removeClass("fab-opened").transform(""),j.nextFrame((function(){t.transitionEnd((function(){r.removeClass("fab-morph-target-visible").css("opacity","").transform("").transition("")}))}))}))}}},open:function(e,t){var n=g(e).eq(0),r=n.find(".fab-buttons");if(n.length&&!n.hasClass("fab-opened")&&(r.length||n.hasClass("fab-morph"))){if(this.fab.openedEl){if(this.fab.openedEl===n[0])return;this.fab.close(this.fab.openedEl)}this.fab.openedEl=n[0],n.hasClass("fab-morph")?this.fab.morphOpen(n,t||n.attr("data-morph-to")):n.addClass("fab-opened"),n.siblings(".fab-backdrop").addClass("backdrop-in"),n.trigger("fab:open")}},close:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".fab-opened",t=this,n=g(e).eq(0),r=n.find(".fab-buttons");n.length&&n.hasClass("fab-opened")&&(r.length||n.hasClass("fab-morph"))&&(t.fab.openedEl=null,n.hasClass("fab-morph")?t.fab.morphClose(n):n.removeClass("fab-opened"),n.siblings(".fab-backdrop").removeClass("backdrop-in"),n.trigger("fab:close"))},toggle:function(e){g(e).hasClass("fab-opened")?this.fab.close(e):this.fab.open(e)}},Dr={name:"fab",create:function(){j.extend(this,{fab:{openedEl:null,morphOpen:Ar.morphOpen.bind(this),morphClose:Ar.morphClose.bind(this),open:Ar.open.bind(this),close:Ar.close.bind(this),toggle:Ar.toggle.bind(this)}})},clicks:{".fab > a":function(e){this.fab.toggle(e.parents(".fab"))},".fab-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.fab.open(t.fab)},".fab-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.fab.close(t.fab)},".fab-backdrop":function(){this.fab.close()}}};function Nr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Rr=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(Nr()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o()(this,r),t=n.call(this,i,[e]);var a=k()(t),s={el:void 0,inputEl:void 0,inputEvents:"change input compositionend",disableButton:!0,disableButtonEl:void 0,backdropEl:void 0,searchContainer:void 0,searchItem:"li",searchIn:void 0,searchGroup:".list-group",searchGroupTitle:".item-divider, .list-group-title",ignore:".searchbar-ignore",foundEl:".searchbar-found",notFoundEl:".searchbar-not-found",hideOnEnableEl:".searchbar-hide-on-enable",hideOnSearchEl:".searchbar-hide-on-search",backdrop:void 0,removeDiacritics:!0,customSearch:!1,hideDividers:!0,hideGroups:!0,disableOnBackdropClick:!0,expandable:!1,inline:!1};a.useModulesParams(s),a.params=j.extend(s,i);var l,c=g(a.params.el);if(0===c.length)return C()(t,a);if(c[0].f7Searchbar)return C()(t,c[0].f7Searchbar);c[0].f7Searchbar=a;var u,d,h,f,p=c.parents(".navbar");if(c.parents(".page").length>0)l=c.parents(".page");else if(p.length>0&&!(l=g(e.navbar.getPageByEl(p[0]))).length){var m=c.parents(".view").find(".page-current");m[0]&&m[0].f7Page&&m[0].f7Page.navbarEl===p[0]&&(l=m)}i.foundEl?u=g(i.foundEl):"string"==typeof a.params.foundEl&&l&&(u=l.find(a.params.foundEl)),i.notFoundEl?d=g(i.notFoundEl):"string"==typeof a.params.notFoundEl&&l&&(d=l.find(a.params.notFoundEl)),i.hideOnEnableEl?h=g(i.hideOnEnableEl):"string"==typeof a.params.hideOnEnableEl&&l&&(h=l.find(a.params.hideOnEnableEl)),i.hideOnSearchEl?f=g(i.hideOnSearchEl):"string"==typeof a.params.hideOnSearchEl&&l&&(f=l.find(a.params.hideOnSearchEl));var v,y,b,_,w=a.params.expandable||c.hasClass("searchbar-expandable"),E=a.params.inline||c.hasClass("searchbar-inline");function S(e){e.preventDefault()}function T(e){a.enable(e),a.$el.addClass("searchbar-focused")}function M(){a.$el.removeClass("searchbar-focused"),"aurora"!==e.theme||_&&_.length&&a.params.disableButton||a.query||a.disable()}function x(){var e=a.$inputEl.val().trim();(a.$searchContainer&&a.$searchContainer.length>0&&(a.params.searchIn||a.isVirtualList||a.params.searchIn===a.params.searchItem)||a.params.customSearch)&&a.search(e,!0)}function $(e,t){a.$el.trigger("searchbar:clear",t),a.emit("local::clear searchbarClear",a,t)}function L(e){a.disable(e)}function P(){!a||a&&!a.$el||a.enabled&&(a.$el.removeClass("searchbar-enabled"),a.expandable&&a.$el.parents(".navbar").removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition"))}function O(){!a||a&&!a.$el||a.enabled&&(a.$el.addClass("searchbar-enabled"),a.expandable&&a.$el.parents(".navbar").addClass("with-searchbar-expandable-enabled-no-transition"))}return void 0===a.params.backdrop&&(a.params.backdrop=!E&&"aurora"!==e.theme),a.params.backdrop&&0===(v=a.params.backdropEl?g(a.params.backdropEl):l&&l.length>0?l.find(".searchbar-backdrop"):c.siblings(".searchbar-backdrop")).length&&(v=g('<div class="searchbar-backdrop"></div>'),l&&l.length?c.parents(l).length>0&&p&&0===c.parents(p).length?v.insertBefore(c):v.insertBefore(l.find(".page-content").eq(0)):v.insertBefore(c)),a.params.searchContainer&&(y=g(a.params.searchContainer)),b=a.params.inputEl?g(a.params.inputEl):c.find('input[type="search"]').eq(0),a.params.disableButton&&(_=a.params.disableButtonEl?g(a.params.disableButtonEl):c.find(".searchbar-disable-button")),j.extend(a,{app:e,view:e.views.get(c.parents(".view")),$el:c,el:c[0],$backdropEl:v,backdropEl:v&&v[0],$searchContainer:y,searchContainer:y&&y[0],$inputEl:b,inputEl:b[0],$disableButtonEl:_,disableButtonEl:_&&_[0],disableButtonHasMargin:!1,$pageEl:l,pageEl:l&&l[0],$navbarEl:p,navbarEl:p&&p[0],$foundEl:u,foundEl:u&&u[0],$notFoundEl:d,notFoundEl:d&&d[0],$hideOnEnableEl:h,hideOnEnableEl:h&&h[0],$hideOnSearchEl:f,hideOnSearchEl:f&&f[0],previousQuery:"",query:"",isVirtualList:y&&y.hasClass("virtual-list"),virtualList:void 0,enabled:!1,expandable:w,inline:E}),a.attachEvents=function(){c.on("submit",S),a.params.disableButton&&a.$disableButtonEl.on("click",L),a.params.disableOnBackdropClick&&a.$backdropEl&&a.$backdropEl.on("click",L),a.expandable&&"ios"===e.theme&&a.view&&p.length&&a.$pageEl&&(a.$pageEl.on("page:beforeout",P),a.$pageEl.on("page:beforein",O)),a.$inputEl.on("focus",T),a.$inputEl.on("blur",M),a.$inputEl.on(a.params.inputEvents,x),a.$inputEl.on("input:clear",$)},a.detachEvents=function(){c.off("submit",S),a.params.disableButton&&a.$disableButtonEl.off("click",L),a.params.disableOnBackdropClick&&a.$backdropEl&&a.$backdropEl.off("click",L),a.expandable&&"ios"===e.theme&&a.view&&p.length&&a.$pageEl&&(a.$pageEl.off("page:beforeout",P),a.$pageEl.off("page:beforein",O)),a.$inputEl.off("focus",T),a.$inputEl.off("blur",M),a.$inputEl.off(a.params.inputEvents,x),a.$inputEl.off("input:clear",$)},a.useModules(),a.init(),C()(t,a)}return b()(r,[{key:"clear",value:function(e){var t=this;if(!t.query&&e&&g(e.target).hasClass("searchbar-clear"))return t.disable(),t;var n=t.value;return t.$inputEl.val("").trigger("change").focus(),t.$el.trigger("searchbar:clear",n),t.emit("local::clear searchbarClear",t,n),t}},{key:"setDisableButtonMargin",value:function(){var e=this;if(!e.expandable){var t=e.app;e.$disableButtonEl.transition(0).show(),e.$disableButtonEl.css("margin-".concat(t.rtl?"left":"right"),"".concat(-e.disableButtonEl.offsetWidth,"px")),e._clientLeft=e.$disableButtonEl[0].clientLeft,e.$disableButtonEl.transition(""),e.disableButtonHasMargin=!0}}},{key:"enable",value:function(e){var t=this;if(t.enabled)return t;var n=t.app;function r(){t.$backdropEl&&(t.$searchContainer&&t.$searchContainer.length||t.params.customSearch)&&!t.$el.hasClass("searchbar-enabled")&&!t.query&&t.backdropShow(),t.$el.addClass("searchbar-enabled"),(!t.$disableButtonEl||t.$disableButtonEl&&0===t.$disableButtonEl.length)&&t.$el.addClass("searchbar-enabled-no-disable-button"),!t.expandable&&t.$disableButtonEl&&t.$disableButtonEl.length>0&&"md"!==n.theme&&(t.disableButtonHasMargin||t.setDisableButtonMargin(),t.$disableButtonEl.css("margin-".concat(n.rtl?"left":"right"),"0px")),t.expandable&&(t.$el.parents(".navbar").hasClass("navbar-large")&&t.$pageEl&&t.$pageEl.find(".page-content").addClass("with-searchbar-expandable-enabled"),"md"===n.theme&&t.$el.parents(".navbar").length?t.$el.parents(".navbar").addClass("with-searchbar-expandable-enabled"):(t.$el.parents(".navbar").addClass("with-searchbar-expandable-enabled"),t.$el.parents(".navbar-large").addClass("navbar-large-collapsed"))),t.$hideOnEnableEl&&t.$hideOnEnableEl.addClass("hidden-by-searchbar"),t.$el.trigger("searchbar:enable"),t.emit("local::enable searchbarEnable",t)}t.enabled=!0;var i=!1;return!0===e&&s.a.activeElement!==t.inputEl&&(i=!0),n.device.ios&&"ios"===n.theme?t.expandable?(i&&t.$inputEl.focus(),r()):(i&&t.$inputEl.focus(),!e||"focus"!==e.type&&!0!==e?r():j.nextTick((function(){r()}),400)):(i&&t.$inputEl.focus(),"md"===n.theme&&t.expandable&&t.$el.parents(".page, .view, .navbar-inner, .navbar").scrollLeft(n.rtl?100:0),r()),t}},{key:"disable",value:function(){var e=this;if(!e.enabled)return e;var t=e.app;return e.$inputEl.val("").trigger("change"),e.$el.removeClass("searchbar-enabled searchbar-focused searchbar-enabled-no-disable-button"),e.expandable&&(e.$el.parents(".navbar").hasClass("navbar-large")&&e.$pageEl&&(e.$pageEl.find(".page-content").removeClass("with-searchbar-expandable-enabled").addClass("with-searchbar-expandable-closing"),e.$el.transitionEnd((function(){e.$pageEl.find(".page-content").removeClass("with-searchbar-expandable-closing")}))),"md"===t.theme&&e.$el.parents(".navbar").length?(e.$el.parents(".navbar").removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition").addClass("with-searchbar-expandable-closing"),e.$el.transitionEnd((function(){e.$el.parents(".navbar").removeClass("with-searchbar-expandable-closing")}))):(e.$el.parents(".navbar").removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition").addClass("with-searchbar-expandable-closing"),e.$el.transitionEnd((function(){e.$el.parents(".navbar").removeClass("with-searchbar-expandable-closing")})),e.$pageEl&&e.$pageEl.find(".page-content").trigger("scroll"))),!e.expandable&&e.$disableButtonEl&&e.$disableButtonEl.length>0&&"md"!==t.theme&&e.$disableButtonEl.css("margin-".concat(t.rtl?"left":"right"),"".concat(-e.disableButtonEl.offsetWidth,"px")),e.$backdropEl&&(e.$searchContainer&&e.$searchContainer.length||e.params.customSearch)&&e.backdropHide(),e.enabled=!1,e.$inputEl.blur(),e.$hideOnEnableEl&&e.$hideOnEnableEl.removeClass("hidden-by-searchbar"),e.$el.trigger("searchbar:disable"),e.emit("local::disable searchbarDisable",e),e}},{key:"toggle",value:function(){return this.enabled?this.disable():this.enable(!0),this}},{key:"backdropShow",value:function(){return this.$backdropEl&&this.$backdropEl.addClass("searchbar-backdrop-in"),this}},{key:"backdropHide",value:function(){return this.$backdropEl&&this.$backdropEl.removeClass("searchbar-backdrop-in"),this}},{key:"search",value:function(e,t){var n=this;if(n.previousQuery=n.query||"",e===n.previousQuery)return n;t||(n.enabled||n.enable(),n.$inputEl.val(e),n.$inputEl.trigger("input")),n.query=e,n.value=e;var r=n.$searchContainer,i=n.$el,a=n.$foundEl,o=n.$notFoundEl,s=n.$hideOnSearchEl,l=n.isVirtualList;if(e.length>0&&s?s.addClass("hidden-by-searchbar"):s&&s.removeClass("hidden-by-searchbar"),(r&&r.length&&i.hasClass("searchbar-enabled")||n.params.customSearch&&i.hasClass("searchbar-enabled"))&&(0===e.length?n.backdropShow():n.backdropHide()),n.params.customSearch)return i.trigger("searchbar:search",{query:e,previousQuery:n.previousQuery}),n.emit("local::search searchbarSearch",n,e,n.previousQuery),n;var c,u=[];if(l){if(n.virtualList=r[0].f7VirtualList,""===e.trim())return n.virtualList.resetFilter(),o&&o.hide(),a&&a.show(),i.trigger("searchbar:search",{query:e,previousQuery:n.previousQuery}),n.emit("local::search searchbarSearch",n,e,n.previousQuery),n;if(c=n.params.removeDiacritics?j.removeDiacritics(e):e,n.virtualList.params.searchAll)u=n.virtualList.params.searchAll(c,n.virtualList.items)||[];else if(n.virtualList.params.searchByItem)for(var d=0;d<n.virtualList.items.length;d+=1)n.virtualList.params.searchByItem(c,n.virtualList.params.items[d],d)&&u.push(d)}else{var h;h=n.params.removeDiacritics?j.removeDiacritics(e.trim().toLowerCase()).split(" "):e.trim().toLowerCase().split(" "),r.find(n.params.searchItem).removeClass("hidden-by-searchbar").each((function(e,t){var r=g(t),i=[],a=n.params.searchIn?r.find(n.params.searchIn):r;n.params.searchIn===n.params.searchItem&&(a=r),a.each((function(e,t){var r=g(t).text().trim().toLowerCase();n.params.removeDiacritics&&(r=j.removeDiacritics(r)),i.push(r)})),i=i.join(" ");for(var o=0,s=0;s<h.length;s+=1)i.indexOf(h[s])>=0&&(o+=1);o===h.length||n.params.ignore&&r.is(n.params.ignore)?u.push(r[0]):r.addClass("hidden-by-searchbar")})),n.params.hideDividers&&r.find(n.params.searchGroupTitle).each((function(e,t){for(var r=g(t),i=r.nextAll(n.params.searchItem),a=!0,o=0;o<i.length;o+=1){var s=i.eq(o);if(s.is(n.params.searchGroupTitle))break;s.hasClass("hidden-by-searchbar")||(a=!1)}var l=n.params.ignore&&r.is(n.params.ignore);a&&!l?r.addClass("hidden-by-searchbar"):r.removeClass("hidden-by-searchbar")})),n.params.hideGroups&&r.find(n.params.searchGroup).each((function(e,t){var r=g(t),i=n.params.ignore&&r.is(n.params.ignore);0!==r.find(n.params.searchItem).filter((function(e,t){return!g(t).hasClass("hidden-by-searchbar")})).length||i?r.removeClass("hidden-by-searchbar"):r.addClass("hidden-by-searchbar")}))}return 0===u.length?(o&&o.show(),a&&a.hide()):(o&&o.hide(),a&&a.show()),l&&n.virtualList&&n.virtualList.filterItems(u),i.trigger("searchbar:search",{query:e,previousQuery:n.previousQuery,foundItems:u}),n.emit("local::search searchbarSearch",n,e,n.previousQuery,u),n}},{key:"init",value:function(){var e=this;e.expandable&&e.$el&&e.$el.addClass("searchbar-expandable"),e.inline&&e.$el&&e.$el.addClass("searchbar-inline"),e.attachEvents()}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy searchbarBeforeDestroy",e),e.$el.trigger("searchbar:beforedestroy"),e.detachEvents(),e.$el[0]&&(e.$el[0].f7Searchbar=null,delete e.$el[0].f7Searchbar),j.deleteProps(e)}}]),r}(z),Br={name:"searchbar",static:{Searchbar:Rr},create:function(){this.searchbar=W({defaultSelector:".searchbar",constructor:Rr,app:this,domProp:"f7Searchbar",addMethods:"clear enable disable toggle search".split(" ")})},on:{tabMounted:function(e){var t=this;g(e).find(".searchbar-init").each((function(e,n){var r=g(n);t.searchbar.create(j.extend(r.dataset(),{el:n}))}))},tabBeforeRemove:function(e){g(e).find(".searchbar-init").each((function(e,t){t.f7Searchbar&&t.f7Searchbar.destroy&&t.f7Searchbar.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".searchbar-init").each((function(e,n){var r=g(n);t.searchbar.create(j.extend(r.dataset(),{el:n}))})),"ios"===t.theme&&e.view&&e.view.router.dynamicNavbar&&e.$navbarEl&&e.$navbarEl.length>0&&e.$navbarEl.find(".searchbar-init").each((function(e,n){var r=g(n);t.searchbar.create(j.extend(r.dataset(),{el:n}))}))},pageBeforeRemove:function(e){e.$el.find(".searchbar-init").each((function(e,t){t.f7Searchbar&&t.f7Searchbar.destroy&&t.f7Searchbar.destroy()})),"ios"===this.theme&&e.view&&e.view.router.dynamicNavbar&&e.$navbarEl&&e.$navbarEl.length>0&&e.$navbarEl.find(".searchbar-init").each((function(e,t){t.f7Searchbar&&t.f7Searchbar.destroy&&t.f7Searchbar.destroy()}))}},clicks:{".searchbar-clear":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=n.searchbar.get(t.searchbar);r&&r.clear()},".searchbar-enable":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=n.searchbar.get(t.searchbar);r&&r.enable(!0)},".searchbar-disable":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=n.searchbar.get(t.searchbar);r&&r.disable()},".searchbar-toggle":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=n.searchbar.get(t.searchbar);r&&r.toggle()}},vnode:{"searchbar-init":{insert:function(e){var t=e.elm,n=g(t);this.searchbar.create(j.extend(n.dataset(),{el:t}))},destroy:function(e){var t=e.elm;t.f7Searchbar&&t.f7Searchbar.destroy&&t.f7Searchbar.destroy()}}}};function Yr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var jr=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(Yr()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o()(this,r),t=n.call(this,i,[e]);var a=k()(t),s={autoLayout:!0,messages:[],newMessagesFirst:!1,scrollMessages:!0,scrollMessagesOnEdge:!0,firstMessageRule:void 0,lastMessageRule:void 0,tailMessageRule:void 0,sameNameMessageRule:void 0,sameHeaderMessageRule:void 0,sameFooterMessageRule:void 0,sameAvatarMessageRule:void 0,customClassMessageRule:void 0,renderMessage:void 0};a.useModulesParams(s),a.params=j.extend(s,i);var l=g(i.el).eq(0);if(0===l.length)return C()(t,a);if(l[0].f7Messages)return C()(t,l[0].f7Messages);l[0].f7Messages=a;var c=l.closest(".page-content").eq(0);return j.extend(a,{messages:a.params.messages,$el:l,el:l[0],$pageContentEl:c,pageContentEl:c[0]}),a.useModules(),a.init(),C()(t,a)}return b()(r,[{key:"getMessageData",value:function(e){var t=g(e),n={name:t.find(".message-name").html(),header:t.find(".message-header").html(),textHeader:t.find(".message-text-header").html(),textFooter:t.find(".message-text-footer").html(),footer:t.find(".message-footer").html(),isTitle:t.hasClass("messages-title"),type:t.hasClass("message-sent")?"sent":"received",text:t.find(".message-text").html(),image:t.find(".message-image").html(),imageSrc:t.find(".message-image img").attr("src"),typing:t.hasClass("message-typing")};n.isTitle&&(n.text=t.html()),n.text&&n.textHeader&&(n.text=n.text.replace('<div class="message-text-header">'.concat(n.textHeader,"</div>"),"")),n.text&&n.textFooter&&(n.text=n.text.replace('<div class="message-text-footer">'.concat(n.textFooter,"</div>"),""));var r=t.find(".message-avatar").css("background-image");return"none"!==r&&""!==r||(r=void 0),r=r&&"string"==typeof r?r.replace("url(","").replace(")","").replace(/"/g,"").replace(/'/g,""):void 0,n.avatar=r,n}},{key:"getMessagesData",value:function(){var e=this,t=[];return e.$el.find(".message, .messages-title").each((function(n,r){t.push(e.getMessageData(r))})),t}},{key:"renderMessage",value:function(e){var t=this,n=j.extend({type:"sent",attrs:{}},e);if(t.params.renderMessage)return t.params.renderMessage.call(t,n);if(n.isTitle)return'<div class="messages-title">'.concat(n.text,"</div>");var r=Object.keys(n.attrs).map((function(e){return"".concat(e,'="').concat(n.attrs[e],'"')})).join(" ");return'\n <div class="message message-'.concat(n.type," ").concat(n.isTyping?"message-typing":""," ").concat(n.cssClass||"",'" ').concat(r,">\n ").concat(n.avatar?'\n <div class="message-avatar" style="background-image:url('.concat(n.avatar,')"></div>\n '):"",'\n <div class="message-content">\n ').concat(n.name?'<div class="message-name">'.concat(n.name,"</div>"):"","\n ").concat(n.header?'<div class="message-header">'.concat(n.header,"</div>"):"",'\n <div class="message-bubble">\n ').concat(n.textHeader?'<div class="message-text-header">'.concat(n.textHeader,"</div>"):"","\n ").concat(n.image?'<div class="message-image">'.concat(n.image,"</div>"):"","\n ").concat(n.imageSrc&&!n.image?'<div class="message-image"><img src="'.concat(n.imageSrc,'"></div>'):"","\n ").concat(n.text||n.isTyping?'<div class="message-text">'.concat(n.text||"").concat(n.isTyping?'<div class="message-typing-indicator"><div></div><div></div><div></div></div>':"","</div>"):"","\n ").concat(n.textFooter?'<div class="message-text-footer">'.concat(n.textFooter,"</div>"):"","\n </div>\n ").concat(n.footer?'<div class="message-footer">'.concat(n.footer,"</div>"):"","\n </div>\n </div>\n ")}},{key:"renderMessages",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.messages,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.newMessagesFirst?"prepend":"append",n=this,r=e.map((function(e){return n.renderMessage(e)})).join("");n.$el[t](r)}},{key:"isFirstMessage",value:function(){var e,t=this;return!!t.params.firstMessageRule&&(e=t.params).firstMessageRule.apply(e,arguments)}},{key:"isLastMessage",value:function(){var e,t=this;return!!t.params.lastMessageRule&&(e=t.params).lastMessageRule.apply(e,arguments)}},{key:"isTailMessage",value:function(){var e,t=this;return!!t.params.tailMessageRule&&(e=t.params).tailMessageRule.apply(e,arguments)}},{key:"isSameNameMessage",value:function(){var e,t=this;return!!t.params.sameNameMessageRule&&(e=t.params).sameNameMessageRule.apply(e,arguments)}},{key:"isSameHeaderMessage",value:function(){var e,t=this;return!!t.params.sameHeaderMessageRule&&(e=t.params).sameHeaderMessageRule.apply(e,arguments)}},{key:"isSameFooterMessage",value:function(){var e,t=this;return!!t.params.sameFooterMessageRule&&(e=t.params).sameFooterMessageRule.apply(e,arguments)}},{key:"isSameAvatarMessage",value:function(){var e,t=this;return!!t.params.sameAvatarMessageRule&&(e=t.params).sameAvatarMessageRule.apply(e,arguments)}},{key:"isCustomClassMessage",value:function(){var e,t=this;if(t.params.customClassMessageRule)return(e=t.params).customClassMessageRule.apply(e,arguments)}},{key:"layout",value:function(){var e=this;e.$el.find(".message, .messages-title").each((function(t,n){var r=g(n);e.messages||(e.messages=e.getMessagesData());var i=[],a=e.messages[t],o=e.messages[t-1],s=e.messages[t+1];e.isFirstMessage(a,o,s)&&i.push("message-first"),e.isLastMessage(a,o,s)&&i.push("message-last"),e.isTailMessage(a,o,s)&&i.push("message-tail"),e.isSameNameMessage(a,o,s)&&i.push("message-same-name"),e.isSameHeaderMessage(a,o,s)&&i.push("message-same-header"),e.isSameFooterMessage(a,o,s)&&i.push("message-same-footer"),e.isSameAvatarMessage(a,o,s)&&i.push("message-same-avatar");var l=e.isCustomClassMessage(a,o,s);l&&l.length&&("string"==typeof l&&(l=l.split(" ")),l.forEach((function(e){i.push(e)}))),r.removeClass("message-first message-last message-tail message-same-name message-same-header message-same-footer message-same-avatar"),i.forEach((function(e){r.addClass(e)}))}))}},{key:"clear",value:function(){this.messages=[],this.$el.html("")}},{key:"removeMessage",value:function(e){var t,n,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this;return"number"==typeof e?(t=e,n=i.$el.find(".message, .messages-title").eq(t)):i.messages&&i.messages.indexOf(e)>=0?(t=i.messages.indexOf(e),n=i.$el.children().eq(t)):t=(n=g(e)).index(),0===n.length||(n.remove(),i.messages.splice(t,1),i.params.autoLayout&&r&&i.layout()),i}},{key:"removeMessages",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this;if(Array.isArray(e)){var r=[];e.forEach((function(e){r.push(n.$el.find(".message, .messages-title").eq(e))})),r.forEach((function(e){n.removeMessage(e,!1)}))}else g(e).each((function(e,t){n.removeMessage(t,!1)}));return n.params.autoLayout&&t&&n.layout(),n}},{key:"addMessage",value:function(){for(var e,t,n,r=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return"boolean"==typeof a[1]?(e=a[0],t=a[1],n=a[2]):(e=a[0],n=a[1],t=a[2]),void 0===t&&(t=!0),void 0===n&&(n=r.params.newMessagesFirst?"prepend":"append"),r.addMessages([e],t,n)}},{key:"addMessages",value:function(){for(var e,t,n,r=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];"boolean"==typeof a[1]?(e=a[0],t=a[1],n=a[2]):(e=a[0],n=a[1],t=a[2]),void 0===t&&(t=!0),void 0===n&&(n=r.params.newMessagesFirst?"prepend":"append");var s=r.pageContentEl.scrollHeight,l=r.pageContentEl.offsetHeight,c=r.pageContentEl.scrollTop,u="",d=r.messages.filter((function(e){return e.isTyping}))[0];e.forEach((function(e){d?"append"===n?r.messages.splice(r.messages.indexOf(d),0,e):r.messages.splice(r.messages.indexOf(d)+1,0,e):r.messages["append"===n?"push":"unshift"](e),u+=r.renderMessage(e)}));var h=g(u);if(t&&("append"!==n||r.params.newMessagesFirst||h.addClass("message-appear-from-bottom"),"prepend"===n&&r.params.newMessagesFirst&&h.addClass("message-appear-from-top")),d?"append"===n?h.insertBefore(r.$el.find(".message-typing")):h.insertAfter(r.$el.find(".message-typing")):r.$el[n](h),r.params.autoLayout&&r.layout(),"prepend"!==n||d||(r.pageContentEl.scrollTop=c+(r.pageContentEl.scrollHeight-s)),r.params.scrollMessages&&("append"===n&&!r.params.newMessagesFirst||"prepend"===n&&r.params.newMessagesFirst&&!d))if(r.params.scrollMessagesOnEdge){var f=!1;r.params.newMessagesFirst&&0===c&&(f=!0),!r.params.newMessagesFirst&&c-(s-l)>=-10&&(f=!0),f&&r.scroll(t?void 0:0)}else r.scroll(t?void 0:0);return r}},{key:"showTyping",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this,n=t.messages.filter((function(e){return e.isTyping}))[0];return n&&t.removeMessage(t.messages.indexOf(n)),t.addMessage(j.extend({type:"received",isTyping:!0},e)),t}},{key:"hideTyping",value:function(){var e,t,n=this;if(n.messages.forEach((function(t,n){t.isTyping&&(e=n)})),void 0!==e&&n.$el.find(".message").eq(e).hasClass("message-typing")&&(t=!0,n.removeMessage(e)),!t){var r=n.$el.find(".message-typing");r.length&&n.removeMessage(r)}return n}},{key:"scroll",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,n=arguments.length>1?arguments[1]:void 0,r=this,i=r.pageContentEl.scrollTop;if(void 0!==n)e=n;else if((e=r.params.newMessagesFirst?0:r.pageContentEl.scrollHeight-r.pageContentEl.offsetHeight)===i)return r;return r.$pageContentEl.scrollTop(e,t),r}},{key:"init",value:function(){var e=this;e.messages&&0!==e.messages.length||(e.messages=e.getMessagesData()),e.params.messages&&e.params.messages.length&&e.renderMessages(),e.params.autoLayout&&e.layout(),e.params.scrollMessages&&e.scroll(0)}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy messagesBeforeDestroy",e),e.$el.trigger("messages:beforedestroy"),e.$el[0]&&(e.$el[0].f7Messages=null,delete e.$el[0].f7Messages),j.deleteProps(e)}}]),r}(z),Fr={name:"messages",static:{Messages:jr},create:function(){this.messages=W({defaultSelector:".messages",constructor:jr,app:this,domProp:"f7Messages",addMethods:"renderMessages layout scroll clear removeMessage removeMessages addMessage addMessages".split(" ")})},on:{tabBeforeRemove:function(e){var t=this;g(e).find(".messages-init").each((function(e,n){t.messages.destroy(n)}))},tabMounted:function(e){var t=this;g(e).find(".messages-init").each((function(e,n){t.messages.create({el:n})}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".messages-init").each((function(e,n){t.messages.destroy(n)}))},pageInit:function(e){var t=this;e.$el.find(".messages-init").each((function(e,n){t.messages.create({el:n})}))}},vnode:{"messages-init":{insert:function(e){var t=e.elm;this.messages.create({el:t})},destroy:function(e){var t=e.elm;this.messages.destroy(t)}}}};function Hr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Ur=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(Hr()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o()(this,r),t=n.call(this,i,[e]);var a=k()(t),s={top:!1,topOffset:0,bottomOffset:0,attachments:[],renderAttachments:void 0,renderAttachment:void 0,maxHeight:null,resizePage:!0};a.useModulesParams(s),a.params=j.extend(s,i);var l=g(a.params.el);if(0===l.length)return C()(t,a);if(l[0].f7Messagebar)return C()(t,l[0].f7Messagebar);l[0].f7Messagebar=a;var c,u=l.parents(".page").eq(0),d=u.find(".page-content").eq(0),h=l.find(".messagebar-area");c=a.params.textareaEl?g(a.params.textareaEl):l.find("textarea");var f=l.find(".messagebar-attachments"),p=l.find(".messagebar-sheet");function m(){a.params.resizePage&&a.resizePage()}function v(e){e.preventDefault()}function y(e){var t=g(this).index();g(e.target).closest(".messagebar-attachment-delete").length?(g(this).trigger("messagebar:attachmentdelete",t),a.emit("local::attachmentDelete messagebarAttachmentDelete",a,this,t)):(g(this).trigger("messagebar:attachmentclick",t),a.emit("local::attachmentClick messagebarAttachmentClick",a,this,t))}function b(){a.checkEmptyState(),a.$el.trigger("messagebar:change"),a.emit("local::change messagebarChange",a)}function _(){a.sheetHide(),a.$el.addClass("messagebar-focused"),a.$el.trigger("messagebar:focus"),a.emit("local::focus messagebarFocus",a)}function w(){a.$el.removeClass("messagebar-focused"),a.$el.trigger("messagebar:blur"),a.emit("local::blur messagebarBlur",a)}return a.params.top&&l.addClass("messagebar-top"),j.extend(a,{$el:l,el:l[0],$areaEl:h,areaEl:h[0],$textareaEl:c,textareaEl:c[0],$attachmentsEl:f,attachmentsEl:f[0],attachmentsVisible:f.hasClass("messagebar-attachments-visible"),$sheetEl:p,sheetEl:p[0],sheetVisible:p.hasClass("messagebar-sheet-visible"),$pageEl:u,pageEl:u[0],$pageContentEl:d,pageContentEl:d,top:l.hasClass("messagebar-top")||a.params.top,attachments:[]}),a.attachEvents=function(){l.on("textarea:resize",m),l.on("submit",v),l.on("click",".messagebar-attachment",y),c.on("change input",b),c.on("focus",_),c.on("blur",w),e.on("resize",m)},a.detachEvents=function(){l.off("textarea:resize",m),l.off("submit",v),l.off("click",".messagebar-attachment",y),c.off("change input",b),c.off("focus",_),c.off("blur",w),e.off("resize",m)},a.useModules(),a.init(),C()(t,a)}return b()(r,[{key:"focus",value:function(){return this.$textareaEl.focus(),this}},{key:"blur",value:function(){return this.$textareaEl.blur(),this}},{key:"clear",value:function(){return this.$textareaEl.val("").trigger("change"),this}},{key:"getValue",value:function(){return this.$textareaEl.val().trim()}},{key:"setValue",value:function(e){return this.$textareaEl.val(e).trigger("change"),this}},{key:"setPlaceholder",value:function(e){return this.$textareaEl.attr("placeholder",e),this}},{key:"resizePage",value:function(){var e=this.params,t=this.$el,n=this.top,r=this.$pageEl,i=this.$pageContentEl,a=this.$areaEl,o=this.$textareaEl,s=this.$sheetEl,l=this.$attachmentsEl,c=t[0].offsetHeight,u=e.maxHeight;if(n);else{var d=parseInt(i.css("padding-bottom"),10),h=c+e.bottomOffset;if(h!==d&&i.length){var f=parseInt(i.css("padding-top"),10),p=i[0].scrollHeight,m=i[0].offsetHeight,v=i[0].scrollTop===p-m;u||(u=r[0].offsetHeight-f-s.outerHeight()-l.outerHeight()-parseInt(a.css("margin-top"),10)-parseInt(a.css("margin-bottom"),10)),o.css("max-height","".concat(u,"px")),i.css("padding-bottom","".concat(h,"px")),v&&i.scrollTop(i[0].scrollHeight-m),t.trigger("messagebar:resizepage"),this.emit("local::resizePage messagebarResizePage",this)}}}},{key:"checkEmptyState",value:function(){var e=this.$el,t=this.$textareaEl.val().trim();t&&t.length?e.addClass("messagebar-with-value"):e.removeClass("messagebar-with-value")}},{key:"attachmentsCreate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this,n=g('<div class="messagebar-attachments">'.concat(e,"</div>"));return n.insertBefore(t.$textareaEl),j.extend(t,{$attachmentsEl:n,attachmentsEl:n[0]}),t}},{key:"attachmentsShow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this;return t.$attachmentsEl=t.$el.find(".messagebar-attachments"),0===t.$attachmentsEl.length&&t.attachmentsCreate(e),t.$el.addClass("messagebar-attachments-visible"),t.attachmentsVisible=!0,t.params.resizePage&&t.resizePage(),t}},{key:"attachmentsHide",value:function(){return this.$el.removeClass("messagebar-attachments-visible"),this.attachmentsVisible=!1,this.params.resizePage&&this.resizePage(),this}},{key:"attachmentsToggle",value:function(){return this.attachmentsVisible?this.attachmentsHide():this.attachmentsShow(),this}},{key:"renderAttachment",value:function(e){return this.params.renderAttachment?this.params.renderAttachment.call(this,e):'\n <div class="messagebar-attachment">\n <img src="'.concat(e,'">\n <span class="messagebar-attachment-delete"></span>\n </div>\n ')}},{key:"renderAttachments",value:function(){var e,t=this;e=t.params.renderAttachments?t.params.renderAttachments.call(t,t.attachments):"".concat(t.attachments.map((function(e){return t.renderAttachment(e)})).join("")),0===t.$attachmentsEl.length?t.attachmentsCreate(e):t.$attachmentsEl.html(e)}},{key:"sheetCreate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this,n=g('<div class="messagebar-sheet">'.concat(e,"</div>"));return t.$el.append(n),j.extend(t,{$sheetEl:n,sheetEl:n[0]}),t}},{key:"sheetShow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this;return t.$sheetEl=t.$el.find(".messagebar-sheet"),0===t.$sheetEl.length&&t.sheetCreate(e),t.$el.addClass("messagebar-sheet-visible"),t.sheetVisible=!0,t.params.resizePage&&t.resizePage(),t}},{key:"sheetHide",value:function(){return this.$el.removeClass("messagebar-sheet-visible"),this.sheetVisible=!1,this.params.resizePage&&this.resizePage(),this}},{key:"sheetToggle",value:function(){return this.sheetVisible?this.sheetHide():this.sheetShow(),this}},{key:"init",value:function(){return this.attachEvents(),this.checkEmptyState(),this}},{key:"destroy",value:function(){this.emit("local::beforeDestroy messagebarBeforeDestroy",this),this.$el.trigger("messagebar:beforedestroy"),this.detachEvents(),this.$el[0]&&(this.$el[0].f7Messagebar=null,delete this.$el[0].f7Messagebar),j.deleteProps(this)}}]),r}(z),zr={name:"messagebar",static:{Messagebar:Ur},create:function(){this.messagebar=W({defaultSelector:".messagebar",constructor:Ur,app:this,domProp:"f7Messagebar",addMethods:"clear getValue setValue setPlaceholder resizePage focus blur attachmentsCreate attachmentsShow attachmentsHide attachmentsToggle renderAttachments sheetCreate sheetShow sheetHide sheetToggle".split(" ")})},on:{tabBeforeRemove:function(e){var t=this;g(e).find(".messagebar-init").each((function(e,n){t.messagebar.destroy(n)}))},tabMounted:function(e){var t=this;g(e).find(".messagebar-init").each((function(e,n){t.messagebar.create(j.extend({el:n},g(n).dataset()))}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".messagebar-init").each((function(e,n){t.messagebar.destroy(n)}))},pageInit:function(e){var t=this;e.$el.find(".messagebar-init").each((function(e,n){t.messagebar.create(j.extend({el:n},g(n).dataset()))}))}},vnode:{"messagebar-init":{insert:function(e){var t=e.elm;this.messagebar.create(j.extend({el:t},g(t).dataset()))},destroy:function(e){var t=e.elm;this.messagebar.destroy(t)}}}},Vr=g,qr=j,Wr=ue.a,Gr=z,Kr={updateSize:function(){var e,t,n=this.$el;e=void 0!==this.params.width?this.params.width:n[0].clientWidth,t=void 0!==this.params.height?this.params.height:n[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),t=t-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),qr.extend(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){var e=this.params,t=this.$wrapperEl,n=this.size,r=this.rtlTranslate,i=this.wrongRTL,a=this.virtual&&e.virtual.enabled,o=a?this.virtual.slides.length:this.slides.length,l=t.children(".".concat(this.params.slideClass)),c=a?this.virtual.slides.length:l.length,u=[],d=[],h=[];function f(t){return!e.cssMode||t!==l.length-1}var p=e.slidesOffsetBefore;"function"==typeof p&&(p=e.slidesOffsetBefore.call(this));var m=e.slidesOffsetAfter;"function"==typeof m&&(m=e.slidesOffsetAfter.call(this));var v=this.snapGrid.length,g=this.snapGrid.length,y=e.spaceBetween,b=-p,_=0,w=0;if(void 0!==n){var k,E;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*n),this.virtualSize=-y,r?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),e.slidesPerColumn>1&&(k=Math.floor(c/e.slidesPerColumn)===c/this.params.slidesPerColumn?c:Math.ceil(c/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&(k=Math.max(k,e.slidesPerView*e.slidesPerColumn)));for(var S,T=e.slidesPerColumn,C=k/T,M=Math.floor(c/e.slidesPerColumn),x=0;x<c;x+=1){E=0;var $=l.eq(x);if(e.slidesPerColumn>1){var L=void 0,P=void 0,O=void 0;if("row"===e.slidesPerColumnFill&&e.slidesPerGroup>1){var I=Math.floor(x/(e.slidesPerGroup*e.slidesPerColumn)),A=x-e.slidesPerColumn*e.slidesPerGroup*I,D=0===I?e.slidesPerGroup:Math.min(Math.ceil((c-I*T*e.slidesPerGroup)/T),e.slidesPerGroup);L=(P=A-(O=Math.floor(A/D))*D+I*e.slidesPerGroup)+O*k/T,$.css({"-webkit-box-ordinal-group":L,"-moz-box-ordinal-group":L,"-ms-flex-order":L,"-webkit-order":L,order:L})}else"column"===e.slidesPerColumnFill?(O=x-(P=Math.floor(x/T))*T,(P>M||P===M&&O===T-1)&&(O+=1)>=T&&(O=0,P+=1)):P=x-(O=Math.floor(x/C))*C;$.css("margin-".concat(this.isHorizontal()?"top":"left"),0!==O&&e.spaceBetween&&"".concat(e.spaceBetween,"px"))}if("none"!==$.css("display")){if("auto"===e.slidesPerView){var N=s.b.getComputedStyle($[0],null),R=$[0].style.transform,B=$[0].style.webkitTransform;if(R&&($[0].style.transform="none"),B&&($[0].style.webkitTransform="none"),e.roundLengths)E=this.isHorizontal()?$.outerWidth(!0):$.outerHeight(!0);else if(this.isHorizontal()){var Y=parseFloat(N.getPropertyValue("width")),j=parseFloat(N.getPropertyValue("padding-left")),F=parseFloat(N.getPropertyValue("padding-right")),H=parseFloat(N.getPropertyValue("margin-left")),U=parseFloat(N.getPropertyValue("margin-right")),z=N.getPropertyValue("box-sizing");E=z&&"border-box"===z?Y+H+U:Y+j+F+H+U}else{var V=parseFloat(N.getPropertyValue("height")),q=parseFloat(N.getPropertyValue("padding-top")),W=parseFloat(N.getPropertyValue("padding-bottom")),G=parseFloat(N.getPropertyValue("margin-top")),K=parseFloat(N.getPropertyValue("margin-bottom")),J=N.getPropertyValue("box-sizing");E=J&&"border-box"===J?V+G+K:V+q+W+G+K}R&&($[0].style.transform=R),B&&($[0].style.webkitTransform=B),e.roundLengths&&(E=Math.floor(E))}else E=(n-(e.slidesPerView-1)*y)/e.slidesPerView,e.roundLengths&&(E=Math.floor(E)),l[x]&&(this.isHorizontal()?l[x].style.width="".concat(E,"px"):l[x].style.height="".concat(E,"px"));l[x]&&(l[x].swiperSlideSize=E),h.push(E),e.centeredSlides?(b=b+E/2+_/2+y,0===_&&0!==x&&(b=b-n/2-y),0===x&&(b=b-n/2-y),Math.abs(b)<.001&&(b=0),e.roundLengths&&(b=Math.floor(b)),w%e.slidesPerGroup==0&&u.push(b),d.push(b)):(e.roundLengths&&(b=Math.floor(b)),(w-Math.min(this.params.slidesPerGroupSkip,w))%this.params.slidesPerGroup==0&&u.push(b),d.push(b),b=b+E+y),this.virtualSize+=E+y,_=E,w+=1}}if(this.virtualSize=Math.max(this.virtualSize,n)+m,r&&i&&("slide"===e.effect||"coverflow"===e.effect)&&t.css({width:"".concat(this.virtualSize+e.spaceBetween,"px")}),e.setWrapperSize&&(this.isHorizontal()?t.css({width:"".concat(this.virtualSize+e.spaceBetween,"px")}):t.css({height:"".concat(this.virtualSize+e.spaceBetween,"px")})),e.slidesPerColumn>1&&(this.virtualSize=(E+e.spaceBetween)*k,this.virtualSize=Math.ceil(this.virtualSize/e.slidesPerColumn)-e.spaceBetween,this.isHorizontal()?t.css({width:"".concat(this.virtualSize+e.spaceBetween,"px")}):t.css({height:"".concat(this.virtualSize+e.spaceBetween,"px")}),e.centeredSlides)){S=[];for(var X=0;X<u.length;X+=1){var Q=u[X];e.roundLengths&&(Q=Math.floor(Q)),u[X]<this.virtualSize+u[0]&&S.push(Q)}u=S}if(!e.centeredSlides){S=[];for(var Z=0;Z<u.length;Z+=1){var ee=u[Z];e.roundLengths&&(ee=Math.floor(ee)),u[Z]<=this.virtualSize-n&&S.push(ee)}u=S,Math.floor(this.virtualSize-n)-Math.floor(u[u.length-1])>1&&u.push(this.virtualSize-n)}if(0===u.length&&(u=[0]),0!==e.spaceBetween&&(this.isHorizontal()?r?l.filter(f).css({marginLeft:"".concat(y,"px")}):l.filter(f).css({marginRight:"".concat(y,"px")}):l.filter(f).css({marginBottom:"".concat(y,"px")})),e.centeredSlides&&e.centeredSlidesBounds){var te=0;h.forEach((function(t){te+=t+(e.spaceBetween?e.spaceBetween:0)}));var ne=(te-=e.spaceBetween)-n;u=u.map((function(e){return e<0?-p:e>ne?ne+m:e}))}if(e.centerInsufficientSlides){var re=0;if(h.forEach((function(t){re+=t+(e.spaceBetween?e.spaceBetween:0)})),(re-=e.spaceBetween)<n){var ie=(n-re)/2;u.forEach((function(e,t){u[t]=e-ie})),d.forEach((function(e,t){d[t]=e+ie}))}}qr.extend(this,{slides:l,snapGrid:u,slidesGrid:d,slidesSizesGrid:h}),c!==o&&this.emit("slidesLengthChange"),u.length!==v&&(this.params.watchOverflow&&this.checkOverflow(),this.emit("snapGridLengthChange")),d.length!==g&&this.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&this.updateSlidesOffset()}},updateAutoHeight:function(e){var t,n=[],r=0;if("number"==typeof e?this.setTransition(e):!0===e&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1)if(this.params.centeredSlides)this.visibleSlides.each((function(e,t){n.push(t)}));else for(t=0;t<Math.ceil(this.params.slidesPerView);t+=1){var i=this.activeIndex+t;if(i>this.slides.length)break;n.push(this.slides.eq(i)[0])}else n.push(this.slides.eq(this.activeIndex)[0]);for(t=0;t<n.length;t+=1)if(void 0!==n[t]){var a=n[t].offsetHeight;r=a>r?a:r}r&&this.$wrapperEl.css("height","".concat(r,"px"))},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,n=t.params,r=t.slides,i=t.rtlTranslate;if(0!==r.length){void 0===r[0].swiperSlideOffset&&t.updateSlidesOffset();var a=-e;i&&(a=e),r.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var o=0;o<r.length;o+=1){var s=r[o],l=(a+(n.centeredSlides?t.minTranslate():0)-s.swiperSlideOffset)/(s.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility||n.centeredSlides&&n.autoHeight){var c=-(a-s.swiperSlideOffset),u=c+t.slidesSizesGrid[o],d=c>=0&&c<t.size-1||u>1&&u<=t.size||c<=0&&u>=t.size;d&&(t.visibleSlides.push(s),t.visibleSlidesIndexes.push(o),r.eq(o).addClass(n.slideVisibleClass))}s.progress=i?-l:l}t.visibleSlides=Vr(t.visibleSlides)}},updateProgress:function(e){if(void 0===e){var t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}var n=this.params,r=this.maxTranslate()-this.minTranslate(),i=this.progress,a=this.isBeginning,o=this.isEnd,s=a,l=o;0===r?(i=0,a=!0,o=!0):(a=(i=(e-this.minTranslate())/r)<=0,o=i>=1),qr.extend(this,{progress:i,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.watchSlidesVisibility||n.centeredSlides&&n.autoHeight)&&this.updateSlidesProgress(e),a&&!s&&this.emit("reachBeginning toEdge"),o&&!l&&this.emit("reachEnd toEdge"),(s&&!a||l&&!o)&&this.emit("fromEdge"),this.emit("progress",i)},updateSlidesClasses:function(){var e,t=this.slides,n=this.params,r=this.$wrapperEl,i=this.activeIndex,a=this.realIndex,o=this.virtual&&n.virtual.enabled;t.removeClass("".concat(n.slideActiveClass," ").concat(n.slideNextClass," ").concat(n.slidePrevClass," ").concat(n.slideDuplicateActiveClass," ").concat(n.slideDuplicateNextClass," ").concat(n.slideDuplicatePrevClass)),(e=o?this.$wrapperEl.find(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(i,'"]')):t.eq(i)).addClass(n.slideActiveClass),n.loop&&(e.hasClass(n.slideDuplicateClass)?r.children(".".concat(n.slideClass,":not(.").concat(n.slideDuplicateClass,')[data-swiper-slide-index="').concat(a,'"]')).addClass(n.slideDuplicateActiveClass):r.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,'[data-swiper-slide-index="').concat(a,'"]')).addClass(n.slideDuplicateActiveClass));var s=e.nextAll(".".concat(n.slideClass)).eq(0).addClass(n.slideNextClass);n.loop&&0===s.length&&(s=t.eq(0)).addClass(n.slideNextClass);var l=e.prevAll(".".concat(n.slideClass)).eq(0).addClass(n.slidePrevClass);n.loop&&0===l.length&&(l=t.eq(-1)).addClass(n.slidePrevClass),n.loop&&(s.hasClass(n.slideDuplicateClass)?r.children(".".concat(n.slideClass,":not(.").concat(n.slideDuplicateClass,')[data-swiper-slide-index="').concat(s.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicateNextClass):r.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,'[data-swiper-slide-index="').concat(s.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicateNextClass),l.hasClass(n.slideDuplicateClass)?r.children(".".concat(n.slideClass,":not(.").concat(n.slideDuplicateClass,')[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicatePrevClass):r.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,'[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,n=this.rtlTranslate?this.translate:-this.translate,r=this.slidesGrid,i=this.snapGrid,a=this.params,o=this.activeIndex,s=this.realIndex,l=this.snapIndex,c=e;if(void 0===c){for(var u=0;u<r.length;u+=1)void 0!==r[u+1]?n>=r[u]&&n<r[u+1]-(r[u+1]-r[u])/2?c=u:n>=r[u]&&n<r[u+1]&&(c=u+1):n>=r[u]&&(c=u);a.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(i.indexOf(n)>=0)t=i.indexOf(n);else{var d=Math.min(a.slidesPerGroupSkip,c);t=d+Math.floor((c-d)/a.slidesPerGroup)}if(t>=i.length&&(t=i.length-1),c!==o){var h=parseInt(this.slides.eq(c).attr("data-swiper-slide-index")||c,10);qr.extend(this,{snapIndex:t,realIndex:h,previousIndex:o,activeIndex:c}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),s!==h&&this.emit("realIndexChange"),(this.initialized||this.params.runCallbacksOnInit)&&this.emit("slideChange")}else t!==l&&(this.snapIndex=t,this.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this.params,n=Vr(e.target).closest(".".concat(t.slideClass))[0],r=!1;if(n)for(var i=0;i<this.slides.length;i+=1)this.slides[i]===n&&(r=!0);if(!n||!r)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=n,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(Vr(n).attr("data-swiper-slide-index"),10):this.clickedIndex=Vr(n).index(),t.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}},Jr={getTranslate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.isHorizontal()?"x":"y",t=this,n=t.params,r=t.rtlTranslate,i=t.translate,a=t.$wrapperEl;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;var o=qr.getTranslate(a[0],e);return r&&(o=-o),o||0},setTranslate:function(e,t){var n=this.rtlTranslate,r=this.params,i=this.$wrapperEl,a=this.wrapperEl,o=this.progress,s=0,l=0;this.isHorizontal()?s=n?-e:e:l=e,r.roundLengths&&(s=Math.floor(s),l=Math.floor(l)),r.cssMode?a[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-s:-l:r.virtualTranslate||i.transform("translate3d(".concat(s,"px, ").concat(l,"px, ").concat(0,"px)")),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?s:l;var c=this.maxTranslate()-this.minTranslate();(0===c?0:(e-this.minTranslate())/c)!==o&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4?arguments[4]:void 0,a=this,o=a.params,s=a.wrapperEl;if(a.animating&&o.preventInteractionOnTransition)return!1;var l,c=a.minTranslate(),u=a.maxTranslate();if(l=r&&e>c?c:r&&e<u?u:e,a.updateProgress(l),o.cssMode){var d,h=a.isHorizontal();if(0===t)s[h?"scrollLeft":"scrollTop"]=-l;else if(s.scrollTo)s.scrollTo((d={},K()(d,h?"left":"top",-l),K()(d,"behavior","smooth"),d));else s[h?"scrollLeft":"scrollTop"]=-l;return!0}return 0===t?(a.setTransition(0),a.setTranslate(l),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(l),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,n&&a.emit("transitionEnd"))}),a.$wrapperEl[0].addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd))),!0}},Xr={setTransition:function(e,t){this.params.cssMode||this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this,r=n.activeIndex,i=n.params,a=n.previousIndex;if(!i.cssMode){i.autoHeight&&n.updateAutoHeight();var o=t;if(o||(o=r>a?"next":r<a?"prev":"reset"),n.emit("transitionStart"),e&&r!==a){if("reset"===o)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),"next"===o?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}},transitionEnd:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this,r=n.activeIndex,i=n.previousIndex,a=n.params;if(n.animating=!1,!a.cssMode){n.setTransition(0);var o=t;if(o||(o=r>i?"next":r<i?"prev":"reset"),n.emit("transitionEnd"),e&&r!==i){if("reset"===o)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),"next"===o?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}}},Qr={slideTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0,i=this,a=e;a<0&&(a=0);var o=i.params,s=i.snapGrid,l=i.slidesGrid,c=i.previousIndex,u=i.activeIndex,d=i.rtlTranslate,h=i.wrapperEl;if(i.animating&&o.preventInteractionOnTransition)return!1;var f=Math.min(i.params.slidesPerGroupSkip,a),p=f+Math.floor((a-f)/i.params.slidesPerGroup);p>=s.length&&(p=s.length-1),(u||o.initialSlide||0)===(c||0)&&n&&i.emit("beforeSlideChangeStart");var m,v=-s[p];if(i.updateProgress(v),o.normalizeSlideIndex)for(var g=0;g<l.length;g+=1)-Math.floor(100*v)>=Math.floor(100*l[g])&&(a=g);if(i.initialized&&a!==u){if(!i.allowSlideNext&&v<i.translate&&v<i.minTranslate())return!1;if(!i.allowSlidePrev&&v>i.translate&&v>i.maxTranslate()&&(u||0)!==a)return!1}if(m=a>u?"next":a<u?"prev":"reset",d&&-v===i.translate||!d&&v===i.translate)return i.updateActiveIndex(a),o.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),"slide"!==o.effect&&i.setTranslate(v),"reset"!==m&&(i.transitionStart(n,m),i.transitionEnd(n,m)),!1;if(o.cssMode){var y,b=i.isHorizontal(),_=-v;if(d&&(_=h.scrollWidth-h.offsetWidth-_),0===t)h[b?"scrollLeft":"scrollTop"]=_;else if(h.scrollTo)h.scrollTo((y={},K()(y,b?"left":"top",_),K()(y,"behavior","smooth"),y));else h[b?"scrollLeft":"scrollTop"]=_;return!0}return 0===t?(i.setTransition(0),i.setTranslate(v),i.updateActiveIndex(a),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,m),i.transitionEnd(n,m)):(i.setTransition(t),i.setTranslate(v),i.updateActiveIndex(a),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,m),i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(e){i&&!i.destroyed&&e.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,m))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0,i=this,a=e;return i.params.loop&&(a+=i.loopedSlides),i.slideTo(a,t,n,r)},slideNext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this,i=r.params,a=r.animating,o=r.activeIndex<i.slidesPerGroupSkip?1:i.slidesPerGroup;if(i.loop){if(a)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return r.slideTo(r.activeIndex+o,e,t,n)},slidePrev:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this,i=r.params,a=r.animating,o=r.snapGrid,s=r.slidesGrid,l=r.rtlTranslate;if(i.loop){if(a)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}var c=l?r.translate:-r.translate;function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var d,h=u(c),f=o.map((function(e){return u(e)})),p=(s.map((function(e){return u(e)})),o[f.indexOf(h)],o[f.indexOf(h)-1]);return void 0===p&&i.cssMode&&o.forEach((function(e){!p&&h>=e&&(p=e)})),void 0!==p&&(d=s.indexOf(p))<0&&(d=r.activeIndex-1),r.slideTo(d,e,t,n)},slideReset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this;return r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=this,a=i.activeIndex,o=Math.min(i.params.slidesPerGroupSkip,a),s=o+Math.floor((a-o)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){var c=i.snapGrid[s],u=i.snapGrid[s+1];l-c>(u-c)*r&&(a+=i.params.slidesPerGroup)}else{var d=i.snapGrid[s-1],h=i.snapGrid[s];l-d<=(h-d)*r&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,e,t,n)},slideToClickedSlide:function(){var e,t=this,n=t.params,r=t.$wrapperEl,i="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,a=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(Vr(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?a<t.loopedSlides-i/2||a>t.slides.length-t.loopedSlides+i/2?(t.loopFix(),a=r.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(n.slideDuplicateClass,")")).eq(0).index(),qr.nextTick((function(){t.slideTo(a)}))):t.slideTo(a):a>t.slides.length-i?(t.loopFix(),a=r.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(n.slideDuplicateClass,")")).eq(0).index(),qr.nextTick((function(){t.slideTo(a)}))):t.slideTo(a)}else t.slideTo(a)}},Zr={loopCreate:function(){var e=this,t=e.params,n=e.$wrapperEl;n.children(".".concat(t.slideClass,".").concat(t.slideDuplicateClass)).remove();var r=n.children(".".concat(t.slideClass));if(t.loopFillGroupWithBlank){var i=t.slidesPerGroup-r.length%t.slidesPerGroup;if(i!==t.slidesPerGroup){for(var a=0;a<i;a+=1){var o=Vr(s.a.createElement("div")).addClass("".concat(t.slideClass," ").concat(t.slideBlankClass));n.append(o)}r=n.children(".".concat(t.slideClass))}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=r.length),e.loopedSlides=Math.ceil(parseFloat(t.loopedSlides||t.slidesPerView,10)),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>r.length&&(e.loopedSlides=r.length);var l=[],c=[];r.each((function(t,n){var i=Vr(n);t<e.loopedSlides&&c.push(n),t<r.length&&t>=r.length-e.loopedSlides&&l.push(n),i.attr("data-swiper-slide-index",t)}));for(var u=0;u<c.length;u+=1)n.append(Vr(c[u].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var d=l.length-1;d>=0;d-=1)n.prepend(Vr(l[d].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function(){this.emit("beforeLoopFix");var e,t=this.activeIndex,n=this.slides,r=this.loopedSlides,i=this.allowSlidePrev,a=this.allowSlideNext,o=this.snapGrid,s=this.rtlTranslate;this.allowSlidePrev=!0,this.allowSlideNext=!0;var l=-o[t]-this.getTranslate();if(t<r)e=n.length-3*r+t,e+=r,this.slideTo(e,0,!1,!0)&&0!==l&&this.setTranslate((s?-this.translate:this.translate)-l);else if(t>=n.length-r){e=-n.length+t+r,e+=r,this.slideTo(e,0,!1,!0)&&0!==l&&this.setTranslate((s?-this.translate:this.translate)-l)}this.allowSlidePrev=i,this.allowSlideNext=a,this.emit("loopFix")},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,n=this.slides;e.children(".".concat(t.slideClass,".").concat(t.slideDuplicateClass,",.").concat(t.slideClass,".").concat(t.slideBlankClass)).remove(),n.removeAttr("data-swiper-slide-index")}},ei={setGrabCursor:function(e){if(!(Wr.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){Wr.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this.el.style.cursor="")}},ti={appendSlide:function(e){var t=this.$wrapperEl,n=this.params;if(n.loop&&this.loopDestroy(),"object"===O()(e)&&"length"in e)for(var r=0;r<e.length;r+=1)e[r]&&t.append(e[r]);else t.append(e);n.loop&&this.loopCreate(),n.observer&&Wr.observer||this.update()},prependSlide:function(e){var t=this.params,n=this.$wrapperEl,r=this.activeIndex;t.loop&&this.loopDestroy();var i=r+1;if("object"===O()(e)&&"length"in e){for(var a=0;a<e.length;a+=1)e[a]&&n.prepend(e[a]);i=r+e.length}else n.prepend(e);t.loop&&this.loopCreate(),t.observer&&Wr.observer||this.update(),this.slideTo(i,0,!1)},addSlide:function(e,t){var n=this.$wrapperEl,r=this.params,i=this.activeIndex;r.loop&&(i-=this.loopedSlides,this.loopDestroy(),this.slides=n.children(".".concat(r.slideClass)));var a=this.slides.length;if(e<=0)this.prependSlide(t);else if(e>=a)this.appendSlide(t);else{for(var o=i>e?i+1:i,s=[],l=a-1;l>=e;l-=1){var c=this.slides.eq(l);c.remove(),s.unshift(c)}if("object"===O()(t)&&"length"in t){for(var u=0;u<t.length;u+=1)t[u]&&n.append(t[u]);o=i>e?i+t.length:i}else n.append(t);for(var d=0;d<s.length;d+=1)n.append(s[d]);r.loop&&this.loopCreate(),r.observer&&Wr.observer||this.update(),r.loop?this.slideTo(o+this.loopedSlides,0,!1):this.slideTo(o,0,!1)}},removeSlide:function(e){var t=this.params,n=this.$wrapperEl,r=this.activeIndex;t.loop&&(r-=this.loopedSlides,this.loopDestroy(),this.slides=n.children(".".concat(t.slideClass)));var i,a=r;if("object"===O()(e)&&"length"in e){for(var o=0;o<e.length;o+=1)i=e[o],this.slides[i]&&this.slides.eq(i).remove(),i<a&&(a-=1);a=Math.max(a,0)}else i=e,this.slides[i]&&this.slides.eq(i).remove(),i<a&&(a-=1),a=Math.max(a,0);t.loop&&this.loopCreate(),t.observer&&Wr.observer||this.update(),t.loop?this.slideTo(a+this.loopedSlides,0,!1):this.slideTo(a,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},ni=F.a,ri=function(e){var t=this.touchEventsData,n=this.params,r=this.touches;if(!this.animating||!n.preventInteractionOnTransition){var i=e;i.originalEvent&&(i=i.originalEvent);var a=Vr(i.target);if(("wrapper"!==n.touchEventsTarget||a.closest(this.wrapperEl).length)&&(t.isTouchEvent="touchstart"===i.type,(t.isTouchEvent||!("which"in i)||3!==i.which)&&!(!t.isTouchEvent&&"button"in i&&i.button>0||t.isTouched&&t.isMoved)))if(n.noSwiping&&a.closest(n.noSwipingSelector?n.noSwipingSelector:".".concat(n.noSwipingClass))[0])this.allowClick=!0;else if(!n.swipeHandler||a.closest(n.swipeHandler)[0]){r.currentX="touchstart"===i.type?i.targetTouches[0].pageX:i.pageX,r.currentY="touchstart"===i.type?i.targetTouches[0].pageY:i.pageY;var o=r.currentX,l=r.currentY,c=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,u=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(!c||!(o<=u||o>=s.b.screen.width-u)){if(qr.extend(t,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=o,r.startY=l,t.touchStartTime=qr.now(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,n.threshold>0&&(t.allowThresholdMove=!1),"touchstart"!==i.type){var d=!0;a.is(t.formElements)&&(d=!1),s.a.activeElement&&Vr(s.a.activeElement).is(t.formElements)&&s.a.activeElement!==a[0]&&s.a.activeElement.blur();var h=d&&this.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||h)&&i.preventDefault()}this.emit("touchStart",i)}}}},ii=function(e){var t=this.touchEventsData,n=this.params,r=this.touches,i=this.rtlTranslate,a=e;if(a.originalEvent&&(a=a.originalEvent),t.isTouched){if(!t.isTouchEvent||"mousemove"!==a.type){var o="touchmove"===a.type&&a.targetTouches&&(a.targetTouches[0]||a.changedTouches[0]),l="touchmove"===a.type?o.pageX:a.pageX,c="touchmove"===a.type?o.pageY:a.pageY;if(a.preventedByNestedSwiper)return r.startX=l,void(r.startY=c);if(!this.allowTouchMove)return this.allowClick=!1,void(t.isTouched&&(qr.extend(r,{startX:l,startY:c,currentX:l,currentY:c}),t.touchStartTime=qr.now()));if(t.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop)if(this.isVertical()){if(c<r.startY&&this.translate<=this.maxTranslate()||c>r.startY&&this.translate>=this.minTranslate())return t.isTouched=!1,void(t.isMoved=!1)}else if(l<r.startX&&this.translate<=this.maxTranslate()||l>r.startX&&this.translate>=this.minTranslate())return;if(t.isTouchEvent&&s.a.activeElement&&a.target===s.a.activeElement&&Vr(a.target).is(t.formElements))return t.isMoved=!0,void(this.allowClick=!1);if(t.allowTouchCallbacks&&this.emit("touchMove",a),!(a.targetTouches&&a.targetTouches.length>1)){r.currentX=l,r.currentY=c;var u=r.currentX-r.startX,d=r.currentY-r.startY;if(!(this.params.threshold&&Math.sqrt(Math.pow(u,2)+Math.pow(d,2))<this.params.threshold)){var h;if(void 0===t.isScrolling)this.isHorizontal()&&r.currentY===r.startY||this.isVertical()&&r.currentX===r.startX?t.isScrolling=!1:u*u+d*d>=25&&(h=180*Math.atan2(Math.abs(d),Math.abs(u))/Math.PI,t.isScrolling=this.isHorizontal()?h>n.touchAngle:90-h>n.touchAngle);if(t.isScrolling&&this.emit("touchMoveOpposite",a),void 0===t.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(t.startMoving=!0)),t.isScrolling)t.isTouched=!1;else if(t.startMoving){this.allowClick=!1,n.cssMode||a.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&a.stopPropagation(),t.isMoved||(n.loop&&this.loopFix(),t.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),t.allowMomentumBounce=!1,!n.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",a)),this.emit("sliderMove",a),t.isMoved=!0;var f=this.isHorizontal()?u:d;r.diff=f,f*=n.touchRatio,i&&(f=-f),this.swipeDirection=f>0?"prev":"next",t.currentTranslate=f+t.startTranslate;var p=!0,m=n.resistanceRatio;if(n.touchReleaseOnEdges&&(m=0),f>0&&t.currentTranslate>this.minTranslate()?(p=!1,n.resistance&&(t.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+t.startTranslate+f,m))):f<0&&t.currentTranslate<this.maxTranslate()&&(p=!1,n.resistance&&(t.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-t.startTranslate-f,m))),p&&(a.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&t.currentTranslate<t.startTranslate&&(t.currentTranslate=t.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&t.currentTranslate>t.startTranslate&&(t.currentTranslate=t.startTranslate),n.threshold>0){if(!(Math.abs(f)>n.threshold||t.allowThresholdMove))return void(t.currentTranslate=t.startTranslate);if(!t.allowThresholdMove)return t.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,t.currentTranslate=t.startTranslate,void(r.diff=this.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}n.followFinger&&!n.cssMode&&((n.freeMode||n.watchSlidesProgress||n.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),n.freeMode&&(0===t.velocities.length&&t.velocities.push({position:r[this.isHorizontal()?"startX":"startY"],time:t.touchStartTime}),t.velocities.push({position:r[this.isHorizontal()?"currentX":"currentY"],time:qr.now()})),this.updateProgress(t.currentTranslate),this.setTranslate(t.currentTranslate))}}}}}else t.startMoving&&t.isScrolling&&this.emit("touchMoveOpposite",a)},ai=function(e){var t=this,n=t.touchEventsData,r=t.params,i=t.touches,a=t.rtlTranslate,o=t.$wrapperEl,s=t.slidesGrid,l=t.snapGrid,c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var u,d=qr.now(),h=d-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(c),t.emit("tap click",c),h<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",c)),n.lastClickTime=qr.now(),qr.nextTick((function(){t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=r.followFinger?a?t.translate:-t.translate:-n.currentTranslate,!r.cssMode)if(r.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(r.freeModeMomentum){if(n.velocities.length>1){var f=n.velocities.pop(),p=n.velocities.pop(),m=f.position-p.position,v=f.time-p.time;t.velocity=m/v,t.velocity/=2,Math.abs(t.velocity)<r.freeModeMinimumVelocity&&(t.velocity=0),(v>150||qr.now()-f.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeModeMomentumVelocityRatio,n.velocities.length=0;var g=1e3*r.freeModeMomentumRatio,y=t.velocity*g,b=t.translate+y;a&&(b=-b);var _,w,k=!1,E=20*Math.abs(t.velocity)*r.freeModeMomentumBounceRatio;if(b<t.maxTranslate())r.freeModeMomentumBounce?(b+t.maxTranslate()<-E&&(b=t.maxTranslate()-E),_=t.maxTranslate(),k=!0,n.allowMomentumBounce=!0):b=t.maxTranslate(),r.loop&&r.centeredSlides&&(w=!0);else if(b>t.minTranslate())r.freeModeMomentumBounce?(b-t.minTranslate()>E&&(b=t.minTranslate()+E),_=t.minTranslate(),k=!0,n.allowMomentumBounce=!0):b=t.minTranslate(),r.loop&&r.centeredSlides&&(w=!0);else if(r.freeModeSticky){for(var S,T=0;T<l.length;T+=1)if(l[T]>-b){S=T;break}b=-(b=Math.abs(l[S]-b)<Math.abs(l[S-1]-b)||"next"===t.swipeDirection?l[S]:l[S-1])}if(w&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity){if(g=a?Math.abs((-b-t.translate)/t.velocity):Math.abs((b-t.translate)/t.velocity),r.freeModeSticky){var C=Math.abs((a?-b:b)-t.translate),M=t.slidesSizesGrid[t.activeIndex];g=C<M?r.speed:C<2*M?1.5*r.speed:2.5*r.speed}}else if(r.freeModeSticky)return void t.slideToClosest();r.freeModeMomentumBounce&&k?(t.updateProgress(_),t.setTransition(g),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating=!0,o.transitionEnd((function(){t&&!t.destroyed&&n.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(r.speed),setTimeout((function(){t.setTranslate(_),o.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(t.updateProgress(b),t.setTransition(g),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,o.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(b),t.updateActiveIndex(),t.updateSlidesClasses()}else if(r.freeModeSticky)return void t.slideToClosest();(!r.freeModeMomentum||h>=r.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var x=0,$=t.slidesSizesGrid[0],L=0;L<s.length;L+=L<r.slidesPerGroupSkip?1:r.slidesPerGroup){var P=L<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==s[L+P]?u>=s[L]&&u<s[L+P]&&(x=L,$=s[L+P]-s[L]):u>=s[L]&&(x=L,$=s[s.length-1]-s[s.length-2])}var O=(u-s[x])/$,I=x<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(h>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(O>=r.longSwipesRatio?t.slideTo(x+I):t.slideTo(x)),"prev"===t.swipeDirection&&(O>1-r.longSwipesRatio?t.slideTo(x+I):t.slideTo(x))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(x+I):t.slideTo(x):("next"===t.swipeDirection&&t.slideTo(x+I),"prev"===t.swipeDirection&&t.slideTo(x))}}},oi=function(){var e=this.params,t=this.el;if(!t||0!==t.offsetWidth){e.breakpoints&&this.setBreakpoint();var n=this.allowSlideNext,r=this.allowSlidePrev,i=this.snapGrid;this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&this.isEnd&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=r,this.allowSlideNext=n,this.params.watchOverflow&&i!==this.snapGrid&&this.checkOverflow()}},si=function(e){this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))},li=function(){var e=this.wrapperEl,t=this.rtlTranslate;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=t?e.scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:this.translate=-e.scrollTop,-0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();var n=this.maxTranslate()-this.minTranslate();(0===n?0:(this.translate-this.minTranslate())/n)!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)},ci=!1;function ui(){}var di={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0};function hi(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var fi,pi={update:Kr,translate:Jr,transition:Xr,slide:Qr,loop:Zr,grabCursor:ei,manipulation:ti,events:{attachEvents:function(){var e=this.params,t=this.touchEvents,n=this.el,r=this.wrapperEl;this.onTouchStart=ri.bind(this),this.onTouchMove=ii.bind(this),this.onTouchEnd=ai.bind(this),e.cssMode&&(this.onScroll=li.bind(this)),this.onClick=si.bind(this);var i=!!e.nested;if(!Wr.touch&&Wr.pointerEvents)n.addEventListener(t.start,this.onTouchStart,!1),s.a.addEventListener(t.move,this.onTouchMove,i),s.a.addEventListener(t.end,this.onTouchEnd,!1);else{if(Wr.touch){var a=!("touchstart"!==t.start||!Wr.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};n.addEventListener(t.start,this.onTouchStart,a),n.addEventListener(t.move,this.onTouchMove,Wr.passiveListener?{passive:!1,capture:i}:i),n.addEventListener(t.end,this.onTouchEnd,a),t.cancel&&n.addEventListener(t.cancel,this.onTouchEnd,a),ci||(s.a.addEventListener("touchstart",ui),ci=!0)}(e.simulateTouch&&!ni.ios&&!ni.android||e.simulateTouch&&!Wr.touch&&ni.ios)&&(n.addEventListener("mousedown",this.onTouchStart,!1),s.a.addEventListener("mousemove",this.onTouchMove,i),s.a.addEventListener("mouseup",this.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&n.addEventListener("click",this.onClick,!0),e.cssMode&&r.addEventListener("scroll",this.onScroll),e.updateOnWindowResize?this.on(ni.ios||ni.android?"resize orientationchange observerUpdate":"resize observerUpdate",oi,!0):this.on("observerUpdate",oi,!0)},detachEvents:function(){var e=this.params,t=this.touchEvents,n=this.el,r=this.wrapperEl,i=!!e.nested;if(!Wr.touch&&Wr.pointerEvents)n.removeEventListener(t.start,this.onTouchStart,!1),s.a.removeEventListener(t.move,this.onTouchMove,i),s.a.removeEventListener(t.end,this.onTouchEnd,!1);else{if(Wr.touch){var a=!("onTouchStart"!==t.start||!Wr.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};n.removeEventListener(t.start,this.onTouchStart,a),n.removeEventListener(t.move,this.onTouchMove,i),n.removeEventListener(t.end,this.onTouchEnd,a),t.cancel&&n.removeEventListener(t.cancel,this.onTouchEnd,a)}(e.simulateTouch&&!ni.ios&&!ni.android||e.simulateTouch&&!Wr.touch&&ni.ios)&&(n.removeEventListener("mousedown",this.onTouchStart,!1),s.a.removeEventListener("mousemove",this.onTouchMove,i),s.a.removeEventListener("mouseup",this.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&n.removeEventListener("click",this.onClick,!0),e.cssMode&&r.removeEventListener("scroll",this.onScroll),this.off(ni.ios||ni.android?"resize orientationchange observerUpdate":"resize observerUpdate",oi)}},breakpoints:{setBreakpoint:function(){var e=this.activeIndex,t=this.initialized,n=this.loopedSlides,r=void 0===n?0:n,i=this.params,a=this.$el,o=i.breakpoints;if(o&&(!o||0!==Object.keys(o).length)){var s=this.getBreakpoint(o);if(s&&this.currentBreakpoint!==s){var l=s in o?o[s]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(e){var t=l[e];void 0!==t&&(l[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var c=l||this.originalParams,u=i.slidesPerColumn>1,d=c.slidesPerColumn>1;u&&!d?a.removeClass("".concat(i.containerModifierClass,"multirow ").concat(i.containerModifierClass,"multirow-column")):!u&&d&&(a.addClass("".concat(i.containerModifierClass,"multirow")),"column"===c.slidesPerColumnFill&&a.addClass("".concat(i.containerModifierClass,"multirow-column")));var h=c.direction&&c.direction!==i.direction,f=i.loop&&(c.slidesPerView!==i.slidesPerView||h);h&&t&&this.changeDirection(),qr.extend(this.params,c),qr.extend(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),this.currentBreakpoint=s,f&&t&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(e-r+this.loopedSlides,0,!1)),this.emit("breakpoint",c)}}},getBreakpoint:function(e){if(e){var t=!1,n=Object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexOf("@")){var t=parseFloat(e.substr(1));return{value:s.b.innerHeight*t,point:e}}return{value:e,point:e}}));n.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var r=0;r<n.length;r+=1){var i=n[r],a=i.point;i.value<=s.b.innerWidth&&(t=a)}return t||"max"}}},checkOverflow:{checkOverflow:function(){var e=this.params,t=this.isLocked,n=this.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(this.slides.length-1)+this.slides[0].offsetWidth*this.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&n?this.isLocked=n<=this.size:this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,t!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),t&&t!==this.isLocked&&(this.isEnd=!1,this.navigation.update())}},classes:{addClasses:function(){var e=this.classNames,t=this.params,n=this.rtl,r=this.$el,i=[];i.push("initialized"),i.push(t.direction),t.freeMode&&i.push("free-mode"),t.autoHeight&&i.push("autoheight"),n&&i.push("rtl"),t.slidesPerColumn>1&&(i.push("multirow"),"column"===t.slidesPerColumnFill&&i.push("multirow-column")),ni.android&&i.push("android"),ni.ios&&i.push("ios"),t.cssMode&&i.push("css-mode"),i.forEach((function(n){e.push(t.containerModifierClass+n)})),r.addClass(e.join(" "))},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" "))}},images:{loadImage:function(e,t,n,r,i,a){var o;function l(){a&&a()}e.complete&&i?l():t?((o=new s.b.Image).onload=l,o.onerror=l,r&&(o.sizes=r),n&&(o.srcset=n),t&&(o.src=t)):l()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;n<e.imagesToLoad.length;n+=1){var r=e.imagesToLoad[n];e.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,t)}}}},mi={},vi=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(hi()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(){var e,t,i;o()(this,r);for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];1===s.length&&s[0].constructor&&s[0].constructor===Object?i=s[0]:(t=s[0],i=s[1]),i||(i={}),i=qr.extend({},i),t&&!i.el&&(i.el=t),e=n.call(this,i),Object.keys(pi).forEach((function(e){Object.keys(pi[e]).forEach((function(t){r.prototype[t]||(r.prototype[t]=pi[e][t])}))}));var c=k()(e);void 0===c.modules&&(c.modules={}),Object.keys(c.modules).forEach((function(e){var t=c.modules[e];if(t.params){var n=Object.keys(t.params)[0],r=t.params[n];if("object"!==O()(r)||null===r)return;if(!(n in i)||!("enabled"in r))return;!0===i[n]&&(i[n]={enabled:!0}),"object"!==O()(i[n])||"enabled"in i[n]||(i[n].enabled=!0),i[n]||(i[n]={enabled:!1})}}));var u=qr.extend({},di);c.useModulesParams(u),c.params=qr.extend({},u,mi,i),c.originalParams=qr.extend({},c.params),c.passedParams=qr.extend({},i),c.$=Vr;var d,h,f,p=Vr(c.params.el);if(!(t=p[0]))return C()(e,void 0);if(p.length>1){var m=[];return p.each((function(e,t){var n=qr.extend({},i,{el:t});m.push(new r(n))})),C()(e,m)}return t.swiper=c,p.data("swiper",c),t&&t.shadowRoot&&t.shadowRoot.querySelector?(d=Vr(t.shadowRoot.querySelector(".".concat(c.params.wrapperClass)))).children=function(e){return p.children(e)}:d=p.children(".".concat(c.params.wrapperClass)),qr.extend(c,{$el:p,el:t,$wrapperEl:d,wrapperEl:d[0],classNames:[],slides:Vr(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===c.params.direction},isVertical:function(){return"vertical"===c.params.direction},rtl:"rtl"===t.dir.toLowerCase()||"rtl"===p.css("direction"),rtlTranslate:"horizontal"===c.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===p.css("direction")),wrongRTL:"-webkit-box"===d.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:c.params.allowSlideNext,allowSlidePrev:c.params.allowSlidePrev,touchEvents:(h=["touchstart","touchmove","touchend","touchcancel"],f=["mousedown","mousemove","mouseup"],Wr.pointerEvents&&(f=["pointerdown","pointermove","pointerup"]),c.touchEventsTouch={start:h[0],move:h[1],end:h[2],cancel:h[3]},c.touchEventsDesktop={start:f[0],move:f[1],end:f[2]},Wr.touch||!c.params.simulateTouch?c.touchEventsTouch:c.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:qr.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),c.useModules(),c.params.init&&c.init(),C()(e,c)}return b()(r,[{key:"slidesPerViewDynamic",value:function(){var e=this.params,t=this.slides,n=this.slidesGrid,r=this.size,i=this.activeIndex,a=1;if(e.centeredSlides){for(var o,s=t[i].swiperSlideSize,l=i+1;l<t.length;l+=1)t[l]&&!o&&(a+=1,(s+=t[l].swiperSlideSize)>r&&(o=!0));for(var c=i-1;c>=0;c-=1)t[c]&&!o&&(a+=1,(s+=t[c].swiperSlideSize)>r&&(o=!0))}else for(var u=i+1;u<t.length;u+=1)n[u]-n[i]<r&&(a+=1);return a}},{key:"update",value:function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,n=e.params;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(r(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||r(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}}},{key:"changeDirection",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass("".concat(n.params.containerModifierClass).concat(r)).addClass("".concat(n.params.containerModifierClass).concat(e)),n.params.direction=e,n.slides.each((function(t,n){"vertical"===e?n.style.width="":n.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}},{key:"init",value:function(){this.initialized||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit),this.attachEvents(),this.initialized=!0,this.emit("init"))}},{key:"destroy",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=n.params,i=n.$el,a=n.$wrapperEl,o=n.slides;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttr("style"),a.removeAttr("style"),o&&o.length&&o.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((function(e){n.off(e)})),!1!==e&&(n.$el[0].swiper=null,n.$el.data("swiper",null),qr.deleteProps(n)),n.destroyed=!0),null}}],[{key:"extendDefaults",value:function(e){qr.extend(mi,e)}},{key:"extendedDefaults",get:function(){return mi}},{key:"defaults",get:function(){return di}},{key:"Class",get:function(){return Gr}},{key:"$",get:function(){return Vr}}]),r}(Gr),gi={name:"device",proto:{device:ni},static:{device:ni}},yi={name:"support",proto:{support:Wr},static:{support:Wr}},bi={isEdge:!!s.b.navigator.userAgent.match(/Edge/g),isSafari:(fi=s.b.navigator.userAgent.toLowerCase(),fi.indexOf("safari")>=0&&fi.indexOf("chrome")<0&&fi.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(s.b.navigator.userAgent)},_i={name:"browser",proto:{browser:bi},static:{browser:bi}},wi={name:"resize",create:function(){var e=this;qr.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){s.b.addEventListener("resize",this.resize.resizeHandler),s.b.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){s.b.removeEventListener("resize",this.resize.resizeHandler),s.b.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},ki={func:s.b.MutationObserver||s.b.WebkitMutationObserver,attach:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=ki.func,i=new r((function(e){if(1!==e.length){var t=function(){n.emit("observerUpdate",e[0])};s.b.requestAnimationFrame?s.b.requestAnimationFrame(t):s.b.setTimeout(t,0)}else n.emit("observerUpdate",e[0])}));i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),n.observer.observers.push(i)},init:function(){if(Wr.observer&&this.params.observer){if(this.params.observeParents)for(var e=this.$el.parents(),t=0;t<e.length;t+=1)this.observer.attach(e[t]);this.observer.attach(this.$el[0],{childList:this.params.observeSlideChildren}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach((function(e){e.disconnect()})),this.observer.observers=[]}},Ei={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){qr.extend(this,{observer:{init:ki.init.bind(this),attach:ki.attach.bind(this),destroy:ki.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},Si={update:function(e){var t=this,n=t.params,r=n.slidesPerView,i=n.slidesPerGroup,a=n.centeredSlides,o=t.params.virtual,s=o.addSlidesBefore,l=o.addSlidesAfter,c=t.virtual,u=c.from,d=c.to,h=c.slides,f=c.slidesGrid,p=c.renderSlide,m=c.offset;t.updateActiveIndex();var v,g,y,b=t.activeIndex||0;v=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",a?(g=Math.floor(r/2)+i+s,y=Math.floor(r/2)+i+l):(g=r+(i-1)+s,y=i+l);var _=Math.max((b||0)-y,0),w=Math.min((b||0)+g,h.length-1),k=(t.slidesGrid[_]||0)-(t.slidesGrid[0]||0);function E(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(qr.extend(t.virtual,{from:_,to:w,offset:k,slidesGrid:t.slidesGrid}),u===_&&d===w&&!e)return t.slidesGrid!==f&&k!==m&&t.slides.css(v,"".concat(k,"px")),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:k,from:_,to:w,slides:function(){for(var e=[],t=_;t<=w;t+=1)e.push(h[t]);return e}()}),void E();var S=[],T=[];if(e)t.$wrapperEl.find(".".concat(t.params.slideClass)).remove();else for(var C=u;C<=d;C+=1)(C<_||C>w)&&t.$wrapperEl.find(".".concat(t.params.slideClass,'[data-swiper-slide-index="').concat(C,'"]')).remove();for(var M=0;M<h.length;M+=1)M>=_&&M<=w&&(void 0===d||e?T.push(M):(M>d&&T.push(M),M<u&&S.push(M)));T.forEach((function(e){t.$wrapperEl.append(p(h[e],e))})),S.sort((function(e,t){return t-e})).forEach((function(e){t.$wrapperEl.prepend(p(h[e],e))})),t.$wrapperEl.children(".swiper-slide").css(v,"".concat(k,"px")),E()},renderSlide:function(e,t){var n=this.params.virtual;if(n.cache&&this.virtual.cache[t])return this.virtual.cache[t];var r=n.renderSlide?Vr(n.renderSlide.call(this,e,t)):Vr('<div class="'.concat(this.params.slideClass,'" data-swiper-slide-index="').concat(t,'">').concat(e,"</div>"));return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",t),n.cache&&(this.virtual.cache[t]=r),r},appendSlide:function(e){if("object"===O()(e)&&"length"in e)for(var t=0;t<e.length;t+=1)e[t]&&this.virtual.slides.push(e[t]);else this.virtual.slides.push(e);this.virtual.update(!0)},prependSlide:function(e){var t=this.activeIndex,n=t+1,r=1;if(Array.isArray(e)){for(var i=0;i<e.length;i+=1)e[i]&&this.virtual.slides.unshift(e[i]);n=t+e.length,r=e.length}else this.virtual.slides.unshift(e);if(this.params.virtual.cache){var a=this.virtual.cache,o={};Object.keys(a).forEach((function(e){var t=a[e],n=t.attr("data-swiper-slide-index");n&&t.attr("data-swiper-slide-index",parseInt(n,10)+1),o[parseInt(e,10)+r]=t})),this.virtual.cache=o}this.virtual.update(!0),this.slideTo(n,0)},removeSlide:function(e){if(null!=e){var t=this.activeIndex;if(Array.isArray(e))for(var n=e.length-1;n>=0;n-=1)this.virtual.slides.splice(e[n],1),this.params.virtual.cache&&delete this.virtual.cache[e[n]],e[n]<t&&(t-=1),t=Math.max(t,0);else this.virtual.slides.splice(e,1),this.params.virtual.cache&&delete this.virtual.cache[e],e<t&&(t-=1),t=Math.max(t,0);this.virtual.update(!0),this.slideTo(t,0)}},removeAllSlides:function(){this.virtual.slides=[],this.params.virtual.cache&&(this.virtual.cache={}),this.virtual.update(!0),this.slideTo(0,0)}},Ti={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){qr.extend(this,{virtual:{update:Si.update.bind(this),appendSlide:Si.appendSlide.bind(this),prependSlide:Si.prependSlide.bind(this),removeSlide:Si.removeSlide.bind(this),removeAllSlides:Si.removeAllSlides.bind(this),renderSlide:Si.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){if(this.params.virtual.enabled){this.classNames.push("".concat(this.params.containerModifierClass,"virtual"));var e={watchSlidesProgress:!0};qr.extend(this.params,e),qr.extend(this.originalParams,e),this.params.initialSlide||this.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},Ci={handle:function(e){var t=this.rtlTranslate,n=e;n.originalEvent&&(n=n.originalEvent);var r=n.keyCode||n.charCode;if(!this.allowSlideNext&&(this.isHorizontal()&&39===r||this.isVertical()&&40===r||34===r))return!1;if(!this.allowSlidePrev&&(this.isHorizontal()&&37===r||this.isVertical()&&38===r||33===r))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey||s.a.activeElement&&s.a.activeElement.nodeName&&("input"===s.a.activeElement.nodeName.toLowerCase()||"textarea"===s.a.activeElement.nodeName.toLowerCase()))){if(this.params.keyboard.onlyInViewport&&(33===r||34===r||37===r||39===r||38===r||40===r)){var i=!1;if(this.$el.parents(".".concat(this.params.slideClass)).length>0&&0===this.$el.parents(".".concat(this.params.slideActiveClass)).length)return;var a=s.b.innerWidth,o=s.b.innerHeight,l=this.$el.offset();t&&(l.left-=this.$el[0].scrollLeft);for(var c=[[l.left,l.top],[l.left+this.width,l.top],[l.left,l.top+this.height],[l.left+this.width,l.top+this.height]],u=0;u<c.length;u+=1){var d=c[u];d[0]>=0&&d[0]<=a&&d[1]>=0&&d[1]<=o&&(i=!0)}if(!i)return}this.isHorizontal()?(33!==r&&34!==r&&37!==r&&39!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),(34!==r&&39!==r||t)&&(33!==r&&37!==r||!t)||this.slideNext(),(33!==r&&37!==r||t)&&(34!==r&&39!==r||!t)||this.slidePrev()):(33!==r&&34!==r&&38!==r&&40!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),34!==r&&40!==r||this.slideNext(),33!==r&&38!==r||this.slidePrev()),this.emit("keyPress",r)}},enable:function(){this.keyboard.enabled||(Vr(s.a).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(Vr(s.a).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},Mi={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){qr.extend(this,{keyboard:{enabled:!1,enable:Ci.enable.bind(this),disable:Ci.disable.bind(this),handle:Ci.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var xi={lastScrollTime:qr.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){return s.b.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var e="onwheel"in s.a;if(!e){var t=s.a.createElement("div");t.setAttribute("onwheel","return;"),e="function"==typeof t.onwheel}return!e&&s.a.implementation&&s.a.implementation.hasFeature&&!0!==s.a.implementation.hasFeature("","")&&(e=s.a.implementation.hasFeature("Events.wheel","3.0")),e}()?"wheel":"mousewheel"},normalize:function(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,i=10*n,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),e.shiftKey&&!r&&(r=i,i=0),(r||i)&&e.deltaMode&&(1===e.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,n=this,r=n.params.mousewheel;n.params.cssMode&&t.preventDefault();var i=n.$el;if("container"!==n.params.mousewheel.eventsTarged&&(i=Vr(n.params.mousewheel.eventsTarged)),!n.mouseEntered&&!i[0].contains(t.target)&&!r.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var a=0,o=n.rtlTranslate?-1:1,s=xi.normalize(t);if(r.forceToAxis)if(n.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;a=s.pixelX*o}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;a=s.pixelY}else a=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*o:-s.pixelY;if(0===a)return!0;if(r.invert&&(a=-a),n.params.freeMode){var l={time:qr.now(),delta:Math.abs(a),direction:Math.sign(a)},c=n.mousewheel.lastEventBeforeSnap,u=c&&l.time<c.time+500&&l.delta<=c.delta&&l.direction===c.direction;if(!u){n.mousewheel.lastEventBeforeSnap=void 0,n.params.loop&&n.loopFix();var d=n.getTranslate()+a*r.sensitivity,h=n.isBeginning,f=n.isEnd;if(d>=n.minTranslate()&&(d=n.minTranslate()),d<=n.maxTranslate()&&(d=n.maxTranslate()),n.setTransition(0),n.setTranslate(d),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!h&&n.isBeginning||!f&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky){clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=void 0;var p=n.mousewheel.recentWheelEvents;p.length>=15&&p.shift();var m=p.length?p[p.length-1]:void 0,v=p[0];if(p.push(l),m&&(l.delta>m.delta||l.direction!==m.direction))p.splice(0);else if(p.length>=15&&l.time-v.time<500&&v.delta-l.delta>=1&&l.delta<=6){var g=a>0?.8:.2;n.mousewheel.lastEventBeforeSnap=l,p.splice(0),n.mousewheel.timeout=qr.nextTick((function(){n.slideToClosest(n.params.speed,!0,void 0,g)}),0)}n.mousewheel.timeout||(n.mousewheel.timeout=qr.nextTick((function(){n.mousewheel.lastEventBeforeSnap=l,p.splice(0),n.slideToClosest(n.params.speed,!0,void 0,.5)}),500))}if(u||n.emit("scroll",t),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),d===n.minTranslate()||d===n.maxTranslate())return!0}}else{var y={time:qr.now(),delta:Math.abs(a),direction:Math.sign(a),raw:e},b=n.mousewheel.recentWheelEvents;b.length>=2&&b.shift();var _=b.length?b[b.length-1]:void 0;if(b.push(y),_?(y.direction!==_.direction||y.delta>_.delta)&&n.mousewheel.animateSlider(y):n.mousewheel.animateSlider(y),n.mousewheel.releaseScroll(y))return!0}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},animateSlider:function(e){return e.delta>=6&&qr.now()-this.mousewheel.lastScrollTime<60||(e.direction<0?this.isEnd&&!this.params.loop||this.animating||(this.slideNext(),this.emit("scroll",e.raw)):this.isBeginning&&!this.params.loop||this.animating||(this.slidePrev(),this.emit("scroll",e.raw)),this.mousewheel.lastScrollTime=(new s.b.Date).getTime(),!1)},releaseScroll:function(e){var t=this.params.mousewheel;if(e.direction<0){if(this.isEnd&&!this.params.loop&&t.releaseOnEdges)return!0}else if(this.isBeginning&&!this.params.loop&&t.releaseOnEdges)return!0;return!1},enable:function(){var e=xi.event();if(this.params.cssMode)return this.wrapperEl.removeEventListener(e,this.mousewheel.handle),!0;if(!e)return!1;if(this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=Vr(this.params.mousewheel.eventsTarged)),t.on("mouseenter",this.mousewheel.handleMouseEnter),t.on("mouseleave",this.mousewheel.handleMouseLeave),t.on(e,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){var e=xi.event();if(this.params.cssMode)return this.wrapperEl.addEventListener(e,this.mousewheel.handle),!0;if(!e)return!1;if(!this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=Vr(this.params.mousewheel.eventsTarged)),t.off(e,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},$i={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){qr.extend(this,{mousewheel:{enabled:!1,enable:xi.enable.bind(this),disable:xi.disable.bind(this),handle:xi.handle.bind(this),handleMouseEnter:xi.handleMouseEnter.bind(this),handleMouseLeave:xi.handleMouseLeave.bind(this),animateSlider:xi.animateSlider.bind(this),releaseScroll:xi.releaseScroll.bind(this),lastScrollTime:qr.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[]}})},on:{init:function(){!this.params.mousewheel.enabled&&this.params.cssMode&&this.mousewheel.disable(),this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.params.cssMode&&this.mousewheel.enable(),this.mousewheel.enabled&&this.mousewheel.disable()}}},Li={update:function(){var e=this.params.navigation;if(!this.params.loop){var t=this.navigation,n=t.$nextEl,r=t.$prevEl;r&&r.length>0&&(this.isBeginning?r.addClass(e.disabledClass):r.removeClass(e.disabledClass),r[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)),n&&n.length>0&&(this.isEnd?n.addClass(e.disabledClass):n.removeClass(e.disabledClass),n[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass))}},onPrevClick:function(e){e.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(e){e.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var e,t,n=this.params.navigation;(n.nextEl||n.prevEl)&&(n.nextEl&&(e=Vr(n.nextEl),this.params.uniqueNavElements&&"string"==typeof n.nextEl&&e.length>1&&1===this.$el.find(n.nextEl).length&&(e=this.$el.find(n.nextEl))),n.prevEl&&(t=Vr(n.prevEl),this.params.uniqueNavElements&&"string"==typeof n.prevEl&&t.length>1&&1===this.$el.find(n.prevEl).length&&(t=this.$el.find(n.prevEl))),e&&e.length>0&&e.on("click",this.navigation.onNextClick),t&&t.length>0&&t.on("click",this.navigation.onPrevClick),qr.extend(this.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this.navigation,t=e.$nextEl,n=e.$prevEl;t&&t.length&&(t.off("click",this.navigation.onNextClick),t.removeClass(this.params.navigation.disabledClass)),n&&n.length&&(n.off("click",this.navigation.onPrevClick),n.removeClass(this.params.navigation.disabledClass))}},Pi={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){qr.extend(this,{navigation:{init:Li.init.bind(this),update:Li.update.bind(this),destroy:Li.destroy.bind(this),onNextClick:Li.onNextClick.bind(this),onPrevClick:Li.onPrevClick.bind(this)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t,n=this.navigation,r=n.$nextEl,i=n.$prevEl;!this.params.navigation.hideOnClick||Vr(e.target).is(i)||Vr(e.target).is(r)||(r?t=r.hasClass(this.params.navigation.hiddenClass):i&&(t=i.hasClass(this.params.navigation.hiddenClass)),!0===t?this.emit("navigationShow",this):this.emit("navigationHide",this),r&&r.toggleClass(this.params.navigation.hiddenClass),i&&i.toggleClass(this.params.navigation.hiddenClass))}}},Oi={update:function(){var e=this.rtl,t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var n,r=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,a=this.params.loop?Math.ceil((r-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((n=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>r-1-2*this.loopedSlides&&(n-=r-2*this.loopedSlides),n>a-1&&(n-=a),n<0&&"bullets"!==this.params.paginationType&&(n=a+n)):n=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===t.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var o,s,l,c=this.pagination.bullets;if(t.dynamicBullets&&(this.pagination.bulletSize=c.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),i.css(this.isHorizontal()?"width":"height","".concat(this.pagination.bulletSize*(t.dynamicMainBullets+4),"px")),t.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=n-this.previousIndex,this.pagination.dynamicBulletIndex>t.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=t.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),o=n-this.pagination.dynamicBulletIndex,l=((s=o+(Math.min(c.length,t.dynamicMainBullets)-1))+o)/2),c.removeClass("".concat(t.bulletActiveClass," ").concat(t.bulletActiveClass,"-next ").concat(t.bulletActiveClass,"-next-next ").concat(t.bulletActiveClass,"-prev ").concat(t.bulletActiveClass,"-prev-prev ").concat(t.bulletActiveClass,"-main")),i.length>1)c.each((function(e,r){var i=Vr(r),a=i.index();a===n&&i.addClass(t.bulletActiveClass),t.dynamicBullets&&(a>=o&&a<=s&&i.addClass("".concat(t.bulletActiveClass,"-main")),a===o&&i.prev().addClass("".concat(t.bulletActiveClass,"-prev")).prev().addClass("".concat(t.bulletActiveClass,"-prev-prev")),a===s&&i.next().addClass("".concat(t.bulletActiveClass,"-next")).next().addClass("".concat(t.bulletActiveClass,"-next-next")))}));else{var u=c.eq(n),d=u.index();if(u.addClass(t.bulletActiveClass),t.dynamicBullets){for(var h=c.eq(o),f=c.eq(s),p=o;p<=s;p+=1)c.eq(p).addClass("".concat(t.bulletActiveClass,"-main"));if(this.params.loop)if(d>=c.length-t.dynamicMainBullets){for(var m=t.dynamicMainBullets;m>=0;m-=1)c.eq(c.length-m).addClass("".concat(t.bulletActiveClass,"-main"));c.eq(c.length-t.dynamicMainBullets-1).addClass("".concat(t.bulletActiveClass,"-prev"))}else h.prev().addClass("".concat(t.bulletActiveClass,"-prev")).prev().addClass("".concat(t.bulletActiveClass,"-prev-prev")),f.next().addClass("".concat(t.bulletActiveClass,"-next")).next().addClass("".concat(t.bulletActiveClass,"-next-next"));else h.prev().addClass("".concat(t.bulletActiveClass,"-prev")).prev().addClass("".concat(t.bulletActiveClass,"-prev-prev")),f.next().addClass("".concat(t.bulletActiveClass,"-next")).next().addClass("".concat(t.bulletActiveClass,"-next-next"))}}if(t.dynamicBullets){var v=Math.min(c.length,t.dynamicMainBullets+4),g=(this.pagination.bulletSize*v-this.pagination.bulletSize)/2-l*this.pagination.bulletSize,y=e?"right":"left";c.css(this.isHorizontal()?y:"top","".concat(g,"px"))}}if("fraction"===t.type&&(i.find(".".concat(t.currentClass)).text(t.formatFractionCurrent(n+1)),i.find(".".concat(t.totalClass)).text(t.formatFractionTotal(a))),"progressbar"===t.type){var b;b=t.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var _=(n+1)/a,w=1,k=1;"horizontal"===b?w=_:k=_,i.find(".".concat(t.progressbarFillClass)).transform("translate3d(0,0,0) scaleX(".concat(w,") scaleY(").concat(k,")")).transition(this.params.speed)}"custom"===t.type&&t.renderCustom?(i.html(t.renderCustom(this,n+1,a)),this.emit("paginationRender",this,i[0])):this.emit("paginationUpdate",this,i[0]),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)}},render:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,n=this.pagination.$el,r="";if("bullets"===e.type){for(var i=this.params.loop?Math.ceil((t-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,a=0;a<i;a+=1)e.renderBullet?r+=e.renderBullet.call(this,a,e.bulletClass):r+="<".concat(e.bulletElement,' class="').concat(e.bulletClass,'"></').concat(e.bulletElement,">");n.html(r),this.pagination.bullets=n.find(".".concat(e.bulletClass))}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(this,e.currentClass,e.totalClass):'<span class="'.concat(e.currentClass,'"></span>')+" / "+'<span class="'.concat(e.totalClass,'"></span>'),n.html(r)),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(this,e.progressbarFillClass):'<span class="'.concat(e.progressbarFillClass,'"></span>'),n.html(r)),"custom"!==e.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var n=Vr(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&n.length>1&&1===e.$el.find(t.el).length&&(n=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(n.addClass("".concat(t.modifierClass).concat(t.type,"-dynamic")),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click",".".concat(t.bulletClass),(function(t){t.preventDefault();var n=Vr(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)})),qr.extend(e.pagination,{$el:n,el:n[0]}))}},destroy:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.pagination.$el;t.removeClass(e.hiddenClass),t.removeClass(e.modifierClass+e.type),this.pagination.bullets&&this.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&t.off("click",".".concat(e.bulletClass))}}},Ii={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){qr.extend(this,{pagination:{init:Oi.init.bind(this),render:Oi.render.bind(this),update:Oi.update.bind(this),destroy:Oi.destroy.bind(this),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){(this.params.loop||void 0===this.snapIndex)&&this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(e){this.params.pagination.el&&this.params.pagination.hideOnClick&&this.pagination.$el.length>0&&!Vr(e.target).hasClass(this.params.pagination.bulletClass)&&(!0===this.pagination.$el.hasClass(this.params.pagination.hiddenClass)?this.emit("paginationShow",this):this.emit("paginationHide",this),this.pagination.$el.toggleClass(this.params.pagination.hiddenClass))}}},Ai={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=this.rtlTranslate,n=this.progress,r=e.dragSize,i=e.trackSize,a=e.$dragEl,o=e.$el,s=this.params.scrollbar,l=r,c=(i-r)*n;t?(c=-c)>0?(l=r-c,c=0):-c+r>i&&(l=i+c):c<0?(l=r+c,c=0):c+r>i&&(l=i-c),this.isHorizontal()?(a.transform("translate3d(".concat(c,"px, 0, 0)")),a[0].style.width="".concat(l,"px")):(a.transform("translate3d(0px, ".concat(c,"px, 0)")),a[0].style.height="".concat(l,"px")),s.hide&&(clearTimeout(this.scrollbar.timeout),o[0].style.opacity=1,this.scrollbar.timeout=setTimeout((function(){o[0].style.opacity=0,o.transition(400)}),1e3))}},setTransition:function(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(e)},updateSize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=e.$dragEl,n=e.$el;t[0].style.width="",t[0].style.height="";var r,i=this.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,a=this.size/this.virtualSize,o=a*(i/this.size);r="auto"===this.params.scrollbar.dragSize?i*a:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?t[0].style.width="".concat(r,"px"):t[0].style.height="".concat(r,"px"),n[0].style.display=a>=1?"none":"",this.params.scrollbar.hide&&(n[0].style.opacity=0),qr.extend(e,{trackSize:i,divider:a,moveDivider:o,dragSize:r}),e.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY},setDragPosition:function(e){var t,n=this.scrollbar,r=this.rtlTranslate,i=n.$el,a=n.dragSize,o=n.trackSize,s=n.dragStartPos;t=(n.getPointerPosition(e)-i.offset()[this.isHorizontal()?"left":"top"]-(null!==s?s:a/2))/(o-a),t=Math.max(Math.min(t,1),0),r&&(t=1-t);var l=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*t;this.updateProgress(l),this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(e){var t=this.params.scrollbar,n=this.scrollbar,r=this.$wrapperEl,i=n.$el,a=n.$dragEl;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=e.target===a[0]||e.target===a?n.getPointerPosition(e)-e.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),r.transition(100),a.transition(100),n.setDragPosition(e),clearTimeout(this.scrollbar.dragTimeout),i.transition(0),t.hide&&i.css("opacity",1),this.params.cssMode&&this.$wrapperEl.css("scroll-snap-type","none"),this.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this.scrollbar,n=this.$wrapperEl,r=t.$el,i=t.$dragEl;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),n.transition(0),r.transition(0),i.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this.params.scrollbar,n=this.scrollbar,r=this.$wrapperEl,i=n.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,this.params.cssMode&&(this.$wrapperEl.css("scroll-snap-type",""),r.transition("")),t.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=qr.nextTick((function(){i.css("opacity",0),i.transition(400)}),1e3)),this.emit("scrollbarDragEnd",e),t.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.touchEventsTouch,n=this.touchEventsDesktop,r=this.params,i=e.$el[0],a=!(!Wr.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},o=!(!Wr.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};Wr.touch?(i.addEventListener(t.start,this.scrollbar.onDragStart,a),i.addEventListener(t.move,this.scrollbar.onDragMove,a),i.addEventListener(t.end,this.scrollbar.onDragEnd,o)):(i.addEventListener(n.start,this.scrollbar.onDragStart,a),s.a.addEventListener(n.move,this.scrollbar.onDragMove,a),s.a.addEventListener(n.end,this.scrollbar.onDragEnd,o))}},disableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.touchEventsTouch,n=this.touchEventsDesktop,r=this.params,i=e.$el[0],a=!(!Wr.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},o=!(!Wr.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};Wr.touch?(i.removeEventListener(t.start,this.scrollbar.onDragStart,a),i.removeEventListener(t.move,this.scrollbar.onDragMove,a),i.removeEventListener(t.end,this.scrollbar.onDragEnd,o)):(i.removeEventListener(n.start,this.scrollbar.onDragStart,a),s.a.removeEventListener(n.move,this.scrollbar.onDragMove,a),s.a.removeEventListener(n.end,this.scrollbar.onDragEnd,o))}},init:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.$el,n=this.params.scrollbar,r=Vr(n.el);this.params.uniqueNavElements&&"string"==typeof n.el&&r.length>1&&1===t.find(n.el).length&&(r=t.find(n.el));var i=r.find(".".concat(this.params.scrollbar.dragClass));0===i.length&&(i=Vr('<div class="'.concat(this.params.scrollbar.dragClass,'"></div>')),r.append(i)),qr.extend(e,{$el:r,el:r[0],$dragEl:i,dragEl:i[0]}),n.draggable&&e.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},Di={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){qr.extend(this,{scrollbar:{init:Ai.init.bind(this),destroy:Ai.destroy.bind(this),updateSize:Ai.updateSize.bind(this),setTranslate:Ai.setTranslate.bind(this),setTransition:Ai.setTransition.bind(this),enableDraggable:Ai.enableDraggable.bind(this),disableDraggable:Ai.disableDraggable.bind(this),setDragPosition:Ai.setDragPosition.bind(this),getPointerPosition:Ai.getPointerPosition.bind(this),onDragStart:Ai.onDragStart.bind(this),onDragMove:Ai.onDragMove.bind(this),onDragEnd:Ai.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},Ni={setTransform:function(e,t){var n=this.rtl,r=Vr(e),i=n?-1:1,a=r.attr("data-swiper-parallax")||"0",o=r.attr("data-swiper-parallax-x"),s=r.attr("data-swiper-parallax-y"),l=r.attr("data-swiper-parallax-scale"),c=r.attr("data-swiper-parallax-opacity");if(o||s?(o=o||"0",s=s||"0"):this.isHorizontal()?(o=a,s="0"):(s=a,o="0"),o=o.indexOf("%")>=0?"".concat(parseInt(o,10)*t*i,"%"):"".concat(o*t*i,"px"),s=s.indexOf("%")>=0?"".concat(parseInt(s,10)*t,"%"):"".concat(s*t,"px"),null!=c){var u=c-(c-1)*(1-Math.abs(t));r[0].style.opacity=u}if(null==l)r.transform("translate3d(".concat(o,", ").concat(s,", 0px)"));else{var d=l-(l-1)*(1-Math.abs(t));r.transform("translate3d(".concat(o,", ").concat(s,", 0px) scale(").concat(d,")"))}},setTranslate:function(){var e=this,t=e.$el,n=e.slides,r=e.progress,i=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){e.parallax.setTransform(n,r)})),n.each((function(t,n){var a=n.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(a+=Math.ceil(t/2)-r*(i.length-1)),a=Math.min(Math.max(a,-1),1),Vr(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){e.parallax.setTransform(n,a)}))}))},setTransition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=this,n=t.$el;n.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){var r=Vr(n),i=parseInt(r.attr("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),r.transition(i)}))}},Ri={name:"parallax",params:{parallax:{enabled:!1}},create:function(){qr.extend(this,{parallax:{setTransform:Ni.setTransform.bind(this),setTranslate:Ni.setTranslate.bind(this),setTransition:Ni.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}},Bi={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,r=e.targetTouches[1].pageX,i=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(r-t,2)+Math.pow(i-n,2))},onGestureStart:function(e){var t=this.params.zoom,n=this.zoom,r=n.gesture;if(n.fakeGestureTouched=!1,n.fakeGestureMoved=!1,!Wr.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;n.fakeGestureTouched=!0,r.scaleStart=Bi.getDistanceBetweenTouches(e)}r.$slideEl&&r.$slideEl.length||(r.$slideEl=Vr(e.target).closest(".".concat(this.params.slideClass)),0===r.$slideEl.length&&(r.$slideEl=this.slides.eq(this.activeIndex)),r.$imageEl=r.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),r.$imageWrapEl=r.$imageEl.parent(".".concat(t.containerClass)),r.maxRatio=r.$imageWrapEl.attr("data-swiper-zoom")||t.maxRatio,0!==r.$imageWrapEl.length)?(r.$imageEl&&r.$imageEl.transition(0),this.zoom.isScaling=!0):r.$imageEl=void 0},onGestureChange:function(e){var t=this.params.zoom,n=this.zoom,r=n.gesture;if(!Wr.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;n.fakeGestureMoved=!0,r.scaleMove=Bi.getDistanceBetweenTouches(e)}r.$imageEl&&0!==r.$imageEl.length&&(Wr.gestures?n.scale=e.scale*n.currentScale:n.scale=r.scaleMove/r.scaleStart*n.currentScale,n.scale>r.maxRatio&&(n.scale=r.maxRatio-1+Math.pow(n.scale-r.maxRatio+1,.5)),n.scale<t.minRatio&&(n.scale=t.minRatio+1-Math.pow(t.minRatio-n.scale+1,.5)),r.$imageEl.transform("translate3d(0,0,0) scale(".concat(n.scale,")")))},onGestureEnd:function(e){var t=this.params.zoom,n=this.zoom,r=n.gesture;if(!Wr.gestures){if(!n.fakeGestureTouched||!n.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!ni.android)return;n.fakeGestureTouched=!1,n.fakeGestureMoved=!1}r.$imageEl&&0!==r.$imageEl.length&&(n.scale=Math.max(Math.min(n.scale,r.maxRatio),t.minRatio),r.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale(".concat(n.scale,")")),n.currentScale=n.scale,n.isScaling=!1,1===n.scale&&(r.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,n=t.gesture,r=t.image;n.$imageEl&&0!==n.$imageEl.length&&(r.isTouched||(ni.android&&e.preventDefault(),r.isTouched=!0,r.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,r.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this.zoom,n=t.gesture,r=t.image,i=t.velocity;if(n.$imageEl&&0!==n.$imageEl.length&&(this.allowClick=!1,r.isTouched&&n.$slideEl)){r.isMoved||(r.width=n.$imageEl[0].offsetWidth,r.height=n.$imageEl[0].offsetHeight,r.startX=qr.getTranslate(n.$imageWrapEl[0],"x")||0,r.startY=qr.getTranslate(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),this.rtl&&(r.startX=-r.startX,r.startY=-r.startY));var a=r.width*t.scale,o=r.height*t.scale;if(!(a<n.slideWidth&&o<n.slideHeight)){if(r.minX=Math.min(n.slideWidth/2-a/2,0),r.maxX=-r.minX,r.minY=Math.min(n.slideHeight/2-o/2,0),r.maxY=-r.minY,r.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,r.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!r.isMoved&&!t.isScaling){if(this.isHorizontal()&&(Math.floor(r.minX)===Math.floor(r.startX)&&r.touchesCurrent.x<r.touchesStart.x||Math.floor(r.maxX)===Math.floor(r.startX)&&r.touchesCurrent.x>r.touchesStart.x))return void(r.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(r.minY)===Math.floor(r.startY)&&r.touchesCurrent.y<r.touchesStart.y||Math.floor(r.maxY)===Math.floor(r.startY)&&r.touchesCurrent.y>r.touchesStart.y))return void(r.isTouched=!1)}e.preventDefault(),e.stopPropagation(),r.isMoved=!0,r.currentX=r.touchesCurrent.x-r.touchesStart.x+r.startX,r.currentY=r.touchesCurrent.y-r.touchesStart.y+r.startY,r.currentX<r.minX&&(r.currentX=r.minX+1-Math.pow(r.minX-r.currentX+1,.8)),r.currentX>r.maxX&&(r.currentX=r.maxX-1+Math.pow(r.currentX-r.maxX+1,.8)),r.currentY<r.minY&&(r.currentY=r.minY+1-Math.pow(r.minY-r.currentY+1,.8)),r.currentY>r.maxY&&(r.currentY=r.maxY-1+Math.pow(r.currentY-r.maxY+1,.8)),i.prevPositionX||(i.prevPositionX=r.touchesCurrent.x),i.prevPositionY||(i.prevPositionY=r.touchesCurrent.y),i.prevTime||(i.prevTime=Date.now()),i.x=(r.touchesCurrent.x-i.prevPositionX)/(Date.now()-i.prevTime)/2,i.y=(r.touchesCurrent.y-i.prevPositionY)/(Date.now()-i.prevTime)/2,Math.abs(r.touchesCurrent.x-i.prevPositionX)<2&&(i.x=0),Math.abs(r.touchesCurrent.y-i.prevPositionY)<2&&(i.y=0),i.prevPositionX=r.touchesCurrent.x,i.prevPositionY=r.touchesCurrent.y,i.prevTime=Date.now(),n.$imageWrapEl.transform("translate3d(".concat(r.currentX,"px, ").concat(r.currentY,"px,0)"))}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,n=e.image,r=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var i=300,a=300,o=r.x*i,s=n.currentX+o,l=r.y*a,c=n.currentY+l;0!==r.x&&(i=Math.abs((s-n.currentX)/r.x)),0!==r.y&&(a=Math.abs((c-n.currentY)/r.y));var u=Math.max(i,a);n.currentX=s,n.currentY=c;var d=n.width*e.scale,h=n.height*e.scale;n.minX=Math.min(t.slideWidth/2-d/2,0),n.maxX=-n.minX,n.minY=Math.min(t.slideHeight/2-h/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),t.$imageWrapEl.transition(u).transform("translate3d(".concat(n.currentX,"px, ").concat(n.currentY,"px,0)"))}},onTransitionEnd:function(){var e=this.zoom,t=e.gesture;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl&&t.$imageEl.transform("translate3d(0,0,0) scale(1)"),t.$imageWrapEl&&t.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,n,r,i,a,o,s,l,c,u,d,h,f,p,m,v,g=this.zoom,y=this.params.zoom,b=g.gesture,_=g.image;(b.$slideEl||(this.params.virtual&&this.params.virtual.enabled&&this.virtual?b.$slideEl=this.$wrapperEl.children(".".concat(this.params.slideActiveClass)):b.$slideEl=this.slides.eq(this.activeIndex),b.$imageEl=b.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),b.$imageWrapEl=b.$imageEl.parent(".".concat(y.containerClass))),b.$imageEl&&0!==b.$imageEl.length)&&(b.$slideEl.addClass("".concat(y.zoomedSlideClass)),void 0===_.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,n="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=_.touchesStart.x,n=_.touchesStart.y),g.scale=b.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,g.currentScale=b.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,e?(m=b.$slideEl[0].offsetWidth,v=b.$slideEl[0].offsetHeight,r=b.$slideEl.offset().left+m/2-t,i=b.$slideEl.offset().top+v/2-n,s=b.$imageEl[0].offsetWidth,l=b.$imageEl[0].offsetHeight,c=s*g.scale,u=l*g.scale,f=-(d=Math.min(m/2-c/2,0)),p=-(h=Math.min(v/2-u/2,0)),(a=r*g.scale)<d&&(a=d),a>f&&(a=f),(o=i*g.scale)<h&&(o=h),o>p&&(o=p)):(a=0,o=0),b.$imageWrapEl.transition(300).transform("translate3d(".concat(a,"px, ").concat(o,"px,0)")),b.$imageEl.transition(300).transform("translate3d(0,0,0) scale(".concat(g.scale,")")))},out:function(){var e=this.zoom,t=this.params.zoom,n=e.gesture;n.$slideEl||(this.params.virtual&&this.params.virtual.enabled&&this.virtual?n.$slideEl=this.$wrapperEl.children(".".concat(this.params.slideActiveClass)):n.$slideEl=this.slides.eq(this.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),n.$imageWrapEl=n.$imageEl.parent(".".concat(t.containerClass))),n.$imageEl&&0!==n.$imageEl.length&&(e.scale=1,e.currentScale=1,n.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),n.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),n.$slideEl.removeClass("".concat(t.zoomedSlideClass)),n.$slideEl=void 0)},enable:function(){var e=this.zoom;if(!e.enabled){e.enabled=!0;var t=!("touchstart"!==this.touchEvents.start||!Wr.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},n=!Wr.passiveListener||{passive:!1,capture:!0},r=".".concat(this.params.slideClass);Wr.gestures?(this.$wrapperEl.on("gesturestart",r,e.onGestureStart,t),this.$wrapperEl.on("gesturechange",r,e.onGestureChange,t),this.$wrapperEl.on("gestureend",r,e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,r,e.onGestureStart,t),this.$wrapperEl.on(this.touchEvents.move,r,e.onGestureChange,n),this.$wrapperEl.on(this.touchEvents.end,r,e.onGestureEnd,t),this.touchEvents.cancel&&this.$wrapperEl.on(this.touchEvents.cancel,r,e.onGestureEnd,t)),this.$wrapperEl.on(this.touchEvents.move,".".concat(this.params.zoom.containerClass),e.onTouchMove,n)}},disable:function(){var e=this.zoom;if(e.enabled){this.zoom.enabled=!1;var t=!("touchstart"!==this.touchEvents.start||!Wr.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},n=!Wr.passiveListener||{passive:!1,capture:!0},r=".".concat(this.params.slideClass);Wr.gestures?(this.$wrapperEl.off("gesturestart",r,e.onGestureStart,t),this.$wrapperEl.off("gesturechange",r,e.onGestureChange,t),this.$wrapperEl.off("gestureend",r,e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,r,e.onGestureStart,t),this.$wrapperEl.off(this.touchEvents.move,r,e.onGestureChange,n),this.$wrapperEl.off(this.touchEvents.end,r,e.onGestureEnd,t),this.touchEvents.cancel&&this.$wrapperEl.off(this.touchEvents.cancel,r,e.onGestureEnd,t)),this.$wrapperEl.off(this.touchEvents.move,".".concat(this.params.zoom.containerClass),e.onTouchMove,n)}}},Yi={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(n){t[n]=Bi[n].bind(e)})),qr.extend(e,{zoom:t});var n=1;Object.defineProperty(e.zoom,"scale",{get:function(){return n},set:function(t){if(n!==t){var r=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,i=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,r,i)}n=t}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd:function(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap:function(e){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(e)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()},slideChange:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.params.cssMode&&this.zoom.onTransitionEnd()}}},ji={loadInSlide:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=n.params.lazy;if(void 0!==e&&0!==n.slides.length){var i=n.virtual&&n.params.virtual.enabled,a=i?n.$wrapperEl.children(".".concat(n.params.slideClass,'[data-swiper-slide-index="').concat(e,'"]')):n.slides.eq(e),o=a.find(".".concat(r.elementClass,":not(.").concat(r.loadedClass,"):not(.").concat(r.loadingClass,")"));!a.hasClass(r.elementClass)||a.hasClass(r.loadedClass)||a.hasClass(r.loadingClass)||(o=o.add(a[0])),0!==o.length&&o.each((function(e,i){var o=Vr(i);o.addClass(r.loadingClass);var s=o.attr("data-background"),l=o.attr("data-src"),c=o.attr("data-srcset"),u=o.attr("data-sizes");n.loadImage(o[0],l||s,c,u,!1,(function(){if(null!=n&&n&&(!n||n.params)&&!n.destroyed){if(s?(o.css("background-image",'url("'.concat(s,'")')),o.removeAttr("data-background")):(c&&(o.attr("srcset",c),o.removeAttr("data-srcset")),u&&(o.attr("sizes",u),o.removeAttr("data-sizes")),l&&(o.attr("src",l),o.removeAttr("data-src"))),o.addClass(r.loadedClass).removeClass(r.loadingClass),a.find(".".concat(r.preloaderClass)).remove(),n.params.loop&&t){var e=a.attr("data-swiper-slide-index");if(a.hasClass(n.params.slideDuplicateClass)){var i=n.$wrapperEl.children('[data-swiper-slide-index="'.concat(e,'"]:not(.').concat(n.params.slideDuplicateClass,")"));n.lazy.loadInSlide(i.index(),!1)}else{var d=n.$wrapperEl.children(".".concat(n.params.slideDuplicateClass,'[data-swiper-slide-index="').concat(e,'"]'));n.lazy.loadInSlide(d.index(),!1)}}n.emit("lazyImageReady",a[0],o[0]),n.params.autoHeight&&n.updateAutoHeight()}})),n.emit("lazyImageLoad",a[0],o[0])}))}},load:function(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides,i=e.activeIndex,a=e.virtual&&n.virtual.enabled,o=n.lazy,s=n.slidesPerView;function l(e){if(a){if(t.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]')).length)return!0}else if(r[e])return!0;return!1}function c(e){return a?Vr(e).attr("data-swiper-slide-index"):Vr(e).index()}if("auto"===s&&(s=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children(".".concat(n.slideVisibleClass)).each((function(t,n){var r=a?Vr(n).attr("data-swiper-slide-index"):Vr(n).index();e.lazy.loadInSlide(r)}));else if(s>1)for(var u=i;u<i+s;u+=1)l(u)&&e.lazy.loadInSlide(u);else e.lazy.loadInSlide(i);if(o.loadPrevNext)if(s>1||o.loadPrevNextAmount&&o.loadPrevNextAmount>1){for(var d=o.loadPrevNextAmount,h=s,f=Math.min(i+h+Math.max(d,h),r.length),p=Math.max(i-Math.max(h,d),0),m=i+s;m<f;m+=1)l(m)&&e.lazy.loadInSlide(m);for(var v=p;v<i;v+=1)l(v)&&e.lazy.loadInSlide(v)}else{var g=t.children(".".concat(n.slideNextClass));g.length>0&&e.lazy.loadInSlide(c(g));var y=t.children(".".concat(n.slidePrevClass));y.length>0&&e.lazy.loadInSlide(c(y))}}},Fi={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){qr.extend(this,{lazy:{initialImageLoaded:!1,load:ji.load.bind(this),loadInSlide:ji.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()},slideChange:function(){this.params.lazy.enabled&&this.params.cssMode&&this.lazy.load()}}},Hi={LinearSpline:function(e,t){var n,r,i,a,o,s=function(e,t){for(r=-1,n=e.length;n-r>1;)e[i=n+r>>1]<=t?r=i:n=i;return n};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(o=s(this.x,e),a=o-1,(e-this.x[a])*(this.y[o]-this.y[a])/(this.x[o]-this.x[a])+this.y[a]):0},this},getInterpolateFunction:function(e){this.controller.spline||(this.controller.spline=this.params.loop?new Hi.LinearSpline(this.slidesGrid,e.slidesGrid):new Hi.LinearSpline(this.snapGrid,e.snapGrid))},setTranslate:function(e,t){var n,r,i=this,a=i.controller.control;function o(e){var t=i.rtlTranslate?-i.translate:i.translate;"slide"===i.params.controller.by&&(i.controller.getInterpolateFunction(e),r=-i.controller.spline.interpolate(-t)),r&&"container"!==i.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(i.maxTranslate()-i.minTranslate()),r=(t-i.minTranslate())*n+e.minTranslate()),i.params.controller.inverse&&(r=e.maxTranslate()-r),e.updateProgress(r),e.setTranslate(r,i),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(a))for(var s=0;s<a.length;s+=1)a[s]!==t&&a[s]instanceof vi&&o(a[s]);else a instanceof vi&&t!==a&&o(a)},setTransition:function(e,t){var n,r=this,i=r.controller.control;function a(t){t.setTransition(e,r),0!==e&&(t.transitionStart(),t.params.autoHeight&&qr.nextTick((function(){t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((function(){i&&(t.params.loop&&"slide"===r.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(i))for(n=0;n<i.length;n+=1)i[n]!==t&&i[n]instanceof vi&&a(i[n]);else i instanceof vi&&t!==i&&a(i)}},Ui={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){qr.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:Hi.getInterpolateFunction.bind(this),setTranslate:Hi.setTranslate.bind(this),setTransition:Hi.setTransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition:function(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},zi={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this.params.a11y;if(13===e.keyCode){var n=Vr(e.target);this.navigation&&this.navigation.$nextEl&&n.is(this.navigation.$nextEl)&&(this.isEnd&&!this.params.loop||this.slideNext(),this.isEnd?this.a11y.notify(t.lastSlideMessage):this.a11y.notify(t.nextSlideMessage)),this.navigation&&this.navigation.$prevEl&&n.is(this.navigation.$prevEl)&&(this.isBeginning&&!this.params.loop||this.slidePrev(),this.isBeginning?this.a11y.notify(t.firstSlideMessage):this.a11y.notify(t.prevSlideMessage)),this.pagination&&n.is(".".concat(this.params.pagination.bulletClass))&&n[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){if(!this.params.loop&&this.navigation){var e=this.navigation,t=e.$nextEl,n=e.$prevEl;n&&n.length>0&&(this.isBeginning?this.a11y.disableEl(n):this.a11y.enableEl(n)),t&&t.length>0&&(this.isEnd?this.a11y.disableEl(t):this.a11y.enableEl(t))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(n,r){var i=Vr(r);e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,t.paginationBulletMessage.replace(/\{\{index\}\}/,i.index()+1))}))},init:function(){this.$el.append(this.a11y.liveRegion);var e,t,n=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,n.nextSlideMessage),e.on("keydown",this.a11y.onEnterKey)),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,n.prevSlideMessage),t.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown",".".concat(this.params.pagination.bulletClass),this.a11y.onEnterKey)},destroy:function(){var e,t;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&e.off("keydown",this.a11y.onEnterKey),t&&t.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown",".".concat(this.params.pagination.bulletClass),this.a11y.onEnterKey)}},Vi={name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;qr.extend(e,{a11y:{liveRegion:Vr('<span class="'.concat(e.params.a11y.notificationClass,'" aria-live="assertive" aria-atomic="true"></span>'))}}),Object.keys(zi).forEach((function(t){e.a11y[t]=zi[t].bind(e)}))},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},qi={run:function(){var e=this,t=e.slides.eq(e.activeIndex),n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=qr.nextTick((function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")),e.params.cssMode&&e.autoplay.running&&e.autoplay.run()}),n)},start:function(){return void 0===this.autoplay.timeout&&(!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0))},stop:function(){return!!this.autoplay.running&&(void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0))},pause:function(e){this.autoplay.running&&(this.autoplay.paused||(this.autoplay.timeout&&clearTimeout(this.autoplay.timeout),this.autoplay.paused=!0,0!==e&&this.params.autoplay.waitForTransition?(this.$wrapperEl[0].addEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].addEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd)):(this.autoplay.paused=!1,this.autoplay.run())))}},Wi={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;qr.extend(e,{autoplay:{running:!1,paused:!1,run:qi.run.bind(e),start:qi.start.bind(e),stop:qi.stop.bind(e),pause:qi.pause.bind(e),onVisibilityChange:function(){"hidden"===document.visibilityState&&e.autoplay.running&&e.autoplay.pause(),"visible"===document.visibilityState&&e.autoplay.paused&&(e.autoplay.run(),e.autoplay.paused=!1)},onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&(this.autoplay.start(),document.addEventListener("visibilitychange",this.autoplay.onVisibilityChange))},beforeTransitionStart:function(e,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(e):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},touchEnd:function(){this.params.cssMode&&this.autoplay.paused&&!this.params.autoplay.disableOnInteraction&&this.autoplay.run()},destroy:function(){this.autoplay.running&&this.autoplay.stop(),document.removeEventListener("visibilitychange",this.autoplay.onVisibilityChange)}}},Gi={setTranslate:function(){for(var e=this.slides,t=0;t<e.length;t+=1){var n=this.slides.eq(t),r=-n[0].swiperSlideOffset;this.params.virtualTranslate||(r-=this.translate);var i=0;this.isHorizontal()||(i=r,r=0);var a=this.params.fadeEffect.crossFade?Math.max(1-Math.abs(n[0].progress),0):1+Math.min(Math.max(n[0].progress,-1),0);n.css({opacity:a}).transform("translate3d(".concat(r,"px, ").concat(i,"px, 0px)"))}},setTransition:function(e){var t=this,n=t.slides,r=t.$wrapperEl;if(n.transition(e),t.params.virtualTranslate&&0!==e){var i=!1;n.transitionEnd((function(){if(!i&&t&&!t.destroyed){i=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)r.trigger(e[n])}}))}}},Ki={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){qr.extend(this,{fadeEffect:{setTranslate:Gi.setTranslate.bind(this),setTransition:Gi.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push("".concat(this.params.containerModifierClass,"fade"));var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};qr.extend(this.params,e),qr.extend(this.originalParams,e)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},Ji={setTranslate:function(){var e,t=this.$el,n=this.$wrapperEl,r=this.slides,i=this.width,a=this.height,o=this.rtlTranslate,s=this.size,l=this.params.cubeEffect,c=this.isHorizontal(),u=this.virtual&&this.params.virtual.enabled,d=0;l.shadow&&(c?(0===(e=n.find(".swiper-cube-shadow")).length&&(e=Vr('<div class="swiper-cube-shadow"></div>'),n.append(e)),e.css({height:"".concat(i,"px")})):0===(e=t.find(".swiper-cube-shadow")).length&&(e=Vr('<div class="swiper-cube-shadow"></div>'),t.append(e)));for(var h=0;h<r.length;h+=1){var f=r.eq(h),p=h;u&&(p=parseInt(f.attr("data-swiper-slide-index"),10));var m=90*p,v=Math.floor(m/360);o&&(m=-m,v=Math.floor(-m/360));var g=Math.max(Math.min(f[0].progress,1),-1),y=0,b=0,_=0;p%4==0?(y=4*-v*s,_=0):(p-1)%4==0?(y=0,_=4*-v*s):(p-2)%4==0?(y=s+4*v*s,_=s):(p-3)%4==0&&(y=-s,_=3*s+4*s*v),o&&(y=-y),c||(b=y,y=0);var w="rotateX(".concat(c?0:-m,"deg) rotateY(").concat(c?m:0,"deg) translate3d(").concat(y,"px, ").concat(b,"px, ").concat(_,"px)");if(g<=1&&g>-1&&(d=90*p+90*g,o&&(d=90*-p-90*g)),f.transform(w),l.slideShadows){var k=c?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),E=c?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===k.length&&(k=Vr('<div class="swiper-slide-shadow-'.concat(c?"left":"top",'"></div>')),f.append(k)),0===E.length&&(E=Vr('<div class="swiper-slide-shadow-'.concat(c?"right":"bottom",'"></div>')),f.append(E)),k.length&&(k[0].style.opacity=Math.max(-g,0)),E.length&&(E[0].style.opacity=Math.max(g,0))}}if(n.css({"-webkit-transform-origin":"50% 50% -".concat(s/2,"px"),"-moz-transform-origin":"50% 50% -".concat(s/2,"px"),"-ms-transform-origin":"50% 50% -".concat(s/2,"px"),"transform-origin":"50% 50% -".concat(s/2,"px")}),l.shadow)if(c)e.transform("translate3d(0px, ".concat(i/2+l.shadowOffset,"px, ").concat(-i/2,"px) rotateX(90deg) rotateZ(0deg) scale(").concat(l.shadowScale,")"));else{var S=Math.abs(d)-90*Math.floor(Math.abs(d)/90),T=1.5-(Math.sin(2*S*Math.PI/360)/2+Math.cos(2*S*Math.PI/360)/2),C=l.shadowScale,M=l.shadowScale/T,x=l.shadowOffset;e.transform("scale3d(".concat(C,", 1, ").concat(M,") translate3d(0px, ").concat(a/2+x,"px, ").concat(-a/2/M,"px) rotateX(-90deg)"))}var $=bi.isSafari||bi.isUiWebView?-s/2:0;n.transform("translate3d(0px,0,".concat($,"px) rotateX(").concat(this.isHorizontal()?0:d,"deg) rotateY(").concat(this.isHorizontal()?-d:0,"deg)"))},setTransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},Xi={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){qr.extend(this,{cubeEffect:{setTranslate:Ji.setTranslate.bind(this),setTransition:Ji.setTransition.bind(this)}})},on:{beforeInit:function(){if("cube"===this.params.effect){this.classNames.push("".concat(this.params.containerModifierClass,"cube")),this.classNames.push("".concat(this.params.containerModifierClass,"3d"));var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};qr.extend(this.params,e),qr.extend(this.originalParams,e)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},Qi={setTranslate:function(){for(var e=this.slides,t=this.rtlTranslate,n=0;n<e.length;n+=1){var r=e.eq(n),i=r[0].progress;this.params.flipEffect.limitRotation&&(i=Math.max(Math.min(r[0].progress,1),-1));var a=-180*i,o=0,s=-r[0].swiperSlideOffset,l=0;if(this.isHorizontal()?t&&(a=-a):(l=s,s=0,o=-a,a=0),r[0].style.zIndex=-Math.abs(Math.round(i))+e.length,this.params.flipEffect.slideShadows){var c=this.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),u=this.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===c.length&&(c=Vr('<div class="swiper-slide-shadow-'.concat(this.isHorizontal()?"left":"top",'"></div>')),r.append(c)),0===u.length&&(u=Vr('<div class="swiper-slide-shadow-'.concat(this.isHorizontal()?"right":"bottom",'"></div>')),r.append(u)),c.length&&(c[0].style.opacity=Math.max(-i,0)),u.length&&(u[0].style.opacity=Math.max(i,0))}r.transform("translate3d(".concat(s,"px, ").concat(l,"px, 0px) rotateX(").concat(o,"deg) rotateY(").concat(a,"deg)"))}},setTransition:function(e){var t=this,n=t.slides,r=t.activeIndex,i=t.$wrapperEl;if(n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var a=!1;n.eq(r).transitionEnd((function(){if(!a&&t&&!t.destroyed){a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)i.trigger(e[n])}}))}}},Zi={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){qr.extend(this,{flipEffect:{setTranslate:Qi.setTranslate.bind(this),setTransition:Qi.setTransition.bind(this)}})},on:{beforeInit:function(){if("flip"===this.params.effect){this.classNames.push("".concat(this.params.containerModifierClass,"flip")),this.classNames.push("".concat(this.params.containerModifierClass,"3d"));var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};qr.extend(this.params,e),qr.extend(this.originalParams,e)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},ea={setTranslate:function(){for(var e=this.width,t=this.height,n=this.slides,r=this.$wrapperEl,i=this.slidesSizesGrid,a=this.params.coverflowEffect,o=this.isHorizontal(),s=this.translate,l=o?e/2-s:t/2-s,c=o?a.rotate:-a.rotate,u=a.depth,d=0,h=n.length;d<h;d+=1){var f=n.eq(d),p=i[d],m=(l-f[0].swiperSlideOffset-p/2)/p*a.modifier,v=o?c*m:0,g=o?0:c*m,y=-u*Math.abs(m),b=a.stretch;"string"==typeof b&&-1!==b.indexOf("%")&&(b=parseFloat(a.stretch)/100*p);var _=o?0:b*m,w=o?b*m:0;Math.abs(w)<.001&&(w=0),Math.abs(_)<.001&&(_=0),Math.abs(y)<.001&&(y=0),Math.abs(v)<.001&&(v=0),Math.abs(g)<.001&&(g=0);var k="translate3d(".concat(w,"px,").concat(_,"px,").concat(y,"px) rotateX(").concat(g,"deg) rotateY(").concat(v,"deg)");if(f.transform(k),f[0].style.zIndex=1-Math.abs(Math.round(m)),a.slideShadows){var E=o?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),S=o?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===E.length&&(E=Vr('<div class="swiper-slide-shadow-'.concat(o?"left":"top",'"></div>')),f.append(E)),0===S.length&&(S=Vr('<div class="swiper-slide-shadow-'.concat(o?"right":"bottom",'"></div>')),f.append(S)),E.length&&(E[0].style.opacity=m>0?m:0),S.length&&(S[0].style.opacity=-m>0?-m:0)}}(Wr.pointerEvents||Wr.prefixedPointerEvents)&&(r[0].style.perspectiveOrigin="".concat(l,"px 50%"))},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},ta={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){qr.extend(this,{coverflowEffect:{setTranslate:ea.setTranslate.bind(this),setTransition:ea.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push("".concat(this.params.containerModifierClass,"coverflow")),this.classNames.push("".concat(this.params.containerModifierClass,"3d")),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},na={init:function(){var e=this.params.thumbs,t=this.constructor;e.swiper instanceof t?(this.thumbs.swiper=e.swiper,qr.extend(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),qr.extend(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):qr.isObject(e.swiper)&&(this.thumbs.swiper=new t(qr.extend({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick)},onThumbClick:function(){var e=this.thumbs.swiper;if(e){var t=e.clickedIndex,n=e.clickedSlide;if(!(n&&Vr(n).hasClass(this.params.thumbs.slideThumbActiveClass)||null==t)){var r;if(r=e.params.loop?parseInt(Vr(e.clickedSlide).attr("data-swiper-slide-index"),10):t,this.params.loop){var i=this.activeIndex;this.slides.eq(i).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,i=this.activeIndex);var a=this.slides.eq(i).prevAll('[data-swiper-slide-index="'.concat(r,'"]')).eq(0).index(),o=this.slides.eq(i).nextAll('[data-swiper-slide-index="'.concat(r,'"]')).eq(0).index();r=void 0===a?o:void 0===o?a:o-i<i-a?o:a}this.slideTo(r)}}},update:function(e){var t=this.thumbs.swiper;if(t){var n="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():t.params.slidesPerView,r=this.params.thumbs.autoScrollOffset,i=r&&!t.params.loop;if(this.realIndex!==t.realIndex||i){var a,o,s=t.activeIndex;if(t.params.loop){t.slides.eq(s).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,s=t.activeIndex);var l=t.slides.eq(s).prevAll('[data-swiper-slide-index="'.concat(this.realIndex,'"]')).eq(0).index(),c=t.slides.eq(s).nextAll('[data-swiper-slide-index="'.concat(this.realIndex,'"]')).eq(0).index();a=void 0===l?c:void 0===c?l:c-s==s-l?s:c-s<s-l?c:l,o=this.activeIndex>this.previousIndex?"next":"prev"}else o=(a=this.realIndex)>this.previousIndex?"next":"prev";i&&(a+="next"===o?r:-1*r),t.visibleSlidesIndexes&&t.visibleSlidesIndexes.indexOf(a)<0&&(t.params.centeredSlides?a=a>s?a-Math.floor(n/2)+1:a+Math.floor(n/2)-1:a>s&&(a=a-n+1),t.slideTo(a,e?0:void 0))}var u=1,d=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(u=this.params.slidesPerView),this.params.thumbs.multipleActiveThumbs||(u=1),u=Math.floor(u),t.slides.removeClass(d),t.params.loop||t.params.virtual&&t.params.virtual.enabled)for(var h=0;h<u;h+=1)t.$wrapperEl.children('[data-swiper-slide-index="'.concat(this.realIndex+h,'"]')).addClass(d);else for(var f=0;f<u;f+=1)t.slides.eq(this.realIndex+f).addClass(d)}}},ra={name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){qr.extend(this,{thumbs:{swiper:null,init:na.init.bind(this),update:na.update.bind(this),onThumbClick:na.onThumbClick.bind(this)}})},on:{beforeInit:function(){var e=this.params.thumbs;e&&e.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}};vi.use([gi,_i,yi,wi,Ei,Ti,Mi,$i,Pi,Ii,Di,Ri,Yi,Fi,Ui,Vi,Wi,Ki,Xi,Zi,ta,ra]);var ia=vi;function aa(e){var t=this,n=g(e);if(0!==n.length&&!n[0].swiper){var r,i,a,o={};n.hasClass("tabs-swipeable-wrap")&&(n.addClass("swiper-container").children(".tabs").addClass("swiper-wrapper").children(".tab").addClass("swiper-slide"),r=n.children(".tabs").children(".tab-active").index(),i=!0,a=n.find(".tabs-routable").length>0),n.attr("data-swiper")?o=JSON.parse(n.attr("data-swiper")):n[0].f7SwiperParams?o=n[0].f7SwiperParams:(o=n.dataset(),Object.keys(o).forEach((function(e){var t=o[e];if("string"==typeof t&&0===t.indexOf("{")&&t.indexOf("}")>0)try{o[e]=JSON.parse(t)}catch(e){}}))),void 0===o.initialSlide&&void 0!==r&&(o.initialSlide=r);var s=t.swiper.create(n[0],o);n.parents(".popup, .login-screen, .sheet-modal, .popover").on("modal:open",l),n.parents(".panel").on("panel:open",l),n.parents(".tab").on("tab:show",l),s.on("beforeDestroy",(function(){n.parents(".popup, .login-screen, .sheet-modal, .popover").off("modal:open",l),n.parents(".panel").off("panel:open",l),n.parents(".tab").off("tab:show",l)})),i&&s.on("slideChange",(function(){if(a){var e=t.views.get(n.parents(".view"));e||(e=t.views.main);var r=e.router,i=r.findTabRoute(s.slides.eq(s.activeIndex)[0]);i&&setTimeout((function(){r.navigate(i.path)}),0)}else t.tab.show({tabEl:s.slides.eq(s.activeIndex)})}))}function l(){s.update()}}var oa={name:"swiper",static:{Swiper:ia},create:function(){this.swiper=W({defaultSelector:".swiper-container",constructor:ia,domProp:"swiper"})},on:{pageBeforeRemove:function(e){var t=this;e.$el.find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){t.swiper.destroy(n)}))},pageMounted:function(e){var t=this;e.$el.find(".tabs-swipeable-wrap").each((function(e,n){aa.call(t,n)}))},pageInit:function(e){var t=this;e.$el.find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){aa.call(t,n)}))},pageReinit:function(e){var t=this;e.$el.find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){var r=t.swiper.get(n);r&&r.update&&r.update()}))},tabMounted:function(e){var t=this;g(e).find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){aa.call(t,n)}))},tabShow:function(e){var t=this;g(e).find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){var r=t.swiper.get(n);r&&r.update&&r.update()}))},tabBeforeRemove:function(e){var t=this;g(e).find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){t.swiper.destroy(n)}))}},vnode:{"swiper-init":{insert:function(e){var t=e.elm;aa.call(this,t)},destroy:function(e){var t=e.elm;this.swiper.destroy(t)}},"tabs-swipeable-wrap":{insert:function(e){var t=e.elm;aa.call(this,t)},destroy:function(e){var t=e.elm;this.swiper.destroy(t)}}}};function sa(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var la=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(sa()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o()(this,r),t=n.call(this,i,[e]);var a=k()(t);a.app=e;var s=j.extend({on:{}},e.params.photoBrowser);return a.useModulesParams(s),a.params=j.extend(s,i),j.extend(a,{exposed:!1,opened:!1,activeIndex:a.params.swiper.initialSlide,url:a.params.url,swipeToClose:{allow:!0,isTouched:!1,diff:void 0,start:void 0,current:void 0,started:!1,activeSlide:void 0,timeStart:void 0}}),a.useModules(),a.init(),t}return b()(r,[{key:"onSlideChange",value:function(e){var t=this;t.activeIndex=e.activeIndex;var n=e.activeIndex+1,r=t.params.virtualSlides?t.params.photos.length:e.slides.length;e.params.loop&&(r-=2,(n-=e.loopedSlides)<1&&(n=r+n),n>r&&(n-=r));var i,a=t.params.virtualSlides?e.$wrapperEl.find('.swiper-slide[data-swiper-slide-index="'.concat(e.activeIndex,'"]')):e.slides.eq(e.activeIndex),o=t.params.virtualSlides?e.$wrapperEl.find('.swiper-slide[data-swiper-slide-index="'.concat(e.previousIndex,'"]')):e.slides.eq(e.previousIndex),s=t.$el.find(".photo-browser-current"),l=t.$el.find(".photo-browser-total");if("page"===t.params.type&&t.params.navbar&&0===s.length&&"ios"===t.app.theme&&(i=t.app.navbar.getElByPage(t.$el))&&(s=g(i).find(".photo-browser-current"),l=g(i).find(".photo-browser-total")),s.length&&l.length&&(s.text(n),l.text(r),i||(i=s.parents(".navbar")[0]),i&&t.app.navbar.size(i)),t.captions.length>0){var c=e.params.loop?a.attr("data-swiper-slide-index"):t.activeIndex;t.$captionsContainerEl.find(".photo-browser-caption-active").removeClass("photo-browser-caption-active"),t.$captionsContainerEl.find('[data-caption-index="'.concat(c,'"]')).addClass("photo-browser-caption-active")}var u=o.find("video");u.length>0&&"pause"in u[0]&&u[0].pause()}},{key:"onTouchStart",value:function(){var e=this.swipeToClose;e.allow&&(e.isTouched=!0)}},{key:"onTouchMove",value:function(e){var t=this,n=t.swipeToClose;n.isTouched&&(n.started||(n.started=!0,n.start="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,t.params.virtualSlides?n.activeSlide=t.swiper.$wrapperEl.children(".swiper-slide-active"):n.activeSlide=t.swiper.slides.eq(t.swiper.activeIndex),n.timeStart=j.now()),e.preventDefault(),n.current="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,n.diff=n.start-n.current,t.$el.transition(0).transform("translate3d(0,".concat(-n.diff,"px,0)")))}},{key:"onTouchEnd",value:function(){var e=this,t=e.swipeToClose;if(t.isTouched=!1,t.started){t.started=!1,t.allow=!1;var n=Math.abs(t.diff),r=(new Date).getTime()-t.timeStart;r<300&&n>20||r>=300&&n>100?j.nextTick((function(){e.$el&&(t.diff<0?e.$el.addClass("swipe-close-to-bottom"):e.$el.addClass("swipe-close-to-top")),e.emit("local::swipeToClose",e),e.$el.transform("").transition(""),e.close(),t.allow=!0})):(0!==n?e.$el.addClass("photo-browser-transitioning").transitionEnd((function(){t.allow=!0,e.$el.removeClass("photo-browser-transitioning")})):t.allow=!0,j.nextTick((function(){e.$el.transform("").transition("")})))}else t.started=!1}},{key:"renderNavbar",value:function(){var e=this;if(e.params.renderNavbar)return e.params.renderNavbar.call(e);var t=e.params.iconsColor;e.params.iconsColor||"dark"!==e.params.theme||(t="white");var n="ios"!==e.app.theme&&"aurora"!==e.app.theme||!e.params.pageBackLinkText?"":e.params.pageBackLinkText,r=void 0===e.params.navbarShowCount?e.params.photos.length>1:e.params.navbarShowCount,i="page"!==e.params.type;return'\n <div class="navbar navbar-photo-browser '.concat("dark"===e.params.theme?"navbar-photo-browser-dark":"",'">\n <div class="navbar-bg"></div>\n <div class="navbar-inner navbar-inner-centered-title sliding">\n ').concat(i?"":'\n <div class="left">\n <a class="link '.concat(n?"":"icon-only",' back">\n <i class="icon icon-back ').concat(t?"color-".concat(t):"",'"></i>\n ').concat(n?"<span>".concat(n,"</span>"):"","\n </a>\n </div>\n "),"\n ").concat(r?'\n <div class="title">\n <span class="photo-browser-current"></span>\n <span class="photo-browser-of">'.concat(e.params.navbarOfText,'</span>\n <span class="photo-browser-total"></span>\n </div>\n '):"","\n ").concat(i?'\n <div class="right">\n <a class="link popup-close" data-popup=".photo-browser-popup">\n <span>'.concat(e.params.popupCloseLinkText,"</span>\n </a>\n </div>\n "):"","\n </div>\n </div>\n ").trim()}},{key:"renderToolbar",value:function(){var e=this;if(e.params.renderToolbar)return e.params.renderToolbar.call(e);var t=e.params.iconsColor;return e.params.iconsColor||"dark"!==e.params.theme||(t="white"),'\n <div class="toolbar toolbar-bottom tabbar">\n <div class="toolbar-inner">\n <a class="link photo-browser-prev">\n <i class="icon icon-back '.concat(t?"color-".concat(t):"",'"></i>\n </a>\n <a class="link photo-browser-next">\n <i class="icon icon-forward ').concat(t?"color-".concat(t):"",'"></i>\n </a>\n </div>\n </div>\n ').trim()}},{key:"renderCaption",value:function(e,t){return this.params.renderCaption?this.params.renderCaption.call(this,e,t):'\n <div class="photo-browser-caption" data-caption-index="'.concat(t,'">\n ').concat(e,"\n </div>\n ").trim()}},{key:"renderObject",value:function(e,t){return this.params.renderObject?this.params.renderObject.call(this,e,t):'\n <div class="photo-browser-slide photo-browser-object-slide swiper-slide" data-swiper-slide-index="'.concat(t,'">').concat(e.html?e.html:e,"</div>\n ")}},{key:"renderLazyPhoto",value:function(e,t){return this.params.renderLazyPhoto?this.params.renderLazyPhoto.call(this,e,t):'\n <div class="photo-browser-slide photo-browser-slide-lazy swiper-slide" data-swiper-slide-index="'.concat(t,'">\n <div class="swiper-lazy-preloader"></div>\n <span class="swiper-zoom-container">\n <img data-src="').concat(e.url?e.url:e,'" class="swiper-lazy">\n </span>\n </div>\n ').trim()}},{key:"renderPhoto",value:function(e,t){return this.params.renderPhoto?this.params.renderPhoto.call(this,e,t):'\n <div class="photo-browser-slide swiper-slide" data-swiper-slide-index="'.concat(t,'">\n <span class="swiper-zoom-container">\n <img src="').concat(e.url?e.url:e,'">\n </span>\n </div>\n ').trim()}},{key:"render",value:function(){var e=this;return e.params.render?e.params.render.call(e,e.params):'\n <div class="photo-browser photo-browser-'.concat(e.params.theme,'">\n <div class="view">\n <div class="page photo-browser-page photo-browser-page-').concat(e.params.theme," no-toolbar ").concat(e.params.navbar?"":"no-navbar",'" data-name="photo-browser-page">\n ').concat(e.params.navbar?e.renderNavbar():"","\n ").concat(e.params.toolbar?e.renderToolbar():"",'\n <div class="photo-browser-captions photo-browser-captions-').concat(e.params.captionsTheme||e.params.theme,'">\n ').concat(e.params.photos.map((function(t,n){return t.caption?e.renderCaption(t.caption,n):""})).join(" "),'\n </div>\n <div class="photo-browser-swiper-container swiper-container">\n <div class="photo-browser-swiper-wrapper swiper-wrapper">\n ').concat(e.params.virtualSlides?"":e.params.photos.map((function(t,n){return t.html||("string"==typeof t||t instanceof String)&&t.indexOf("<")>=0&&t.indexOf(">")>=0?e.renderObject(t,n):!0===e.params.swiper.lazy||e.params.swiper.lazy&&e.params.swiper.lazy.enabled?e.renderLazyPhoto(t,n):e.renderPhoto(t,n)})).join(" "),"\n </div>\n </div>\n </div>\n </div>\n </div>\n ").trim()}},{key:"renderStandalone",value:function(){return this.params.renderStandalone?this.params.renderStandalone.call(this):'<div class="popup photo-browser-popup photo-browser-standalone popup-tablet-fullscreen">'.concat(this.render(),"</div>")}},{key:"renderPage",value:function(){return this.params.renderPage?this.params.renderPage.call(this):this.render()}},{key:"renderPopup",value:function(){return this.params.renderPopup?this.params.renderPopup.call(this):'<div class="popup photo-browser-popup">'.concat(this.render(),"</div>")}},{key:"onOpen",value:function(e,t){var n,r=this,i=r.app,a=g(t);a[0].f7PhotoBrowser=r,r.$el=a,r.el=a[0],r.openedIn=e,r.opened=!0,r.$swiperContainerEl=r.$el.find(".photo-browser-swiper-container"),r.$swiperWrapperEl=r.$el.find(".photo-browser-swiper-wrapper"),r.slides=r.$el.find(".photo-browser-slide"),r.$captionsContainerEl=r.$el.find(".photo-browser-captions"),r.captions=r.$el.find(".photo-browser-caption");var o=j.extend({},r.params.swiper,{initialSlide:r.activeIndex,on:{click:function(e){clearTimeout(n),r.params.exposition&&(n=setTimeout((function(){r.expositionToggle()}),350)),r.emit("local::tap",e),r.emit("local::click",e)},doubleClick:function(e){clearTimeout(n),r.emit("local::doubleTap",e),r.emit("local::doubleClick",e)},slideChange:function(){var e=this;r.onSlideChange(e);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];r.emit.apply(r,["local::slideChange"].concat(n))},transitionStart:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.emit.apply(r,["local::transitionStart"].concat(t))},transitionEnd:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.emit.apply(r,["local::transitionEnd"].concat(t))},slideChangeTransitionStart:function(){var e=this;r.onSlideChange(e);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];r.emit.apply(r,["local::slideChangeTransitionStart"].concat(n))},slideChangeTransitionEnd:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.emit.apply(r,["local::slideChangeTransitionEnd"].concat(t))},lazyImageLoad:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.emit.apply(r,["local::lazyImageLoad"].concat(t))},lazyImageReady:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0];g(i).removeClass("photo-browser-slide-lazy"),r.emit.apply(r,["local::lazyImageReady"].concat(t))}}});r.params.swipeToClose&&"page"!==r.params.type&&j.extend(o.on,{touchStart:function(e){r.onTouchStart(e),r.emit("local::touchStart",e)},touchMoveOpposite:function(e){r.onTouchMove(e),r.emit("local::touchMoveOpposite",e)},touchEnd:function(e){r.onTouchEnd(e),r.emit("local::touchEnd",e)}}),r.params.virtualSlides&&j.extend(o,{virtual:{slides:r.params.photos,renderSlide:function(e,t){return e.html||("string"==typeof e||e instanceof String)&&e.indexOf("<")>=0&&e.indexOf(">")>=0?r.renderObject(e,t):!0===r.params.swiper.lazy||r.params.swiper.lazy&&r.params.swiper.lazy.enabled?r.renderLazyPhoto(e,t):r.renderPhoto(e,t)}}}),r.swiper=i.swiper.create(r.$swiperContainerEl,o),0===r.activeIndex&&r.onSlideChange(r.swiper),r.$el&&r.$el.trigger("photobrowser:open"),r.emit("local::open photoBrowserOpen",r)}},{key:"onOpened",value:function(){var e=this;e.$el&&"standalone"===e.params.type&&e.$el.css("animation","none"),e.$el&&e.$el.trigger("photobrowser:opened"),e.emit("local::opened photoBrowserOpened",e)}},{key:"onClose",value:function(){var e=this;e.destroyed||(e.swiper&&e.swiper.destroy&&(e.swiper.destroy(!0,!1),e.swiper=null,delete e.swiper),e.$el&&e.$el.trigger("photobrowser:close"),e.emit("local::close photoBrowserClose",e))}},{key:"onClosed",value:function(){var e=this;e.destroyed||(e.opened=!1,e.$el=null,e.el=null,delete e.$el,delete e.el,e.$el&&e.$el.trigger("photobrowser:closed"),e.emit("local::closed photoBrowserClosed",e))}},{key:"openPage",value:function(){var e=this;if(e.opened)return e;var t=e.renderPage();return e.view.router.navigate({url:e.url,route:{content:t,path:e.url,on:{pageBeforeIn:function(t,n){e.view.$el.addClass("with-photo-browser-page with-photo-browser-page-".concat(e.params.theme)),e.onOpen("page",n.el)},pageAfterIn:function(t,n){e.onOpened("page",n.el)},pageBeforeOut:function(t,n){e.view.$el.removeClass("with-photo-browser-page with-photo-browser-page-exposed with-photo-browser-page-".concat(e.params.theme)),e.onClose("page",n.el)},pageAfterOut:function(t,n){e.onClosed("page",n.el)}}}}),e}},{key:"openStandalone",value:function(){var e=this;if(e.opened)return e;var t={backdrop:!1,content:e.renderStandalone(),on:{popupOpen:function(t){e.onOpen("popup",t.el)},popupOpened:function(t){e.onOpened("popup",t.el)},popupClose:function(t){e.onClose("popup",t.el)},popupClosed:function(t){e.onClosed("popup",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:t}}):e.modal=e.app.popup.create(t).open(),e}},{key:"openPopup",value:function(){var e=this;if(e.opened)return e;var t={content:e.renderPopup(),push:e.params.popupPush,on:{popupOpen:function(t){e.onOpen("popup",t.el)},popupOpened:function(t){e.onOpened("popup",t.el)},popupClose:function(t){e.onClose("popup",t.el)},popupClosed:function(t){e.onClosed("popup",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:t}}):e.modal=e.app.popup.create(t).open(),e}},{key:"expositionEnable",value:function(){var e=this;return"page"===e.params.type&&e.view.$el.addClass("with-photo-browser-page-exposed"),e.$el&&e.$el.addClass("photo-browser-exposed"),e.params.expositionHideCaptions&&e.$captionsContainerEl.addClass("photo-browser-captions-exposed"),e.exposed=!0,e}},{key:"expositionDisable",value:function(){var e=this;return"page"===e.params.type&&e.view.$el.removeClass("with-photo-browser-page-exposed"),e.$el&&e.$el.removeClass("photo-browser-exposed"),e.params.expositionHideCaptions&&e.$captionsContainerEl.removeClass("photo-browser-captions-exposed"),e.exposed=!1,e}},{key:"expositionToggle",value:function(){var e=this;return"page"===e.params.type&&e.view.$el.toggleClass("with-photo-browser-page-exposed"),e.$el&&e.$el.toggleClass("photo-browser-exposed"),e.params.expositionHideCaptions&&e.$captionsContainerEl.toggleClass("photo-browser-captions-exposed"),e.exposed=!e.exposed,e}},{key:"open",value:function(e){var t=this,n=t.params.type;return t.opened?(t.swiper&&void 0!==e&&t.swiper.slideTo(parseInt(e,10)),t):(void 0!==e&&(t.activeIndex=e),"standalone"===n&&t.openStandalone(),"page"===n&&t.openPage(),"popup"===n&&t.openPopup(),t)}},{key:"close",value:function(){var e=this;return e.opened?(e.params.routableModals&&e.view||"page"===e.openedIn?e.view.router.back():(e.modal.once("modalClosed",(function(){j.nextTick((function(){e.destroyed||(e.modal.destroy(),delete e.modal)}))})),e.modal.close()),e):e}},{key:"init",value:function(){}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy photoBrowserBeforeDestroy",e),e.$el&&(e.$el.trigger("photobrowser:beforedestroy"),e.$el[0].f7PhotoBrowser=null,delete e.$el[0].f7PhotoBrowser),j.deleteProps(e),e.destroyed=!0,e=null}},{key:"view",get:function(){var e=this.params,t=this.app;return e.view||t.views.main}}]),r}(z),ca={name:"photoBrowser",params:{photoBrowser:{photos:[],exposition:!0,expositionHideCaptions:!1,type:"standalone",navbar:!0,toolbar:!0,theme:"light",captionsTheme:void 0,iconsColor:void 0,popupPush:!1,swipeToClose:!0,pageBackLinkText:"Back",popupCloseLinkText:"Close",navbarOfText:"of",navbarShowCount:void 0,view:void 0,url:"photos/",routableModals:!0,virtualSlides:!0,renderNavbar:void 0,renderToolbar:void 0,renderCaption:void 0,renderObject:void 0,renderLazyPhoto:void 0,renderPhoto:void 0,renderPage:void 0,renderPopup:void 0,renderStandalone:void 0,swiper:{initialSlide:0,spaceBetween:20,speed:300,loop:!1,preloadImages:!0,navigation:{nextEl:".photo-browser-next",prevEl:".photo-browser-prev"},zoom:{enabled:!0,maxRatio:3,minRatio:1},lazy:{enabled:!0}}}},create:function(){this.photoBrowser=W({defaultSelector:".photo-browser-popup, .photo-browser-page",constructor:la,app:this,domProp:"f7PhotoBrowser"})},static:{PhotoBrowser:la}};function ua(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var da=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(ua()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e,t){var i;o()(this,r);var a=j.extend({on:{}},e.params.notification,t);i=n.call(this,e,a);var l=k()(i);l.app=e,l.params=a;var c,u,d,h,f,p,m,v=l.params,y=v.icon,b=v.title,_=v.titleRightText,w=v.subtitle,E=v.text,S=v.closeButton,T=v.closeTimeout,M=v.cssClass,x=v.closeOnClick;if(l.params.el)c=g(l.params.el);else{var $=l.render({icon:y,title:b,titleRightText:_,subtitle:w,text:E,closeButton:S,cssClass:M});c=g($)}if(c&&c.length>0&&c[0].f7Modal)return C()(i,c[0].f7Modal);if(0===c.length)return C()(i,l.destroy());j.extend(l,{$el:c,el:c[0],type:"notification"}),c[0].f7Modal=l,S&&c.find(".notification-close-button").on("click",(function(){l.close()})),c.on("click",(function(e){S&&g(e.target).closest(".notification-close-button").length||(l.emit("local::click notificationClick",l),x&&l.close())})),l.on("beforeDestroy",(function(){c.off("click")}));var L,P={};function O(e){u||(u=!0,d=!1,h=void 0,p=j.now(),P.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,P.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY)}function I(e){if(u){var t="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,n="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY;if(void 0===h&&(h=!!(h||Math.abs(n-P.y)<Math.abs(t-P.x))),h)u=!1;else{e.preventDefault(),d||(l.$el.removeClass("notification-transitioning"),l.$el.transition(0),m=l.$el[0].offsetHeight/2),d=!0;var r=f=n-P.y;f>0&&(r=Math.pow(f,.8)),l.$el.transform("translate3d(0, ".concat(r,"px, 0)"))}}}function A(){if(!u||!d)return u=!1,void(d=!1);if(u=!1,d=!1,0!==f){var e=j.now()-p;l.$el.transition(""),l.$el.addClass("notification-transitioning"),l.$el.transform(""),(f<-10&&e<300||-f>=m/1)&&l.close()}}return l.on("open",(function(){l.params.swipeToClose&&(l.$el.on(e.touchEvents.start,O,{passive:!0}),e.on("touchmove:active",I),e.on("touchend:passive",A)),g(".notification.modal-in").each((function(t,n){var r=e.notification.get(n);n!==l.el&&r&&r.close()})),T&&function e(){L=j.nextTick((function(){u&&d?e():l.close()}),T)}()})),l.on("close beforeDestroy",(function(){l.params.swipeToClose&&(l.$el.off(e.touchEvents.start,O,{passive:!0}),e.off("touchmove:active",I),e.off("touchend:passive",A)),s.b.clearTimeout(L)})),C()(i,l)}return b()(r,[{key:"render",value:function(){if(this.params.render)return this.params.render.call(this,this);var e=this.params,t=e.icon,n=e.title,r=e.titleRightText,i=e.subtitle,a=e.text,o=e.closeButton,s=e.cssClass;return'\n <div class="notification '.concat(s||"",'">\n <div class="notification-header">\n ').concat(t?'<div class="notification-icon">'.concat(t,"</div>"):"","\n ").concat(n?'<div class="notification-title">'.concat(n,"</div>"):"","\n ").concat(r?'<div class="notification-title-right-text">'.concat(r,"</div>"):"","\n ").concat(o?'<span class="notification-close-button"></span>':"",'\n </div>\n <div class="notification-content">\n ').concat(i?'<div class="notification-subtitle">'.concat(i,"</div>"):"","\n ").concat(a?'<div class="notification-text">'.concat(a,"</div>"):"","\n </div>\n </div>\n ").trim()}}]),r}(qt),ha={name:"notification",static:{Notification:da},create:function(){this.notification=j.extend({},Q({app:this,constructor:da,defaultSelector:".notification.modal-in"}))},params:{notification:{icon:null,title:null,titleRightText:null,subtitle:null,text:null,closeButton:!1,closeTimeout:null,closeOnClick:!1,swipeToClose:!0,cssClass:null,render:null}}};function fa(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var pa=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(fa()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o()(this,r),t=n.call(this,i,[e]);var a=k()(t);a.app=e;var s,l,c=j.extend({on:{}},e.params.autocomplete);void 0===c.searchbarDisableButton&&(c.searchbarDisableButton="aurora"!==e.theme),a.useModulesParams(c),a.params=j.extend(c,i),a.params.openerEl&&(s=g(a.params.openerEl)).length&&(s[0].f7Autocomplete=a),a.params.inputEl&&(l=g(a.params.inputEl)).length&&(l[0].f7Autocomplete=a);var u=j.id(),d=i.url;!d&&s&&s.length&&(s.attr("href")?d=s.attr("href"):s.find("a").length>0&&(d=s.find("a").attr("href"))),d&&"#"!==d&&""!==d||(d=a.params.url);var h=a.params.multiple?"checkbox":"radio";j.extend(a,{$openerEl:s,openerEl:s&&s[0],$inputEl:l,inputEl:l&&l[0],id:u,url:d,value:a.params.value||[],inputType:h,inputName:"".concat(h,"-").concat(u),$modalEl:void 0,$dropdownEl:void 0});var f="";function p(){var e=a.$inputEl.val().trim();a.params.source&&a.params.source.call(a,e,(function(t){var n,r,i,o="",s=a.params.limit?Math.min(a.params.limit,t.length):t.length;a.items=t,a.params.highlightMatches&&(e=e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),n=new RegExp("(".concat(e,")"),"i"));for(var c=0;c<s;c+=1){var u="object"===O()(t[c])?t[c][a.params.valueProperty]:t[c],d="object"===O()(t[c])?t[c][a.params.textProperty]:t[c];0===c&&(r=u,i=a.items[c]),o+=a.renderItem({value:u,text:a.params.highlightMatches?d.replace(n,"<b>$1</b>"):d},c)}if(""===o&&""===e&&a.params.dropdownPlaceholderText&&(o+=a.renderItem({placeholder:!0,text:a.params.dropdownPlaceholderText})),a.$dropdownEl.find("ul").html(o),a.params.typeahead){if(!r||!i)return;if(0!==r.toLowerCase().indexOf(e.toLowerCase()))return;if(f.toLowerCase()===e.toLowerCase())return void(a.value=[]);if(0===f.toLowerCase().indexOf(e.toLowerCase()))return f=e,void(a.value=[]);l.val(r),l[0].setSelectionRange(e.length,r.length);var h="object"===O()(a.value[0])?a.value[0][a.params.valueProperty]:a.value[0];h&&r.toLowerCase()===h.toLowerCase()||(a.value=[i],a.emit("local::change autocompleteChange",[i]))}f=e}))}function m(){var e,t,n,r=this.value;if(g(this).parents(".autocomplete-values").length>0){if("checkbox"===a.inputType&&!this.checked){for(var i=0;i<a.value.length;i+=1)(n="string"==typeof a.value[i]?a.value[i]:a.value[i][a.params.valueProperty])!==r&&1*n!=1*r||a.value.splice(i,1);a.updateValues(),a.emit("local::change autocompleteChange",a.value)}}else{for(var o=0;o<a.items.length;o+=1)(t="object"===O()(a.items[o])?a.items[o][a.params.valueProperty]:a.items[o])!==r&&1*t!=1*r||(e=a.items[o]);if("radio"===a.inputType)a.value=[e];else if(this.checked)a.value.push(e);else for(var s=0;s<a.value.length;s+=1)(n="object"===O()(a.value[s])?a.value[s][a.params.valueProperty]:a.value[s])!==r&&1*n!=1*r||a.value.splice(s,1);a.updateValues(),("radio"===a.inputType&&this.checked||"checkbox"===a.inputType)&&a.emit("local::change autocompleteChange",a.value)}}function v(e){var t=g(e.target);t.is(a.$inputEl[0])||a.$dropdownEl&&t.closest(a.$dropdownEl[0]).length||a.close()}function y(){a.open()}function b(){a.open()}function _(){a.$dropdownEl.find("label.active-state").length>0||setTimeout((function(){a.close()}),0)}function w(){a.positionDropdown()}function E(e){if(a.opened){if(27===e.keyCode)return e.preventDefault(),void a.$inputEl.blur();if(13===e.keyCode){var t=a.$dropdownEl.find(".autocomplete-dropdown-selected label");return t.length?(e.preventDefault(),t.trigger("click"),void a.$inputEl.blur()):void(a.params.typeahead&&(e.preventDefault(),a.$inputEl.blur()))}if(40===e.keyCode||38===e.keyCode){e.preventDefault();var n,r=a.$dropdownEl.find(".autocomplete-dropdown-selected");r.length&&(n=r[40===e.keyCode?"next":"prev"]("li")).length||(n=a.$dropdownEl.find("li").eq(40===e.keyCode?0:a.$dropdownEl.find("li").length-1)),n.hasClass("autocomplete-dropdown-placeholder")||(r.removeClass("autocomplete-dropdown-selected"),n.addClass("autocomplete-dropdown-selected"))}}}function S(){for(var e,t=g(this),n=0;n<a.items.length;n+=1){var r="object"===O()(a.items[n])?a.items[n][a.params.valueProperty]:a.items[n],i=t.attr("data-value");r!==i&&1*r!=1*i||(e=a.items[n])}a.params.updateInputValueOnSelect&&(a.$inputEl.val("object"===O()(e)?e[a.params.valueProperty]:e),a.$inputEl.trigger("input change")),a.value=[e],a.emit("local::change autocompleteChange",[e]),a.close()}return a.attachEvents=function(){"dropdown"!==a.params.openIn&&a.$openerEl&&a.$openerEl.on("click",y),"dropdown"===a.params.openIn&&a.$inputEl&&(a.$inputEl.on("focus",b),a.$inputEl.on(a.params.inputEvents,p),e.device.android?g("html").on("click",v):a.$inputEl.on("blur",_),a.$inputEl.on("keydown",E))},a.detachEvents=function(){"dropdown"!==a.params.openIn&&a.$openerEl&&a.$openerEl.off("click",y),"dropdown"===a.params.openIn&&a.$inputEl&&(a.$inputEl.off("focus",b),a.$inputEl.off(a.params.inputEvents,p),e.device.android?g("html").off("click",v):a.$inputEl.off("blur",_),a.$inputEl.off("keydown",E))},a.attachDropdownEvents=function(){a.$dropdownEl.on("click","label",S),e.on("resize",w)},a.detachDropdownEvents=function(){a.$dropdownEl.off("click","label",S),e.off("resize",w)},a.attachPageEvents=function(){a.$el.on("change",'input[type="radio"], input[type="checkbox"]',m),a.params.closeOnSelect&&!a.params.multiple&&a.$el.once("click",".list label",(function(){j.nextTick((function(){a.close()}))}))},a.detachPageEvents=function(){a.$el.off("change",'input[type="radio"], input[type="checkbox"]',m)},a.useModules(),a.init(),C()(t,a)}return b()(r,[{key:"positionDropdown",value:function(){var e=this,t=e.$inputEl,n=e.app,r=e.$dropdownEl,i=t.parents(".page-content");if(0!==i.length){var a,o=t.offset(),s=t[0].offsetWidth,l=t[0].offsetHeight,c=t.parents(".list");c.parents().each((function(e,t){if(!a){var n=g(t);n.parent(i).length&&(a=n)}}));var u,d=c.offset(),h=parseInt(i.css("padding-bottom"),10),f=c.length>0?d.left-i.offset().left:0,p=o.left-(c.length>0?d.left:0)-(n.rtl,0),m=o.top-(i.offset().top-i[0].scrollTop),v=i[0].scrollHeight-h-(m+i[0].scrollTop)-t[0].offsetHeight,y=n.rtl?"padding-right":"padding-left";c.length&&!e.params.expandInput&&(u=(n.rtl?c[0].offsetWidth-p-s:p)-("md"===n.theme?16:15)),r.css({left:"".concat(c.length>0?f:p,"px"),top:"".concat(m+i[0].scrollTop+l,"px"),width:"".concat(c.length>0?c[0].offsetWidth:s,"px")}),r.children(".autocomplete-dropdown-inner").css(K()({maxHeight:"".concat(v,"px")},y,c.length>0&&!e.params.expandInput?"".concat(u,"px"):""))}}},{key:"focus",value:function(){this.$el.find("input[type=search]").focus()}},{key:"source",value:function(e){var t=this;if(t.params.source){var n=t.$el;t.params.source.call(t,e,(function(r){var i="",a=t.params.limit?Math.min(t.params.limit,r.length):r.length;t.items=r;for(var o=0;o<a;o+=1){for(var s=!1,l="object"===O()(r[o])?r[o][t.params.valueProperty]:r[o],c=0;c<t.value.length;c+=1){var u="object"===O()(t.value[c])?t.value[c][t.params.valueProperty]:t.value[c];u!==l&&1*u!=1*l||(s=!0)}i+=t.renderItem({value:l,text:"object"===O()(r[o])?r[o][t.params.textProperty]:r[o],inputType:t.inputType,id:t.id,inputName:t.inputName,selected:s},o)}n.find(".autocomplete-found ul").html(i),0===r.length?0!==e.length?(n.find(".autocomplete-not-found").show(),n.find(".autocomplete-found, .autocomplete-values").hide()):(n.find(".autocomplete-values").show(),n.find(".autocomplete-found, .autocomplete-not-found").hide()):(n.find(".autocomplete-found").show(),n.find(".autocomplete-not-found, .autocomplete-values").hide())}))}}},{key:"updateValues",value:function(){for(var e=this,t="",n=0;n<e.value.length;n+=1)t+=e.renderItem({value:"object"===O()(e.value[n])?e.value[n][e.params.valueProperty]:e.value[n],text:"object"===O()(e.value[n])?e.value[n][e.params.textProperty]:e.value[n],inputType:e.inputType,id:e.id,inputName:"".concat(e.inputName,"-checked}"),selected:!0},n);e.$el.find(".autocomplete-values ul").html(t)}},{key:"preloaderHide",value:function(){"dropdown"===this.params.openIn&&this.$dropdownEl?this.$dropdownEl.find(".autocomplete-preloader").removeClass("autocomplete-preloader-visible"):g(".autocomplete-preloader").removeClass("autocomplete-preloader-visible")}},{key:"preloaderShow",value:function(){"dropdown"===this.params.openIn&&this.$dropdownEl?this.$dropdownEl.find(".autocomplete-preloader").addClass("autocomplete-preloader-visible"):g(".autocomplete-preloader").addClass("autocomplete-preloader-visible")}},{key:"renderPreloader",value:function(){return'\n <div class="autocomplete-preloader preloader '.concat(this.params.preloaderColor?"color-".concat(this.params.preloaderColor):"",'">').concat(j["".concat(this.app.theme,"PreloaderContent")]||"","</div>\n ").trim()}},{key:"renderSearchbar",value:function(){var e=this;return e.params.renderSearchbar?e.params.renderSearchbar.call(e):'\n <form class="searchbar">\n <div class="searchbar-inner">\n <div class="searchbar-input-wrap">\n <input type="search" placeholder="'.concat(e.params.searchbarPlaceholder,'"/>\n <i class="searchbar-icon"></i>\n <span class="input-clear-button"></span>\n </div>\n ').concat(e.params.searchbarDisableButton?'\n <span class="searchbar-disable-button">'.concat(e.params.searchbarDisableText,"</span>\n "):"","\n </div>\n </form>\n ").trim()}},{key:"renderItem",value:function(e,t){if(this.params.renderItem)return this.params.renderItem.call(this,e,t);var n=e.value&&"string"==typeof e.value?e.value.replace(/"/g,"""):e.value;return("dropdown"!==this.params.openIn?'\n <li>\n <label class="item-'.concat(e.inputType,' item-content">\n <input type="').concat(e.inputType,'" name="').concat(e.inputName,'" value="').concat(n,'" ').concat(e.selected?"checked":"",'>\n <i class="icon icon-').concat(e.inputType,'"></i>\n <div class="item-inner">\n <div class="item-title">').concat(e.text,"</div>\n </div>\n </label>\n </li>\n "):e.placeholder?'\n <li class="autocomplete-dropdown-placeholder">\n <label class="item-content">\n <div class="item-inner">\n <div class="item-title">'.concat(e.text,"</div>\n </div>\n </label>\n </li>\n "):'\n <li>\n <label class="item-radio item-content" data-value="'.concat(n,'">\n <div class="item-inner">\n <div class="item-title">').concat(e.text,"</div>\n </div>\n </label>\n </li>\n ")).trim()}},{key:"renderNavbar",value:function(){var e=this;if(e.params.renderNavbar)return e.params.renderNavbar.call(e);var t=e.params.pageTitle;void 0===t&&e.$openerEl&&e.$openerEl.length&&(t=e.$openerEl.find(".item-title").text().trim());var n="popup"===e.params.openIn,r=n?"\n ".concat(e.params.preloader?'\n <div class="left">\n '.concat(e.renderPreloader(),"\n </div>\n "):"","\n "):'\n <div class="left sliding">\n <a class="link back">\n <i class="icon icon-back"></i>\n <span class="if-not-md">'.concat(e.params.pageBackLinkText,"</span>\n </a>\n </div>\n "),i=n?'\n <div class="right">\n <a class="link popup-close" data-popup=".autocomplete-popup">\n '.concat(e.params.popupCloseLinkText,"\n </a>\n </div>\n "):"\n ".concat(e.params.preloader?'\n <div class="right">\n '.concat(e.renderPreloader(),"\n </div>\n "):"","\n ");return'\n <div class="navbar '.concat(e.params.navbarColorTheme?"color-".concat(e.params.navbarColorTheme):"",'">\n <div class="navbar-bg"></div>\n <div class="navbar-inner ').concat(e.params.navbarColorTheme?"color-".concat(e.params.navbarColorTheme):"",'">\n ').concat(r,"\n ").concat(t?'<div class="title sliding">'.concat(t,"</div>"):"","\n ").concat(i,'\n <div class="subnavbar sliding">').concat(e.renderSearchbar(),"</div>\n </div>\n </div>\n ").trim()}},{key:"renderDropdown",value:function(){var e=this;return e.params.renderDropdown?e.params.renderDropdown.call(e,e.items):'\n <div class="autocomplete-dropdown">\n <div class="autocomplete-dropdown-inner">\n <div class="list '.concat(e.params.expandInput?"":"no-safe-areas",'">\n <ul></ul>\n </div>\n </div>\n ').concat(e.params.preloader?e.renderPreloader():"","\n </div>\n ").trim()}},{key:"renderPage",value:function(e){var t=this;return t.params.renderPage?t.params.renderPage.call(t,t.items):'\n <div class="page page-with-subnavbar autocomplete-page" data-name="autocomplete-page">\n '.concat(t.renderNavbar(e),'\n <div class="searchbar-backdrop"></div>\n <div class="page-content">\n <div class="list autocomplete-list autocomplete-found autocomplete-list-').concat(t.id," ").concat(t.params.formColorTheme?"color-".concat(t.params.formColorTheme):"",'">\n <ul></ul>\n </div>\n <div class="list autocomplete-not-found">\n <ul>\n <li class="item-content"><div class="item-inner"><div class="item-title">').concat(t.params.notFoundText,'</div></div></li>\n </ul>\n </div>\n <div class="list autocomplete-values">\n <ul></ul>\n </div>\n </div>\n </div>\n ').trim()}},{key:"renderPopup",value:function(){var e=this;return e.params.renderPopup?e.params.renderPopup.call(e,e.items):'\n <div class="popup autocomplete-popup">\n <div class="view">\n '.concat(e.renderPage(!0),";\n </div>\n </div>\n ").trim()}},{key:"onOpen",value:function(e,t){var n=this,r=n.app,i=g(t);if(n.$el=i,n.el=i[0],n.openedIn=e,n.opened=!0,"dropdown"===n.params.openIn)n.attachDropdownEvents(),n.$dropdownEl.addClass("autocomplete-dropdown-in"),n.$inputEl.trigger("input");else{var a=i.find(".searchbar");"page"===n.params.openIn&&"ios"===r.theme&&0===a.length&&(a=g(r.navbar.getElByPage(i)).find(".searchbar")),n.searchbar=r.searchbar.create({el:a,backdropEl:i.find(".searchbar-backdrop"),customSearch:!0,on:{search:function(e,t){0===t.length&&n.searchbar.enabled?n.searchbar.backdropShow():n.searchbar.backdropHide(),n.source(t)}}}),n.attachPageEvents(),n.updateValues(),n.params.requestSourceOnOpen&&n.source("")}n.emit("local::open autocompleteOpen",n)}},{key:"autoFocus",value:function(){return this.searchbar&&this.searchbar.$inputEl&&this.searchbar.$inputEl.focus(),this}},{key:"onOpened",value:function(){var e=this;"dropdown"!==e.params.openIn&&e.params.autoFocus&&e.autoFocus(),e.emit("local::opened autocompleteOpened",e)}},{key:"onClose",value:function(){var e=this;e.destroyed||(e.searchbar&&e.searchbar.destroy&&(e.searchbar.destroy(),e.searchbar=null,delete e.searchbar),"dropdown"===e.params.openIn?(e.detachDropdownEvents(),e.$dropdownEl.removeClass("autocomplete-dropdown-in").remove(),e.$inputEl.parents(".item-content-dropdown-expanded").removeClass("item-content-dropdown-expanded")):e.detachPageEvents(),e.emit("local::close autocompleteClose",e))}},{key:"onClosed",value:function(){var e=this;e.destroyed||(e.opened=!1,e.$el=null,e.el=null,delete e.$el,delete e.el,e.emit("local::closed autocompleteClosed",e))}},{key:"openPage",value:function(){var e=this;if(e.opened)return e;var t=e.renderPage();return e.view.router.navigate({url:e.url,route:{content:t,path:e.url,on:{pageBeforeIn:function(t,n){e.onOpen("page",n.el)},pageAfterIn:function(t,n){e.onOpened("page",n.el)},pageBeforeOut:function(t,n){e.onClose("page",n.el)},pageAfterOut:function(t,n){e.onClosed("page",n.el)}},options:{animate:e.params.animate}}}),e}},{key:"openPopup",value:function(){var e=this;if(e.opened)return e;var t={content:e.renderPopup(),animate:e.params.animate,push:e.params.popupPush,swipeToClose:e.params.popupSwipeToClose,on:{popupOpen:function(t){e.onOpen("popup",t.el)},popupOpened:function(t){e.onOpened("popup",t.el)},popupClose:function(t){e.onClose("popup",t.el)},popupClosed:function(t){e.onClosed("popup",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:t}}):e.modal=e.app.popup.create(t).open(e.params.animate),e}},{key:"openDropdown",value:function(){var e=this;e.$dropdownEl||(e.$dropdownEl=g(e.renderDropdown())),e.$inputEl.parents(".list").length&&e.$inputEl.parents(".item-content").length>0&&e.params.expandInput&&e.$inputEl.parents(".item-content").addClass("item-content-dropdown-expanded");var t=e.$inputEl.parents(".page-content");e.params.dropdownContainerEl?g(e.params.dropdownContainerEl).append(e.$dropdownEl):0===t.length?e.$dropdownEl.insertAfter(e.$inputEl):(e.positionDropdown(),t.append(e.$dropdownEl)),e.onOpen("dropdown",e.$dropdownEl),e.onOpened("dropdown",e.$dropdownEl)}},{key:"open",value:function(){var e=this;if(e.opened)return e;var t=e.params.openIn;return e["open".concat(t.split("").map((function(e,t){return 0===t?e.toUpperCase():e})).join(""))](),e}},{key:"close",value:function(){var e=this;return e.opened?("dropdown"===e.params.openIn?(e.onClose(),e.onClosed()):e.params.routableModals&&e.view||"page"===e.openedIn?e.view.router.back({animate:e.params.animate}):(e.modal.once("modalClosed",(function(){j.nextTick((function(){e.destroyed||(e.modal.destroy(),delete e.modal)}))})),e.modal.close()),e):e}},{key:"init",value:function(){this.attachEvents()}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy autocompleteBeforeDestroy",e),e.detachEvents(),e.$inputEl&&e.$inputEl[0]&&delete e.$inputEl[0].f7Autocomplete,e.$openerEl&&e.$openerEl[0]&&delete e.$openerEl[0].f7Autocomplete,j.deleteProps(e),e.destroyed=!0}},{key:"view",get:function(){var e,t=this,n=t.$openerEl,r=t.$inputEl,i=t.app;if(t.params.view)e=t.params.view;else if(n||r){var a=n||r;e=a.closest(".view").length&&a.closest(".view")[0].f7View}return e||(e=i.views.main),e}}]),r}(z),ma={name:"autocomplete",params:{autocomplete:{openerEl:void 0,inputEl:void 0,view:void 0,dropdownContainerEl:void 0,dropdownPlaceholderText:void 0,typeahead:!1,highlightMatches:!0,expandInput:!1,updateInputValueOnSelect:!0,inputEvents:"input",value:void 0,multiple:!1,source:void 0,limit:void 0,valueProperty:"id",textProperty:"text",openIn:"page",pageBackLinkText:"Back",popupCloseLinkText:"Close",pageTitle:void 0,searchbarPlaceholder:"Search...",searchbarDisableText:"Cancel",searchbarDisableButton:void 0,popupPush:!1,popupSwipeToClose:void 0,animate:!0,autoFocus:!1,closeOnSelect:!1,notFoundText:"Nothing found",requestSourceOnOpen:!1,preloaderColor:void 0,preloader:!1,formColorTheme:void 0,navbarColorTheme:void 0,routableModals:!0,url:"select/",renderDropdown:void 0,renderPage:void 0,renderPopup:void 0,renderItem:void 0,renderSearchbar:void 0,renderNavbar:void 0}},static:{Autocomplete:pa},create:function(){var e=this;e.autocomplete=j.extend(W({defaultSelector:void 0,constructor:pa,app:e,domProp:"f7Autocomplete"}),{open:function(t){var n=e.autocomplete.get(t);if(n&&n.open)return n.open()},close:function(t){var n=e.autocomplete.get(t);if(n&&n.close)return n.close()}})}};function va(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var ga=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(va()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o()(this,r),t=n.call(this,i,[e]);var a=k()(t),s=j.extend({},e.params.tooltip);a.useModulesParams(s),a.params=j.extend(s,i);var l=a.params.targetEl;if(!l)return C()(t,a);var c=g(l);if(0===c.length)return C()(t,a);if(c[0].f7Tooltip)return C()(t,c[0].f7Tooltip);var u=g(a.render()).eq(0);j.extend(a,{app:e,$targetEl:c,targetEl:c&&c[0],$el:u,el:u&&u[0],text:a.params.text||"",visible:!1,opened:!1}),c[0].f7Tooltip=a;var d,h={};function f(){a.opened?a.hide():a.show(this)}function p(e){a.opened&&(g(e.target).closest(c).length||g(e.target).closest(a.$el).length)||a.hide()}function m(e){d||(d=!0,h.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,h.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,a.show(this))}function v(e){if(d){var t="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,n="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY;Math.pow(Math.pow(t-h.x,2)+Math.pow(n-h.y,2),.5)>50&&(d=!1,a.hide())}}function y(){d&&(d=!1,a.hide())}function b(){a.show(this)}function _(){a.hide()}function w(){u.hasClass("tooltip-in")||u.removeClass("tooltip-out").remove()}return a.attachEvents=function(){if(u.on("transitionend",w),"click"===a.params.trigger)return c.on("click",f),void g("html").on("click",p);if(ue.a.touch){var t=!!ue.a.passiveListener&&{passive:!0};c.on(e.touchEvents.start,m,t),e.on("touchmove",v),e.on("touchend:passive",y)}else c.on(ue.a.pointerEvents?"pointerenter":"mouseenter",b),c.on(ue.a.pointerEvents?"pointerleave":"mouseleave",_)},a.detachEvents=function(){if(u.off("transitionend",w),"click"===a.params.trigger)return c.off("click",f),void g("html").off("click",p);if(ue.a.touch){var t=!!ue.a.passiveListener&&{passive:!0};c.off(e.touchEvents.start,m,t),e.off("touchmove",v),e.off("touchend:passive",y)}else c.off(ue.a.pointerEvents?"pointerenter":"mouseenter",b),c.off(ue.a.pointerEvents?"pointerleave":"mouseleave",_)},a.useModules(),a.init(),C()(t,a)}return b()(r,[{key:"position",value:function(e){var t=this.$el,n=this.app,r=this.params.offset||0;t.css({left:"",top:""});var i,a,o,s,l=g(e||this.targetEl),c=[t.width(),t.height()],u=c[0],d=c[1];if(t.css({left:"",top:""}),l&&l.length>0){i=l.outerWidth(),a=l.outerHeight();var h=l.offset();o=h.left-n.left,s=h.top-n.top;var f=l.parents(".page");f.length>0&&(s-=f[0].scrollTop)}var p=[0,0,0],m=p[0],v=p[1],y="top";d+r<s?v=s-d-r:d<n.height-s-a?(y="bottom",v=s+a+r):(y="middle",(v=a/2+s-d/2)<=0?v=8:v+d>=n.height&&(v=n.height-d-8)),"top"===y||"bottom"===y?((m=i/2+o-u/2)<8&&(m=8),m+u>n.width&&(m=n.width-u-8),m<0&&(m=0)):"middle"===y&&((m=o-u)<8||m+u>n.width)&&(m<8&&(m=o+i),m+u>n.width&&(m=n.width-u-8)),t.css({top:"".concat(v,"px"),left:"".concat(m,"px")})}},{key:"show",value:function(e){var t=this.app,n=this.$el,r=this.$targetEl;t.root.append(n),this.position(e);var i=g(e);return this.visible=!0,this.opened=!0,r.trigger("tooltip:show"),n.trigger("tooltip:show"),i.length&&i[0]!==r[0]&&i.trigger("tooltip:show"),this.emit("local::show tooltipShow",this),n.removeClass("tooltip-out").addClass("tooltip-in"),this}},{key:"hide",value:function(){var e=this.$el,t=this.$targetEl;return this.visible=!1,this.opened=!1,t.trigger("tooltip:hide"),e.trigger("tooltip:hide"),this.emit("local::hide tooltipHide",this),e.addClass("tooltip-out").removeClass("tooltip-in"),this}},{key:"render",value:function(){if(this.params.render)return this.params.render.call(this,this);var e=this.params,t=e.cssClass,n=e.text;return'\n <div class="tooltip '.concat(t||"",'">\n <div class="tooltip-content">').concat(n||"","</div>\n </div>\n ").trim()}},{key:"setText",value:function(e){return void 0===e||(this.params.text=e,this.text=e,this.$el&&this.$el.children(".tooltip-content").html(e),this.opened&&this.position()),this}},{key:"init",value:function(){this.attachEvents()}},{key:"destroy",value:function(){this.$targetEl&&!this.destroyed&&(this.$targetEl.trigger("tooltip:beforedestroy"),this.emit("local::beforeDestroy tooltipBeforeDestroy",this),this.$el.remove(),delete this.$targetEl[0].f7Tooltip,this.detachEvents(),j.deleteProps(this),this.destroyed=!0)}}]),r}(z),ya={name:"tooltip",static:{Tooltip:ga},create:function(){this.tooltip=W({defaultSelector:".tooltip",constructor:ga,app:this,domProp:"f7Tooltip"}),this.tooltip.show=function(e){var t=g(e);if(0!==t.length){var n=t[0].f7Tooltip;if(n)return n.show(t[0]),n}},this.tooltip.hide=function(e){var t=g(e);if(0!==t.length){var n=t[0].f7Tooltip;if(n)return n.hide(),n}},this.tooltip.setText=function(e,t){var n=g(e);if(0!==n.length){var r=n[0].f7Tooltip;if(r)return r.setText(t),r}}},params:{tooltip:{targetEl:null,text:null,cssClass:null,render:null,offset:0,trigger:"hover"}},on:{tabMounted:function(e){var t=this;g(e).find(".tooltip-init").each((function(e,n){var r=g(n).attr("data-tooltip");r&&t.tooltip.create({targetEl:n,text:r})}))},tabBeforeRemove:function(e){g(e).find(".tooltip-init").each((function(e,t){t.f7Tooltip&&t.f7Tooltip.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".tooltip-init").each((function(e,n){var r=g(n).attr("data-tooltip");r&&t.tooltip.create({targetEl:n,text:r})})),"ios"===t.theme&&e.view&&e.view.router.dynamicNavbar&&e.$navbarEl&&e.$navbarEl.length>0&&e.$navbarEl.find(".tooltip-init").each((function(e,n){var r=g(n).attr("data-tooltip");r&&t.tooltip.create({targetEl:n,text:r})}))},pageBeforeRemove:function(e){e.$el.find(".tooltip-init").each((function(e,t){t.f7Tooltip&&t.f7Tooltip.destroy()})),"ios"===this.theme&&e.view&&e.view.router.dynamicNavbar&&e.$navbarEl&&e.$navbarEl.length>0&&e.$navbarEl.find(".tooltip-init").each((function(e,t){t.f7Tooltip&&t.f7Tooltip.destroy()}))}},vnode:{"tooltip-init":{insert:function(e){var t=e.elm,n=g(t).attr("data-tooltip");n&&this.tooltip.create({targetEl:t,text:n})},update:function(e){var t=e.elm;t.f7Tooltip&&e&&e.data&&e.data.attrs&&e.data.attrs["data-tooltip"]&&t.f7Tooltip.setText(e.data.attrs["data-tooltip"])},destroy:function(e){var t=e.elm;t.f7Tooltip&&t.f7Tooltip.destroy()}}}};function ba(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var _a=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(ba()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o()(this,r),t=n.call(this,i,[e]);var a=k()(t),s=j.extend({},e.params.gauge);a.useModulesParams(s),a.params=j.extend(s,i);var l=a.params.el;if(!l)return C()(t,a);var c=g(l);return 0===c.length?C()(t,a):c[0].f7Gauge?C()(t,c[0].f7Gauge):(j.extend(a,{app:e,$el:c,el:c&&c[0]}),c[0].f7Gauge=a,a.useModules(),a.init(),C()(t,a))}return b()(r,[{key:"calcRadius",value:function(){var e=this.params;return e.size/2-e.borderWidth/2}},{key:"calcBorderLength",value:function(){var e=this.calcRadius();return 2*Math.PI*e}},{key:"render",value:function(){if(this.params.render)return this.params.render.call(this,this);var e=this.params,t=e.type,n=e.value,r=e.size,i=e.bgColor,a=e.borderBgColor,o=e.borderColor,s=e.borderWidth,l=e.valueText,c=e.valueTextColor,u=e.valueFontSize,d=e.valueFontWeight,h=e.labelText,f=e.labelTextColor,p=e.labelFontSize,m=e.labelFontWeight,v="semicircle"===t,g=this.calcRadius(),y=this.calcBorderLength(),b=Math.max(Math.min(n,1),0);return'\n <svg class="gauge-svg" width="'.concat(r,'px" height="').concat(v?r/2:r,'px" viewBox="0 0 ').concat(r," ").concat(v?r/2:r,'">\n ').concat(v?'\n <path\n class="gauge-back-semi"\n d="M'.concat(r-s/2,",").concat(r/2," a1,1 0 0,0 -").concat(r-s,',0"\n stroke="').concat(a,'"\n stroke-width="').concat(s,'"\n fill="').concat(i||"none",'"\n />\n <path\n class="gauge-front-semi"\n d="M').concat(r-s/2,",").concat(r/2," a1,1 0 0,0 -").concat(r-s,',0"\n stroke="').concat(o,'"\n stroke-width="').concat(s,'"\n stroke-dasharray="').concat(y/2,'"\n stroke-dashoffset="').concat(y/2*(1+b),'"\n fill="').concat(a?"none":i||"none",'"\n />\n '):"\n ".concat(a?'\n <circle\n class="gauge-back-circle"\n stroke="'.concat(a,'"\n stroke-width="').concat(s,'"\n fill="').concat(i||"none",'"\n cx="').concat(r/2,'"\n cy="').concat(r/2,'"\n r="').concat(g,'"\n ></circle>\n '):"",'\n <circle\n class="gauge-front-circle"\n transform="',"rotate(-90 ".concat(r/2," ").concat(r/2,")"),'"\n stroke="').concat(o,'"\n stroke-width="').concat(s,'"\n stroke-dasharray="').concat(y,'"\n stroke-dashoffset="').concat(y*(1-b),'"\n fill="').concat(a?"none":i||"none",'"\n cx="').concat(r/2,'"\n cy="').concat(r/2,'"\n r="').concat(g,'"\n ></circle>\n '),"\n ").concat(l?'\n <text\n class="gauge-value-text"\n x="50%"\n y="'.concat(v?"100%":"50%",'"\n font-weight="').concat(d,'"\n font-size="').concat(u,'"\n fill="').concat(c,'"\n dy="').concat(v?h?-p-15:-5:0,'"\n text-anchor="middle"\n dominant-baseline="').concat(!v&&"middle",'"\n >').concat(l,"</text>\n "):"","\n ").concat(h?'\n <text\n class="gauge-label-text"\n x="50%"\n y="'.concat(v?"100%":"50%",'"\n font-weight="').concat(m,'"\n font-size="').concat(p,'"\n fill="').concat(f,'"\n dy="').concat(v?-5:l?u/2+10:0,'"\n text-anchor="middle"\n dominant-baseline="').concat(!v&&"middle",'"\n >').concat(h,"</text>\n "):"","\n </svg>\n ").trim()}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this,n=t.params,r=t.$gaugeSvgEl;if(Object.keys(e).forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),0===r.length)return t;var i=n.value,a=n.size,o=n.bgColor,s=n.borderBgColor,l=n.borderColor,c=n.borderWidth,u=n.valueText,d=n.valueTextColor,h=n.valueFontSize,f=n.valueFontWeight,p=n.labelText,m=n.labelTextColor,v=n.labelFontSize,g=n.labelFontWeight,y=t.calcBorderLength(),b=Math.max(Math.min(i,1),0),_=t.calcRadius(),w="semicircle"===n.type,k={width:"".concat(a,"px"),height:"".concat(w?a/2:a,"px"),viewBox:"0 0 ".concat(a," ").concat(w?a/2:a)};if(Object.keys(k).forEach((function(e){r.attr(e,k[e])})),w){var E={d:"M".concat(a-c/2,",").concat(a/2," a1,1 0 0,0 -").concat(a-c,",0"),stroke:s,"stroke-width":c,fill:o||"none"},S={d:"M".concat(a-c/2,",").concat(a/2," a1,1 0 0,0 -").concat(a-c,",0"),stroke:l,"stroke-width":c,"stroke-dasharray":y/2,"stroke-dashoffset":y/2*(1+b),fill:s?"none":o||"none"};Object.keys(E).forEach((function(e){r.find(".gauge-back-semi").attr(e,E[e])})),Object.keys(S).forEach((function(e){r.find(".gauge-front-semi").attr(e,S[e])}))}else{var T={stroke:s,"stroke-width":c,fill:o||"none",cx:a/2,cy:a/2,r:_},C={transform:"rotate(-90 ".concat(a/2," ").concat(a/2,")"),stroke:l,"stroke-width":c,"stroke-dasharray":y,"stroke-dashoffset":y*(1-b),fill:s?"none":o||"none",cx:a/2,cy:a/2,r:_};Object.keys(T).forEach((function(e){r.find(".gauge-back-circle").attr(e,T[e])})),Object.keys(C).forEach((function(e){r.find(".gauge-front-circle").attr(e,C[e])}))}if(u){r.find(".gauge-value-text").length||r.append('<text class="gauge-value-text"></text>');var M={x:"50%",y:w?"100%":"50%","font-weight":f,"font-size":h,fill:d,dy:w?p?-v-15:-5:0,"text-anchor":"middle","dominant-baseline":!w&&"middle"};Object.keys(M).forEach((function(e){r.find(".gauge-value-text").attr(e,M[e])})),r.find(".gauge-value-text").text(u)}else r.find(".gauge-value-text").remove();if(p){r.find(".gauge-label-text").length||r.append('<text class="gauge-label-text"></text>');var x={x:"50%",y:w?"100%":"50%","font-weight":g,"font-size":v,fill:m,dy:w?-5:u?h/2+10:0,"text-anchor":"middle","dominant-baseline":!w&&"middle"};Object.keys(x).forEach((function(e){r.find(".gauge-label-text").attr(e,x[e])})),r.find(".gauge-label-text").text(p)}else r.find(".gauge-label-text").remove();return t}},{key:"init",value:function(){var e=g(this.render()).eq(0);return e.f7Gauge=this,j.extend(this,{$gaugeSvgEl:e,gaugeSvgEl:e&&e[0]}),this.$el.append(e),this}},{key:"destroy",value:function(){this.$el&&!this.destroyed&&(this.$el.trigger("gauge:beforedestroy"),this.emit("local::beforeDestroy gaugeBeforeDestroy",this),this.$gaugeSvgEl.remove(),delete this.$el[0].f7Gauge,j.deleteProps(this),this.destroyed=!0)}}]),r}(z),wa={name:"gauge",static:{Gauge:_a},create:function(){var e=this;e.gauge=W({defaultSelector:".gauge",constructor:_a,app:e,domProp:"f7Gauge"}),e.gauge.update=function(t,n){if(0!==g(t).length){var r=e.gauge.get(t);if(r)return r.update(n),r}}},params:{gauge:{el:null,type:"circle",value:0,size:200,bgColor:"transparent",borderBgColor:"#eeeeee",borderColor:"#000000",borderWidth:10,valueText:null,valueTextColor:"#000000",valueFontSize:31,valueFontWeight:500,labelText:null,labelTextColor:"#888888",labelFontSize:14,labelFontWeight:400}},on:{tabMounted:function(e){var t=this;g(e).find(".gauge-init").each((function(e,n){t.gauge.create(j.extend({el:n},g(n).dataset()||{}))}))},tabBeforeRemove:function(e){g(e).find(".gauge-init").each((function(e,t){t.f7Gauge&&t.f7Gauge.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".gauge-init").each((function(e,n){t.gauge.create(j.extend({el:n},g(n).dataset()||{}))}))},pageBeforeRemove:function(e){e.$el.find(".gauge-init").each((function(e,t){t.f7Gauge&&t.f7Gauge.destroy()}))}},vnode:{"gauge-init":{insert:function(e){var t=e.elm;this.gauge.create(j.extend({el:t},g(t).dataset()||{}))},destroy:function(e){var t=e.elm;t.f7Gauge&&t.f7Gauge.destroy()}}}},ka={open:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".menu-item-dropdown",t=this;if(e){var n=g(e).closest(".menu-item-dropdown");if(n.length){var r=n.closest(".menu").eq(0);if(r.length){var i=r.css("z-index"),a=r[0].style.zIndex;r.css("z-index",parseInt(i||0,0)+1),r[0].f7MenuZIndex=a}n.eq(0).addClass("menu-item-dropdown-opened").trigger("menu:opened"),t.emit("menuOpened",n.eq(0)[0])}}},close:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".menu-item-dropdown-opened",t=this;if(e){var n=g(e).closest(".menu-item-dropdown-opened");if(n.length){var r=n.closest(".menu").eq(0);if(r.length){var i=r[0].f7MenuZIndex;r.css("z-index",i),delete r[0].f7MenuZIndex}n.eq(0).removeClass("menu-item-dropdown-opened").trigger("menu:closed"),t.emit("menuClosed",n.eq(0)[0])}}}},Ea={name:"menu",create:function(){this.menu={open:ka.open.bind(this),close:ka.close.bind(this)}},on:{click:function(e){var t=this,n=g(".menu-item-dropdown-opened");n.length&&n.each((function(n,r){g(e.target).closest(".menu-item-dropdown-opened").length||t.menu.close(r)}))}},clicks:{".menu-item-dropdown":function(e,t,n){if(e.hasClass("menu-item-dropdown-opened")){if(g(n.target).closest(".menu-dropdown").length)return;this.menu.close(e)}else this.menu.open(e)},".menu-close":function(){this.menu.close()}}},Sa={render:function(e){var t=e.params,n=t.sliderLabel,r=t.sliderValue,i=t.sliderValueEditable,a=t.alphaLabelText;return'\n <div class="color-picker-module color-picker-module-alpha-slider">\n <div class="color-picker-slider-wrap">\n '.concat(n?'\n <div class="color-picker-slider-label">'.concat(a,"</div>\n "):"",'\n <div class="range-slider color-picker-slider color-picker-slider-alpha"></div>\n ').concat(r?'\n <div class="color-picker-slider-value">\n '.concat(i?'\n <input type="number" step="0.01" min="0" max="1" class="color-picker-value-alpha">\n ':'\n <span class="color-picker-value-alpha"></span>\n ',"\n </div>\n "):"","\n </div>\n </div>\n ")},init:function(e){function t(t){var n=e.value.alpha,r=parseFloat(t.target.value);Number.isNaN(r)?t.target.value=n:(r=Math.max(0,Math.min(1,r)),e.setValue({alpha:r}))}e.alphaRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-alpha"),min:0,max:1,step:.01,value:1,on:{change:function(t,n){var r=Math.floor(100*n)/100;e.setValue({alpha:r})}}}),e.$el.on("change",".color-picker-module-alpha-slider input",t),e.destroyAlphaSliderEvents=function(){e.$el.off("change",".color-picker-module-alpha-slider input",t)}},update:function(e){var t=e.value,n=e.params,r=n.sliderValue,i=n.sliderValueEditable,a=t.alpha;e.alphaRangeSlider.value=a,e.alphaRangeSlider.layout(),r&&i?e.$el.find("input.color-picker-value-alpha").val(a):e.$el.find("span.color-picker-value-alpha").text(a)},destroy:function(e){e.alphaRangeSlider&&e.alphaRangeSlider.destroy&&e.alphaRangeSlider.destroy(),delete e.alphaRangeSlider,e.destroyAlphaSliderEvents&&e.destroyAlphaSliderEvents(),delete e.destroyAlphaSliderEvents}},Ta={render:function(){return'\n <div class="color-picker-module color-picker-module-current-color">\n <div class="color-picker-current-color"></div>\n </div>\n '},update:function(e){e.$el.find(".color-picker-module-current-color .color-picker-current-color").css("background-color",e.value.hex)}},Ca={render:function(e){var t=e.params,n=t.hexLabel,r=t.hexLabelText,i=t.hexValueEditable;return'\n <div class="color-picker-module color-picker-module-hex">\n <div class="color-picker-hex-wrap">\n '.concat(n?'\n <div class="color-picker-hex-label">'.concat(r,"</div>\n "):"",'\n <div class="color-picker-hex-value">\n ').concat(i?'\n <input type="text" class="color-picker-value-hex">\n ':'\n <span class="color-picker-value-hex"></span>\n ',"\n </div>\n </div>\n </div>\n ")},init:function(e){function t(t){var n=e.value.hex,r=t.target.value.replace(/#/g,"");if(Number.isNaN(r)||!r||3!==r.length&&6!==r.length)t.target.value=n;else{var i=parseInt(r,16);i>parseInt("ffffff",16)&&(r="fff"),i<0&&(r="000"),e.setValue({hex:r})}}e.$el.on("change",".color-picker-module-hex input",t),e.destroyHexEvents=function(){e.$el.off("change",".color-picker-module-hex input",t)}},update:function(e){var t=e.value,n=e.params.hexValueEditable,r=t.hex;n?e.$el.find("input.color-picker-value-hex").val(r):e.$el.find("span.color-picker-value-hex").text(r)},destroy:function(e){e.destroyHexEvents&&e.destroyHexEvents(),delete e.destroyHexEvents}},Ma={render:function(e){var t=e.params,n=t.sliderLabel,r=t.sliderValue,i=t.sliderValueEditable,a=t.hueLabelText,o=t.saturationLabelText,s=t.brightnessLabelText;return'\n <div class="color-picker-module color-picker-module-hsb-sliders">\n <div class="color-picker-slider-wrap">\n '.concat(n?'\n <div class="color-picker-slider-label">'.concat(a,"</div>\n "):"",'\n <div class="range-slider color-picker-slider color-picker-slider-hue"></div>\n ').concat(r?'\n <div class="color-picker-slider-value">\n '.concat(i?'\n <input type="number" step="0.1" min="0" max="360" class="color-picker-value-hue" data-color-index="0">\n ':'\n <span class="color-picker-value-hue"></span>\n ',"\n </div>\n "):"",'\n </div>\n <div class="color-picker-slider-wrap">\n ').concat(n?'\n <div class="color-picker-slider-label">'.concat(o,"</div>\n "):"",'\n <div class="range-slider color-picker-slider color-picker-slider-saturation"></div>\n ').concat(r?'\n <div class="color-picker-slider-value">\n '.concat(i?'\n <input type="number" step="0.1" min="0" max="100" class="color-picker-value-saturation" data-color-index="1">\n ':'\n <span class="color-picker-value-saturation"></span>\n ',"\n </div>\n "):"",'\n </div>\n <div class="color-picker-slider-wrap">\n ').concat(n?'\n <div class="color-picker-slider-label">'.concat(s,"</div>\n "):"",'\n <div class="range-slider color-picker-slider color-picker-slider-brightness"></div>\n ').concat(r?'\n <div class="color-picker-slider-value">\n '.concat(i?'\n <input type="number" step="0.1" min="0" max="100" class="color-picker-value-brightness" data-color-index="2">\n ':'\n <span class="color-picker-value-brightness"></span>\n ',"\n </div>\n "):"","\n </div>\n </div>\n ")},init:function(e){function t(t){var n=L()(e.value.hsb),r=parseInt(g(t.target).attr("data-color-index"),10),i=parseFloat(t.target.value);Number.isNaN(i)?t.target.value=n[r]:(i=0===r?Math.max(0,Math.min(360,i)):Math.max(0,Math.min(100,i))/100,n[r]=i,e.setValue({hsb:n}))}e.hueRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-hue"),min:0,max:360,step:.1,value:0,on:{change:function(t,n){e.setValue({hue:n})}}}),e.saturationRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-saturation"),min:0,max:1,step:.001,value:0,on:{change:function(t,n){var r=Math.floor(1e3*n)/1e3;e.setValue({hsb:[e.value.hsb[0],r,e.value.hsb[2]]})}}}),e.brightnessRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-brightness"),min:0,max:1,step:.001,value:0,on:{change:function(t,n){var r=Math.floor(1e3*n)/1e3;e.setValue({hsb:[e.value.hsb[0],e.value.hsb[1],r]})}}}),e.$el.on("change",".color-picker-module-hsb-sliders input",t),e.destroyHsbSlidersEvents=function(){e.$el.off("change",".color-picker-module-hsb-sliders input",t)}},update:function(e){var t=e.app,n=e.value,r=e.params,i=r.sliderValue,a=r.sliderValueEditable,o=n.hsb,s=n.hue;e.hueRangeSlider.value=s,e.saturationRangeSlider.value=o[1],e.brightnessRangeSlider.value=o[2],e.hueRangeSlider.layout(),e.saturationRangeSlider.layout(),e.brightnessRangeSlider.layout();var l=j.colorHsbToHsl(o[0],o[1],1),c=j.colorHsbToHsl(o[0],0,1),u=j.colorHsbToHsl(o[0],1,1),d=o[2];e.hueRangeSlider.$el[0].style.setProperty("--f7-range-knob-color","hsl(".concat(s,", 100%, 50%)")),e.saturationRangeSlider.$el[0].style.setProperty("--f7-range-knob-color","hsl(".concat(l[0],", ").concat(100*l[1],"%, ").concat(100*l[2],"%)")),e.brightnessRangeSlider.$el[0].style.setProperty("--f7-range-knob-color","rgb(".concat(255*d,", ").concat(255*d,", ").concat(255*d,")")),e.saturationRangeSlider.$el.find(".range-bar").css("background-image","linear-gradient(".concat(t.rtl?"to left":"to right",", hsl(").concat(c[0],", ").concat(100*c[1],"%, ").concat(100*c[2],"%), hsl(").concat(u[0],", ").concat(100*u[1],"%, ").concat(100*u[2],"%))")),i&&a?(e.$el.find("input.color-picker-value-hue").val("".concat(s)),e.$el.find("input.color-picker-value-saturation").val("".concat(1e3*o[1]/10)),e.$el.find("input.color-picker-value-brightness").val("".concat(1e3*o[2]/10))):i&&(e.$el.find("span.color-picker-value-hue").text("".concat(s)),e.$el.find("span.color-picker-value-saturation").text("".concat(1e3*o[1]/10)),e.$el.find("span.color-picker-value-brightness").text("".concat(1e3*o[2]/10)))},destroy:function(e){e.hueRangeSlider&&e.hueRangeSlider.destroy&&e.hueRangeSlider.destroy(),e.saturationRangeSlider&&e.saturationRangeSlider.destroy&&e.saturationRangeSlider.destroy(),e.brightnessRangeSlider&&e.brightnessRangeSlider.destroy&&e.brightnessRangeSlider.destroy(),delete e.hueRangeSlider,delete e.saturationRangeSlider,delete e.brightnessRangeSlider,e.destroyHsbSlidersEvents&&e.destroyHsbSlidersEvents(),delete e.destroyHsbSlidersEvents}},xa={render:function(e){var t=e.params,n=t.sliderLabel,r=t.sliderValue,i=t.sliderValueEditable,a=t.hueLabelText;return'\n <div class="color-picker-module color-picker-module-hue-slider">\n <div class="color-picker-slider-wrap">\n '.concat(n?'\n <div class="color-picker-slider-label">'.concat(a,"</div>\n "):"",'\n <div class="range-slider color-picker-slider color-picker-slider-hue"></div>\n ').concat(r?'\n <div class="color-picker-slider-value">\n '.concat(i?'\n <input type="number" step="0.1" min="0" max="360" class="color-picker-value-hue">\n ':'\n <span class="color-picker-value-hue"></span>\n ',"\n </div>\n "):"","\n </div>\n </div>\n ")},init:function(e){e.hueRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-hue"),min:0,max:360,step:.1,value:0,on:{change:function(t,n){e.setValue({hue:n})}}})},update:function(e){var t=e.value,n=e.params,r=n.sliderValue,i=n.sliderValueEditable,a=t.hue;e.hueRangeSlider.value=a,e.hueRangeSlider.layout(),e.hueRangeSlider.$el[0].style.setProperty("--f7-range-knob-color","hsl(".concat(a,", 100%, 50%)")),r&&i?e.$el.find("input.color-picker-value-hue").val("".concat(a)):r&&e.$el.find("span.color-picker-value-hue").text("".concat(a))},destroy:function(e){e.hueRangeSlider&&e.hueRangeSlider.destroy&&e.hueRangeSlider.destroy(),delete e.hueRangeSlider}},$a={render:function(e){var t=e.params,n=t.sliderLabel,r=t.sliderValue,i=t.sliderValueEditable,a=t.brightnessLabelText;return'\n <div class="color-picker-module color-picker-module-brightness-slider">\n <div class="color-picker-slider-wrap">\n '.concat(n?'\n <div class="color-picker-slider-label">'.concat(a,"</div>\n "):"",'\n <div class="range-slider color-picker-slider color-picker-slider-brightness"></div>\n ').concat(r?'\n <div class="color-picker-slider-value">\n '.concat(i?'\n <input type="number" step="0.1" min="0" max="100" class="color-picker-value-brightness">\n ':'\n <span class="color-picker-value-brightness"></span>\n ',"\n </div>\n "):"","\n </div>\n </div>\n ")},init:function(e){e.brightnessRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-brightness"),min:0,max:1,step:.001,value:0,on:{change:function(t,n){var r=Math.floor(1e3*n)/1e3;e.setValue({hsb:[e.value.hsb[0],e.value.hsb[1],r]})}}})},update:function(e){var t=e.value,n=e.app,r=e.params,i=r.sliderValue,a=r.sliderValueEditable,o=t.hsb;e.brightnessRangeSlider.value=o[2],e.brightnessRangeSlider.layout();var s=j.colorHsbToHsl(o[0],o[1],o[2]),l=j.colorHsbToHsl(o[0],o[1],0),c=j.colorHsbToHsl(o[0],o[1],1);e.brightnessRangeSlider.$el[0].style.setProperty("--f7-range-knob-color","hsl(".concat(s[0],", ").concat(100*s[1],"%, ").concat(100*s[2],"%)")),e.brightnessRangeSlider.$el.find(".range-bar").css("background-image","linear-gradient(".concat(n.rtl?"to left":"to right",", hsl(").concat(l[0],", ").concat(100*l[1],"%, ").concat(100*l[2],"%), hsl(").concat(c[0],", ").concat(100*c[1],"%, ").concat(100*c[2],"%))")),i&&a?e.$el.find("input.color-picker-value-brightness").val("".concat(1e3*o[2]/10)):i&&e.$el.find("span.color-picker-value-brightness").text("".concat(1e3*o[2]/10))},destroy:function(e){e.brightnessRangeSlider&&e.brightnessRangeSlider.destroy&&e.brightnessRangeSlider.destroy(),delete e.brightnessRangeSlider}},La={render:function(e){return'\n <div class="color-picker-module color-picker-module-palette">\n <div class="color-picker-palette">\n '.concat(e.params.palette.map((function(e){if(Array.isArray(e)){var t='<div class="color-picker-palette-row">';return t+=e.map((function(e){return'\n <div class="color-picker-palette-value" data-palette-color="'.concat(e,'" style="background-color: ').concat(e,'"></div>\n ')})).join(""),t+="</div>"}return'\n <div class="color-picker-palette-value" data-palette-color="'.concat(e,'" style="background-color: ').concat(e,'"></div>\n ')})).join(""),"\n </div>\n </div>\n ")},init:function(e){function t(t){var n=g(t.target).attr("data-palette-color");e.setValue({hex:n})}e.$el.on("click",".color-picker-module-palette .color-picker-palette-value",t),e.destroyPaletteEvents=function(){e.$el.off("click",".color-picker-module-hex input",t)}},destroy:function(e){e.destroyPaletteEvents&&e.destroyPaletteEvents(),delete e.destroyPaletteEvents}},Pa={render:function(){return'\n <div class="color-picker-module color-picker-module-initial-current-colors">\n <div class="color-picker-initial-current-colors">\n <div class="color-picker-initial-color"></div>\n <div class="color-picker-current-color"></div>\n </div>\n </div>\n '},init:function(e){function t(){if(e.initialValue){var t=e.initialValue,n=t.hex,r=t.alpha;e.setValue({hex:n,alpha:r})}}e.$el.on("click",".color-picker-initial-color",t),e.destroyInitialCurrentEvents=function(){e.$el.off("click",".color-picker-initial-color",t)}},update:function(e){e.$el.find(".color-picker-module-initial-current-colors .color-picker-initial-color").css("background-color",e.initialValue.hex),e.$el.find(".color-picker-module-initial-current-colors .color-picker-current-color").css("background-color",e.value.hex)},destroy:function(e){e.destroyInitialCurrentEvents&&e.destroyInitialCurrentEvents(),delete e.destroyInitialCurrentEvents}},Oa={render:function(e){var t=e.params,n=t.barLabel,r=t.barValue,i=t.barValueEditable,a=t.redLabelText,o=t.greenLabelText,s=t.blueLabelText;return'\n <div class="color-picker-module color-picker-module-rgb-bars">\n <div class="color-picker-bar-wrap">\n '.concat(n?'\n <div class="color-picker-bar-label">'.concat(a,"</div>\n "):"",'\n <div class="range-slider color-picker-bar color-picker-bar-red"></div>\n ').concat(r?'\n <div class="color-picker-bar-value">\n '.concat(i?'\n <input type="number" step="1" min="0" max="255" class="color-picker-value-bar-red" data-color-index="0">\n ':'\n <span class="color-picker-value-bar-red"></span>\n ',"\n </div>\n "):"",'\n </div>\n <div class="color-picker-bar-wrap">\n ').concat(n?'\n <div class="color-picker-bar-label">'.concat(o,"</div>\n "):"",'\n <div class="range-slider color-picker-bar color-picker-bar-green"></div>\n ').concat(r?'\n <div class="color-picker-bar-value">\n '.concat(i?'\n <input type="number" step="1" min="0" max="255" class="color-picker-value-bar-green" data-color-index="1">\n ':'\n <span class="color-picker-value-bar-green"></span>\n ',"\n </div>\n "):"",'\n </div>\n <div class="color-picker-bar-wrap">\n ').concat(n?'\n <div class="color-picker-bar-label">'.concat(s,"</div>\n "):"",'\n <div class="range-slider color-picker-bar color-picker-bar-blue"></div>\n ').concat(r?'\n <div class="color-picker-bar-value">\n '.concat(i?'\n <input type="number" step="1" min="0" max="255" class="color-picker-value-bar-blue" data-color-index="2">\n ':'\n <span class="color-picker-value-bar-blue"></span>\n ',"\n </div>\n "):"","\n </div>\n </div>\n ")},init:function(e){function t(t){var n=L()(e.value.rgb),r=parseInt(g(t.target).attr("data-color-index"),10),i=parseInt(t.target.value,10);Number.isNaN(i)?t.target.value=n[r]:(i=Math.max(0,Math.min(255,i)),n[r]=i,e.setValue({rgb:n}))}e.redBar=e.app.range.create({el:e.$el.find(".color-picker-bar-red"),min:0,max:255,step:1,value:0,vertical:!0,on:{change:function(t,n){e.setValue({rgb:[n,e.value.rgb[1],e.value.rgb[2]]})}}}),e.greenBar=e.app.range.create({el:e.$el.find(".color-picker-bar-green"),min:0,max:255,step:1,value:0,vertical:!0,on:{change:function(t,n){e.setValue({rgb:[e.value.rgb[0],n,e.value.rgb[2]]})}}}),e.blueBar=e.app.range.create({el:e.$el.find(".color-picker-bar-blue"),min:0,max:255,step:1,value:0,vertical:!0,on:{change:function(t,n){e.setValue({rgb:[e.value.rgb[0],e.value.rgb[1],n]})}}}),e.$el.on("change",".color-picker-module-rgb-bars input",t),e.destroyRgbBarsEvents=function(){e.$el.off("change",".color-picker-module-rgb-bars input",t)}},update:function(e){var t=e.value,n=e.redBar,r=e.greenBar,i=e.blueBar,a=e.params,o=a.barValue,s=a.barValueEditable,l=t.rgb;n.value=l[0],r.value=l[1],i.value=l[2],n.layout(),r.layout(),i.layout(),n.$el.find(".range-bar").css("background-image","linear-gradient(to top, rgb(0, ".concat(l[1],", ").concat(l[2],"), rgb(255, ").concat(l[1],", ").concat(l[2],"))")),r.$el.find(".range-bar").css("background-image","linear-gradient(to top, rgb(".concat(l[0],", 0, ").concat(l[2],"), rgb(").concat(l[0],", 255, ").concat(l[2],"))")),i.$el.find(".range-bar").css("background-image","linear-gradient(to top, rgb(".concat(l[0],", ").concat(l[1],", 0), rgb(").concat(l[0],", ").concat(l[1],", 255))")),o&&s?(e.$el.find("input.color-picker-value-bar-red").val(l[0]),e.$el.find("input.color-picker-value-bar-green").val(l[1]),e.$el.find("input.color-picker-value-bar-blue").val(l[2])):o&&(e.$el.find("span.color-picker-value-bar-red").text(l[0]),e.$el.find("span.color-picker-value-bar-green").text(l[1]),e.$el.find("span.color-picker-value-bar-blue").text(l[2]))},destroy:function(e){e.redBar&&e.redBar.destroy&&e.redBar.destroy(),e.greenBar&&e.greenBar.destroy&&e.greenBar.destroy(),e.blueBar&&e.blueBar.destroy&&e.blueBar.destroy(),delete e.redBar,delete e.greenBar,delete e.blueBar,e.destroyRgbBarsEvents&&e.destroyRgbBarsEvents(),delete e.destroyRgbBarsEvents}},Ia={render:function(e){var t=e.params,n=t.sliderLabel,r=t.sliderValue,i=t.sliderValueEditable,a=t.redLabelText,o=t.greenLabelText,s=t.blueLabelText;return'\n <div class="color-picker-module color-picker-module-rgb-sliders">\n <div class="color-picker-slider-wrap">\n '.concat(n?'\n <div class="color-picker-slider-label">'.concat(a,"</div>\n "):"",'\n <div class="range-slider color-picker-slider color-picker-slider-red"></div>\n ').concat(r?'\n <div class="color-picker-slider-value">\n '.concat(i?'\n <input type="number" step="1" min="0" max="255" class="color-picker-value-red" data-color-index="0">\n ':'\n <span class="color-picker-value-red"></span>\n ',"\n </div>\n "):"",'\n </div>\n <div class="color-picker-slider-wrap">\n ').concat(n?'\n <div class="color-picker-slider-label">'.concat(o,"</div>\n "):"",'\n <div class="range-slider color-picker-slider color-picker-slider-green"></div>\n ').concat(r?'\n <div class="color-picker-slider-value">\n '.concat(i?'\n <input type="number" step="1" min="0" max="255" class="color-picker-value-green" data-color-index="1">\n ':'\n <span class="color-picker-value-green"></span>\n ',"\n </div>\n "):"",'\n </div>\n <div class="color-picker-slider-wrap">\n ').concat(n?'\n <div class="color-picker-slider-label">'.concat(s,"</div>\n "):"",'\n <div class="range-slider color-picker-slider color-picker-slider-blue"></div>\n ').concat(r?'\n <div class="color-picker-slider-value">\n '.concat(i?'\n <input type="number" step="1" min="0" max="255" class="color-picker-value-blue" data-color-index="2">\n ':'\n <span class="color-picker-value-blue"></span>\n ',"\n </div>\n "):"","\n </div>\n </div>\n ")},init:function(e){function t(t){var n=L()(e.value.rgb),r=parseInt(g(t.target).attr("data-color-index"),10),i=parseInt(t.target.value,10);Number.isNaN(i)?t.target.value=n[r]:(i=Math.max(0,Math.min(255,i)),n[r]=i,e.setValue({rgb:n}))}e.redRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-red"),min:0,max:255,step:1,value:0,on:{change:function(t,n){e.setValue({rgb:[n,e.value.rgb[1],e.value.rgb[2]]})}}}),e.greenRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-green"),min:0,max:255,step:1,value:0,on:{change:function(t,n){e.setValue({rgb:[e.value.rgb[0],n,e.value.rgb[2]]})}}}),e.blueRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-blue"),min:0,max:255,step:1,value:0,on:{change:function(t,n){e.setValue({rgb:[e.value.rgb[0],e.value.rgb[1],n]})}}}),e.$el.on("change",".color-picker-module-rgb-sliders input",t),e.destroyRgbSlidersEvents=function(){e.$el.off("change",".color-picker-module-rgb-sliders input",t)}},update:function(e){var t=e.app,n=e.value,r=e.redRangeSlider,i=e.greenRangeSlider,a=e.blueRangeSlider,o=e.params,s=o.sliderValue,l=o.sliderValueEditable,c=n.rgb;r.value=c[0],i.value=c[1],a.value=c[2],r.layout(),i.layout(),a.layout(),r.$el[0].style.setProperty("--f7-range-knob-color","rgb(".concat(c[0],", ").concat(c[1],", ").concat(c[2],")")),i.$el[0].style.setProperty("--f7-range-knob-color","rgb(".concat(c[0],", ").concat(c[1],", ").concat(c[2],")")),a.$el[0].style.setProperty("--f7-range-knob-color","rgb(".concat(c[0],", ").concat(c[1],", ").concat(c[2],")"));var u=t.rtl?"to left":"to right";r.$el.find(".range-bar").css("background-image","linear-gradient(".concat(u,", rgb(0, ").concat(c[1],", ").concat(c[2],"), rgb(255, ").concat(c[1],", ").concat(c[2],"))")),i.$el.find(".range-bar").css("background-image","linear-gradient(".concat(u,", rgb(").concat(c[0],", 0, ").concat(c[2],"), rgb(").concat(c[0],", 255, ").concat(c[2],"))")),a.$el.find(".range-bar").css("background-image","linear-gradient(".concat(u,", rgb(").concat(c[0],", ").concat(c[1],", 0), rgb(").concat(c[0],", ").concat(c[1],", 255))")),s&&l?(e.$el.find("input.color-picker-value-red").val(c[0]),e.$el.find("input.color-picker-value-green").val(c[1]),e.$el.find("input.color-picker-value-blue").val(c[2])):s&&(e.$el.find("span.color-picker-value-red").text(c[0]),e.$el.find("span.color-picker-value-green").text(c[1]),e.$el.find("span.color-picker-value-blue").text(c[2]))},destroy:function(e){e.redRangeSlider&&e.redRangeSlider.destroy&&e.redRangeSlider.destroy(),e.greenRangeSlider&&e.greenRangeSlider.destroy&&e.greenRangeSlider.destroy(),e.blueRangeSlider&&e.blueRangeSlider.destroy&&e.blueRangeSlider.destroy(),delete e.redRangeSlider,delete e.greenRangeSlider,delete e.blueRangeSlider,e.destroyRgbSlidersEvents&&e.destroyRgbSlidersEvents(),delete e.destroyRgbSlidersEvents}},Aa={render:function(){return'\n <div class="color-picker-module color-picker-module-sb-spectrum">\n <div class="color-picker-sb-spectrum" style="background-color: hsl(0, 100%, 50%)">\n <div class="color-picker-sb-spectrum-handle"></div>\n </div>\n </div>\n '},init:function(e){var t,n,r,i,a,o,s,l,c=e.app,u=e.$el;function d(t,n){var r=(t-o.left)/o.width,i=(n-o.top)/o.height;r=Math.max(0,Math.min(1,r)),i=1-Math.max(0,Math.min(1,i)),e.setValue({hsb:[e.value.hue,r,i]})}function h(e){if(!t){n="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i=n,r="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,a=r;var c=g(e.target);(l=c.closest(".color-picker-sb-spectrum-handle").length>0)||(s=c.closest(".color-picker-sb-spectrum").length>0),s&&(o=u.find(".color-picker-sb-spectrum")[0].getBoundingClientRect(),d(n,r)),(l||s)&&u.find(".color-picker-sb-spectrum-handle").addClass("color-picker-sb-spectrum-handle-pressed")}}function f(e){(s||l)&&(i="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,a="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,e.preventDefault(),t||(t=!0,l&&(o=u.find(".color-picker-sb-spectrum")[0].getBoundingClientRect())),(s||l)&&d(i,a))}function p(){t=!1,(s||l)&&u.find(".color-picker-sb-spectrum-handle").removeClass("color-picker-sb-spectrum-handle-pressed"),s=!1,l=!1}function m(){e.modules["sb-spectrum"].update(e)}var v=!("touchstart"!==c.touchEvents.start||!c.support.passiveListener)&&{passive:!0,capture:!1};e.$el.on(c.touchEvents.start,h,v),c.on("touchmove:active",f),c.on("touchend:passive",p),c.on("resize",m),e.destroySpectrumEvents=function(){e.$el.off(c.touchEvents.start,h,v),c.off("touchmove:active",f),c.off("touchend:passive",p),c.off("resize",m)}},update:function(e){var t=e.value,n=t.hsl,r=t.hsb,i=e.$el.find(".color-picker-sb-spectrum")[0].offsetWidth,a=e.$el.find(".color-picker-sb-spectrum")[0].offsetHeight;e.$el.find(".color-picker-sb-spectrum").css("background-color","hsl(".concat(n[0],", 100%, 50%)")),e.$el.find(".color-picker-sb-spectrum-handle").css("background-color","hsl(".concat(n[0],", ").concat(100*n[1],"%, ").concat(100*n[2],"%)")).transform("translate(".concat(i*r[1],"px, ").concat(a*(1-r[2]),"px)"))},destroy:function(e){e.destroySpectrumEvents&&e.destroySpectrumEvents(),delete e.destroySpectrumEvents}},Da={render:function(){return'\n <div class="color-picker-module color-picker-module-hs-spectrum">\n <div class="color-picker-hs-spectrum">\n <div class="color-picker-hs-spectrum-handle"></div>\n </div>\n </div>\n '},init:function(e){var t,n,r,i,a,o,s,l,c=e.app,u=e.$el;function d(t,n){var r=(t-o.left)/o.width*360,i=(n-o.top)/o.height;r=Math.max(0,Math.min(360,r)),i=1-Math.max(0,Math.min(1,i)),e.setValue({hsb:[r,i,e.value.hsb[2]]})}function h(e){if(!t){n="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i=n,r="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,a=r;var c=g(e.target);(l=c.closest(".color-picker-hs-spectrum-handle").length>0)||(s=c.closest(".color-picker-hs-spectrum").length>0),s&&(o=u.find(".color-picker-hs-spectrum")[0].getBoundingClientRect(),d(n,r)),(l||s)&&u.find(".color-picker-hs-spectrum-handle").addClass("color-picker-hs-spectrum-handle-pressed")}}function f(e){(s||l)&&(i="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,a="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,e.preventDefault(),t||(t=!0,l&&(o=u.find(".color-picker-hs-spectrum")[0].getBoundingClientRect())),(s||l)&&d(i,a))}function p(){t=!1,(s||l)&&u.find(".color-picker-hs-spectrum-handle").removeClass("color-picker-hs-spectrum-handle-pressed"),s=!1,l=!1}function m(){e.modules["hs-spectrum"].update(e)}var v=!("touchstart"!==c.touchEvents.start||!c.support.passiveListener)&&{passive:!0,capture:!1};e.$el.on(c.touchEvents.start,h,v),c.on("touchmove:active",f),c.on("touchend:passive",p),c.on("resize",m),e.destroySpectrumEvents=function(){e.$el.off(c.touchEvents.start,h,v),c.off("touchmove:active",f),c.off("touchend:passive",p),c.off("resize",m)}},update:function(e){var t=e.value.hsb,n=e.$el.find(".color-picker-hs-spectrum")[0].offsetWidth,r=e.$el.find(".color-picker-hs-spectrum")[0].offsetHeight,i=j.colorHsbToHsl(t[0],t[1],1);e.$el.find(".color-picker-hs-spectrum-handle").css("background-color","hsl(".concat(i[0],", ").concat(100*i[1],"%, ").concat(100*i[2],"%)")).transform("translate(".concat(n*(t[0]/360),"px, ").concat(r*(1-t[1]),"px)"))},destroy:function(e){e.destroySpectrumEvents&&e.destroySpectrumEvents(),delete e.destroySpectrumEvents}};var Na={render:function(){return'\n <div class="color-picker-module color-picker-module-wheel">\n <div class="color-picker-wheel">\n <svg viewBox="0 0 300 300" width="300" height="300">'.concat(function(){for(var e="",t=256;t>0;t-=1){var n=t*Math.PI/128,r=1.40625*t;e+='<circle cx="'.concat(150-125*Math.sin(n),'" cy="').concat(150-125*Math.cos(n),'" r="25" fill="hsl(').concat(r,', 100%, 50%)"></circle>')}return e}(),'</svg>\n <div class="color-picker-wheel-handle"></div>\n <div class="color-picker-sb-spectrum" style="background-color: hsl(0, 100%, 50%)">\n <div class="color-picker-sb-spectrum-handle"></div>\n </div>\n </div>\n </div>\n ')},init:function(e){var t,n,r,i,a,o,s,l,c,u,d,h=e.app,f=e.$el;function p(t,n){var r=o.left+o.width/2,i=o.top+o.height/2,a=180*Math.atan2(n-i,t-r)/Math.PI+90;a<0&&(a+=360),a=360-a,e.setValue({hue:a})}function m(t,n){var r=(t-c.left)/c.width,i=(n-c.top)/c.height;r=Math.max(0,Math.min(1,r)),i=1-Math.max(0,Math.min(1,i)),e.setValue({hsb:[e.value.hue,r,i]})}function v(e){if(!t){n="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i=n,r="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,a=r;var h=g(e.target);l=h.closest(".color-picker-wheel-handle").length>0,s=h.closest("circle").length>0,(d=h.closest(".color-picker-sb-spectrum-handle").length>0)||(u=h.closest(".color-picker-sb-spectrum").length>0),s&&(o=f.find(".color-picker-wheel")[0].getBoundingClientRect(),p(n,r)),u&&(c=f.find(".color-picker-sb-spectrum")[0].getBoundingClientRect(),m(n,r)),(d||u)&&f.find(".color-picker-sb-spectrum-handle").addClass("color-picker-sb-spectrum-handle-pressed")}}function y(e){(s||l||u||d)&&(i="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,a="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,e.preventDefault(),t||(t=!0,l&&(o=f.find(".color-picker-wheel")[0].getBoundingClientRect()),d&&(c=f.find(".color-picker-sb-spectrum")[0].getBoundingClientRect())),(s||l)&&p(i,a),(u||d)&&m(i,a))}function b(){t=!1,(u||d)&&f.find(".color-picker-sb-spectrum-handle").removeClass("color-picker-sb-spectrum-handle-pressed"),s=!1,l=!1,u=!1,d=!1}function _(){e.modules.wheel.update(e)}var w=!("touchstart"!==h.touchEvents.start||!h.support.passiveListener)&&{passive:!0,capture:!1};e.$el.on(h.touchEvents.start,v,w),h.on("touchmove:active",y),h.on("touchend:passive",b),h.on("resize",_),e.destroyWheelEvents=function(){e.$el.off(h.touchEvents.start,v,w),h.off("touchmove:active",y),h.off("touchend:passive",b),h.off("resize",_)}},update:function(e){var t=e.value,n=t.hsl,r=t.hsb,i=e.$el.find(".color-picker-sb-spectrum")[0].offsetWidth,a=e.$el.find(".color-picker-sb-spectrum")[0].offsetHeight,o=e.$el.find(".color-picker-wheel")[0].offsetWidth,s=o/2,l=t.hue*Math.PI/180,c=o/6/2,u=s-Math.sin(l)*(s-c)-c,d=s-Math.cos(l)*(s-c)-c;e.$el.find(".color-picker-wheel-handle").css("background-color","hsl(".concat(n[0],", 100%, 50%)")).transform("translate(".concat(u,"px, ").concat(d,"px)")),e.$el.find(".color-picker-sb-spectrum").css("background-color","hsl(".concat(n[0],", 100%, 50%)")),e.$el.find(".color-picker-sb-spectrum-handle").css("background-color","hsl(".concat(n[0],", ").concat(100*n[1],"%, ").concat(100*n[2],"%)")).transform("translate(".concat(i*r[1],"px, ").concat(a*(1-r[2]),"px)"))},destroy:function(e){e.destroyWheelEvents&&e.destroyWheelEvents(),delete e.destroyWheelEvents}};function Ra(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Ba=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(Ra()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o()(this,r),t=n.call(this,i,[e]);var a,s,l,c=k()(t);if(c.params=j.extend({},e.params.colorPicker,i),c.params.containerEl&&0===(a=g(c.params.containerEl)).length)return C()(t,c);function u(){c.open()}function d(e){e.preventDefault()}function h(){c.open()}function f(e){if(!c.destroyed&&c.params&&"page"!==c.params.openIn){var t=g(e.target);c.opened&&!c.closing&&(t.closest('[class*="backdrop"]').length||t.closest(".color-picker-popup, .color-picker-popover").length||(s&&s.length>0?t[0]!==s[0]&&0===t.closest(".sheet-modal").length&&c.close():0===g(e.target).closest(".sheet-modal").length&&c.close()))}}return c.params.inputEl&&(s=g(c.params.inputEl)),c.params.targetEl&&(l=g(c.params.targetEl)),j.extend(c,{app:e,$containerEl:a,containerEl:a&&a[0],inline:a&&a.length>0,$inputEl:s,inputEl:s&&s[0],$targetEl:l,targetEl:l&&l[0],initialized:!1,opened:!1,url:c.params.url,modules:{"alpha-slider":Sa,"current-color":Ta,hex:Ca,"hsb-sliders":Ma,"hue-slider":xa,"brightness-slider":$a,palette:La,"initial-current-colors":Pa,"rgb-bars":Oa,"rgb-sliders":Ia,"sb-spectrum":Aa,"hs-spectrum":Da,wheel:Na}}),j.extend(c,{attachInputEvents:function(){c.$inputEl.on("click",u),c.params.inputReadOnly&&c.$inputEl.on("focus mousedown",d)},detachInputEvents:function(){c.$inputEl.off("click",u),c.params.inputReadOnly&&c.$inputEl.off("focus mousedown",d)},attachTargetEvents:function(){c.$targetEl.on("click",h)},detachTargetEvents:function(){c.$targetEl.off("click",h)},attachHtmlEvents:function(){e.on("click",f)},detachHtmlEvents:function(){e.off("click",f)}}),c.init(),C()(t,c)}return b()(r,[{key:"attachEvents",value:function(){this.centerModules=this.centerModules.bind(this),this.params.centerModules&&this.app.on("resize",this.centerModules)}},{key:"detachEvents",value:function(){this.params.centerModules&&this.app.off("resize",this.centerModules)}},{key:"centerModules",value:function(){if(this.opened&&this.$el&&!this.inline){var e=this.$el.find(".page-content");if(e.length){var t=e[0];t.scrollHeight<=t.offsetHeight?e.addClass("justify-content-center"):e.removeClass("justify-content-center")}}}},{key:"initInput",value:function(){this.$inputEl&&this.params.inputReadOnly&&this.$inputEl.prop("readOnly",!0)}},{key:"getModalType",value:function(){var e=this.app,t=this.modal,n=this.params,r=n.openIn,i=n.openInPhone;return t&&t.type?t.type:"auto"!==r?r:this.inline?null:e.device.ios?e.device.ipad?"popover":i:e.width>=768||e.device.desktop&&"aurora"===e.theme?"popover":i}},{key:"formatValue",value:function(){var e=this.value;return this.params.formatValue?this.params.formatValue.call(this,e):e.hex}},{key:"normalizeHsValues",value:function(e){return[Math.floor(10*e[0])/10,Math.floor(1e3*e[1])/1e3,Math.floor(1e3*e[2])/1e3]}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this;if(void 0!==e){var r,i=n.value||{},a=i.hex,o=i.rgb,s=i.hsl,l=i.hsb,c=i.alpha,u=void 0===c?1:c,d=i.hue,h=i.rgba,f=i.hsla,p=n.value||!n.value&&!n.params.value;if(Object.keys(e).forEach((function(t){if(n.value&&void 0!==n.value[t]){var i=e[t];Array.isArray(i)?i.forEach((function(e,i){e!==n.value[t][i]&&(r=!0)})):i!==n.value[t]&&(r=!0)}else r=!0})),r){if(e.rgb||e.rgba){var m=e.rgb||e.rgba,v=vr()(m,4),g=v[0],y=v[1],b=v[2],_=v[3],w=void 0===_?u:_;o=[g,y,b],a=j.colorRgbToHex.apply(j,L()(o)),s=j.colorRgbToHsl.apply(j,L()(o)),l=j.colorHslToHsb.apply(j,L()(s)),s=n.normalizeHsValues(s),d=(l=n.normalizeHsValues(l))[0],u=w,h=[o[0],o[1],o[2],w],f=[s[0],s[1],s[2],w]}if(e.hsl||e.hsla){var k=e.hsl||e.hsla,E=vr()(k,4),S=E[0],T=E[1],C=E[2],M=E[3],x=void 0===M?u:M;s=[S,T,C],o=j.colorHslToRgb.apply(j,L()(s)),a=j.colorRgbToHex.apply(j,L()(o)),l=j.colorHslToHsb.apply(j,L()(s)),s=n.normalizeHsValues(s),d=(l=n.normalizeHsValues(l))[0],u=x,h=[o[0],o[1],o[2],x],f=[s[0],s[1],s[2],x]}if(e.hsb){var $=vr()(e.hsb,4),P=$[0],O=$[1],I=$[2],A=$[3],D=void 0===A?u:A;l=[P,O,I],s=j.colorHsbToHsl.apply(j,L()(l)),o=j.colorHslToRgb.apply(j,L()(s)),a=j.colorRgbToHex.apply(j,L()(o)),s=n.normalizeHsValues(s),d=(l=n.normalizeHsValues(l))[0],u=D,h=[o[0],o[1],o[2],D],f=[s[0],s[1],s[2],D]}if(e.hex&&(o=j.colorHexToRgb(e.hex),a=j.colorRgbToHex.apply(j,L()(o)),s=j.colorRgbToHsl.apply(j,L()(o)),l=j.colorHslToHsb.apply(j,L()(s)),s=n.normalizeHsValues(s),d=(l=n.normalizeHsValues(l))[0],h=[o[0],o[1],o[2],u],f=[s[0],s[1],s[2],u]),void 0!==e.alpha&&(u=e.alpha,void 0!==o&&(h=[o[0],o[1],o[2],u]),void 0!==s&&(f=[s[0],s[1],s[2],u])),void 0!==e.hue){var N=s,R=vr()(N,3),B=(R[0],R[1]),Y=R[2];s=[e.hue,B,Y],l=j.colorHslToHsb.apply(j,L()(s)),o=j.colorHslToRgb.apply(j,L()(s)),a=j.colorRgbToHex.apply(j,L()(o)),s=n.normalizeHsValues(s),d=(l=n.normalizeHsValues(l))[0],h=[o[0],o[1],o[2],u],f=[s[0],s[1],s[2],u]}n.value={hex:a,alpha:u,hue:d,rgb:o,hsl:s,hsb:l,rgba:h,hsla:f},n.initialValue||(n.initialValue=j.extend({},n.value)),n.updateValue(p),n.opened&&t&&n.updateModules()}}}},{key:"getValue",value:function(){return this.value}},{key:"updateValue",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.$inputEl,r=t.value,i=t.$targetEl;if(i&&t.params.targetElSetBackgroundColor){var a=r.rgba;i.css("background-color","rgba(".concat(a.join(", "),")"))}if(e&&t.emit("local::change colorPickerChange",t,r),n&&n.length){var o=t.formatValue(r);n&&n.length&&(n.val(o),e&&n.trigger("change"))}}},{key:"updateModules",value:function(){var e=this,t=e.modules;e.params.modules.forEach((function(n){"string"==typeof n&&t[n]&&t[n].update?t[n].update(e):n&&n.update&&n.update(e)}))}},{key:"update",value:function(){this.updateModules()}},{key:"renderPicker",value:function(){var e=this,t=e.params,n=e.modules,r="";return t.modules.forEach((function(t){"string"==typeof t&&n[t]&&n[t].render?r+=n[t].render(e):t&&t.render&&(r+=t.render(e))})),r}},{key:"renderNavbar",value:function(){if(this.params.renderNavbar)return this.params.renderNavbar.call(this,this);var e=this.params,t=e.openIn,n=e.navbarTitleText,r=e.navbarBackLinkText,i=e.navbarCloseText;return'\n <div class="navbar">\n <div class="navbar-bg"></div>\n <div class="navbar-inner sliding">\n '.concat("page"===t?'\n <div class="left">\n <a class="link back">\n <i class="icon icon-back"></i>\n <span class="if-not-md">'.concat(r,"</span>\n </a>\n </div>\n "):"",'\n <div class="title">').concat(n,"</div>\n ").concat("page"!==t?'\n <div class="right">\n <a class="link popup-close" data-popup=".color-picker-popup">'.concat(i,"</a>\n </div>\n "):"","\n </div>\n </div>\n ").trim()}},{key:"renderToolbar",value:function(){return this.params.renderToolbar?this.params.renderToolbar.call(this,this):'\n <div class="toolbar toolbar-top no-shadow">\n <div class="toolbar-inner">\n <div class="left"></div>\n <div class="right">\n <a class="link sheet-close popover-close" data-sheet=".color-picker-sheet-modal" data-popover=".color-picker-popover">'.concat(this.params.toolbarCloseText,"</a>\n </div>\n </div>\n </div>\n ").trim()}},{key:"renderInline",value:function(){var e=this.params,t=e.cssClass,n=e.groupedModules;return'\n <div class="color-picker color-picker-inline '.concat(n?"color-picker-grouped-modules":""," ").concat(t||"",'">\n ').concat(this.renderPicker(),"\n </div>\n ").trim()}},{key:"renderSheet",value:function(){var e=this.params,t=e.cssClass,n=e.toolbarSheet,r=e.groupedModules;return'\n <div class="sheet-modal color-picker color-picker-sheet-modal '.concat(r?"color-picker-grouped-modules":""," ").concat(t||"",'">\n ').concat(n?this.renderToolbar():"",'\n <div class="sheet-modal-inner">\n <div class="page-content">\n ').concat(this.renderPicker(),"\n </div>\n </div>\n </div>\n ").trim()}},{key:"renderPopover",value:function(){var e=this.params,t=e.cssClass,n=e.toolbarPopover,r=e.groupedModules;return'\n <div class="popover color-picker-popover '.concat(t||"",'">\n <div class="popover-inner">\n <div class="color-picker ').concat(r?"color-picker-grouped-modules":"",'">\n ').concat(n?this.renderToolbar():"",'\n <div class="page-content">\n ').concat(this.renderPicker(),"\n </div>\n </div>\n </div>\n </div>\n ").trim()}},{key:"renderPopup",value:function(){var e=this.params,t=e.cssClass,n=e.navbarPopup,r=e.groupedModules;return'\n <div class="popup color-picker-popup '.concat(t||"",'">\n <div class="page">\n ').concat(n?this.renderNavbar():"",'\n <div class="color-picker ').concat(r?"color-picker-grouped-modules":"",'">\n <div class="page-content">\n ').concat(this.renderPicker(),"\n </div>\n </div>\n </div>\n </div>\n ").trim()}},{key:"renderPage",value:function(){var e=this.params,t=e.cssClass,n=e.groupedModules;return'\n <div class="page color-picker-page '.concat(t||"",'" data-name="color-picker-page">\n ').concat(this.renderNavbar(),'\n <div class="color-picker ').concat(n?"color-picker-grouped-modules":"",'">\n <div class="page-content">\n ').concat(this.renderPicker(),"\n </div>\n </div>\n </div>\n ").trim()}},{key:"render",value:function(){var e=this.params;if(e.render)return e.render.call(this);if(this.inline)return this.renderInline();if("page"===e.openIn)return this.renderPage();var t=this.getModalType();return"popover"===t?this.renderPopover():"sheet"===t?this.renderSheet():"popup"===t?this.renderPopup():void 0}},{key:"onOpen",value:function(){var e=this,t=e.initialized,n=e.$el,r=e.app,i=e.$inputEl,a=e.inline,o=e.value,s=e.params,l=e.modules;e.closing=!1,e.opened=!0,e.opening=!0,e.attachEvents(),s.modules.forEach((function(t){"string"==typeof t&&l[t]&&l[t].init?l[t].init(e):t&&t.init&&t.init(e)}));var c=!o&&s.value;t?o&&(e.initialValue=j.extend({},o),e.setValue(o,!1)):o?e.setValue(o):s.value?e.setValue(s.value,!1):s.value||e.setValue({hex:"#ff0000"},!1),c&&e.updateValue(),e.updateModules(),s.centerModules&&e.centerModules(),!a&&i&&i.length&&"md"===r.theme&&i.trigger("focus"),e.initialized=!0,n&&n.trigger("colorpicker:open"),i&&i.trigger("colorpicker:open"),e.emit("local::open colorPickerOpen",e)}},{key:"onOpened",value:function(){this.opening=!1,this.$el&&this.$el.trigger("colorpicker:opened"),this.$inputEl&&this.$inputEl.trigger("colorpicker:opened"),this.emit("local::opened colorPickerOpened",this)}},{key:"onClose",value:function(){var e=this,t=e.app,n=e.params,r=e.modules;e.opening=!1,e.closing=!0,e.detachEvents(),e.$inputEl&&"md"===t.theme&&e.$inputEl.trigger("blur"),n.modules.forEach((function(t){"string"==typeof t&&r[t]&&r[t].destroy?r[t].destroy(e):t&&t.destroy&&t.destroy(e)})),e.$el&&e.$el.trigger("colorpicker:close"),e.$inputEl&&e.$inputEl.trigger("colorpicker:close"),e.emit("local::close colorPickerClose",e)}},{key:"onClosed",value:function(){var e=this;e.opened=!1,e.closing=!1,e.inline||j.nextTick((function(){e.modal&&e.modal.el&&e.modal.destroy&&(e.params.routableModals||e.modal.destroy()),delete e.modal})),e.$el&&e.$el.trigger("colorpicker:closed"),e.$inputEl&&e.$inputEl.trigger("colorpicker:closed"),e.emit("local::closed colorPickerClosed",e)}},{key:"open",value:function(){var e=this,t=e.app,n=e.opened,r=e.inline,i=e.$inputEl,a=e.$targetEl,o=e.params;if(!n){if(r)return e.$el=g(e.render()),e.$el[0].f7ColorPicker=e,e.$containerEl.append(e.$el),e.onOpen(),void e.onOpened();var s=e.render();if("page"===o.openIn)e.view.router.navigate({url:e.url,route:{content:s,path:e.url,on:{pageBeforeIn:function(t,n){e.$el=n.$el.find(".color-picker"),e.$el[0].f7ColorPicker=e,e.onOpen()},pageAfterIn:function(){e.onOpened()},pageBeforeOut:function(){e.onClose()},pageAfterOut:function(){e.onClosed(),e.$el&&e.$el[0]&&(e.$el[0].f7ColorPicker=null,delete e.$el[0].f7ColorPicker)}}}});else{var l=e.getModalType(),c=o.backdrop;null==c&&("popover"===l&&!1!==t.params.popover.backdrop&&(c=!0),"popup"===l&&(c=!0));var u={targetEl:a||i,scrollToEl:o.scrollToInput?a||i:void 0,content:s,backdrop:c,closeByBackdropClick:o.closeByBackdropClick,on:{open:function(){e.modal=this,e.$el="popover"===l||"popup"===l?this.$el.find(".color-picker"):this.$el,e.$el[0].f7ColorPicker=e,e.onOpen()},opened:function(){e.onOpened()},close:function(){e.onClose()},closed:function(){e.onClosed(),e.$el&&e.$el[0]&&(e.$el[0].f7ColorPicker=null,delete e.$el[0].f7ColorPicker)}}};"popup"===l&&(u.push=o.popupPush,u.swipeToClose=o.popupSwipeToClose),"sheet"===l&&(u.push=o.sheetPush,u.swipeToClose=o.sheetSwipeToClose),o.routableModals&&e.view?e.view.router.navigate({url:e.url,route:K()({path:e.url},l,u)}):(e.modal=t[l].create(u),e.modal.open())}}}},{key:"close",value:function(){var e=this.opened,t=this.inline;if(e)return t?(this.onClose(),void this.onClosed()):void(this.params.routableModals&&this.view||"page"===this.params.openIn?this.view.router.back():this.modal.close())}},{key:"init",value:function(){if(this.initInput(),this.inline)return this.open(),void this.emit("local::init colorPickerInit",this);!this.initialized&&this.params.value&&this.setValue(this.params.value),this.$inputEl&&this.attachInputEvents(),this.$targetEl&&this.attachTargetEvents(),this.params.closeByOutsideClick&&this.attachHtmlEvents(),this.emit("local::init colorPickerInit",this)}},{key:"destroy",value:function(){if(!this.destroyed){var e=this.$el;this.emit("local::beforeDestroy colorPickerBeforeDestroy",this),e&&e.trigger("colorpicker:beforedestroy"),this.close(),this.detachEvents(),this.$inputEl&&this.detachInputEvents(),this.$targetEl&&this.detachTargetEvents(),this.params.closeByOutsideClick&&this.detachHtmlEvents(),e&&e.length&&delete this.$el[0].f7ColorPicker,j.deleteProps(this),this.destroyed=!0}}},{key:"view",get:function(){var e,t=this.$inputEl,n=this.$targetEl,r=this.app,i=this.params;return i.view?e=i.view:(t&&(e=t.parents(".view").length&&t.parents(".view")[0].f7View),!e&&n&&(e=n.parents(".view").length&&n.parents(".view")[0].f7View)),e||(e=r.views.main),e}}]),r}(z),Ya={name:"colorPicker",static:{ColorPicker:Ba},create:function(){this.colorPicker=W({defaultSelector:".color-picker",constructor:Ba,app:this,domProp:"f7ColorPicker"}),this.colorPicker.close=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".color-picker",t=g(e);if(0!==t.length){var n=t[0].f7ColorPicker;!n||n&&!n.opened||n.close()}}},params:{colorPicker:{value:null,modules:["wheel"],palette:[["#FFEBEE","#FFCDD2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828","#B71C1C"],["#F3E5F5","#E1BEE7","#CE93D8","#BA68C8","#AB47BC","#9C27B0","#8E24AA","#7B1FA2","#6A1B9A","#4A148C"],["#E8EAF6","#C5CAE9","#9FA8DA","#7986CB","#5C6BC0","#3F51B5","#3949AB","#303F9F","#283593","#1A237E"],["#E1F5FE","#B3E5FC","#81D4FA","#4FC3F7","#29B6F6","#03A9F4","#039BE5","#0288D1","#0277BD","#01579B"],["#E0F2F1","#B2DFDB","#80CBC4","#4DB6AC","#26A69A","#009688","#00897B","#00796B","#00695C","#004D40"],["#F1F8E9","#DCEDC8","#C5E1A5","#AED581","#9CCC65","#8BC34A","#7CB342","#689F38","#558B2F","#33691E"],["#FFFDE7","#FFF9C4","#FFF59D","#FFF176","#FFEE58","#FFEB3B","#FDD835","#FBC02D","#F9A825","#F57F17"],["#FFF3E0","#FFE0B2","#FFCC80","#FFB74D","#FFA726","#FF9800","#FB8C00","#F57C00","#EF6C00","#E65100"]],groupedModules:!1,centerModules:!0,sliderLabel:!1,sliderValue:!1,sliderValueEdiable:!1,barLabel:!1,barValue:!1,barValueEdiable:!1,hexLabel:!1,hexValueEditable:!1,redLabelText:"R",greenLabelText:"G",blueLabelText:"B",hueLabelText:"H",saturationLabelText:"S",brightnessLabelText:"B",hexLabelText:"HEX",alphaLabelText:"A",containerEl:null,openIn:"popover",openInPhone:"popup",popupPush:!1,popupSwipeToClose:void 0,sheetPush:!1,sheetSwipeToClose:void 0,formatValue:null,targetEl:null,targetElSetBackgroundColor:!1,inputEl:null,inputReadOnly:!0,closeByOutsideClick:!0,scrollToInput:!0,toolbarSheet:!0,toolbarPopover:!1,toolbarCloseText:"Done",navbarPopup:!0,navbarCloseText:"Done",navbarTitleText:"Color",navbarBackLinkText:"Back",cssClass:null,routableModals:!0,view:null,url:"color/",backdrop:null,closeByBackdropClick:!0,renderToolbar:null,renderNavbar:null,renderInline:null,renderPopover:null,renderSheet:null,renderPopup:null,render:null}}},ja={open:function(e){var t=this,n=g(e).eq(0);function r(e){e?(n.removeClass("treeview-item-opened"),n.trigger("treeview:close"),t.emit("treeviewClose",n[0])):n[0].f7TreeviewChildrenLoaded=!0,n.find(".treeview-toggle").removeClass("treeview-toggle-hidden"),n.find(".treeview-preloader").remove()}n.length&&(n.addClass("treeview-item-opened"),n.trigger("treeview:open"),t.emit("treeviewOpen",n[0]),n.hasClass("treeview-load-children")&&!n[0].f7TreeviewChildrenLoaded&&(n.trigger("treeview:loadchildren",r),t.emit("treeviewLoadChildren",n[0],r),n.find(".treeview-toggle").addClass("treeview-toggle-hidden"),n.find(".treeview-item-root").prepend('<div class="preloader treeview-preloader">'.concat(j["".concat(t.theme,"PreloaderContent")],"</div>"))))},close:function(e){var t=g(e).eq(0);t.length&&(t.removeClass("treeview-item-opened"),t.trigger("treeview:close"),this.emit("treeviewClose",t[0]))},toggle:function(e){var t=g(e).eq(0);if(t.length){var n=t.hasClass("treeview-item-opened");this.treeview[n?"close":"open"](t)}}},Fa={name:"treeview",create:function(){j.extend(this,{treeview:{open:ja.open.bind(this),close:ja.close.bind(this),toggle:ja.toggle.bind(this)}})},clicks:{".treeview-toggle":function(e,t,n){if(!e.parents(".treeview-item-toggle").length){var r=e.parents(".treeview-item").eq(0);r.length&&(n.preventF7Router=!0,this.treeview.toggle(r[0]))}},".treeview-item-toggle":function(e,t,n){var r=e.closest(".treeview-item").eq(0);r.length&&(n.preventF7Router=!0,this.treeview.toggle(r[0]))}}};function Ha(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Ua={bold:["bold","format_bold","bold"],italic:["italic","format_italic","italic"],underline:["underline","format_underlined","underline"],strikeThrough:["strikethrough","strikethrough_s","strikeThrough"],orderedList:["list_number","format_list_numbered","insertOrderedList"],unorderedList:["list_bullet","format_list_bulleted","insertUnorderedList"],link:["link","link","createLink"],image:["photo","image","insertImage"],paragraph:["paragraph",'<i class="icon">¶</i>',"formatBlock.P"],h1:['<i class="icon">H<sub>1</sub></i>','<i class="icon">H<sub>1</sub></i>',"formatBlock.H1"],h2:['<i class="icon">H<sub>2</sub></i>','<i class="icon">H<sub>2</sub></i>',"formatBlock.H2"],h3:['<i class="icon">H<sub>3</sub></i>','<i class="icon">H<sub>3</sub></i>',"formatBlock.H3"],alignLeft:["text_alignleft","format_align_left","justifyLeft"],alignCenter:["text_aligncenter","format_align_center","justifyCenter"],alignRight:["text_alignright","format_align_right","justifyRight"],alignJustify:["text_justify","format_align_justify","justifyFull"],subscript:["textformat_subscript",'<i class="icon">A<sub>1</sub></i>',"subscript"],superscript:["textformat_superscript",'<i class="icon">A<sup>1</sup></i>',"superscript"],indent:["increase_indent","format_indent_increase","indent"],outdent:["decrease_indent","format_indent_decrease","outdent"]},za=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(Ha()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e,t){var i;o()(this,r),i=n.call(this,t,[e]);var a=k()(i),l=j.extend({},e.params.textEditor);a.useModulesParams(l),a.params=j.extend(l,t);var c=a.params.el;if(!c)return C()(i,a);var u=g(c);if(0===u.length)return C()(i,a);if(u[0].f7TextEditor)return C()(i,u[0].f7TextEditor);var d=u.children(".text-editor-content");if(d.length||(u.append('<div class="text-editor-content" contenteditable></div>'),d=u.children(".text-editor-content")),j.extend(a,{app:e,$el:u,el:u[0],$contentEl:d,contentEl:d[0]}),"value"in t&&(a.value=a.params.value),"keyboard-toolbar"===a.params.mode&&(e.device.cordova||e.device.android||(a.params.mode="popover")),"string"==typeof a.params.buttons)try{a.params.buttons=JSON.parse(a.params.buttons)}catch(e){throw new Error('Framework7: TextEditor: wrong "buttons" parameter format')}return u[0].f7TextEditor=a,a.onButtonClick=a.onButtonClick.bind(a),a.onFocus=a.onFocus.bind(a),a.onBlur=a.onBlur.bind(a),a.onInput=a.onInput.bind(a),a.onPaste=a.onPaste.bind(a),a.onSelectionChange=a.onSelectionChange.bind(a),a.closeKeyboardToolbar=a.closeKeyboardToolbar.bind(a),a.attachEvents=function(){"toolbar"===a.params.mode&&a.$el.find(".text-editor-toolbar").on("click","button",a.onButtonClick),"keyboard-toolbar"===a.params.mode&&(a.$keyboardToolbarEl.on("click","button",a.onButtonClick),a.$el.parents(".page").on("page:beforeout",a.closeKeyboardToolbar)),"popover"===a.params.mode&&a.popover&&a.popover.$el.on("click","button",a.onButtonClick),a.$contentEl.on("paste",a.onPaste),a.$contentEl.on("focus",a.onFocus),a.$contentEl.on("blur",a.onBlur),a.$contentEl.on("input",a.onInput,!0),g(s.a).on("selectionchange",a.onSelectionChange)},a.detachEvents=function(){"toolbar"===a.params.mode&&a.$el.find(".text-editor-toolbar").off("click","button",a.onButtonClick),"keyboard-toolbar"===a.params.mode&&(a.$keyboardToolbarEl.off("click","button",a.onButtonClick),a.$el.parents(".page").off("page:beforeout",a.closeKeyboardToolbar)),"popover"===a.params.mode&&a.popover&&a.popover.$el.off("click","button",a.onButtonClick),a.$contentEl.off("paste",a.onPaste),a.$contentEl.off("focus",a.onFocus),a.$contentEl.off("blur",a.onBlur),a.$contentEl.off("input",a.onInput,!0),g(s.a).off("selectionchange",a.onSelectionChange)},a.useModules(),a.init(),C()(i,a)}return b()(r,[{key:"setValue",value:function(e){return this.value===e||(this.value=e,this.$contentEl.html(e),this.$el.trigger("texteditor:change",this.value),this.emit("local::change textEditorChange",this,this.value)),this}},{key:"getValue",value:function(){return this.value}},{key:"createLink",value:function(){var e,t=this,n=s.b.getSelection(),r=[];if(n&&n.anchorNode&&g(n.anchorNode).parents(t.$el).length){for(var i=n.anchorNode;i;)r.push(i),i.nextSibling&&i!==n.focusNode||(i=null),i&&(i=i.nextSibling);e=g(r).closest("a").add(g(r).children("a"))}if(e&&e.length)return e.each((function(e,t){var n=s.b.getSelection(),r=s.a.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r),s.a.execCommand("unlink",!1),n.removeAllRanges()})),t;var a=t.getSelectionRange();return a?(t.app.dialog.prompt(t.params.linkUrlText,"",(function(e){e&&e.trim().length&&(t.setSelectionRange(a),s.a.execCommand("createLink",!1,e.trim()))})).$el.find("input").focus(),t):t}},{key:"insertImage",value:function(){var e=this,t=e.getSelectionRange();return t?(e.app.dialog.prompt(e.params.imageUrlText,"",(function(n){n&&n.trim().length&&(e.setSelectionRange(t),s.a.execCommand("insertImage",!1,n.trim()))})).$el.find("input").focus(),e):e}},{key:"removePlaceholder",value:function(){this.$contentEl.find(".text-editor-placeholder").remove()}},{key:"insertPlaceholder",value:function(){this.$contentEl.append('<div class="text-editor-placeholder">'.concat(this.params.placeholder,"</div>"))}},{key:"onSelectionChange",value:function(){if("toolbar"!==this.params.mode){var e=s.b.getSelection(),t=g(e.anchorNode).parents(this.contentEl).length||e.anchorNode===this.contentEl;if("keyboard-toolbar"!==this.params.mode){if("popover"===this.params.mode){var n=g(e.anchorNode).parents(this.popover.el).length||e.anchorNode===this.popover.el;if(!t&&!n)return void this.closePopover();if(!e.isCollapsed&&e.rangeCount){var r=e.getRangeAt(0).getBoundingClientRect();this.openPopover(r.x+(s.b.scrollX||0),r.y+(s.b.scrollY||0),r.width,r.height)}else e.isCollapsed&&this.closePopover()}}else t?this.openKeyboardToolbar():this.closeKeyboardToolbar()}}},{key:"onPaste",value:function(e){if(this.params.clearFormattingOnPaste&&e.clipboardData&&e.clipboardData.getData){var t=e.clipboardData.getData("text/plain");e.preventDefault(),s.a.execCommand("insertText",!1,t)}}},{key:"onInput",value:function(){var e=this.$contentEl.html();this.$el.trigger("texteditor:input"),this.emit("local:input textEditorInput",this),this.value=e,this.$el.trigger("texteditor:change",this.value),this.emit("local::change textEditorChange",this,this.value)}},{key:"onFocus",value:function(){this.removePlaceholder(),this.$contentEl.focus(),this.$el.trigger("texteditor:focus"),this.emit("local::focus textEditorFocus",this)}},{key:"onBlur",value:function(){if(this.params.placeholder&&""===this.$contentEl.html()&&this.insertPlaceholder(),"popover"===this.params.mode){var e=s.b.getSelection(),t=g(e.anchorNode).parents(this.contentEl).length||e.anchorNode===this.contentEl;s.a.activeElement&&this.popover&&g(s.a.activeElement).closest(this.popover.$el).length||t||this.closePopover()}if("keyboard-toolbar"===this.params.mode){var n=s.b.getSelection();g(n.anchorNode).parents(this.contentEl).length||n.anchorNode===this.contentEl||this.closeKeyboardToolbar()}this.$el.trigger("texteditor:blur"),this.emit("local::blur textEditorBlur",this)}},{key:"onButtonClick",value:function(e){var t=s.b.getSelection();if(g(t.anchorNode).parents(this.contentEl).length||t.anchorNode===this.contentEl){var n=g(e.target).closest("button");n.parents("form").length&&e.preventDefault();var r=n.attr("data-button"),i=this.params.customButtons&&this.params.customButtons[r];if(r&&(Ua[r]||i))if(n.trigger("texteditor:buttonclick",r),this.emit("local::buttonClick textEditorButtonClick",this,r),i)i.onClick&&i.onClick(this,n[0]);else{var a=Ua[r][2];if("createLink"!==a)if("insertImage"!==a)if(0!==a.indexOf("formatBlock"))s.a.execCommand(a,!1);else{var o=a.split(".")[1],l=g(t.anchorNode);l.parents(o.toLowerCase()).length||l.is(o)?s.a.execCommand("formatBlock",!1,"div"):s.a.execCommand("formatBlock",!1,o)}else this.insertImage();else this.createLink()}}}},{key:"getSelectionRange",value:function(){if(s.b.getSelection){var e=s.b.getSelection();if(e.getRangeAt&&e.rangeCount)return e.getRangeAt(0)}else if(s.a.selection&&s.a.selection.createRange)return s.a.selection.createRange();return null}},{key:"setSelectionRange",value:function(e){if(e)if(s.b.getSelection){var t=s.b.getSelection();t.removeAllRanges(),t.addRange(e)}else s.a.selection&&e.select&&e.select()}},{key:"renderButtons",value:function(){var e=this,t="";function n(t){var n="md"===e.app.theme?"material-icons":"f7-icons";if(e.params.customButtons&&e.params.customButtons[t]){var r=e.params.customButtons[t];return'<button type="button" class="text-editor-button" data-button="'.concat(t,'">').concat(r.content||"","</button>")}if(!Ua[t])return"";var i=Ua[t]["md"===e.app.theme?1:0];return'<button type="button" class="text-editor-button" data-button="'.concat(t,'">').concat(i.indexOf("<")>=0?i:'<i class="'.concat(n,'">').concat(i,"</i>"),"</button>").trim()}return e.params.buttons.forEach((function(r,i){Array.isArray(r)?(r.forEach((function(e){t+=n(e)})),i<e.params.buttons.length-1&&e.params.dividers&&(t+='<div class="text-editor-button-divider"></div>')):t+=n(r)})),t}},{key:"createToolbar",value:function(){this.$el.prepend('<div class="text-editor-toolbar">'.concat(this.renderButtons(),"</div>"))}},{key:"createKeyboardToolbar",value:function(){var e=this.$el.closest(".theme-dark").length>0||"dark"===this.app.device.prefersColorScheme();this.$keyboardToolbarEl=g('<div class="toolbar toolbar-bottom text-editor-keyboard-toolbar '.concat(e?"theme-dark":"",'"><div class="toolbar-inner">').concat(this.renderButtons(),"</div></div>"))}},{key:"createPopover",value:function(){var e=this.$el.closest(".theme-dark").length>0;this.popover=this.app.popover.create({content:'\n <div class="popover '.concat(e?"theme-light":"theme-dark",' text-editor-popover">\n <div class="popover-inner">').concat(this.renderButtons(),"</div>\n </div>\n "),closeByOutsideClick:!1,backdrop:!1})}},{key:"openKeyboardToolbar",value:function(){this.$keyboardToolbarEl.parent(this.app.root).length||(this.$el.trigger("texteditor:keyboardopen"),this.emit("local::keyboardOpen textEditorKeyboardOpen",this),this.app.root.append(this.$keyboardToolbarEl))}},{key:"closeKeyboardToolbar",value:function(){this.$keyboardToolbarEl.remove(),this.$el.trigger("texteditor:keyboardclose"),this.emit("local::keyboardClose textEditorKeyboardClose",this)}},{key:"openPopover",value:function(e,t,n,r){var i=this;i.popover&&(Object.assign(i.popover.params,{targetX:e,targetY:t,targetWidth:n,targetHeight:r}),clearTimeout(i.popoverTimeout),i.popoverTimeout=setTimeout((function(){i.popover&&(i.popover.opened?i.popover.resize():(i.$el.trigger("texteditor:popoveropen"),i.emit("local::popoverOpen textEditorPopoverOpen",i),i.popover.open()))}),400))}},{key:"closePopover",value:function(){var e=this;clearTimeout(e.popoverTimeout),e.popover&&e.popover.opened&&(e.popoverTimeout=setTimeout((function(){e.popover&&(e.$el.trigger("texteditor:popoverclose"),e.emit("local::popoverClose textEditorPopoverClose",e),e.popover.close())}),400))}},{key:"init",value:function(){return this.value?this.$contentEl.html(this.value):this.value=this.$contentEl.html(),this.params.placeholder&&""===this.value&&this.insertPlaceholder(),"toolbar"===this.params.mode?this.createToolbar():"popover"===this.params.mode?this.createPopover():"keyboard-toolbar"===this.params.mode&&this.createKeyboardToolbar(),this.attachEvents(),this.$el.trigger("texteditor:init"),this.emit("local::init textEditorInit",this),this}},{key:"destroy",value:function(){var e=this;e.$el.trigger("texteditor:beforedestroy"),e.emit("local::beforeDestroy textEditorBeforeDestroy",e),e.detachEvents(),"keyboard-toolbar"===e.params.mode&&e.$keyboardToolbarEl&&e.$keyboardToolbarEl.remove(),e.popover&&(e.popover.close(!1),e.popover.destroy()),delete e.$el[0].f7TextEditor,j.deleteProps(e),e=null}}]),r}(z),Va={name:"textEditor",params:{textEditor:{el:null,mode:"toolbar",value:void 0,customButtons:null,buttons:[["bold","italic","underline","strikeThrough"],["orderedList","unorderedList"],["link","image"],["paragraph","h1","h2","h3"],["alignLeft","alignCenter","alignRight","alignJustify"],["subscript","superscript"],["indent","outdent"]],dividers:!0,imageUrlText:"Insert image URL",linkUrlText:"Insert link URL",placeholder:null,clearFormattingOnPaste:!0}},create:function(){this.textEditor=j.extend(W({defaultSelector:".text-editor",constructor:za,app:this,domProp:"f7TextEditor"}))},static:{TextEditor:za},on:{tabMounted:function(e){var t=this;g(e).find(".text-editor-init").each((function(e,n){var r=g(n).dataset();t.textEditor.create(j.extend({el:n},r||{}))}))},tabBeforeRemove:function(e){g(e).find(".text-editor-init").each((function(e,t){t.f7TextEditor&&t.f7TextEditor.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".text-editor-init").each((function(e,n){var r=g(n).dataset();t.textEditor.create(j.extend({el:n},r||{}))}))},pageBeforeRemove:function(e){e.$el.find(".text-editor-init").each((function(e,t){t.f7TextEditor&&t.f7TextEditor.destroy()}))}},vnode:{"text-editor-init":{insert:function(e){var t=e.elm,n=g(t).dataset();this.textEditor.create(j.extend({el:t},n||{}))},destroy:function(e){var t=e.elm;t.f7TextEditor&&t.f7TextEditor.destroy()}}}};function qa(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Wa=function(e){S()(r,e);var t,n=(t=r,function(){var e,n=x()(t);if(qa()){var r=x()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C()(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o()(this,r),t=n.call(this,i,[e]);var a,l=k()(t);if(!s.b.vi)throw new Error("Framework7: vi SDK not found.");void 0!==s.b.orientation&&(a=-90===s.b.orientation||90===s.b.orientation?"horizontal":"vertical");var c=j.extend({},e.params.vi,{appId:e.id,appVer:e.version,language:e.language,width:e.width,height:e.height,os:F.a.os,osVersion:F.a.osVersion,orientation:a});l.useModulesParams(c),l.params=j.extend(c,i);var u={},d="on autoplay fallbackOverlay fallbackOverlayText enabled".split(" ");if(Object.keys(l.params).forEach((function(e){if(!(d.indexOf(e)>=0)){var t=l.params[e];[null,void 0].indexOf(t)>=0||(u[e]=t)}})),!l.params.appId)throw new Error('Framework7: "app.id" is required to display an ad. Make sure you have specified it on app initialization.');if(!l.params.placementId)throw new Error('Framework7: "placementId" is required to display an ad.');function h(){var t=g("iframe#viAd");0!==t.length&&t.css({width:"".concat(e.width,"px"),height:"".concat(e.height,"px")})}function f(){l.$overlayEl&&(l.$overlayEl.off("click touchstart"),l.$overlayEl.remove())}function p(t){var n;t&&(l.$overlayEl=g('\n <div class="vi-overlay">\n '.concat(l.params.fallbackOverlayText?'<div class="vi-overlay-text">'.concat(l.params.fallbackOverlayText,"</div>"):"",'\n <div class="vi-overlay-play-button"></div>\n </div>\n ').trim()),l.$overlayEl.on("touchstart",(function(){n=j.now()})),l.$overlayEl.on("click",(function(){if(!(j.now()-n>300)){if(t)return t.play(),void f();l.start(),f()}})),e.root.append(l.$overlayEl))}return l.ad=new s.b.vi.Ad(u),j.extend(l.ad,{onAdReady:function(){e.on("resize",h),l.emit("local::ready"),l.params.autoplay&&l.start()},onAdStarted:function(){l.emit("local::started")},onAdClick:function(e){l.emit("local::click",e)},onAdImpression:function(){l.emit("local::impression")},onAdStopped:function(t){e.off("resize",h),f(),l.emit("local::stopped",t),"complete"===t&&(l.emit("local::complete"),l.emit("local::completed")),"userexit"===t&&l.emit("local::userexit"),l.destroyed=!0},onAutoPlayFailed:function(e,t){l.emit("local::autoplayFailed",e,t),e&&e.name&&-1!==e.name.indexOf("NotAllowedError")&&l.params.fallbackOverlay&&p(t)},onAdError:function(t){f(),e.off("resize",h),l.emit("local::error",t),l.destroyed=!0}}),l.init(),j.extend(l,{app:e}),t}return b()(r,[{key:"start",value:function(){this.destroyed||this.ad&&this.ad.startAd()}},{key:"pause",value:function(){this.destroyed||this.ad&&this.ad.pauseAd()}},{key:"resume",value:function(){this.destroyed||this.ad&&this.ad.resumeAd()}},{key:"stop",value:function(){this.destroyed||this.ad&&this.ad.stopAd()}},{key:"init",value:function(){this.destroyed||this.ad&&this.ad.initAd()}},{key:"destroy",value:function(){this.destroyed=!0,this.emit("local::beforeDestroy"),j.deleteProps(this)}}]),r}(z),Ga={name:"vi",params:{vi:{enabled:!1,autoplay:!0,fallbackOverlay:!0,fallbackOverlayText:"Please watch this ad",showMute:!0,startMuted:(F.a.ios||F.a.android)&&!F.a.cordova,appId:null,appVer:null,language:null,width:null,height:null,placementId:"pltd4o7ibb9rc653x14",placementType:"interstitial",videoSlot:null,showProgress:!0,showBranding:!0,os:null,osVersion:null,orientation:null,age:null,gender:null,advertiserId:null,latitude:null,longitude:null,accuracy:null,storeId:null,ip:null,manufacturer:null,model:null,connectionType:null,connectionProvider:null}},create:function(){var e=this;e.vi={sdkReady:!1,createAd:function(t){return new Wa(e,t)},loadSdk:function(){if(!e.vi.sdkReady){var t=s.a.createElement("script");t.onload=function(){e.emit("viSdkReady"),e.vi.sdkReady=!0},t.src="https://c.vi-serve.com/viadshtml/vi.min.js",g("head").append(t)}}}},on:{init:function(){(this.params.vi.enabled||this.passedParams.vi&&!1!==this.passedParams.vi.enabled)&&this.vi.loadSdk()}}};Ie.use([je,Fe]),re.use([de,he,fe,pe,me,ve,Ye,Ae,Pt,Lt,It,Dt,Nt,Bt,jt,{name:"subnavbar",on:{pageInit:function(e){e.$navbarEl&&e.$navbarEl.length&&e.$navbarEl.find(".subnavbar").length&&e.$el.addClass("page-with-subnavbar"),e.$el.find(".subnavbar").length&&e.$el.addClass("page-with-subnavbar")}}},Ht,Kt,{name:"appbar"},en,rn,sn,un,fn,vn,bn,wn,En,Tn,Mn,$n,{name:"contactsList"},On,Dn,{name:"timeline"},Rn,Hn,zn,{name:"chip"},Jn,Qn,{name:"checkbox"},{name:"radio"},tr,ir,sr,ur,pr,br,Er,Tr,xr,Lr,Ir,Dr,Br,Fr,zr,oa,ca,ha,ma,ya,wa,{name:"skeleton"},Ea,Ya,Fa,Va,{name:"elevation"},{name:"typography"},Ga]);var Ka,Ja=re,Xa={text:function(e){return null==e?"":e},noUndefinedProps:function(e){var t={};return Object.keys(e).forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t},isTrueProp:function(e){return!0===e||""===e},isStringProp:function(e){return"string"==typeof e&&""!==e},isObject:function(e){return"object"===O()(e)&&null!==e&&e.constructor&&e.constructor===Object},now:function(){return Date.now()},extend:function(){for(var e,t,n=!0,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];"boolean"==typeof i[0]?(n=i[0],e=i[1],i.splice(0,2),t=i):(e=i[0],i.splice(0,1),t=i);for(var o=0;o<t.length;o+=1){var s=i[o];if(null!=s)for(var l=Object.keys(Object(s)),c=0,u=l.length;c<u;c+=1){var d=l[c],h=Object.getOwnPropertyDescriptor(s,d);void 0!==h&&h.enumerable&&(n?Xa.isObject(e[d])&&Xa.isObject(s[d])?Xa.extend(e[d],s[d]):!Xa.isObject(e[d])&&Xa.isObject(s[d])?(e[d]={},Xa.extend(e[d],s[d])):e[d]=s[d]:e[d]=s[d])}}return e},flattenArray:function(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){Array.isArray(t)?e.push.apply(e,L()(Xa.flattenArray.apply(Xa,L()(t)))):e.push(t)})),e},classNames:function(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((function(t){"object"===O()(t)&&t.constructor===Object?Object.keys(t).forEach((function(n){t[n]&&e.push(n)})):t&&e.push(t)}));var i=[];return e.forEach((function(e){i.indexOf(e)<0&&i.push(e)})),i.join(" ")},bindMethods:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=0;n<t.length;n+=1)e[t[n]]&&(e[t[n]]=e[t[n]].bind(e))}},Qa=Xa,Za={colorProps:{color:String,colorTheme:String,textColor:String,bgColor:String,borderColor:String,rippleColor:String,themeDark:Boolean},colorClasses:function(e){var t,n=e.color,r=e.colorTheme,i=e.textColor,a=e.bgColor,o=e.borderColor,s=e.rippleColor;return t={"theme-dark":e.themeDark},K()(t,"color-".concat(n),n),K()(t,"color-theme-".concat(r),r),K()(t,"text-color-".concat(i),i),K()(t,"bg-color-".concat(a),a),K()(t,"border-color-".concat(o),o),K()(t,"ripple-color-".concat(s),s),t},linkIconProps:{icon:String,iconMaterial:String,iconF7:String,iconIos:String,iconMd:String,iconAurora:String,iconColor:String,iconSize:[String,Number]},linkRouterProps:{back:Boolean,external:Boolean,force:Boolean,animate:{type:Boolean,default:void 0},ignoreCache:Boolean,reloadCurrent:Boolean,reloadAll:Boolean,reloadPrevious:Boolean,reloadDetail:{type:Boolean,default:void 0},routeTabId:String,view:String,routeProps:Object,preventRouter:Boolean,transition:String},linkRouterAttrs:function(e){var t,n,r=e.force,i=e.reloadCurrent,a=e.reloadPrevious,o=e.reloadAll,s=e.reloadDetail,l=e.animate,c=e.ignoreCache,u=e.routeTabId,d=e.view,h=e.transition;return"animate"in e&&void 0!==l&&(t=l.toString()),"reloadDetail"in e&&void 0!==s&&(n=s.toString()),{"data-force":r||void 0,"data-reload-current":i||void 0,"data-reload-all":o||void 0,"data-reload-previous":a||void 0,"data-reload-detail":n,"data-animate":t,"data-ignore-cache":c||void 0,"data-route-tab-id":u||void 0,"data-view":Qa.isStringProp(d)?d:void 0,"data-transition":Qa.isStringProp(h)?h:void 0}},linkRouterClasses:function(e){var t=e.back,n=e.linkBack;return{back:t||n,external:e.external,"prevent-router":e.preventRouter}},linkActionsProps:{searchbarEnable:[Boolean,String],searchbarDisable:[Boolean,String],searchbarClear:[Boolean,String],searchbarToggle:[Boolean,String],panelOpen:[Boolean,String],panelClose:[Boolean,String],panelToggle:[Boolean,String],popupOpen:[Boolean,String],popupClose:[Boolean,String],actionsOpen:[Boolean,String],actionsClose:[Boolean,String],popoverOpen:[Boolean,String],popoverClose:[Boolean,String],loginScreenOpen:[Boolean,String],loginScreenClose:[Boolean,String],sheetOpen:[Boolean,String],sheetClose:[Boolean,String],sortableEnable:[Boolean,String],sortableDisable:[Boolean,String],sortableToggle:[Boolean,String],cardOpen:[Boolean,String],cardPreventOpen:[Boolean,String],cardClose:[Boolean,String],menuClose:{type:[Boolean,String],default:void 0}},linkActionsAttrs:function(e){var t=e.searchbarEnable,n=e.searchbarDisable,r=e.searchbarClear,i=e.searchbarToggle,a=e.panelOpen,o=e.panelClose,s=e.panelToggle,l=e.popupOpen,c=e.popupClose,u=e.actionsOpen,d=e.actionsClose,h=e.popoverOpen,f=e.popoverClose,p=e.loginScreenOpen,m=e.loginScreenClose,v=e.sheetOpen,g=e.sheetClose,y=e.sortableEnable,b=e.sortableDisable,_=e.sortableToggle,w=e.cardOpen,k=e.cardClose;return{"data-searchbar":Qa.isStringProp(t)&&t||Qa.isStringProp(n)&&n||Qa.isStringProp(r)&&r||Qa.isStringProp(i)&&i||void 0,"data-panel":Qa.isStringProp(a)&&a||Qa.isStringProp(o)&&o||Qa.isStringProp(s)&&s||void 0,"data-popup":Qa.isStringProp(l)&&l||Qa.isStringProp(c)&&c||void 0,"data-actions":Qa.isStringProp(u)&&u||Qa.isStringProp(d)&&d||void 0,"data-popover":Qa.isStringProp(h)&&h||Qa.isStringProp(f)&&f||void 0,"data-sheet":Qa.isStringProp(v)&&v||Qa.isStringProp(g)&&g||void 0,"data-login-screen":Qa.isStringProp(p)&&p||Qa.isStringProp(m)&&m||void 0,"data-sortable":Qa.isStringProp(y)&&y||Qa.isStringProp(b)&&b||Qa.isStringProp(_)&&_||void 0,"data-card":Qa.isStringProp(w)&&w||Qa.isStringProp(k)&&k||void 0}},linkActionsClasses:function(e){var t=e.searchbarEnable,n=e.searchbarDisable,r=e.searchbarClear,i=e.searchbarToggle,a=e.panelOpen,o=e.panelClose,s=e.panelToggle,l=e.popupOpen,c=e.popupClose,u=e.actionsClose,d=e.actionsOpen,h=e.popoverOpen,f=e.popoverClose,p=e.loginScreenOpen,m=e.loginScreenClose,v=e.sheetOpen,g=e.sheetClose,y=e.sortableEnable,b=e.sortableDisable,_=e.sortableToggle,w=e.cardOpen,k=e.cardPreventOpen,E=e.cardClose,S=e.menuClose;return{"searchbar-enable":t||""===t,"searchbar-disable":n||""===n,"searchbar-clear":r||""===r,"searchbar-toggle":i||""===i,"panel-close":o||""===o,"panel-open":a||""===a,"panel-toggle":s||""===s,"popup-close":c||""===c,"popup-open":l||""===l,"actions-close":u||""===u,"actions-open":d||""===d,"popover-close":f||""===f,"popover-open":h||""===h,"sheet-close":g||""===g,"sheet-open":v||""===v,"login-screen-close":m||""===m,"login-screen-open":p||""===p,"sortable-enable":y||""===y,"sortable-disable":b||""===b,"sortable-toggle":_||""===_,"card-close":E||""===E,"card-open":w||""===w,"card-prevent-open":k||""===k,"menu-close":S||""===S}}},eo=function(e){var t={},n=e.$props;Object.keys(n).forEach((function(e){void 0!==n[e]&&(t[e]=n[e])}));var r=[];return Object.keys(e.$slots).forEach((function(t){r.push.apply(r,L()(e.$slots[t]))})),t.children=r,t},to={props:Object.assign({id:[String,Number]},Za.colorProps),name:"f7-accordion-content",render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Qa.classNames(n,"accordion-item-content",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},no=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=e;t.split(" ").forEach((function(e){a.$emit.apply(a,[e].concat(r))}))},ro={name:"f7-accordion-item",props:Object.assign({id:[String,Number],opened:Boolean},Za.colorProps),created:function(){Qa.bindMethods(this,"onBeforeOpen onOpen onOpened onBeforeClose onClose onClosed".split(" "))},mounted:function(){var e=this,t=e.$refs.el;t&&(e.eventTargetEl=t,e.$f7ready((function(t){t.on("accordionBeforeOpen",e.onBeforeOpen),t.on("accordionOpen",e.onOpen),t.on("accordionOpened",e.onOpened),t.on("accordionBeforeClose",e.onBeforeClose),t.on("accordionClose",e.onClose),t.on("accordionClosed",e.onClosed)})))},beforeDestroy:function(){if(this.$refs.el&&this.$f7){var e=this.$f7;e.off("accordionBeforeOpen",this.onBeforeOpen),e.off("accordionOpen",this.onOpen),e.off("accordionOpened",this.onOpened),e.off("accordionBeforeClose",this.onBeforeClose),e.off("accordionClose",this.onClose),e.off("accordionClosed",this.onClosed),delete this.eventTargetEl}},render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.opened;return e("div",{style:i,class:Qa.classNames(n,"accordion-item",{"accordion-item-opened":a},Za.colorClasses(t)),ref:"el",attrs:{id:r}},[this.$slots.default])},methods:{onBeforeOpen:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("accordionBeforeOpen accordion:beforeopen",t)},onOpen:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordionOpen accordion:open")},onOpened:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordionOpened accordion:opened")},onBeforeClose:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("accordionBeforeClose accordion:beforeclose",t)},onClose:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordionClose accordion:close")},onClosed:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordionClosed accordion:closed")},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},io={props:Object.assign({id:[String,Number]},Za.colorProps),name:"f7-accordion-toggle",render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Qa.classNames(n,"accordion-item-toggle",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},ao={props:Object.assign({id:[String,Number],accordionOpposite:Boolean},Za.colorProps),name:"f7-accordion",render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.accordionOpposite;return e("div",{style:i,class:Qa.classNames(n,"accordion-list",a&&"accordion-opposite",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},oo={name:"f7-actions-button",props:Object.assign({id:[String,Number],bold:Boolean,close:{type:Boolean,default:!0}},Za.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.id,i=n.className,a=n.style,o=n.bold;return this.$slots.media&&this.$slots.media.length&&(e=t("div",{class:"actions-button-media"},[this.$slots.media])),t("div",{style:a,class:Qa.classNames(i,{"actions-button":!0,"actions-button-bold":o},Za.colorClasses(n)),ref:"el",attrs:{id:r}},[e,t("div",{class:"actions-button-text"},[this.$slots.default])])},created:function(){Qa.bindMethods(this,["onClick"])},mounted:function(){this.$refs.el.addEventListener("click",this.onClick)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick)},methods:{onClick:function(e){var t=this.$$,n=this.$refs.el;this.props.close&&this.$f7&&n&&this.$f7.actions.close(t(n).parents(".actions-modal")),this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},so={name:"f7-actions-group",props:Object.assign({id:[String,Number]},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Qa.classNames(n,"actions-group",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},lo={name:"f7-actions-label",props:Object.assign({id:[String,Number],bold:Boolean},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.bold;return e("div",{style:i,class:Qa.classNames(n,"actions-label",{"actions-button-bold":a},Za.colorClasses(t)),ref:"el",attrs:{id:r}},[this.$slots.default])},created:function(){Qa.bindMethods(this,["onClick"])},mounted:function(){this.$refs.el.addEventListener("click",this.onClick)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick)},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},co={name:"f7-actions",props:Object.assign({id:[String,Number],opened:Boolean,grid:Boolean,convertToPopover:Boolean,forceToPopover:Boolean,target:[String,Object],backdrop:Boolean,backdropEl:[String,Object,window.HTMLElement],closeByBackdropClick:Boolean,closeByOutsideClick:Boolean,closeOnEscape:Boolean},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.grid;return e("div",{style:i,ref:"el",class:Qa.classNames(n,"actions-modal",{"actions-grid":a},Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},watch:{"props.opened":function(e){this.f7Actions&&(e?this.f7Actions.open():this.f7Actions.close())}},created:function(){Qa.bindMethods(this,["onOpen","onOpened","onClose","onClosed"])},mounted:function(){var e=this,t=e.$refs.el;if(t){var n=e.props,r=n.grid,i=n.target,a=n.convertToPopover,o=n.forceToPopover,s=n.opened,l=n.closeByBackdropClick,c=n.closeByOutsideClick,u=n.closeOnEscape,d=n.backdrop,h=n.backdropEl,f={el:t,grid:r,on:{open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed}};i&&(f.targetEl=i);var p=e.$options.propsData;void 0!==p.convertToPopover&&(f.convertToPopover=a),void 0!==p.forceToPopover&&(f.forceToPopover=o),void 0!==p.backdrop&&(f.backdrop=d),void 0!==p.backdropEl&&(f.backdropEl=h),void 0!==p.closeByBackdropClick&&(f.closeByBackdropClick=l),void 0!==p.closeByOutsideClick&&(f.closeByOutsideClick=c),void 0!==p.closeOnEscape&&(f.closeOnEscape=u),e.$f7ready((function(){e.f7Actions=e.$f7.actions.create(f),s&&e.f7Actions.open(!1)}))}},beforeDestroy:function(){this.f7Actions&&this.f7Actions.destroy(),delete this.f7Actions},methods:{onOpen:function(e){this.dispatchEvent("actions:open actionsOpen",e)},onOpened:function(e){this.dispatchEvent("actions:opened actionsOpened",e)},onClose:function(e){this.dispatchEvent("actions:close actionsClose",e)},onClosed:function(e){this.dispatchEvent("actions:closed actionsClosed",e)},open:function(e){if(this.f7Actions)return this.f7Actions.open(e)},close:function(e){if(this.f7Actions)return this.f7Actions.close(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},uo={instance:null,Framework7:null,events:null,init:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=uo.events,i=uo.Framework7,a=Qa.extend({},t,{root:e});n&&n.length&&!a.routes&&(a.routes=n);var o=new i(a);Ka=o,o.initialized?(uo.instance=o,Ka=o,r.emit("ready",uo.instance)):o.on("init",(function(){uo.instance=o,Ka=o,r.emit("ready",uo.instance)}))},ready:function(e){e&&(uo.instance?e(uo.instance):uo.events.once("ready",e))},routers:{views:[],tabs:[],modals:null}},ho=uo,fo=function(e,t,n){var r,i=e;r="function"==typeof t?t(i.state,i.props):t,Object.keys(r).forEach((function(e){i.$set(i.state,e,r[e])})),"function"==typeof n&&n()},po={name:"f7-routable-modals",data:function(){return{state:{modals:[]}}},render:function(){var e=this.$createElement;return e("div",{ref:"el",class:"framework7-modals"},[this.state.modals.map((function(t){var n=t.component;return e(n,{key:t.id,props:t.props})}))])},updated:function(){this.routerData&&ho.events.emit("modalsRouterDidUpdate",this.routerData)},beforeDestroy:function(){this.routerData&&(ho.routers.modals=null,this.routerData=null,delete this.routerData)},mounted:function(){var e=this,t=e.$refs.el;e.routerData={modals:e.state.modals,el:t,component:e,setModals:function(t){e.setState({modals:t})}},ho.routers.modals=e.routerData},methods:{setState:function(e,t){fo(this,e,t)}}},mo={name:"f7-app",props:Object.assign({id:[String,Number],params:Object,routes:Array},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.className;return e("div",{ref:"el",style:r,class:Qa.classNames(i,"framework7-root",Za.colorClasses(t)),attrs:{id:n||"framework7-root"}},[this.$slots.default,e(po)])},mounted:function(){var e=this.props,t=e.params,n=void 0===t?{}:t,r=e.routes,i=this.$refs.el,a=i.parentNode;a&&a!==document.body&&a.parentNode===document.body&&(a.style.height="100%"),ho.instance||ho.init(i,n,r)},computed:{props:function(){return eo(this)}}},vo={name:"f7-appbar",props:Object.assign({id:[String,Number],noShadow:Boolean,noHairline:Boolean,inner:{type:Boolean,default:!0},innerClass:String,innerClassName:String},Za.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.inner,i=n.innerClass,a=n.innerClassName,o=n.className,s=n.id,l=n.style,c=n.noShadow,u=n.noHairline;return r&&(e=t("div",{class:Qa.classNames("appbar-inner",i,a)},[this.$slots.default])),t("div",{style:l,class:Qa.classNames(o,"appbar",{"no-shadow":c,"no-hairline":u},Za.colorClasses(n)),attrs:{id:s}},[this.$slots["before-inner"],e||this.$slots.default,this.$slots["after-inner"]])},computed:{props:function(){return eo(this)}}},go={name:"f7-badge",props:Object.assign({id:[String,Number]},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("span",{style:t.style,class:Qa.classNames(n,"badge",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},yo={name:"f7-block-footer",props:Object.assign({id:[String,Number]},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Qa.classNames(n,"block-footer",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},bo={name:"f7-block-header",props:Object.assign({id:[String,Number]},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Qa.classNames(n,"block-header",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},_o={name:"f7-block-title",props:Object.assign({id:[String,Number],large:Boolean,medium:Boolean},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.large,o=t.medium;return e("div",{style:i,class:Qa.classNames(n,"block-title",{"block-title-large":a,"block-title-medium":o},Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},wo={name:"f7-block",props:Object.assign({id:[String,Number],inset:Boolean,xsmallInset:Boolean,smallInset:Boolean,mediumInset:Boolean,largeInset:Boolean,xlargeInset:Boolean,strong:Boolean,tabs:Boolean,tab:Boolean,tabActive:Boolean,accordionList:Boolean,accordionOpposite:Boolean,noHairlines:Boolean,noHairlinesMd:Boolean,noHairlinesIos:Boolean,noHairlinesAurora:Boolean},Za.colorProps),created:function(){Qa.bindMethods(this,["onTabShow","onTabHide"])},mounted:function(){var e=this,t=e.$refs.el;t&&(e.eventTargetEl=t,e.$f7ready((function(t){t.on("tabShow",e.onTabShow),t.on("tabHide",e.onTabHide)})))},beforeDestroy:function(){this.$refs.el&&this.$f7&&(this.$f7.off("tabShow",this.onTabShow),this.$f7.off("tabHide",this.onTabHide),delete this.eventTargetEl)},render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.inset,i=t.xsmallInset,a=t.smallInset,o=t.mediumInset,s=t.largeInset,l=t.xlargeInset,c=t.strong,u=t.accordionList,d=t.accordionOpposite,h=t.tabs,f=t.tab,p=t.tabActive,m=t.noHairlines,v=t.noHairlinesIos,g=t.noHairlinesMd,y=t.noHairlinesAurora,b=t.id;return e("div",{style:t.style,class:Qa.classNames(n,"block",{inset:r,"xsmall-inset":i,"small-inset":a,"medium-inset":o,"large-inset":s,"xlarge-inset":l,"block-strong":c,"accordion-list":u,"accordion-opposite":d,tabs:h,tab:f,"tab-active":p,"no-hairlines":m,"no-hairlines-md":g,"no-hairlines-ios":v,"no-hairlines-aurora":y},Za.colorClasses(t)),ref:"el",attrs:{id:b}},[this.$slots.default])},methods:{onTabShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("tabShow tab:show",e)},onTabHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("tabHide tab:hide",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},ko={name:"f7-icon",props:Object.assign({id:[String,Number],material:String,f7:String,icon:String,ios:String,aurora:String,md:String,tooltip:String,tooltipTrigger:String,size:[String,Number]},Za.colorProps),data:function(){var e=this;eo(this);return{state:function(){var t=e,n=t.$f7;return n||t.$f7ready((function(){t.setState({_theme:t.$theme})})),{_theme:n?t.$theme:null}}()}},render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.size;return"number"!=typeof i&&parseFloat(i)!==1*i||(i="".concat(i,"px")),e("i",{ref:"el",style:Qa.extend({fontSize:i,width:i,height:i},r),class:this.classes,attrs:{id:n}},[this.iconTextComputed,this.$slots.default])},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},mounted:function(){var e=this,t=e.$refs.el;if(t){var n=e.props,r=n.tooltip,i=n.tooltipTrigger;r&&e.$f7ready((function(n){e.f7Tooltip=n.tooltip.create({targetEl:t,text:r,trigger:i})}))}},beforeDestroy:function(){this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)},computed:{iconTextComputed:function(){var e=this.props,t=e.material,n=e.f7,r=e.md,i=e.ios,a=e.aurora,o=this.state._theme,s=t||n;return r&&o&&o.md&&(r.indexOf("material:")>=0||r.indexOf("f7:")>=0)?s=r.split(":")[1]:i&&o&&o.ios&&(i.indexOf("material:")>=0||i.indexOf("f7:")>=0)?s=i.split(":")[1]:a&&o&&o.aurora&&(a.indexOf("material:")>=0||a.indexOf("f7:")>=0)&&(s=a.split(":")[1]),s},classes:function(){var e,t={icon:!0},n=this.props,r=this.state._theme,i=n.material,a=n.f7,o=n.icon,s=n.md,l=n.ios,c=n.aurora,u=n.className;if(r&&r.ios?e=l:r&&r.md?e=s:r&&r.aurora&&(e=c),e){var d=e.split(":"),h=d[0],f=d[1];"material"!==h&&"f7"!==h||(t["material-icons"]="material"===h,t["f7-icons"]="f7"===h),"icon"===h&&(t[f]=!0)}else t={icon:!0,"material-icons":i,"f7-icons":a},o&&(t[o]=!0);return Qa.classNames(u,t,Za.colorClasses(n))},props:function(){return eo(this)}},methods:{setState:function(e,t){fo(this,e,t)}}},Eo=function(e){if(!e)return e;var t="style class domProps slot key ref attrs on props".split(" ");return Object.keys(e).forEach((function(n){if("className"===n)return e.class=e.className,void delete e.className;if("dangerouslySetInnerHTML"===n)return e.domProps||(e.domProps={}),e.domProps.innerHTML=e[n],e.domProps.innerHTML&&e.domProps.innerHTML.__html&&(e.domProps.innerHTML=e.domProps.innerHTML.__html),void delete e.dangerouslySetInnerHTML;if(n.match(/^on?([A-Z])/)){e.on||(e.on={});var r=n.replace(/(^on?)([A-Z])/,(function(e,t,n){return n.toLowerCase()}));return e.on[r]=e[n],void delete e[n]}t.indexOf(n)>=0||(e.attrs||(e.attrs={}),e.attrs[n]||(e.attrs[n]=e[n],delete e[n]))})),e},So={name:"f7-button",props:Object.assign({id:[String,Number],text:String,tabLink:[Boolean,String],tabLinkActive:Boolean,type:String,href:{type:[String,Boolean],default:"#"},target:String,round:Boolean,roundMd:Boolean,roundIos:Boolean,roundAurora:Boolean,fill:Boolean,fillMd:Boolean,fillIos:Boolean,fillAurora:Boolean,large:Boolean,largeMd:Boolean,largeIos:Boolean,largeAurora:Boolean,small:Boolean,smallMd:Boolean,smallIos:Boolean,smallAurora:Boolean,raised:Boolean,raisedMd:Boolean,raisedIos:Boolean,raisedAurora:Boolean,outline:Boolean,outlineMd:Boolean,outlineIos:Boolean,outlineAurora:Boolean,active:Boolean,disabled:Boolean,tooltip:String,tooltipTrigger:String},Za.colorProps,{},Za.linkIconProps,{},Za.linkRouterProps,{},Za.linkActionsProps),render:function(){var e,t,n=this.$createElement,r=this.props,i=r.text,a=r.icon,o=r.iconMaterial,s=r.iconF7,l=r.iconMd,c=r.iconIos,u=r.iconAurora,d=r.iconColor,h=r.iconSize,f=r.id,p=r.style,m=r.type;return i&&(t=n("span",[i])),(a||o||s||l||c||u)&&(e=n(ko,{attrs:{material:o,f7:s,icon:a,md:l,ios:c,aurora:u,color:d,size:h}})),n("submit"===m||"reset"===m||"button"===m?"button":"a",Eo(Object.assign({ref:"el",style:p,class:this.classes},this.attrs,{attrs:{id:f}})),[e,t,this.$slots.default])},computed:{attrs:function(){var e=this.props,t=e.href,n=e.target,r=e.tabLink,i=e.type,a=t;return!0===t&&(a="#"),!1===t&&(a=void 0),Qa.extend({href:a,target:n,type:i,"data-tab":Qa.isStringProp(r)&&r||void 0},Za.linkRouterAttrs(e),Za.linkActionsAttrs(e))},classes:function(){var e=this.props,t=e.tabLink,n=e.tabLinkActive,r=e.round,i=e.roundIos,a=e.roundAurora,o=e.roundMd,s=e.fill,l=e.fillIos,c=e.fillAurora,u=e.fillMd,d=e.large,h=e.largeIos,f=e.largeAurora,p=e.largeMd,m=e.small,v=e.smallIos,g=e.smallAurora,y=e.smallMd,b=e.raised,_=e.raisedIos,w=e.raisedAurora,k=e.raisedMd,E=e.active,S=e.outline,T=e.outlineIos,C=e.outlineAurora,M=e.outlineMd,x=e.disabled,$=e.className;return Qa.classNames($,"button",{"tab-link":t||""===t,"tab-link-active":n,"button-round":r,"button-round-ios":i,"button-round-aurora":a,"button-round-md":o,"button-fill":s,"button-fill-ios":l,"button-fill-aurora":c,"button-fill-md":u,"button-large":d,"button-large-ios":h,"button-large-aurora":f,"button-large-md":p,"button-small":m,"button-small-ios":v,"button-small-aurora":g,"button-small-md":y,"button-raised":b,"button-raised-ios":_,"button-raised-aurora":w,"button-raised-md":k,"button-active":E,"button-outline":S,"button-outline-ios":T,"button-outline-aurora":C,"button-outline-md":M,disabled:x},Za.colorClasses(e),Za.linkRouterClasses(e),Za.linkActionsClasses(e))},props:function(){return eo(this)}},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},created:function(){Qa.bindMethods(this,["onClick"])},mounted:function(){var e=this,t=e.$refs.el;t.addEventListener("click",e.onClick);var n=e.props,r=n.tooltip,i=n.tooltipTrigger,a=n.routeProps;a&&(t.f7RouteProps=a),r&&e.$f7ready((function(n){e.f7Tooltip=n.tooltip.create({targetEl:t,text:r,trigger:i})}))},updated:function(){var e=this.$refs.el,t=this.props.routeProps;t&&(e.f7RouteProps=t)},beforeDestroy:function(){var e=this.$refs.el;e.removeEventListener("click",this.onClick),delete e.f7RouteProps,this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)}},To={name:"f7-card-content",props:Object.assign({id:[String,Number],padding:{type:Boolean,default:!0}},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.className,i=t.style,a=t.padding;return e("div",{style:i,class:Qa.classNames(r,"card-content",{"card-content-padding":a},Za.colorClasses(t)),attrs:{id:n}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},Co={name:"f7-card-footer",props:Object.assign({id:[String,Number]},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Qa.classNames(n,"card-footer",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},Mo={name:"f7-card-header",props:Object.assign({id:[String,Number]},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Qa.classNames(n,"card-header",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},xo={name:"f7-card",props:Object.assign({id:[String,Number],title:[String,Number],content:[String,Number],footer:[String,Number],outline:Boolean,expandable:Boolean,expandableAnimateWidth:Boolean,expandableOpened:Boolean,animate:{type:Boolean,default:void 0},hideNavbarOnOpen:{type:Boolean,default:void 0},hideToolbarOnOpen:{type:Boolean,default:void 0},hideStatusbarOnOpen:{type:Boolean,default:void 0},scrollableEl:{type:String,default:void 0},swipeToClose:{type:Boolean,default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},backdrop:{type:Boolean,default:void 0},backdropEl:{type:String,default:void 0},noShadow:Boolean,noBorder:Boolean,padding:{type:Boolean,default:!0}},Za.colorProps),watch:{"props.expandableOpened":function(e){e?this.open():this.close()}},created:function(){Qa.bindMethods(this,"onBeforeOpen onOpen onOpened onClose onClosed".split(" "))},mounted:function(){var e=this;if(e.props.expandable){var t=e.$refs.el;t&&(e.eventTargetEl=t,e.$f7ready((function(n){n.on("cardBeforeOpen",e.onBeforeOpen),n.on("cardOpen",e.onOpen),n.on("cardOpened",e.onOpened),n.on("cardClose",e.onClose),n.on("cardClosed",e.onClosed),e.props.expandable&&e.props.expandableOpened&&e.$f7.card.open(t,!1)})))}},beforeDestroy:function(){this.props.expandable&&(this.$refs.el&&this.$f7&&(this.$f7.off("cardBeforeOpen",this.onBeforeOpen),this.$f7.off("cardOpen",this.onOpen),this.$f7.off("cardOpened",this.onOpened),this.$f7.off("cardClose",this.onClose),this.$f7.off("cardClosed",this.onClosed),this.eventTargetEl=null,delete this.eventTargetEl))},render:function(){var e,t,n,r=this.$createElement,i=this.props,a=i.className,o=i.id,s=i.style,l=i.title,c=i.content,u=i.footer,d=i.padding,h=i.outline,f=i.expandable,p=i.expandableAnimateWidth,m=i.animate,v=i.hideNavbarOnOpen,g=i.hideToolbarOnOpen,y=i.hideStatusbarOnOpen,b=i.scrollableEl,_=i.swipeToClose,w=i.closeByBackdropClick,k=i.backdrop,E=i.backdropEl,S=i.noShadow,T=i.noBorder,C=Qa.classNames(a,"card",{"card-outline":h,"card-expandable":f,"card-expandable-animate-width":p,"no-shadow":S,"no-border":T},Za.colorClasses(i));return(l||this.$slots&&this.$slots.header)&&(e=r(Mo,[l,this.$slots.header])),(c||this.$slots&&this.$slots.content)&&(t=r(To,{attrs:{padding:d}},[c,this.$slots.content])),(u||this.$slots&&this.$slots.footer)&&(n=r(Co,[u,this.$slots.footer])),r("div",{style:s,class:C,ref:"el",attrs:{id:o,"data-animate":void 0===m?m:m.toString(),"data-hide-navbar-on-open":void 0===v?v:v.toString(),"data-hide-toolbar-on-open":void 0===g?g:g.toString(),"data-hide-statusbar-on-open":void 0===y?y:y.toString(),"data-scrollable-el":b,"data-swipe-to-close":void 0===_?_:_.toString(),"data-close-by-backdrop-click":void 0===w?w:w.toString(),"data-backdrop":void 0===k?k:k.toString(),"data-backdrop-el":E}},[e,t,n,this.$slots.default])},methods:{open:function(){this.$refs.el&&this.$f7.card.open(this.$refs.el)},close:function(){this.$refs.el&&this.$f7.card.close(this.$refs.el)},onBeforeOpen:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("cardBeforeOpen card:beforeopen",e,t)},onOpen:function(e){this.eventTargetEl===e&&this.dispatchEvent("cardOpen card:open",e)},onOpened:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("cardOpened card:opened",e,t)},onClose:function(e){this.eventTargetEl===e&&this.dispatchEvent("cardClose card:close",e)},onClosed:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("cardClosed card:closed",e,t)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},$o={name:"f7-checkbox",props:Object.assign({id:[String,Number],checked:Boolean,indeterminate:Boolean,name:[Number,String],value:[Number,String,Boolean],disabled:Boolean,readonly:Boolean,defaultChecked:Boolean},Za.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.name,i=n.value,a=n.disabled,o=n.readonly,s=n.checked,l=(n.defaultChecked,n.id),c=n.style;e=t("input",{ref:"inputEl",domProps:{value:i,disabled:a,readonly:o,checked:s},on:{change:this.onChange},attrs:{type:"checkbox",name:r}});var u=t("i",{class:"icon-checkbox"});return t("label",{style:c,class:this.classes,attrs:{id:l}},[e,u,this.$slots.default])},computed:{classes:function(){var e=this.props,t=e.className,n=e.disabled;return Qa.classNames(t,{checkbox:!0,disabled:n},Za.colorClasses(e))},props:function(){return eo(this)}},created:function(){Qa.bindMethods(this,["onChange"])},mounted:function(){var e=this.$refs.inputEl;this.props.indeterminate&&e&&(e.indeterminate=!0)},updated:function(){var e=this.$refs.inputEl,t=this.props.indeterminate;e&&(e.indeterminate=t)},methods:{onChange:function(e){this.dispatchEvent("change",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}}},Lo={name:"f7-chip",props:Object.assign({id:[String,Number],media:String,text:[String,Number],deleteable:Boolean,mediaBgColor:String,mediaTextColor:String,outline:Boolean},Za.colorProps,{},Za.linkIconProps),render:function(){var e,t,n,r,i=this.$createElement,a=this.props,o=a.media,s=a.text,l=a.deleteable,c=a.className,u=a.id,d=a.style,h=a.mediaTextColor,f=a.mediaBgColor,p=a.outline,m=a.icon,v=a.iconMaterial,g=a.iconF7,y=a.iconMd,b=a.iconIos,_=a.iconAurora,w=a.iconColor,k=a.iconSize;((m||v||g||y||b||_)&&(e=i(ko,{attrs:{material:v,f7:g,icon:m,md:y,ios:b,aurora:_,color:w,size:k}})),o||e||this.$slots&&this.$slots.media)&&(t=i("div",{class:Qa.classNames("chip-media",h&&"text-color-".concat(h),f&&"bg-color-".concat(f))},[e,o,this.$slots.media]));return(s||this.$slots&&this.$slots.text)&&(n=i("div",{class:"chip-label"},[s,this.$slots.text])),l&&(r=i("a",{ref:"deleteEl",class:"chip-delete"})),i("div",{ref:"el",style:d,class:Qa.classNames(c,"chip",{"chip-outline":p},Za.colorClasses(a)),attrs:{id:u}},[t,n,r])},created:function(){Qa.bindMethods(this,["onClick","onDeleteClick"])},mounted:function(){this.$refs.el.addEventListener("click",this.onClick),this.$refs.deleteEl&&this.$refs.deleteEl.addEventListener("click",this.onDeleteClick)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick),this.$refs.deleteEl&&this.$refs.deleteEl.removeEventListener("click",this.onDeleteClick)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onDeleteClick:function(e){this.dispatchEvent("delete",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},Po={name:"f7-col",props:Object.assign({id:[String,Number],tag:{type:String,default:"div"},width:{type:[Number,String],default:"auto"},xsmall:{type:[Number,String]},small:{type:[Number,String]},medium:{type:[Number,String]},large:{type:[Number,String]},xlarge:{type:[Number,String]},resizable:Boolean,resizableFixed:Boolean,resizableAbsolute:Boolean,resizableHandler:{type:Boolean,default:!0}},Za.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.className,i=n.id,a=n.style,o=n.tag,s=n.width,l=n.xsmall,c=n.small,u=n.medium,d=n.large,h=n.xlarge,f=n.resizable,p=n.resizableFixed,m=n.resizableAbsolute,v=n.resizableHandler;return t(o,{style:a,class:Qa.classNames(r,(e={col:"auto"===s},K()(e,"col-".concat(s),"auto"!==s),K()(e,"xsmall-".concat(l),l),K()(e,"small-".concat(c),c),K()(e,"medium-".concat(u),u),K()(e,"large-".concat(d),d),K()(e,"xlarge-".concat(h),h),K()(e,"resizable",f),K()(e,"resizable-fixed",p),K()(e,"resizable-absolute",m),e),Za.colorClasses(n)),ref:"el",attrs:{id:i}},[this.$slots.default,f&&v&&t("span",{class:"resize-handler"})])},created:function(){Qa.bindMethods(this,["onClick","onResize"])},mounted:function(){var e=this;e.eventTargetEl=e.$refs.el,e.eventTargetEl.addEventListener("click",e.onClick),e.$f7ready((function(t){t.on("gridResize",e.onResize)}))},beforeDestroy:function(){var e=this.$refs.el;e&&this.$f7&&(e.removeEventListener("click",this.onClick),this.$f7.off("gridResize",this.onResize),delete this.eventTargetEl)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onResize:function(e){e===this.eventTargetEl&&this.dispatchEvent("grid:resize gridResize")},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},Oo={name:"f7-fab-backdrop",props:{id:[String,Number]},render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Qa.classNames(n,"fab-backdrop"),attrs:{id:r}})},computed:{props:function(){return eo(this)}}},Io={name:"f7-fab-button",props:Object.assign({id:[String,Number],fabClose:Boolean,label:String,target:String,tooltip:String,tooltipTrigger:String},Za.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.className,i=n.id,a=n.style,o=n.fabClose,s=n.label,l=n.target,c=Qa.classNames(r,{"fab-close":o,"fab-label-button":s},Za.colorClasses(n));return s&&(e=t("span",{class:"fab-label"},[s])),t("a",{ref:"el",style:a,class:c,attrs:{id:i,target:l}},[this.$slots.default,e])},created:function(){Qa.bindMethods(this,["onClick"])},mounted:function(){var e=this;e.$refs.el.addEventListener("click",e.onClick);var t=e.props,n=t.tooltip,r=t.tooltipTrigger;n&&e.$f7ready((function(t){e.f7Tooltip=t.tooltip.create({targetEl:e.$refs.el,text:n,trigger:r})}))},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick),this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},computed:{props:function(){return eo(this)}}},Ao={name:"f7-fab-buttons",props:Object.assign({id:[String,Number],position:{type:String,default:"top"}},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.position;return e("div",{style:i,class:Qa.classNames(n,"fab-buttons","fab-buttons-".concat(a),Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},Do={name:"f7-fab",props:Object.assign({id:[String,Number],morphTo:String,href:[Boolean,String],target:String,text:String,position:{type:String,default:"right-bottom"},tooltip:String,tooltipTrigger:String},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.morphTo,o=t.href,s=t.position,l=t.text,c=t.target,u=o;!0===u&&(u="#"),!1===u&&(u=void 0);var d,h,f=[],p=[],m=this.$slots,v=m.link,g=m.default,y=m.root,b=m.text;if(g)for(var _=0;_<g.length;_+=1){var w=g[_],k=void 0;w.tag&&w.tag.indexOf("fab-buttons")>=0&&(k=!0),k?p.push(w):f.push(w)}return(l||b&&b.length)&&(d=e("div",{class:"fab-text"},[l||b])),(f.length||v&&v.length)&&(h=e("a",{ref:"linkEl",key:"f7-fab-link",attrs:{target:c,href:u}},[f,d,v])),e("div",{style:i,class:Qa.classNames(n,"fab","fab-".concat(s),{"fab-morph":a,"fab-extended":void 0!==d},Za.colorClasses(t)),attrs:{id:r,"data-morph-to":a}},[h,p,y])},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},created:function(){Qa.bindMethods(this,["onClick"])},mounted:function(){var e=this;e.$refs.linkEl&&e.$refs.linkEl.addEventListener("click",e.onClick);var t=e.props,n=t.tooltip,r=t.tooltipTrigger;n&&e.$f7ready((function(t){e.f7Tooltip=t.tooltip.create({targetEl:e.$refs.el,text:n,trigger:r})}))},beforeDestroy:function(){this.$refs.linkEl&&this.$refs.linkEl.removeEventListener("click",this.onClick),this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},No={props:{id:[String,Number],type:{type:String,default:"circle"},value:{type:[Number,String],default:0},size:{type:[Number,String],default:200},bgColor:{type:String,default:"transparent"},borderBgColor:{type:String,default:"#eeeeee"},borderColor:{type:String,default:"#000000"},borderWidth:{type:[Number,String],default:10},valueText:[Number,String],valueTextColor:{type:String,default:"#000000"},valueFontSize:{type:[Number,String],default:31},valueFontWeight:{type:[Number,String],default:500},labelText:String,labelTextColor:{type:String,default:"#888888"},labelFontSize:{type:[Number,String],default:14},labelFontWeight:{type:[Number,String],default:400}},name:"f7-gauge",render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.type,o=t.value,s=t.size,l=t.bgColor,c=t.borderBgColor,u=t.borderColor,d=t.borderWidth,h=t.valueText,f=t.valueTextColor,p=t.valueFontSize,m=t.valueFontWeight,v=t.labelText,g=t.labelTextColor,y=t.labelFontSize,b=t.labelFontWeight,_=Qa.classNames(n,"gauge"),w="semicircle"===a,k=s/2-d/2,E=2*Math.PI*k,S=Math.max(Math.min(o,1),0);return e("div",{style:i,class:_,attrs:{id:r}},[e("svg",{class:"gauge-svg",attrs:{width:"".concat(s,"px"),height:"".concat(w?s/2:s,"px"),viewBox:"0 0 ".concat(s," ").concat(w?s/2:s)}},[w&&e("path",{class:"gauge-back-semi",attrs:{d:"M".concat(s-d/2,",").concat(s/2," a1,1 0 0,0 -").concat(s-d,",0"),stroke:c,"stroke-width":d,fill:l||"none"}}),w&&e("path",{class:"gauge-front-semi",attrs:{d:"M".concat(s-d/2,",").concat(s/2," a1,1 0 0,0 -").concat(s-d,",0"),stroke:u,"stroke-width":d,"stroke-dasharray":E/2,"stroke-dashoffset":E/2*(1+S),fill:c?"none":l||"none"}}),!w&&c&&e("circle",{class:"gauge-back-circle",attrs:{stroke:c,"stroke-width":d,fill:l||"none",cx:s/2,cy:s/2,r:k}}),!w&&e("circle",{class:"gauge-front-circle",attrs:{transform:"rotate(-90 ".concat(s/2," ").concat(s/2,")"),stroke:u,"stroke-width":d,"stroke-dasharray":E,"stroke-dashoffset":E*(1-S),fill:c?"none":l||"none",cx:s/2,cy:s/2,r:k}}),h&&e("text",{class:"gauge-value-text",attrs:{x:"50%",y:w?"100%":"50%","font-weight":m,"font-size":p,fill:f,dy:w?v?-y-15:-5:0,"text-anchor":"middle","dominant-baseline":w?null:"middle"}},[h]),v&&e("text",{class:"gauge-label-text",attrs:{x:"50%",y:w?"100%":"50%","font-weight":b,"font-size":y,fill:g,dy:w?-5:h?p/2+10:0,"text-anchor":"middle","dominant-baseline":w?null:"middle"}},[v])])])},computed:{props:function(){return eo(this)}}},Ro={name:"f7-toggle",props:Object.assign({id:[String,Number],init:{type:Boolean,default:!0},checked:Boolean,defaultChecked:Boolean,disabled:Boolean,readonly:Boolean,name:String,value:[String,Number,Array]},Za.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.className,i=n.disabled,a=n.id,o=n.style,s=n.name,l=n.readonly,c=n.checked,u=(n.defaultChecked,n.value),d=Qa.classNames("toggle",r,{disabled:i},Za.colorClasses(n));return e=t("input",{ref:"inputEl",domProps:{disabled:i,readOnly:l,value:u,checked:c},on:{change:this.onChange},attrs:{type:"checkbox",name:s}}),t("label",{ref:"el",style:o,class:d,attrs:{id:a}},[e,t("span",{class:"toggle-icon"})])},watch:{"props.checked":function(e){this.f7Toggle&&(this.f7Toggle.checked=e)}},created:function(){Qa.bindMethods(this,["onChange"])},mounted:function(){var e=this;e.props.init&&e.$f7ready((function(t){e.f7Toggle=t.toggle.create({el:e.$refs.el,on:{change:function(t){e.dispatchEvent("toggle:change toggleChange",t.checked)}}})}))},beforeDestroy:function(){this.f7Toggle&&this.f7Toggle.destroy&&this.f7Toggle.$el&&this.f7Toggle.destroy()},methods:{toggle:function(){this.f7Toggle&&this.f7Toggle.toggle&&this.f7Toggle.toggle()},onChange:function(e){this.dispatchEvent("change",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},Bo={name:"f7-range",props:Object.assign({id:[String,Number],init:{type:Boolean,default:!0},value:{type:[Number,Array,String],default:0},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},label:{type:Boolean,default:!1},dual:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},verticalReversed:{type:Boolean,default:!1},draggableBar:{type:Boolean,default:!0},formatLabel:Function,scale:{type:Boolean,default:!1},scaleSteps:{type:Number,default:5},scaleSubSteps:{type:Number,default:0},formatScaleLabel:Function,limitKnobPosition:{type:Boolean,default:void 0},name:String,input:Boolean,inputId:String,disabled:Boolean},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=this.props,r=n.id,i=n.disabled,a=n.className,o=n.style,s=n.input,l=n.inputId,c=n.name,u=n.vertical,d=n.verticalReversed;return e("div",{ref:"el",style:o,class:Qa.classNames(a,"range-slider",{"range-slider-horizontal":!u,"range-slider-vertical":u,"range-slider-vertical-reversed":u&&d,disabled:i},Za.colorClasses(t)),attrs:{id:r}},[s&&e("input",{attrs:{type:"range",name:c,id:l}}),this.$slots.default])},watch:{"props.value":function(e){this.f7Range&&this.f7Range.setValue(e)}},mounted:function(){var e=this;e.$f7ready((function(t){if(e.props.init){var n=e.props,r=n.value,i=n.min,a=n.max,o=n.step,s=n.label,l=n.dual,c=n.draggableBar,u=n.vertical,d=n.verticalReversed,h=n.formatLabel,f=n.scale,p=n.scaleSteps,m=n.scaleSubSteps,v=n.formatScaleLabel,g=n.limitKnobPosition;e.f7Range=t.range.create(Qa.noUndefinedProps({el:e.$refs.el,value:r,min:i,max:a,step:o,label:s,dual:l,draggableBar:c,vertical:u,verticalReversed:d,formatLabel:h,scale:f,scaleSteps:p,scaleSubSteps:m,formatScaleLabel:v,limitKnobPosition:g,on:{change:function(t,n){e.dispatchEvent("range:change rangeChange",n)},changed:function(t,n){e.dispatchEvent("range:changed rangeChanged",n)}}}))}}))},beforeDestroy:function(){this.f7Range&&this.f7Range.destroy&&this.f7Range.destroy()},methods:{setValue:function(e){this.f7Range&&this.f7Range.setValue&&this.f7Range.setValue(e)},getValue:function(){if(this.f7Range&&this.f7Range.getValue)return this.f7Range.getValue()},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},Yo={name:"f7-text-editor",props:Object.assign({id:[String,Number]},Za.colorProps,{mode:{type:String,default:void 0},value:{type:String,default:void 0},buttons:Array,customButtons:Object,dividers:{type:Boolean,default:void 0},imageUrlText:{type:String,default:void 0},linkUrlText:{type:String,default:void 0},placeholder:{type:String,default:void 0},clearFormattingOnPaste:{type:Boolean,default:void 0},resizable:{type:Boolean,default:!1}}),created:function(){Qa.bindMethods(this,"onChange onInput onFocus onBlur onButtonClick onKeyboardOpen onKeyboardClose onPopoverOpen onPopoverClose".split(" "))},mounted:function(){var e=this,t=this.props,n=t.mode,r=t.value,i=t.buttons,a=t.customButtons,o=t.dividers,s=t.imageUrlText,l=t.linkUrlText,c=t.placeholder,u=t.clearFormattingOnPaste,d=Qa.noUndefinedProps({el:this.$refs.el,mode:n,value:r,buttons:i,customButtons:a,dividers:o,imageUrlText:s,linkUrlText:l,placeholder:c,clearFormattingOnPaste:u,on:{change:this.onChange,input:this.onInput,focus:this.onFocus,blur:this.onBlur,buttonClick:this.onButtonClick,keyboardOpen:this.onKeyboardOpen,keyboardClose:this.onKeyboardClose,popoverOpen:this.onPopoverOpen,popoverClose:this.onPopoverClose}});this.$f7ready((function(t){e.f7TextEditor=t.textEditor.create(d)}))},beforeDestroy:function(){this.f7TextEditor&&this.f7TextEditor.destroy&&this.f7TextEditor.destroy()},watch:{"props.value":function(){this.f7TextEditor&&this.f7TextEditor.setValue(this.props.value)}},render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.resizable;return e("div",{ref:"el",style:i,class:Qa.classNames(n,"text-editor",a&&"text-editor-resizable",Za.colorClasses(t)),attrs:{id:r}},[this.$slots["root-start"],e("div",{class:"text-editor-content",attrs:{contenteditable:!0}},[this.$slots.default]),this.$slots["root-end"],this.$slots.root])},methods:{onChange:function(e,t){this.dispatchEvent("texteditor:change textEditorChange",t)},onInput:function(){this.dispatchEvent("texteditor:change textEditorChange")},onFocus:function(){this.dispatchEvent("texteditor:focus textEditorFocus")},onBlur:function(){this.dispatchEvent("texteditor:blur textEditorBlur")},onButtonClick:function(e,t){this.dispatchEvent("texteditor:buttonclick textEditorButtonClick",t)},onKeyboardOpen:function(){this.dispatchEvent("texteditor:keyboardopen textEditorKeyboardOpen")},onKeyboardClose:function(){this.dispatchEvent("texteditor:keyboardclose textEditorKeyboardClose")},onPopoverOpen:function(){this.dispatchEvent("texteditor:popoveropen textEditorPopoverOpen")},onPopoverClose:function(){this.dispatchEvent("texteditor:popoverclose textEditorPopoverClose")},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},jo={name:"f7-input",props:Object.assign({type:String,name:String,value:[String,Number,Array,Date,Object],defaultValue:[String,Number,Array],inputmode:String,placeholder:String,id:[String,Number],inputId:[String,Number],size:[String,Number],accept:[String,Number],autocomplete:[String],autocorrect:[String],autocapitalize:[String],spellcheck:[String],autofocus:Boolean,autosave:String,checked:Boolean,disabled:Boolean,max:[String,Number],min:[String,Number],step:[String,Number],maxlength:[String,Number],minlength:[String,Number],multiple:Boolean,readonly:Boolean,required:Boolean,inputStyle:[String,Object],pattern:String,validate:[Boolean,String],validateOnBlur:Boolean,onValidate:Function,tabindex:[String,Number],resizable:Boolean,clearButton:Boolean,noFormStoreData:Boolean,noStoreData:Boolean,ignoreStoreData:Boolean,errorMessage:String,errorMessageForce:Boolean,info:String,outline:Boolean,wrap:{type:Boolean,default:!0},dropdown:{type:[String,Boolean],default:"auto"},calendarParams:Object,colorPickerParams:Object,textEditorParams:Object},Za.colorProps),data:function(){eo(this);return{state:{inputFocused:!1,inputInvalid:!1}}},render:function(){var e,t=this.$createElement,n=this,r=n.props,i=r.type,a=r.name,o=r.value,s=r.defaultValue,l=r.inputmode,c=r.placeholder,u=r.id,d=r.inputId,h=r.size,f=r.accept,p=r.autocomplete,m=r.autocorrect,v=r.autocapitalize,g=r.spellcheck,y=r.autofocus,b=r.autosave,_=r.checked,w=r.disabled,k=r.max,E=r.min,S=r.step,T=r.maxlength,C=r.minlength,M=r.multiple,x=r.readonly,$=r.required,L=r.inputStyle,P=r.pattern,O=r.validate,I=r.validateOnBlur,A=r.tabindex,D=r.resizable,N=r.clearButton,R=r.errorMessage,B=r.errorMessageForce,Y=r.info,j=r.wrap,F=r.dropdown,H=r.style,U=r.className,z=r.noStoreData,V=r.noFormStoreData,q=r.ignoreStoreData,W=r.outline,G=r.textEditorParams,K=n.domValue(),J=n.inputHasValue(),X=function(e,u){var N="file"!==i&&"datepicker"!==i&&"colorpicker"!==i,Y="input"===e,F=i;"datepicker"!==F&&"colorpicker"!==F||(F="text");var H,W=Qa.classNames(!j&&U,{resizable:"textarea"===F&&D,"no-store-data":V||z||q,"input-invalid":R&&B||n.state.inputInvalid,"input-with-value":J,"input-focused":n.state.inputFocused});N&&(H=void 0!==o?o:K);var G={};return"datepicker"!==i&&"colorpicker"!==i&&("value"in r&&(G.value=H),"defaultValue"in r&&(G.defaultValue=s)),t(e,{ref:"inputEl",style:L,class:W,domProps:Object.assign({checked:_,disabled:w,readOnly:x,multiple:M,required:$},G),on:{focus:n.onFocus,blur:n.onBlur,input:n.onInput,change:n.onChange},attrs:{name:a,type:Y?F:void 0,placeholder:c,inputmode:l,id:d,size:h,accept:f,autocomplete:p,autocorrect:m,autocapitalize:v,spellcheck:g,autofocus:y,autoSave:b,max:k,maxlength:T,min:E,minlength:C,step:S,pattern:P,validate:"string"==typeof O&&O.length?O:void 0,"data-validate":!0===O||""===O||!0===I||""===I||void 0,"data-validate-on-blur":!0===I||""===I||void 0,tabindex:A,"data-error-message":B?void 0:R}},[u])},Q=n.$slots,Z=Q.default,ee=Q.info;if(e="select"===i||"textarea"===i||"file"===i?"select"===i?X("select",Z):X("file"===i?"input":"textarea"):Z&&Z.length>0||!i?Z:"toggle"===i?t(Ro,{on:{change:n.onChange},attrs:{checked:_,readonly:x,name:a,value:o,disabled:w,id:d}}):"range"===i?t(Bo,{on:{rangeChange:n.onChange},attrs:{value:o,disabled:w,min:E,max:k,step:S,name:a,id:d,input:!0}}):"texteditor"===i?t(Yo,Eo(Object.assign({},G,{on:{textEditorFocus:n.onFocus,textEditorBlur:n.onBlur,textEditorInput:n.onInput,textEditorChange:n.onChange},attrs:{value:o,resizable:D,placeholder:c}}))):X("input"),j){var te=Qa.classNames(U,"input",{"input-outline":W,"input-dropdown":"auto"===F?"select"===i:F},Za.colorClasses(r));return t("div",{class:te,style:H,attrs:{id:u}},[e,R&&B&&t("div",{class:"input-error-message"},[R]),N&&t("span",{class:"input-clear-button"}),(Y||ee&&ee.length)&&t("div",{class:"input-info"},[Y,this.$slots.info])])}return e},watch:{"props.value":function(){var e=this.props.type;"range"!==e&&"toggle"!==e&&this.$f7&&(this.updateInputOnDidUpdate=!0,this.f7Calendar&&this.f7Calendar.setValue(this.props.value),this.f7ColorPicker&&this.f7ColorPicker.setValue(this.props.value))}},created:function(){Qa.bindMethods(this,"onFocus onBlur onInput onChange onTextareaResize onInputNotEmpty onInputEmpty onInputClear".split(" "))},mounted:function(){var e=this;e.$f7ready((function(t){var n=e.props,r=n.validate,i=n.validateOnBlur,a=n.resizable,o=n.type,s=n.clearButton,l=n.value,c=n.defaultValue,u=n.calendarParams,d=n.colorPickerParams;if("range"!==o&&"toggle"!==o){var h=e.$refs.inputEl;h&&(h.addEventListener("input:notempty",e.onInputNotEmpty,!1),"textarea"===o&&a&&h.addEventListener("textarea:resize",e.onTextareaResize,!1),s&&(h.addEventListener("input:empty",e.onInputEmpty,!1),h.addEventListener("input:clear",e.onInputClear,!1)),"datepicker"===o&&(e.f7Calendar=t.calendar.create(Object.assign({inputEl:h,value:l,on:{change:function(t,n){e.dispatchEvent("calendar:change calendarChange",n)}}},u||{}))),"colorpicker"===o&&(e.f7ColorPicker=t.colorPicker.create(Object.assign({inputEl:h,value:l,on:{change:function(t,n){e.dispatchEvent("colorpicker:change colorPickerChange",n)}}},d||{}))),t.input.checkEmptyState(h),i||""===i||!r&&""!==r||!(null!=l&&""!==l||null!=c&&""!==c)||setTimeout((function(){e.validateInput(h)}),0),a&&t.input.resizeTextarea(h))}}))},updated:function(){var e=this.props,t=e.validate,n=e.validateOnBlur,r=e.resizable,i=this.$f7;if(i&&this.updateInputOnDidUpdate){var a=this.$refs.inputEl;if(!a)return;this.updateInputOnDidUpdate=!1,i.input.checkEmptyState(a),t&&!n&&this.validateInput(a),r&&i.input.resizeTextarea(a)}},beforeDestroy:function(){var e=this.props,t=e.type,n=e.resizable,r=e.clearButton;if("range"!==t&&"toggle"!==t){var i=this.$refs.inputEl;i&&(i.removeEventListener("input:notempty",this.onInputNotEmpty,!1),"textarea"===t&&n&&i.removeEventListener("textarea:resize",this.onTextareaResize,!1),r&&(i.removeEventListener("input:empty",this.onInputEmpty,!1),i.removeEventListener("input:clear",this.onInputClear,!1)),this.f7Calendar&&this.f7Calendar.destroy&&this.f7Calendar.destroy(),this.f7ColorPicker&&this.f7ColorPicker.destroy&&this.f7ColorPicker.destroy(),delete this.f7Calendar,delete this.f7ColorPicker)}},methods:{domValue:function(){var e=this.$refs.inputEl;if(e)return e.value},inputHasValue:function(){var e=this.props,t=e.value;if("datepicker"===e.type&&Array.isArray(t)&&0===t.length)return!1;var n=this.domValue();return void 0===t?n||0===n:t||0===t},validateInput:function(e){if(this.$f7&&e){var t=e.validity;if(t){var n=this.props.onValidate;t.valid?!1!==this.state.inputInvalid&&(n&&n(!0),this.setState({inputInvalid:!1})):(n&&n(!1),!0!==this.state.inputInvalid&&this.setState({inputInvalid:!0}))}}},onTextareaResize:function(e){this.dispatchEvent("textarea:resize textareaResize",e)},onInputNotEmpty:function(e){this.dispatchEvent("input:notempty inputNotEmpty",e)},onInputEmpty:function(e){this.dispatchEvent("input:empty inputEmpty",e)},onInputClear:function(e){this.dispatchEvent("input:clear inputClear",e)},onInput:function(){for(var e=this,t=e.props,n=t.validate,r=t.validateOnBlur,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];e.dispatchEvent.apply(e,["input"].concat(a)),!r&&""!==r&&(n||""===n)&&e.$refs&&e.$refs.inputEl&&e.validateInput(e.$refs.inputEl)},onFocus:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["focus"].concat(t)),this.setState({inputFocused:!0})},onBlur:function(){for(var e=this,t=e.props,n=t.validate,r=t.validateOnBlur,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];e.dispatchEvent.apply(e,["blur"].concat(a)),(n||""===n||r||""===r)&&e.$refs&&e.$refs.inputEl&&e.validateInput(e.$refs.inputEl),e.setState({inputFocused:!1})},onChange:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["change"].concat(t)),"texteditor"===this.props.type&&this.dispatchEvent("texteditor:change textEditorChange",t[1])},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))},setState:function(e,t){fo(this,e,t)}},computed:{props:function(){return eo(this)}}},Fo={name:"f7-link",props:Object.assign({id:[String,Number],noLinkClass:Boolean,text:String,tabLink:[Boolean,String],tabLinkActive:Boolean,tabbarLabel:Boolean,iconOnly:Boolean,badge:[String,Number],badgeColor:[String],iconBadge:[String,Number],href:{type:[String,Boolean],default:"#"},target:String,tooltip:String,tooltipTrigger:String,smartSelect:Boolean,smartSelectParams:Object},Za.colorProps,{},Za.linkIconProps,{},Za.linkRouterProps,{},Za.linkActionsProps),data:function(){return{state:{isTabbarLabel:eo(this).tabbarLabel}}},render:function(){var e,t,n,r,i=this.$createElement,a=this,o=a.props,s=o.text,l=o.badge,c=o.badgeColor,u=o.iconOnly,d=o.iconBadge,h=o.icon,f=o.iconColor,p=o.iconSize,m=o.iconMaterial,v=o.iconF7,g=o.iconMd,y=o.iconIos,b=o.iconAurora,_=o.id,w=o.style,k=a.$slots.default||[];return Object.keys(a.$slots).forEach((function(e){void 0!==a.$slots[e]&&"default"!==e&&a.$slots[e].forEach((function(e){return k.push(e)}))})),s&&(l&&(n=i(go,{attrs:{color:c}},[l])),t=i("span",{class:a.state.isTabbarLabel?"tabbar-label":""},[s,n])),(h||m||v||g||y||b)&&(d&&(r=i(go,{attrs:{color:c}},[d])),e=i(ko,{attrs:{material:m,f7:v,icon:h,md:g,ios:y,aurora:b,color:f,size:p}},[r])),u||!s&&k&&0===k.length||!s&&!k?a.iconOnlyComputed=!0:a.iconOnlyComputed=!1,i("a",Eo(Object.assign({ref:"el",style:w,class:a.classes},a.attrs,{attrs:{id:_}})),[e,t,k])},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},created:function(){Qa.bindMethods(this,["onClick"])},mounted:function(){var e=this,t=e.$refs.el;t.addEventListener("click",e.onClick);var n=e.props,r=n.tabbarLabel,i=n.tabLink,a=n.tooltip,o=n.tooltipTrigger,s=n.smartSelect,l=n.smartSelectParams,c=n.routeProps,u=!1;(r||(i||""===i)&&e.$$(t).parents(".tabbar-labels").length)&&(u=!0),e.setState({isTabbarLabel:u}),c&&(t.f7RouteProps=c),e.$f7ready((function(n){if(s){var r=Qa.extend({el:t},l||{});e.f7SmartSelect=n.smartSelect.create(r)}a&&(e.f7Tooltip=n.tooltip.create({targetEl:t,text:a,trigger:o}))}))},updated:function(){var e=this.$refs.el,t=this.props.routeProps;t&&(e.f7RouteProps=t)},beforeDestroy:function(){var e=this.$refs.el;e.removeEventListener("click",this.onClick),delete e.f7RouteProps,this.f7SmartSelect&&this.f7SmartSelect.destroy&&this.f7SmartSelect.destroy(),this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)},computed:{attrs:function(){var e=this.props,t=e.href,n=e.target,r=e.tabLink,i=t;return!0===t&&(i="#"),!1===t&&(i=void 0),Qa.extend({href:i,target:n,"data-tab":Qa.isStringProp(r)&&r||void 0},Za.linkRouterAttrs(e),Za.linkActionsAttrs(e))},classes:function(){var e=this.props,t=e.tabLink,n=e.tabLinkActive,r=e.noLinkClass,i=e.smartSelect,a=e.className;return Qa.classNames(a,{link:!(r||this.state.isTabbarLabel),"icon-only":this.iconOnlyComputed,"tab-link":t||""===t,"tab-link-active":n,"smart-select":i},Za.colorClasses(e),Za.linkRouterClasses(e),Za.linkActionsClasses(e))},props:function(){return eo(this)}},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))},setState:function(e,t){fo(this,e,t)}}},Ho={name:"f7-list-button",props:Object.assign({id:[String,Number],title:[String,Number],text:[String,Number],tabLink:[Boolean,String],tabLinkActive:Boolean,link:[Boolean,String],href:[Boolean,String],target:String,tooltip:String,tooltipTrigger:String},Za.colorProps,{},Za.linkRouterProps,{},Za.linkActionsProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.title,o=t.text;return e("li",{style:i,class:n,attrs:{id:r}},[e("a",Eo(Object.assign({class:this.classes},this.attrs,{ref:"linkEl"})),[this.$slots.default||[a||o]])])},computed:{attrs:function(){var e=this.props,t=e.link,n=e.href,r=e.target,i=e.tabLink;return Qa.extend({href:"boolean"==typeof t&&"boolean"==typeof n?"#":t||n,target:r,"data-tab":Qa.isStringProp(i)&&i},Za.linkRouterAttrs(e),Za.linkActionsAttrs(e))},classes:function(){var e=this.props,t=e.tabLink,n=e.tabLinkActive;return Qa.classNames({"list-button":!0,"tab-link":t||""===t,"tab-link-active":n},Za.colorClasses(e),Za.linkRouterClasses(e),Za.linkActionsClasses(e))},props:function(){return eo(this)}},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},created:function(){Qa.bindMethods(this,["onClick"])},mounted:function(){var e=this,t=e.$refs.linkEl,n=e.props,r=n.routeProps,i=n.tooltip,a=n.tooltipTrigger;r&&(t.f7RouteProps=r),t.addEventListener("click",e.onClick),e.$f7ready((function(n){i&&(e.f7Tooltip=n.tooltip.create({targetEl:t,text:i,trigger:a}))}))},updated:function(){var e=this.$refs.linkEl,t=this.props.routeProps;t&&(e.f7RouteProps=t)},beforeDestroy:function(){var e=this.$refs.linkEl;e.removeEventListener("click",this.onClick),delete e.f7RouteProps,this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}}},Uo={name:"f7-list-group",props:Object.assign({id:[String,Number],mediaList:Boolean,sortable:Boolean,sortableOpposite:Boolean,sortableTapHold:Boolean,sortableMoveElements:{type:Boolean,default:void 0}},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.mediaList,o=t.sortable,s=t.sortableOpposite,l=t.sortableTapHold,c=t.sortableMoveElements;return e("div",{style:i,class:Qa.classNames(n,"list-group",{"media-list":a,sortable:o,"sortable-tap-hold":l,"sortable-opposite":s},Za.colorClasses(t)),attrs:{id:r,"data-sortable-move-elements":void 0!==c?c.toString():void 0}},[e("ul",[this.$slots.default])])},computed:{props:function(){return eo(this)}}},zo={name:"f7-list-index",props:Object.assign({id:[String,Number],init:{type:Boolean,default:!0},listEl:[String,Object],indexes:{type:[String,Array],default:"auto"},scrollList:{type:Boolean,default:!0},label:{type:Boolean,default:!1},iosItemHeight:{type:Number,default:14},mdItemHeight:{type:Number,default:14},auroraItemHeight:{type:Number,default:14}},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{ref:"el",style:t.style,class:Qa.classNames(n,"list-index",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},beforeDestroy:function(){this.props.init&&this.f7ListIndex&&this.f7ListIndex.destroy&&this.f7ListIndex.destroy()},mounted:function(){var e=this;e.props.init&&e.$f7ready((function(t){var n=e.$refs.el,r=e.props,i=r.listEl,a=r.indexes,o=r.iosItemHeight,s=r.mdItemHeight,l=r.auroraItemHeight,c=r.scrollList,u=r.label;e.f7ListIndex=t.listIndex.create({el:n,listEl:i,indexes:a,iosItemHeight:o,mdItemHeight:s,auroraItemHeight:l,scrollList:c,label:u,on:{select:function(t,n,r){e.dispatchEvent("listindex:select listIndexSelect",n,r)}}})}))},watch:{"props.indexes":function(){this.f7ListIndex&&(this.f7ListIndex.params.indexes=this.props.indexes,this.update())}},methods:{update:function(){this.f7ListIndex&&this.f7ListIndex.update()},scrollListToIndex:function(e){this.f7ListIndex&&this.f7ListIndex.scrollListToIndex(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},Vo={name:"f7-list-input",props:Object.assign({id:[String,Number],sortable:{type:Boolean,default:void 0},media:String,dropdown:{type:[String,Boolean],default:"auto"},wrap:{type:Boolean,default:!0},input:{type:Boolean,default:!0},type:{type:String,default:"text"},name:String,value:[String,Number,Array,Date,Object],defaultValue:[String,Number,Array],inputmode:String,readonly:Boolean,required:Boolean,disabled:Boolean,placeholder:String,inputId:[String,Number],size:[String,Number],accept:[String,Number],autocomplete:[String],autocorrect:[String],autocapitalize:[String],spellcheck:[String],autofocus:Boolean,autosave:String,max:[String,Number],min:[String,Number],step:[String,Number],maxlength:[String,Number],minlength:[String,Number],multiple:Boolean,inputStyle:[String,Object],pattern:String,validate:[Boolean,String],validateOnBlur:Boolean,onValidate:Function,tabindex:[String,Number],resizable:Boolean,clearButton:Boolean,noFormStoreData:Boolean,noStoreData:Boolean,ignoreStoreData:Boolean,errorMessage:String,errorMessageForce:Boolean,info:String,outline:Boolean,label:[String,Number],inlineLabel:Boolean,floatingLabel:Boolean,calendarParams:Object,colorPickerParams:Object,textEditorParams:Object},Za.colorProps),data:function(){return{state:{isSortable:eo(this).sortable,inputFocused:!1,inputInvalid:!1}}},render:function(){var e,t=this.$createElement,n=this,r=n.state,i=r.inputFocused,a=r.inputInvalid,o=n.props,s=o.id,l=o.style,c=o.className,u=o.sortable,d=o.media,h=o.dropdown,f=o.input,p=o.wrap,m=o.type,v=o.name,g=o.value,y=o.defaultValue,b=o.readonly,_=o.required,w=o.disabled,k=o.inputmode,E=o.placeholder,S=o.inputId,T=o.size,C=o.accept,M=o.autocomplete,x=o.autocorrect,$=o.autocapitalize,L=o.spellcheck,P=o.autofocus,O=o.autosave,I=o.max,A=o.min,D=o.step,N=o.maxlength,R=o.minlength,B=o.multiple,Y=o.inputStyle,j=o.pattern,F=o.validate,H=o.validateOnBlur,U=o.tabindex,z=o.resizable,V=o.clearButton,q=o.noFormStoreData,W=o.noStoreData,G=o.ignoreStoreData,K=o.errorMessage,J=o.errorMessageForce,X=o.info,Q=o.outline,Z=o.label,ee=o.inlineLabel,te=o.floatingLabel,ne=o.textEditorParams,re=n.domValue(),ie=n.inputHasValue(),ae=u||n.state.isSortable,oe=function(e,r){var s="file"!==m&&"datepicker"!==m&&"colorpicker"!==m,l="input"===e,c=m;"datepicker"!==c&&"colorpicker"!==c||(c="text");var u,d=Qa.classNames({resizable:"textarea"===c&&z,"no-store-data":q||W||G,"input-invalid":K&&J||a,"input-with-value":ie,"input-focused":i});s&&(u=void 0!==g?g:re);var h={};return"datepicker"!==m&&"colorpicker"!==m&&("value"in o&&(h.value=u),"defaultValue"in o&&(h.defaultValue=y)),t(e,{ref:"inputEl",style:Y,class:d,domProps:Object.assign({disabled:w,readOnly:b,multiple:B,required:_},h),on:{focus:n.onFocus,blur:n.onBlur,input:n.onInput,change:n.onChange},attrs:{name:v,type:l?c:void 0,placeholder:E,inputmode:k,id:S,size:T,accept:C,autocomplete:M,autocorrect:x,autocapitalize:$,spellcheck:L,autofocus:P,autoSave:O,max:I,maxlength:N,min:A,minlength:R,step:D,pattern:j,validate:"string"==typeof F&&F.length?F:void 0,"data-validate":!0===F||""===F||!0===H||""===H||void 0,"data-validate-on-blur":!0===H||""===H||void 0,tabindex:U,"data-error-message":J?void 0:K}},[r])};f&&(e="select"===m||"textarea"===m||"file"===m?"select"===m?oe("select",n.$slots.default):oe("file"===m?"input":"textarea"):"texteditor"===m?t(Yo,Eo(Object.assign({},ne,{on:{textEditorFocus:n.onFocus,textEditorBlur:n.onBlur,textEditorInput:n.onInput,textEditorChange:n.onChange},attrs:{value:g,resizable:z,placeholder:E}}))):oe("input"));var se=!!K||n.$slots["error-message"]&&n.$slots["error-message"].length,le=t("div",{ref:"itemContentEl",class:Qa.classNames("item-content item-input",!p&&c,!p&&{disabled:w},!p&&Za.colorClasses(o),{"inline-label":ee,"item-input-outline":Q,"item-input-focused":i,"item-input-with-info":!!X||n.$slots.info&&n.$slots.info.length,"item-input-with-value":ie,"item-input-with-error-message":se&&J||a,"item-input-invalid":se&&J||a})},[this.$slots["content-start"],(d||n.$slots.media)&&t("div",{class:"item-media"},[d&&t("img",{attrs:{src:d}}),this.$slots.media]),t("div",{class:"item-inner"},[this.$slots["inner-start"],(Z||n.$slots.label)&&t("div",{class:Qa.classNames("item-title item-label",{"item-floating-label":te})},[Z,this.$slots.label]),t("div",{class:Qa.classNames("item-input-wrap",{"input-dropdown":"auto"===h?"select"===m:h})},[e,this.$slots.input,se&&J&&t("div",{class:"item-input-error-message"},[K,this.$slots["error-message"]]),V&&t("span",{class:"input-clear-button"}),(X||n.$slots.info)&&t("div",{class:"item-input-info"},[X,this.$slots.info])]),this.$slots.inner,this.$slots["inner-end"]]),this.$slots.content,this.$slots["content-end"]]);return p?t("li",{ref:"el",style:l,class:Qa.classNames(c,{disabled:w},Za.colorClasses(o)),attrs:{id:s}},[this.$slots["root-start"],le,ae&&t("div",{class:"sortable-handler"}),this.$slots.root,this.$slots["root-end"]]):le},watch:{"props.value":function(){this.$f7&&(this.updateInputOnDidUpdate=!0,this.f7Calendar&&this.f7Calendar.setValue(this.props.value),this.f7ColorPicker&&this.f7ColorPicker.setValue(this.props.value))}},created:function(){Qa.bindMethods(this,"onChange onInput onFocus onBlur onTextareaResize onInputNotEmpty onInputEmpty onInputClear".split(" "))},mounted:function(){var e=this,t=e.$refs.el,n=e.$refs.itemContentEl;(t||n)&&(e.$f7ready((function(t){var n=e.props,r=n.validate,i=n.validateOnBlur,a=n.resizable,o=n.value,s=n.defaultValue,l=n.type,c=n.calendarParams,u=n.colorPickerParams,d=e.$refs.inputEl;d&&(d.addEventListener("input:notempty",e.onInputNotEmpty,!1),d.addEventListener("textarea:resize",e.onTextareaResize,!1),d.addEventListener("input:empty",e.onInputEmpty,!1),d.addEventListener("input:clear",e.onInputClear,!1),"datepicker"===l&&(e.f7Calendar=t.calendar.create(Object.assign({inputEl:d,value:o,on:{change:function(t,n){e.dispatchEvent("calendar:change calendarChange",n)}}},c||{}))),"colorpicker"===l&&(e.f7ColorPicker=t.colorPicker.create(Object.assign({inputEl:d,value:o,on:{change:function(t,n){e.dispatchEvent("colorpicker:change colorPickerChange",n)}}},u||{}))),i||""===i||!r&&""!==r||!(null!=o&&""!==o||null!=s&&""!==s)||setTimeout((function(){e.validateInput(d)}),0),"textarea"===l&&a&&t.input.resizeTextarea(d))})),e.$listEl=e.$$(t||n).parents(".list, .list-group").eq(0),e.$listEl.length&&e.setState({isSortable:e.$listEl.hasClass("sortable")}))},updated:function(){var e=this.$listEl;if(e&&(!e||0!==e.length)){var t=e.hasClass("sortable");t!==this.state.isSortable&&this.setState({isSortable:t});var n=this.props,r=n.validate,i=n.validateOnBlur,a=n.resizable,o=n.type,s=this.$f7;if(s&&this.updateInputOnDidUpdate){var l=this.$refs.inputEl;if(!l)return;this.updateInputOnDidUpdate=!1,r&&!i&&this.validateInput(l),"textarea"===o&&a&&s.input.resizeTextarea(l)}}},beforeDestroy:function(){var e=this.$refs.inputEl;e&&(e.removeEventListener("input:notempty",this.onInputNotEmpty,!1),e.removeEventListener("textarea:resize",this.onTextareaResize,!1),e.removeEventListener("input:empty",this.onInputEmpty,!1),e.removeEventListener("input:clear",this.onInputClear,!1),this.f7Calendar&&this.f7Calendar.destroy&&this.f7Calendar.destroy(),this.f7ColorPicker&&this.f7ColorPicker.destroy&&this.f7ColorPicker.destroy(),delete this.f7Calendar,delete this.f7ColorPicker)},methods:{domValue:function(){var e=this.$refs.inputEl;if(e)return e.value},inputHasValue:function(){var e=this.props,t=e.value;if("datepicker"===e.type&&Array.isArray(t)&&0===t.length)return!1;var n=this.domValue();return void 0===t?n||0===n:t||0===t},validateInput:function(e){if(this.$f7&&e){var t=e.validity;if(t){var n=this.props.onValidate;t.valid?!1!==this.state.inputInvalid&&(n&&n(!0),this.setState({inputInvalid:!1})):(n&&n(!1),!0!==this.state.inputInvalid&&this.setState({inputInvalid:!0}))}}},onTextareaResize:function(e){this.dispatchEvent("textarea:resize textareaResize",e)},onInputNotEmpty:function(e){this.dispatchEvent("input:notempty inputNotEmpty",e)},onInputEmpty:function(e){this.dispatchEvent("input:empty inputEmpty",e)},onInputClear:function(e){this.dispatchEvent("input:clear inputClear",e)},onInput:function(){for(var e=this,t=e.props,n=t.validate,r=t.validateOnBlur,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];e.dispatchEvent.apply(e,["input"].concat(a)),!r&&""!==r&&(n||""===n)&&e.$refs&&e.$refs.inputEl&&e.validateInput(e.$refs.inputEl)},onFocus:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["focus"].concat(t)),this.setState({inputFocused:!0})},onBlur:function(){for(var e=this,t=e.props,n=t.validate,r=t.validateOnBlur,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];e.dispatchEvent.apply(e,["blur"].concat(a)),(n||""===n||r||""===r)&&e.$refs&&e.$refs.inputEl&&e.validateInput(e.$refs.inputEl),e.setState({inputFocused:!1})},onChange:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["change"].concat(t)),"texteditor"===this.props.type&&this.dispatchEvent("texteditor:change textEditorChange",t[0])},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))},setState:function(e,t){fo(this,e,t)}},computed:{props:function(){return eo(this)}}},qo={name:"f7-list-item-cell",props:Object.assign({id:[String,Number]},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Qa.classNames(n,"item-cell",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},Wo={name:"f7-list-item-content",props:Object.assign({id:[String,Number],title:[String,Number],text:[String,Number],media:String,subtitle:[String,Number],header:[String,Number],footer:[String,Number],after:[String,Number],badge:[String,Number],badgeColor:String,mediaList:Boolean,mediaItem:Boolean,checkbox:Boolean,checked:Boolean,defaultChecked:Boolean,indeterminate:Boolean,radio:Boolean,radioIcon:String,name:String,value:[String,Number,Array],readonly:Boolean,required:Boolean,disabled:Boolean},Za.colorProps),render:function(){var e,t,n,r,i,a,o,s,l,c,u,d,h,f=this.$createElement,p=this.props,m=p.id,v=p.className,g=p.style,y=p.radio,b=p.radioIcon,_=p.checkbox,w=p.value,k=p.name,E=p.checked,S=(p.defaultChecked,p.readonly),T=p.disabled,C=p.required,M=p.media,x=p.header,$=p.footer,P=p.title,O=p.subtitle,I=p.text,A=p.after,D=p.badge,N=p.mediaList,R=p.mediaItem,B=p.badgeColor,Y=[],j=[],F=[],H=[],U=[],z=[],V=[],q=[],W=[],G=[],K=[],J=[],X=[],Q=[],Z=[],ee=[],te=[],ne=this.$slots.default,re=[];ne&&ne.length&&ne.forEach((function(e){Array.isArray(e)?re.push.apply(re,L()(e)):re.push(e)}));var ie,ae=this.$slots["content-start"];(ae&&ae.length&&Y.push.apply(Y,L()(ae)),re.forEach((function(e){var t;void 0!==e&&((t=e.data?e.data.slot:void 0)&&"inner"!==t||U.push(e),"content-start"===t&&Y.push(e),"content"===t&&j.push(e),"content-end"===t&&F.push(e),"after-start"===t&&V.push(e),"after"===t&&q.push(e),"after-end"===t&&W.push(e),"media"===t&&G.push(e),"inner-start"===t&&H.push(e),"inner-end"===t&&z.push(e),"before-title"===t&&K.push(e),"title"===t&&J.push(e),"after-title"===t&&X.push(e),"subtitle"===t&&Q.push(e),"text"===t&&Z.push(e),"header"===t&&ee.push(e),"footer"===t&&te.push(e))})),(y||_)&&(c=f("input",{ref:"inputEl",domProps:{checked:E,readonly:S,disabled:T,required:C,value:w},on:{change:this.onChange},attrs:{name:k,type:y?"radio":"checkbox"}}),u=f("i",{class:"icon icon-".concat(y?"radio":"checkbox")})),M||G.length)&&(M&&(ie=f("img",{attrs:{src:M}})),l=f("div",{class:"item-media"},[ie,G]));var oe=R||N;return(x||ee.length)&&(d=f("div",{class:"item-header"},[x,ee])),($||te.length)&&(h=f("div",{class:"item-footer"},[$,te])),(P||J.length||!oe&&d||!oe&&h)&&(e=f("div",{class:"item-title"},[!oe&&d,P,J,!oe&&h])),(O||Q.length)&&(o=f("div",{class:"item-subtitle"},[O,Q])),(I||Z.length)&&(s=f("div",{class:"item-text"},[I,Z])),(A||D||q.length)&&(A&&(n=f("span",[A])),D&&(r=f(go,{attrs:{color:B}},[D])),t=f("div",{class:"item-after"},[V,n,r,q,W])),oe?(a=f("div",{class:"item-title-row"},[K,e,X,t]),i=f("div",{ref:"innerEl",class:"item-inner"},[H,d,a,o,s,U,h,z])):i=f("div",{ref:"innerEl",class:"item-inner"},[H,K,e,X,t,U,z]),f(_||y?"label":"div",{ref:"el",style:g,class:Qa.classNames(v,"item-content",{"item-checkbox":_,"item-radio":y,"item-radio-icon-start":y&&"start"===b,"item-radio-icon-end":y&&"end"===b},Za.colorClasses(p)),attrs:{id:m}},[Y,c,u,l,i,j,F])},created:function(){Qa.bindMethods(this,"onClick onChange".split(" "))},mounted:function(){var e=this.$refs,t=e.el,n=e.inputEl;this.props.indeterminate&&n&&(n.indeterminate=!0),t.addEventListener("click",this.onClick)},updated:function(){var e=this.$refs.inputEl,t=this.props.indeterminate;e&&(e.indeterminate=t)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onChange:function(e){this.dispatchEvent("change",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},Go={name:"f7-list-item-row",props:Object.assign({id:[String,Number]},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Qa.classNames(n,"item-row",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},Ko={name:"f7-list-item",props:Object.assign({id:[String,Number],title:[String,Number],text:[String,Number],media:String,subtitle:[String,Number],header:[String,Number],footer:[String,Number],tooltip:String,tooltipTrigger:String,link:[Boolean,String],target:String,tabLink:[Boolean,String],tabLinkActive:Boolean,after:[String,Number],badge:[String,Number],badgeColor:String,mediaItem:Boolean,mediaList:Boolean,divider:Boolean,groupTitle:Boolean,swipeout:Boolean,swipeoutOpened:Boolean,sortable:{type:Boolean,default:void 0},sortableOpposite:{type:Boolean,default:void 0},accordionItem:Boolean,accordionItemOpened:Boolean,smartSelect:Boolean,smartSelectParams:Object,noChevron:Boolean,chevronCenter:Boolean,checkbox:Boolean,radio:Boolean,radioIcon:String,checked:Boolean,defaultChecked:Boolean,indeterminate:Boolean,name:String,value:[String,Number,Array],readonly:Boolean,required:Boolean,disabled:Boolean,virtualListIndex:Number},Za.colorProps,{},Za.linkRouterProps,{},Za.linkActionsProps),data:function(){var e=eo(this);return{state:{isMedia:e.mediaItem||e.mediaList,isSortable:e.sortable,isSortableOpposite:e.sortableOpposite,isSimple:!1}}},render:function(){var e,t,n=this.$createElement,r=this.props,i=r.id,a=r.style,o=r.className,s=r.title,l=r.text,c=r.media,u=r.subtitle,d=r.header,h=r.footer,f=r.link,p=r.tabLink,m=r.tabLinkActive,v=r.href,g=r.target,y=r.after,b=r.badge,_=r.badgeColor,w=r.mediaItem,k=r.mediaList,E=r.divider,S=r.groupTitle,T=r.swipeout,C=r.accordionItem,M=r.accordionItemOpened,x=r.smartSelect,$=r.checkbox,L=r.radio,P=r.radioIcon,O=r.checked,I=r.defaultChecked,A=r.indeterminate,D=r.name,N=r.value,R=r.readonly,B=r.required,Y=r.disabled,j=r.sortable,F=r.sortableOpposite,H=r.noChevron,U=r.chevronCenter,z=r.virtualListIndex,V=w||k||this.state.isMedia,q=j||this.state.isSortable,W=q&&(F||this.state.isSortableOpposite),G=this.state.isSimple;if(!G&&(t=n(Wo,{on:!(f||v||C||x)?{click:this.onClick,change:this.onChange}:void 0,attrs:{title:s,text:l,media:c,subtitle:u,after:y,header:d,footer:h,badge:b,badgeColor:_,mediaList:V,accordionItem:C,checkbox:$,checked:O,defaultChecked:I,indeterminate:A,radio:L,radioIcon:P,name:D,value:N,readonly:R,required:B,disabled:Y}},[this.$slots["content-start"],this.$slots.content,this.$slots["content-end"],this.$slots.media,this.$slots["inner-start"],this.$slots.inner,this.$slots["inner-end"],this.$slots["after-start"],this.$slots.after,this.$slots["after-end"],this.$slots.header,this.$slots.footer,this.$slots["before-title"],this.$slots.title,this.$slots["after-title"],this.$slots.subtitle,this.$slots.text,T||C?null:this.$slots.default,q&&!1!==j&&W&&n("div",{class:"sortable-handler",slot:"content-start"})]),f||v||C||x)){var K=Object.assign({href:!0===f?"":f||v,target:g,"data-tab":Qa.isStringProp(p)&&p||void 0},Za.linkRouterAttrs(r),{},Za.linkActionsAttrs(r)),J=Qa.classNames({"item-link":!0,"smart-select":x,"tab-link":p||""===p,"tab-link-active":m},Za.linkRouterClasses(r),Za.linkActionsClasses(r));e=n("a",Eo(Object.assign({ref:"linkEl",class:J},K)),[t])}var X=Qa.classNames(o,{"item-divider":E,"list-group-title":S,"media-item":V,swipeout:T,"accordion-item":C,"accordion-item-opened":M,disabled:Y&&!(L||$),"no-chevron":H,"chevron-center":U,"disallow-sorting":!1===j},Za.colorClasses(r));if(E||S)return n("li",{ref:"el",style:a,class:X,attrs:{id:i,"data-virtual-list-index":z}},[n("span",[this.$slots.default||[s]])]);if(G)return n("li",{ref:"el",style:a,class:X,attrs:{id:i,"data-virtual-list-index":z}},[s,this.$slots.default]);var Q=f||v||x||C?e:t;return n("li",{ref:"el",style:a,class:X,attrs:{id:i,"data-virtual-list-index":z}},[this.$slots["root-start"],T?n("div",{class:"swipeout-content"},[Q]):Q,q&&!1!==j&&!W&&n("div",{class:"sortable-handler"}),(T||C)&&this.$slots.default,this.$slots.root,this.$slots["root-end"]])},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)},"props.swipeoutOpened":function(e){if(this.props.swipeout){var t=this.$refs.el;e?this.$f7.swipeout.open(t):this.$f7.swipeout.close(t)}}},created:function(){Qa.bindMethods(this,["onClick","onChange","onSwipeoutOpen","onSwipeoutOpened","onSwipeoutClose","onSwipeoutClosed","onSwipeoutDelete","onSwipeoutDeleted","onSwipeoutOverswipeEnter","onSwipeoutOverswipeExit","onSwipeout","onAccBeforeOpen","onAccOpen","onAccOpened","onAccBeforeClose","onAccClose","onAccClosed"])},mounted:function(){var e=this,t=e.$refs,n=t.el,r=t.linkEl;if(n){var i=e.props,a=i.link,o=i.href,s=i.smartSelect,l=i.swipeout,c=i.swipeoutOpened,u=i.accordionItem,d=i.smartSelectParams,h=i.routeProps,f=i.tooltip,p=i.tooltipTrigger;!!(a||o||u||s)&&r&&r.addEventListener("click",e.onClick),r&&h&&(r.f7RouteProps=h),e.$listEl=e.$$(n).parents(".list, .list-group").eq(0),e.$listEl.length&&e.setState({isMedia:e.$listEl.hasClass("media-list"),isSimple:e.$listEl.hasClass("simple-list"),isSortable:e.$listEl.hasClass("sortable"),isSortableOpposite:e.$listEl.hasClass("sortable-opposite")}),e.$f7ready((function(t){if(e.eventTargetEl=n,l&&(t.on("swipeoutOpen",e.onSwipeoutOpen),t.on("swipeoutOpened",e.onSwipeoutOpened),t.on("swipeoutClose",e.onSwipeoutClose),t.on("swipeoutClosed",e.onSwipeoutClosed),t.on("swipeoutDelete",e.onSwipeoutDelete),t.on("swipeoutDeleted",e.onSwipeoutDeleted),t.on("swipeoutOverswipeEnter",e.onSwipeoutOverswipeEnter),t.on("swipeoutOverswipeExit",e.onSwipeoutOverswipeExit),t.on("swipeout",e.onSwipeout)),u&&(t.on("accordionBeforeOpen",e.onAccBeforeOpen),t.on("accordionOpen",e.onAccOpen),t.on("accordionOpened",e.onAccOpened),t.on("accordionBeforeClose",e.onAccBeforeClose),t.on("accordionClose",e.onAccClose),t.on("accordionClosed",e.onAccClosed)),s){var r=Qa.extend({el:n.querySelector("a.smart-select")},d||{});e.f7SmartSelect=t.smartSelect.create(r)}c&&t.swipeout.open(n),f&&(e.f7Tooltip=t.tooltip.create({targetEl:n,text:f,trigger:p}))}))}},updated:function(){var e=this.$listEl,t=this.$refs.linkEl,n=this.props.routeProps;if(t&&n&&(t.f7RouteProps=n),e&&(!e||0!==e.length)){var r=e.hasClass("media-list"),i=e.hasClass("simple-list"),a=e.hasClass("sortable"),o=e.hasClass("sortable-opposite");r!==this.state.isMedia&&this.setState({isMedia:r}),i!==this.state.isSimple&&this.setState({isSimple:i}),a!==this.state.isSortable&&(this.setState({isSortable:a}),o!==this.state.isSortableOpposite&&this.setState({isSortableOpposite:o}))}},beforeDestroy:function(){var e=this.$refs.linkEl,t=this.props,n=t.link,r=t.href,i=t.smartSelect,a=t.swipeout,o=t.accordionItem;if(e&&(!(n||r||o||i)||e.removeEventListener("click",this.onClick),delete e.f7RouteProps),this.$f7){var s=this.$f7;a&&(s.off("swipeoutOpen",this.onSwipeoutOpen),s.off("swipeoutOpened",this.onSwipeoutOpened),s.off("swipeoutClose",this.onSwipeoutClose),s.off("swipeoutClosed",this.onSwipeoutClosed),s.off("swipeoutDelete",this.onSwipeoutDelete),s.off("swipeoutDeleted",this.onSwipeoutDeleted),s.off("swipeoutOverswipeEnter",this.onSwipeoutOverswipeEnter),s.off("swipeoutOverswipeExit",this.onSwipeoutOverswipeExit),s.off("swipeout",this.onSwipeout)),o&&(s.off("accordionBeforeOpen",this.onAccBeforeOpen),s.off("accordionOpen",this.onAccOpen),s.off("accordionOpened",this.onAccOpened),s.off("accordionBeforeClose",this.onAccBeforeClose),s.off("accordionClose",this.onAccClose),s.off("accordionClosed",this.onAccClosed))}i&&this.f7SmartSelect&&this.f7SmartSelect.destroy(),this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip),this.eventTargetEl=null,delete this.eventTargetEl},methods:{onClick:function(e){"input"!==e.target.tagName.toLowerCase()&&this.dispatchEvent("click",e)},onSwipeoutOverswipeEnter:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:overswipeenter swipeoutOverswipeEnter")},onSwipeoutOverswipeExit:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:overswipeexit swipeoutOverswipeExit")},onSwipeoutDeleted:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:deleted swipeoutDeleted")},onSwipeoutDelete:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:delete swipeoutDelete")},onSwipeoutClose:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:close swipeoutClose")},onSwipeoutClosed:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:closed swipeoutClosed")},onSwipeoutOpen:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:open swipeoutOpen")},onSwipeoutOpened:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:opened swipeoutOpened")},onSwipeout:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("swipeout",t)},onAccBeforeClose:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("accordion:beforeclose accordionBeforeClose",t)},onAccClose:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordion:close accordionClose")},onAccClosed:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordion:closed accordionClosed")},onAccBeforeOpen:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("accordion:beforeopen accordionBeforeOpen",t)},onAccOpen:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordion:open accordionOpen")},onAccOpened:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordion:opened accordionOpened")},onChange:function(e){this.dispatchEvent("change",e)},onInput:function(e){this.dispatchEvent("input",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))},setState:function(e,t){fo(this,e,t)}},computed:{props:function(){return eo(this)}}},Jo={name:"f7-list",props:Object.assign({id:[String,Number],inset:Boolean,xsmallInset:Boolean,smallInset:Boolean,mediumInset:Boolean,largeInset:Boolean,xlargeInset:Boolean,mediaList:Boolean,sortable:Boolean,sortableTapHold:Boolean,sortableEnabled:Boolean,sortableMoveElements:{type:Boolean,default:void 0},sortableOpposite:Boolean,accordionList:Boolean,accordionOpposite:Boolean,contactsList:Boolean,simpleList:Boolean,linksList:Boolean,noHairlines:Boolean,noHairlinesBetween:Boolean,noHairlinesMd:Boolean,noHairlinesBetweenMd:Boolean,noHairlinesIos:Boolean,noHairlinesBetweenIos:Boolean,noHairlinesAurora:Boolean,noHairlinesBetweenAurora:Boolean,noChevron:Boolean,chevronCenter:Boolean,tab:Boolean,tabActive:Boolean,form:Boolean,formStoreData:Boolean,inlineLabels:Boolean,virtualList:Boolean,virtualListParams:Object},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.form,a=t.sortableMoveElements,o=this.$slots,s=o.list,l=o.default,c=[],u=[],d=s||[],h=Qa.flattenArray(l),f=!1;h.forEach((function(e){var t;void 0!==e&&((t=e.tag)&&!("li"===t||"F7ListItem"===t||"F7ListButton"===t||"F7ListInput"===t||t.indexOf("list-item")>=0||t.indexOf("list-button")>=0||t.indexOf("list-input")>=0||t.indexOf("f7-list-item")>=0||t.indexOf("f7-list-button")>=0||t.indexOf("f7-list-input")>=0)?f?u.push(e):c.push(e):t&&(f=!0,d.push(e)))}));var p=i?"form":"div";return d.length>0?e(p,{ref:"el",style:r,class:this.classes,attrs:{id:n,"data-sortable-move-elements":void 0!==a?a.toString():void 0}},[this.$slots["before-list"],c,e("ul",[d]),this.$slots["after-list"],u]):e(p,{ref:"el",style:r,class:this.classes,attrs:{id:n,"data-sortable-move-elements":void 0!==a?a.toString():void 0}},[this.$slots["before-list"],c,this.$slots["after-list"],u])},computed:{classes:function(){var e=this.props,t=e.inset,n=e.xsmallInset,r=e.smallInset,i=e.mediumInset,a=e.largeInset,o=e.xlargeInset,s=e.mediaList,l=e.simpleList,c=e.linksList,u=e.sortable,d=e.sortableTapHold,h=e.sortableEnabled,f=e.sortableOpposite,p=e.accordionList,m=e.accordionOpposite,v=e.contactsList,g=e.virtualList,y=e.tab,b=e.tabActive,_=e.noHairlines,w=e.noHairlinesIos,k=e.noHairlinesMd,E=e.noHairlinesAurora,S=e.noHairlinesBetween,T=e.noHairlinesBetweenIos,C=e.noHairlinesBetweenMd,M=e.noHairlinesBetweenAurora,x=e.formStoreData,$=e.inlineLabels,L=e.className,P=e.noChevron,O=e.chevronCenter;return Qa.classNames(L,"list",{inset:t,"xsmall-inset":n,"small-inset":r,"medium-inset":i,"large-inset":a,"xlarge-inset":o,"media-list":s,"simple-list":l,"links-list":c,sortable:u,"sortable-tap-hold":d,"sortable-enabled":h,"sortable-opposite":f,"accordion-list":p,"accordion-opposite":m,"contacts-list":v,"virtual-list":g,tab:y,"tab-active":b,"no-hairlines":_,"no-hairlines-md":k,"no-hairlines-ios":w,"no-hairlines-aurora":E,"no-hairlines-between":S,"no-hairlines-between-md":C,"no-hairlines-between-ios":T,"no-hairlines-between-aurora":M,"form-store-data":x,"inline-labels":$,"no-chevron":P,"chevron-center":O},Za.colorClasses(e))},props:function(){return eo(this)}},created:function(){Qa.bindMethods(this,["onSortableEnable","onSortableDisable","onSortableSort","onTabShow","onTabHide","onSubmit"])},mounted:function(){var e=this,t=e.$refs.el,n=e.props,r=n.virtualList,i=n.virtualListParams,a=n.form;e.$f7ready((function(n){if(e.eventTargetEl=t,n.on("sortableEnable",e.onSortableEnable),n.on("sortableDisable",e.onSortableDisable),n.on("sortableSort",e.onSortableSort),n.on("tabShow",e.onTabShow),n.on("tabHide",e.onTabHide),a&&t.addEventListener("submit",e.onSubmit),r){var o=i||{};(o.renderItem||o.itemTemplate||o.renderExternal)&&(e.f7VirtualList=n.virtualList.create(Qa.extend({el:t,on:{itemBeforeInsert:function(t,n){e.dispatchEvent("virtual:itembeforeinsert virtualItemBeforeInsert",this,t,n)},beforeClear:function(t){e.dispatchEvent("virtual:beforeclear virtualBeforeClear",this,t)},itemsBeforeInsert:function(t){e.dispatchEvent("virtual:itemsbeforeinsert virtualItemsBeforeInsert",this,t)},itemsAfterInsert:function(t){e.dispatchEvent("virtual:itemsafterinsert virtualItemsAfterInsert",this,t)}}},o)))}}))},beforeDestroy:function(){var e=this.$refs.el,t=this.$f7;e&&t&&(t.off("sortableEnable",this.onSortableEnable),t.off("sortableDisable",this.onSortableDisable),t.off("sortableSort",this.onSortableSort),t.off("tabShow",this.onTabShow),t.off("tabHide",this.onTabHide),e.removeEventListener("submit",this.onSubmit),this.eventTargetEl=null,delete this.eventTargetEl,this.virtualList&&this.f7VirtualList&&this.f7VirtualList.destroy&&this.f7VirtualList.destroy())},methods:{onSubmit:function(e){this.dispatchEvent("submit",e)},onSortableEnable:function(e){this.eventTargetEl===e&&this.dispatchEvent("sortable:enable sortableEnable")},onSortableDisable:function(e){this.eventTargetEl===e&&this.dispatchEvent("sortable:disable sortableDisable")},onSortableSort:function(e,t,n){this.eventTargetEl===n&&this.dispatchEvent("sortable:sort sortableSort",t)},onTabShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:show tabShow",e)},onTabHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:hide tabHide",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}}},Xo={name:"f7-login-screen-title",props:Object.assign({id:[String,Number]},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Qa.classNames(n,"login-screen-title",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},Qo={name:"f7-login-screen",props:Object.assign({id:[String,Number],opened:Boolean},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{ref:"el",style:t.style,class:Qa.classNames(n,"login-screen",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},watch:{"props.opened":function(e){this.f7LoginScreen&&(e?this.f7LoginScreen.open():this.f7LoginScreen.close())}},created:function(){Qa.bindMethods(this,["onOpen","onOpened","onClose","onClosed"])},mounted:function(){var e=this,t=e.$refs.el;t&&e.$f7ready((function(){e.f7LoginScreen=e.$f7.loginScreen.create({el:t,on:{open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed}}),e.props.opened&&e.f7LoginScreen.open(!1)}))},beforeDestroy:function(){this.f7LoginScreen&&this.f7LoginScreen.destroy()},methods:{onOpen:function(e){this.dispatchEvent("loginscreen:open loginScreenOpen",e)},onOpened:function(e){this.dispatchEvent("loginscreen:opened loginScreenOpened",e)},onClose:function(e){this.dispatchEvent("loginscreen:close loginScreenClose",e)},onClosed:function(e){this.dispatchEvent("loginscreen:closed loginScreenClosed",e)},open:function(e){if(this.f7LoginScreen)return this.f7LoginScreen.open(e)},close:function(e){if(this.f7LoginScreen)return this.f7LoginScreen.close(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},Zo={name:"f7-menu-dropdown-item",props:Object.assign({id:[String,Number],text:String,link:Boolean,href:String,target:String,divider:Boolean},Za.colorProps,{},Za.linkRouterProps,{},Za.linkActionsProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.className,i=t.style,a=t.link,o=t.href,s=t.text,l=t.divider,c=t.menuClose,u=a||o||""===o,d=u?"a":"div",h=Qa.classNames({"menu-dropdown-link":u&&!l,"menu-dropdown-item":!u&&!l,"menu-dropdown-divider":l},r,Za.colorClasses(t),Za.linkRouterClasses(t),Za.linkActionsClasses(t),{"menu-close":void 0===c});return e(d,Eo(Object.assign({ref:"el",class:h,style:i},this.attrs,{attrs:{id:n}})),[s,this.$slots.default])},created:function(){Qa.bindMethods(this,["onClick"])},mounted:function(){var e=this.$refs.el;if(e){e.addEventListener("click",this.onClick);var t=this.props.routeProps;t&&(e.f7RouteProps=t)}},updated:function(){var e=this.$refs.el;if(e){var t=this.props.routeProps;t&&(e.f7RouteProps=t)}},beforeDestroy:function(){var e=this.$refs.el;e&&(e.removeEventListener("click",this.onClick),delete e.f7RouteProps)},computed:{attrs:function(){var e=this.props,t=e.link,n=e.href,r=e.target,i=n;return void 0===i&&t&&(i="#"),Qa.extend({href:i,target:r},Za.linkRouterAttrs(e),Za.linkActionsAttrs(e))},props:function(){return eo(this)}},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}}},es={name:"f7-menu-dropdown",props:Object.assign({id:[String,Number],contentHeight:String,position:String,left:Boolean,center:Boolean,right:Boolean},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.className,i=t.style,a=t.contentHeight,o=t.position||"left";return t.left&&(o="left"),t.center&&(o="center"),t.right&&(o="right"),e("div",{class:Qa.classNames("menu-dropdown","menu-dropdown-".concat(o),Za.colorClasses(t),r),style:i,attrs:{id:n}},[e("div",{class:"menu-dropdown-content",style:{height:a}},[this.$slots.default])])},computed:{props:function(){return eo(this)}}},ts={name:"f7-menu-item",props:Object.assign({id:[String,Number],text:String,iconOnly:Boolean,href:String,link:Boolean,target:String,dropdown:Boolean},Za.colorProps,{},Za.linkIconProps,{},Za.linkRouterProps,{},Za.linkActionsProps),render:function(){var e,t,n=this.$createElement,r=this.props,i=r.id,a=r.className,o=r.style,s=r.link,l=r.href,c=r.text,u=r.dropdown,d=r.iconOnly,h=r.icon,f=r.iconColor,p=r.iconSize,m=r.iconMaterial,v=r.iconF7,g=r.iconMd,y=r.iconIos,b=r.iconAurora,_=this.$slots;(h||m||v||g||y||b)&&(e=n(ko,{attrs:{material:m,f7:v,icon:h,md:g,ios:y,aurora:b,color:f,size:p}})),t=!!(d||!c&&_.text&&0===_.text.length||!c&&!_.text);var w=s||l||""===l?"a":"div",k=u||""===u,E=Qa.classNames({"menu-item":!0,"menu-item-dropdown":k,"icon-only":t},a,Za.colorClasses(r),Za.linkRouterClasses(r),Za.linkActionsClasses(r));return n(w,Eo(Object.assign({ref:"el",class:E,style:o},this.attrs,{attrs:{id:i}})),[(c||_.text&&_.text.length||e)&&n("div",{class:"menu-item-content"},[c,e,this.$slots.text]),this.$slots.default])},created:function(){Qa.bindMethods(this,["onClick","onOpened","onClosed"])},mounted:function(){var e=this,t=e.$refs.el;if(t){e.eventTargetEl=t,t.addEventListener("click",e.onClick);var n=e.props.routeProps;n&&(t.f7RouteProps=n),e.$f7ready((function(t){t.on("menuOpened",e.onOpened),t.on("menuClosed",e.onClosed)}))}},updated:function(){var e=this.$refs.el;if(e){var t=this.props.routeProps;t&&(e.f7RouteProps=t)}},beforeDestroy:function(){var e=this.$refs.el;e&&this.$f7&&(e.removeEventListener("click",this.onClick),this.$f7.off("menuOpened",this.onOpened),this.$f7.off("menuClosed",this.onOpened),this.eventTargetEl=null,delete e.f7RouteProps,delete this.eventTargetEl)},computed:{attrs:function(){var e=this.props,t=e.href,n=e.link,r=e.target,i=t;return void 0===i&&n&&(i="#"),Qa.extend({href:i,target:r},Za.linkRouterAttrs(e),Za.linkActionsAttrs(e))},props:function(){return eo(this)}},methods:{onClick:function(e){this.dispatchEvent("click",e)},onOpened:function(e){this.eventTargetEl===e&&this.dispatchEvent("menuOpened menu:opened",e)},onClosed:function(e){this.eventTargetEl===e&&this.dispatchEvent("menuClosed menu:closed",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}}},ns={name:"f7-menu",props:Object.assign({id:[String,Number]},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.className,i=t.style;return e("div",{class:Qa.classNames("menu",Za.colorClasses(t),r),style:i,attrs:{id:n}},[e("div",{class:"menu-inner"},[this.$slots.default])])},computed:{props:function(){return eo(this)}}},rs={name:"f7-message",props:Object.assign({id:[String,Number],text:String,name:String,avatar:String,type:{type:String,default:"sent"},image:String,header:String,footer:String,textHeader:String,textFooter:String,first:Boolean,last:Boolean,tail:Boolean,sameName:Boolean,sameHeader:Boolean,sameFooter:Boolean,sameAvatar:Boolean,typing:Boolean},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.text,r=t.name,i=t.avatar,a=t.image,o=t.header,s=t.footer,l=t.textHeader,c=t.textFooter,u=t.typing,d=t.id,h=t.style,f=this.$slots,p=f.start,m=f.end,v=f.default,g=f["content-start"],y=f["content-end"],b=f.avatar,_=f.name,w=f.header,k=f.footer,E=f.image,S=f.text,T=f["text-header"],C=f["text-footer"],M=f["bubble-start"],x=f["bubble-end"];return e("div",{ref:"el",style:h,class:this.classes,attrs:{id:d}},[p,(i||b)&&e("div",{ref:"avatarEl",class:"message-avatar",style:{backgroundImage:i&&"url(".concat(i,")")}},[b]),e("div",{class:"message-content"},[g,(_||r)&&e("div",{ref:"nameEl",class:"message-name"},[_||r]),(w||o)&&e("div",{ref:"headerEl",class:"message-header"},[w||o]),e("div",{ref:"bubbleEl",class:"message-bubble"},[M,(E||a)&&e("div",{class:"message-image"},[E||e("img",{attrs:{src:a}})]),(T||l)&&e("div",{class:"message-text-header"},[T||l]),(S||n||u)&&e("div",{ref:"textEl",class:"message-text"},[S||n,u&&e("div",{class:"message-typing-indicator"},[e("div"),e("div"),e("div")])]),(C||c)&&e("div",{class:"message-text-footer"},[C||c]),x,v]),(k||s)&&e("div",{ref:"footerEl",class:"message-footer"},[k||s]),y]),m])},computed:{classes:function(){var e=this.props,t=e.type,n=e.typing,r=e.first,i=e.last,a=e.tail,o=e.sameName,s=e.sameHeader,l=e.sameFooter,c=e.sameAvatar,u=e.className;return Qa.classNames(u,"message",{"message-sent":"sent"===t,"message-received":"received"===t,"message-typing":n,"message-first":r,"message-last":i,"message-tail":a,"message-same-name":o,"message-same-header":s,"message-same-footer":l,"message-same-avatar":c},Za.colorClasses(e))},props:function(){return eo(this)}},created:function(){Qa.bindMethods(this,["onClick","onNameClick","onTextClick","onAvatarClick","onHeaderClick","onFooterClick","onBubbleClick"])},mounted:function(){var e=this.$refs,t=e.el,n=e.nameEl,r=e.textEl,i=e.avatarEl,a=e.headerEl,o=e.footerEl,s=e.bubbleEl;t.addEventListener("click",this.onClick),n&&n.addEventListener("click",this.onNameClick),r&&r.addEventListener("click",this.onTextClick),i&&i.addEventListener("click",this.onAvatarClick),a&&a.addEventListener("click",this.onHeaderClick),o&&o.addEventListener("click",this.onFooterClick),s&&s.addEventListener("click",this.onBubbleClick)},beforeDestroy:function(){var e=this.$refs,t=e.el,n=e.nameEl,r=e.textEl,i=e.avatarEl,a=e.headerEl,o=e.footerEl,s=e.bubbleEl;t.removeEventListener("click",this.onClick),n&&n.removeEventListener("click",this.onNameClick),r&&r.removeEventListener("click",this.onTextClick),i&&i.removeEventListener("click",this.onAvatarClick),a&&a.removeEventListener("click",this.onHeaderClick),o&&o.removeEventListener("click",this.onFooterClick),s&&s.removeEventListener("click",this.onBubbleClick)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onNameClick:function(e){this.dispatchEvent("click:name clickName",e)},onTextClick:function(e){this.dispatchEvent("click:text clickText",e)},onAvatarClick:function(e){this.dispatchEvent("click:avatar clickAvatar",e)},onHeaderClick:function(e){this.dispatchEvent("click:header clickHeader",e)},onFooterClick:function(e){this.dispatchEvent("click:footer clickFooter",e)},onBubbleClick:function(e){this.dispatchEvent("click:bubble clickBubble",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}}},is={name:"f7-messagebar-attachment",props:Object.assign({id:[String,Number],image:String,deletable:{type:Boolean,default:!0}},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.deletable,r=t.image,i=t.className,a=t.id;return e("div",{ref:"el",style:t.style,class:Qa.classNames(i,"messagebar-attachment",Za.colorClasses(t)),attrs:{id:a}},[r&&e("img",{attrs:{src:r}}),n&&e("span",{ref:"deleteEl",class:"messagebar-attachment-delete"}),this.$slots.default])},created:function(){Qa.bindMethods(this,["onClick","onDeleteClick"])},mounted:function(){this.$refs.el.addEventListener("click",this.onClick),this.$refs.deleteEl&&this.$refs.deleteEl.addEventListener("click",this.onDeleteClick)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick),this.$refs.deleteEl&&this.$refs.deleteEl.removeEventListener("click",this.onDeleteClick)},methods:{onClick:function(e){this.dispatchEvent("attachment:click attachmentClick",e)},onDeleteClick:function(e){this.dispatchEvent("attachment:delete attachmentDelete",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},as={name:"f7-messagebar-attachments",props:Object.assign({id:[String,Number]},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Qa.classNames(n,"messagebar-attachments",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},os={name:"f7-messagebar-sheet-image",props:Object.assign({id:[String,Number],image:String,checked:Boolean},Za.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.image,i=n.checked,a=n.id,o=n.className,s=n.style,l=Qa.classNames(o,"messagebar-sheet-image","checkbox",Za.colorClasses(n)),c=Qa.extend({backgroundImage:r&&"url(".concat(r,")")},s||{});return e=t("input",{ref:"inputEl",domProps:{checked:i},on:{change:this.onChange},attrs:{type:"checkbox"}}),t("label",{class:l,style:c,attrs:{id:a}},[e,t("i",{class:"icon icon-checkbox"}),this.$slots.default])},created:function(){Qa.bindMethods(this,["onChange"])},methods:{onChange:function(e){this.props.checked?this.dispatchEvent("checked",e):this.dispatchEvent("unchecked",e),this.dispatchEvent("change",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},ss={name:"f7-messagebar-sheet-item",props:Object.assign({id:[String,Number]},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Qa.classNames(n,"messagebar-sheet-item",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},ls={name:"f7-messagebar-sheet",props:Object.assign({id:[String,Number]},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Qa.classNames(n,"messagebar-sheet",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},cs={name:"f7-messagebar",props:Object.assign({id:[String,Number],sheetVisible:Boolean,attachmentsVisible:Boolean,top:Boolean,resizable:{type:Boolean,default:!0},bottomOffset:{type:Number,default:0},topOffset:{type:Number,default:0},maxHeight:Number,resizePage:{type:Boolean,default:!0},sendLink:String,value:[String,Number,Array],disabled:Boolean,readonly:Boolean,textareaId:[Number,String],name:String,placeholder:{type:String,default:"Message"},init:{type:Boolean,default:!0}},Za.colorProps),created:function(){Qa.bindMethods(this,["onChange","onInput","onFocus","onBlur","onClick","onAttachmentDelete","onAttachmentClick,","onResizePage"])},render:function(){var e,t,n=this.$createElement,r=this.props,i=r.placeholder,a=r.disabled,o=r.name,s=r.readonly,l=r.resizable,c=r.value,u=r.sendLink,d=r.id,h=r.style,f=this.$slots,p=f.default,m=f["before-inner"],v=f["after-inner"],g=f["send-link"],y=f["inner-start"],b=f["inner-end"],_=f["before-area"],w=f["after-area"],k=[];p&&p.forEach((function(n){var r;void 0!==n&&((r=n.tag)&&(r.indexOf("messagebar-attachments")>=0||"F7MessagebarAttachments"===r||"f7-messagebar-attachments"===r)?e=n:r&&(r.indexOf("messagebar-sheet")>=0||"F7MessagebarSheet"===r||"f7-messagebar-sheet"===r)?t=n:k.push(n))}));var E={};return"value"in this.props&&(E.value=c),n("div",{ref:"el",style:h,class:this.classes,attrs:{id:d}},[m,n("div",{class:"toolbar-inner"},[y,n("div",{class:"messagebar-area"},[_,e,n(jo,Eo(Object.assign({ref:"area"},E,{on:{input:this.onInput,change:this.onChange,focus:this.onFocus,blur:this.onBlur},attrs:{type:"textarea",wrap:!1,placeholder:i,disabled:a,name:o,readonly:s,resizable:l}}))),w]),(u&&u.length>0||g)&&n(Fo,{on:{click:this.onClick}},[g||u]),b,k]),v,t])},computed:{classes:function(){var e=this.props,t=e.className,n=e.attachmentsVisible,r=e.sheetVisible;return Qa.classNames(t,"toolbar","messagebar",{"messagebar-attachments-visible":n,"messagebar-sheet-visible":r},Za.colorClasses(e))},props:function(){return eo(this)}},watch:{"props.sheetVisible":function(){this.props.resizable&&this.f7Messagebar&&(this.updateSheetVisible=!0)},"props.attachmentsVisible":function(){this.props.resizable&&this.f7Messagebar&&(this.updateAttachmentsVisible=!0)}},mounted:function(){var e=this,t=e.props,n=t.init,r=t.top,i=t.resizePage,a=t.bottomOffset,o=t.topOffset,s=t.maxHeight;if(n){var l=e.$refs.el;if(l){var c=Qa.noUndefinedProps({el:l,top:r,resizePage:i,bottomOffset:a,topOffset:o,maxHeight:s,on:{attachmentDelete:e.onAttachmentDelete,attachmentClick:e.onAttachmentClick,resizePage:e.onResizePage}});e.$f7ready((function(){e.f7Messagebar=e.$f7.messagebar.create(c)}))}}},updated:function(){if(this.f7Messagebar){var e=this.props,t=e.sheetVisible,n=e.attachmentsVisible;this.updateSheetVisible&&(this.updateSheetVisible=!1,this.f7Messagebar.sheetVisible=t,this.f7Messagebar.resizePage()),this.updateAttachmentsVisible&&(this.updateAttachmentsVisible=!1,this.f7Messagebar.attachmentsVisible=n,this.f7Messagebar.resizePage())}},beforeDestroy:function(){this.f7Messagebar&&this.f7Messagebar.destroy&&this.f7Messagebar.destroy()},methods:{clear:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).clear.apply(e,arguments)},getValue:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).getValue.apply(e,arguments)},setValue:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).setValue.apply(e,arguments)},setPlaceholder:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).setPlaceholder.apply(e,arguments)},resize:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).resizePage.apply(e,arguments)},focus:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).focus.apply(e,arguments)},blur:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).blur.apply(e,arguments)},attachmentsShow:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).attachmentsShow.apply(e,arguments)},attachmentsHide:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).attachmentsHide.apply(e,arguments)},attachmentsToggle:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).attachmentsToggle.apply(e,arguments)},sheetShow:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).sheetShow.apply(e,arguments)},sheetHide:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).sheetHide.apply(e,arguments)},sheetToggle:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).sheetToggle.apply(e,arguments)},onChange:function(e){this.dispatchEvent("change",e)},onInput:function(e){this.dispatchEvent("input",e)},onFocus:function(e){this.dispatchEvent("focus",e)},onBlur:function(e){this.dispatchEvent("blur",e)},onClick:function(e){var t,n=this;t=n.$refs.area.$refs.inputEl.value;var r=n.f7Messagebar?function(){n.f7Messagebar.clear()}:function(){};this.dispatchEvent("submit",t,r),this.dispatchEvent("send",t,r),this.dispatchEvent("click",e)},onAttachmentDelete:function(e,t,n){this.dispatchEvent("messagebar:attachmentdelete messagebarAttachmentDelete",e,t,n)},onAttachmentClick:function(e,t,n){this.dispatchEvent("messagebar:attachmentclick messagebarAttachmentClick",e,t,n)},onResizePage:function(e){this.dispatchEvent("messagebar:resizepage messagebarResizePage",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}}},us={name:"f7-messages-title",props:Object.assign({id:[String,Number]},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Qa.classNames(n,"messages-title",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},ds={name:"f7-messages",props:Object.assign({id:[String,Number],autoLayout:{type:Boolean,default:!1},messages:{type:Array,default:function(){return[]}},newMessagesFirst:{type:Boolean,default:!1},scrollMessages:{type:Boolean,default:!0},scrollMessagesOnEdge:{type:Boolean,default:!0},firstMessageRule:Function,lastMessageRule:Function,tailMessageRule:Function,sameNameMessageRule:Function,sameHeaderMessageRule:Function,sameFooterMessageRule:Function,sameAvatarMessageRule:Function,customClassMessageRule:Function,renderMessage:Function,init:{type:Boolean,default:!0}},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.className;return e("div",{ref:"el",style:r,class:Qa.classNames(i,"messages",Za.colorClasses(t)),attrs:{id:n}},[this.$slots.default])},beforeUpdate:function(){if(this.props.init){var e=this.$refs.el;if(e){var t=e.children;if(t)for(var n=0;n<t.length;n+=1)t[n].classList.add("message-appeared")}}},updated:function(){var e=this.props,t=e.init,n=e.autoLayout,r=e.scrollMessages;if(t){var i=this.$refs.el;if(i){var a=i.children;if(a){for(var o=0;o<a.length;o+=1)a[o].classList.contains("message-appeared")||a[o].classList.add("message-appear-from-bottom");this.f7Messages&&this.f7Messages.layout&&n&&this.f7Messages.layout(),this.f7Messages&&this.f7Messages.scroll&&r&&this.f7Messages.scroll()}}}},mounted:function(){var e=this,t=e.props,n=t.init,r=t.autoLayout,i=t.messages,a=t.newMessagesFirst,o=t.scrollMessages,s=t.scrollMessagesOnEdge,l=t.firstMessageRule,c=t.lastMessageRule,u=t.tailMessageRule,d=t.sameNameMessageRule,h=t.sameHeaderMessageRule,f=t.sameFooterMessageRule,p=t.sameAvatarMessageRule,m=t.customClassMessageRule,v=t.renderMessage;n&&e.$f7ready((function(t){e.f7Messages=t.messages.create(Qa.noUndefinedProps({el:e.$refs.el,autoLayout:r,messages:i,newMessagesFirst:a,scrollMessages:o,scrollMessagesOnEdge:s,firstMessageRule:l,lastMessageRule:c,tailMessageRule:u,sameNameMessageRule:d,sameHeaderMessageRule:h,sameFooterMessageRule:f,sameAvatarMessageRule:p,customClassMessageRule:m,renderMessage:v}))}))},beforeDestroy:function(){this.f7Messages&&this.f7Messages.destroy&&this.f7Messages.destroy()},methods:{renderMessages:function(e,t){if(this.f7Messages)return this.f7Messages.renderMessages(e,t)},layout:function(){if(this.f7Messages)return this.f7Messages.layout()},scroll:function(e,t){if(this.f7Messages)return this.f7Messages.scroll(e,t)},clear:function(){if(this.f7Messages)return this.f7Messages.clear()},removeMessage:function(e,t){if(this.f7Messages)return this.f7Messages.removeMessage(e,t)},removeMessages:function(e,t){if(this.f7Messages)return this.f7Messages.removeMessages(e,t)},addMessage:function(){var e;if(this.f7Messages)return(e=this.f7Messages).addMessage.apply(e,arguments)},addMessages:function(){var e;if(this.f7Messages)return(e=this.f7Messages).addMessages.apply(e,arguments)},showTyping:function(e){if(this.f7Messages)return this.f7Messages.showTyping(e)},hideTyping:function(){if(this.f7Messages)return this.f7Messages.hideTyping()},destroy:function(){if(this.f7Messages)return this.f7Messages.destroy()}},computed:{props:function(){return eo(this)}}},hs={name:"f7-nav-left",props:Object.assign({id:[String,Number],backLink:[Boolean,String],backLinkUrl:String,backLinkForce:Boolean,backLinkShowText:{type:Boolean,default:void 0},sliding:Boolean},Za.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.backLink,i=n.backLinkUrl,a=n.backLinkForce,o=n.backLinkShowText,s=n.sliding,l=n.className,c=n.style,u=n.id,d=o;if(void 0===d&&(d=!this.$theme.md),r){var h=!0!==r&&d?r:void 0;e=t(Fo,{class:h?void 0:"icon-only",on:{click:this.onBackClick},attrs:{href:i||"#",back:!0,icon:"icon-back",force:a||void 0,text:h}})}var f=Qa.classNames(l,"left",{sliding:s},Za.colorClasses(n)),p=[],m=this.$slots;return m&&Object.keys(m).length&&Object.keys(m).forEach((function(e){p.push.apply(p,L()(m[e]))})),t("div",{style:c,class:f,attrs:{id:u}},[e,p])},created:function(){Qa.bindMethods(this,["onBackClick"])},methods:{onBackClick:function(e){this.dispatchEvent("back-click backClick click:back clickBack",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},fs={name:"f7-nav-right",props:Object.assign({id:[String,Number],sliding:Boolean},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.sliding,o=Qa.classNames(n,"right",{sliding:a},Za.colorClasses(t)),s=[],l=this.$slots;return l&&Object.keys(l).length&&Object.keys(l).forEach((function(e){s.push.apply(s,L()(l[e]))})),e("div",{style:i,class:o,attrs:{id:r}},[s])},computed:{props:function(){return eo(this)}}},ps={name:"f7-nav-title",props:Object.assign({id:[String,Number]},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.className,a=Qa.classNames(i,"title-large",Za.colorClasses(t)),o=[],s=this.$slots;return s&&Object.keys(s).length&&Object.keys(s).forEach((function(e){o.push.apply(o,L()(s[e]))})),e("div",{style:r,class:a,attrs:{id:n}},[e("div",{class:"title-large-text"},[o])])},computed:{props:function(){return eo(this)}}},ms={name:"f7-nav-title",props:Object.assign({id:[String,Number],title:String,subtitle:String,sliding:Boolean},Za.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.title,i=n.subtitle,a=n.id,o=n.style,s=n.sliding,l=n.className;i&&(e=t("span",{class:"subtitle"},[i]));var c,u=Qa.classNames(l,"title",{sliding:s},Za.colorClasses(n)),d=this.$slots;return d&&Object.keys(d).length&&(c=[],Object.keys(d).forEach((function(e){var t;(t=c).push.apply(t,L()(d[e]))}))),t("div",{style:o,class:u,attrs:{id:a}},[c,!c&&r,!c&&e])},computed:{props:function(){return eo(this)}}},vs={name:"f7-navbar",props:Object.assign({id:[String,Number],backLink:[Boolean,String],backLinkUrl:String,backLinkForce:Boolean,backLinkShowText:{type:Boolean,default:void 0},sliding:{type:Boolean,default:!0},title:String,subtitle:String,hidden:Boolean,noShadow:Boolean,noHairline:Boolean,innerClass:String,innerClassName:String,large:Boolean,largeTransparent:Boolean,transparent:Boolean,titleLarge:String},Za.colorProps),data:function(){var e=this;eo(this);return{state:function(){var t=e,n=t.$f7;return n||t.$f7ready((function(){t.setState({_theme:t.$theme})})),{_theme:n?t.$theme:null,routerPositionClass:"",largeCollapsed:!1,routerNavbarRole:null,routerNavbarRoleDetailRoot:!1,routerNavbarMasterStack:!1,transparentVisible:!1}}()}},render:function(){var e,t,n,r,i=this.$createElement,a=this.props,o=a.backLink,s=a.backLinkUrl,l=a.backLinkForce,c=a.backLinkShowText,u=a.sliding,d=a.title,h=a.subtitle,f=a.innerClass,p=a.innerClassName,m=a.className,v=a.id,g=a.style,y=a.hidden,b=a.noShadow,_=a.noHairline,w=a.large,k=a.largeTransparent,E=a.transparent,S=a.titleLarge,T=this.state,C=T._theme,M=T.routerPositionClass,x=T.largeCollapsed,$=T.transparentVisible,L=C&&C.ios&&this.$f7&&!this.$f7.params.navbar.iosCenterTitle,P=C&&C.md&&this.$f7&&this.$f7.params.navbar.mdCenterTitle||C&&C.aurora&&this.$f7&&this.$f7.params.navbar.auroraCenterTitle,O=this.$slots,I=w||k,A=E||I&&k,D=A&&$,N=Qa.classNames(m,"navbar",M&&M,{"navbar-hidden":y,"navbar-large":I,"navbar-large-collapsed":I&&x,"navbar-transparent":A,"navbar-transparent-visible":D,"navbar-master":"master"===this.state.routerNavbarRole,"navbar-master-detail":"detail"===this.state.routerNavbarRole,"navbar-master-detail-root":!0===this.state.routerNavbarRoleDetailRoot,"navbar-master-stacked":!0===this.state.routerNavbarMasterStack,"no-shadow":b,"no-hairline":_},Za.colorClasses(a));(o||O["nav-left"]||O.left)&&(e=i(hs,{on:{backClick:this.onBackClick},attrs:{backLink:o,backLinkUrl:s,backLinkForce:l,backLinkShowText:c}},[O["nav-left"],O.left])),(d||h||O.title)&&(t=i(ms,{attrs:{title:d,subtitle:h}},[O.title])),(O["nav-right"]||O.right)&&(n=i(fs,[O["nav-right"],O.right]));var R=S;!R&&w&&d&&(R=d),(R||O["title-large"])&&(r=i("div",{class:"title-large"},[i("div",{class:"title-large-text"},[R||"",this.$slots["title-large"]])]));var B=i("div",{class:Qa.classNames("navbar-inner",f,p,{sliding:u,"navbar-inner-left-title":L,"navbar-inner-centered-title":P})},[e,t,n,r,this.$slots.default]);return i("div",{ref:"el",style:g,class:N,attrs:{id:v}},[i("div",{class:"navbar-bg"}),this.$slots["before-inner"],B,this.$slots["after-inner"]])},created:function(){Qa.bindMethods(this,["onBackClick","onHide","onShow","onExpand","onCollapse","onNavbarPosition","onNavbarRole","onNavbarMasterStack","onNavbarMasterUnstack","onTransparentHide","onTransparentShow"])},mounted:function(){var e=this,t=e.$refs.el;t&&e.$f7ready((function(n){e.eventTargetEl=t,n.on("navbarShow",e.onShow),n.on("navbarHide",e.onHide),n.on("navbarCollapse",e.onCollapse),n.on("navbarExpand",e.onExpand),n.on("navbarPosition",e.onNavbarPosition),n.on("navbarRole",e.onNavbarRole),n.on("navbarMasterStack",e.onNavbarMasterStack),n.on("navbarMasterUnstack",e.onNavbarMasterUnstack),n.on("navbarTransparentShow",e.onNavbarTransparentShow),n.on("navbarTransparentHide",e.onNavbarTransparentHide)}))},updated:function(){if(this.$f7){var e=this.$refs.el;this.$f7.navbar.size(e)}},beforeDestroy:function(){if(this.$refs.el&&this.$f7){var e=this.$f7;e.off("navbarShow",this.onShow),e.off("navbarHide",this.onHide),e.off("navbarCollapse",this.onCollapse),e.off("navbarExpand",this.onExpand),e.off("navbarPosition",this.onNavbarPosition),e.off("navbarRole",this.onNavbarRole),e.off("navbarMasterStack",this.onNavbarMasterStack),e.off("navbarMasterUnstack",this.onNavbarMasterUnstack),e.off("navbarTransparentShow",this.onNavbarTransparentShow),e.off("navbarTransparentHide",this.onNavbarTransparentHide),this.eventTargetEl=null,delete this.eventTargetEl}},methods:{onHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("navbar:hide navbarHide")},onShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("navbar:show navbarShow")},onExpand:function(e){this.eventTargetEl===e&&(this.setState({largeCollapsed:!1}),this.dispatchEvent("navbar:expand navbarExpand"))},onCollapse:function(e){this.eventTargetEl===e&&(this.setState({largeCollapsed:!0}),this.dispatchEvent("navbar:collapse navbarCollapse"))},onNavbarTransparentShow:function(e){this.eventTargetEl===e&&(this.setState({transparentVisible:!0}),this.dispatchEvent("navbar:transparentshow navbarTransparentShow"))},onNavbarTransparentHide:function(e){this.eventTargetEl===e&&(this.setState({transparentVisible:!1}),this.dispatchEvent("navbar:transparenthide navbarTransparentHide"))},onNavbarPosition:function(e,t){this.eventTargetEl===e&&this.setState({routerPositionClass:t?"navbar-".concat(t):""})},onNavbarRole:function(e,t){this.eventTargetEl===e&&this.setState({routerNavbarRole:t.role,routerNavbarRoleDetailRoot:t.detailRoot})},onNavbarMasterStack:function(e){this.eventTargetEl===e&&this.setState({routerNavbarMasterStack:!0})},onNavbarMasterUnstack:function(e){this.eventTargetEl===e&&this.setState({routerNavbarMasterStack:!1})},hide:function(e){this.$f7&&this.$f7.navbar.hide(this.$refs.el,e)},show:function(e){this.$f7&&this.$f7.navbar.show(this.$refs.el,e)},size:function(){this.$f7&&this.$f7.navbar.size(this.$refs.el)},onBackClick:function(e){this.dispatchEvent("back-click backClick click:back clickBack",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))},setState:function(e,t){fo(this,e,t)}},computed:{props:function(){return eo(this)}}},gs={name:"f7-preloader",props:Object.assign({id:[String,Number],size:[Number,String]},Za.colorProps),data:function(){var e=this;eo(this);return{state:function(){var t=e,n=t.$f7;return n||t.$f7ready((function(){t.setState({_theme:t.$theme})})),{_theme:n?t.$theme:null}}()}},render:function(){var e,t=this.$createElement,n=this.sizeComputed,r=this.props,i=r.id,a=r.style,o=r.className,s=this.state._theme,l={};return n&&(l.width="".concat(n,"px"),l.height="".concat(n,"px"),l["--f7-preloader-size"]="".concat(n,"px")),a&&Qa.extend(l,a||{}),s&&s.md?e=t("span",{class:"preloader-inner"},[t("span",{class:"preloader-inner-gap"}),t("span",{class:"preloader-inner-left"},[t("span",{class:"preloader-inner-half-circle"})]),t("span",{class:"preloader-inner-right"},[t("span",{class:"preloader-inner-half-circle"})])]):s&&s.ios?e=t("span",{class:"preloader-inner"},[t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"})]):s&&s.aurora?e=t("span",{class:"preloader-inner"},[t("span",{class:"preloader-inner-circle"})]):s||(e=t("span",{class:"preloader-inner"})),t("span",{style:l,class:Qa.classNames(o,"preloader",Za.colorClasses(r)),attrs:{id:i}},[e])},computed:{sizeComputed:function(){var e=this.props.size;return e&&"string"==typeof e&&e.indexOf("px")>=0&&(e=e.replace("px","")),e},props:function(){return eo(this)}},methods:{setState:function(e,t){fo(this,e,t)}}},ys={name:"f7-page-content",props:Object.assign({id:[String,Number],tab:Boolean,tabActive:Boolean,ptr:Boolean,ptrDistance:Number,ptrPreloader:{type:Boolean,default:!0},ptrBottom:Boolean,ptrMousewheel:Boolean,infinite:Boolean,infiniteTop:Boolean,infiniteDistance:Number,infinitePreloader:{type:Boolean,default:!0},hideBarsOnScroll:Boolean,hideNavbarOnScroll:Boolean,hideToolbarOnScroll:Boolean,messagesContent:Boolean,loginScreen:Boolean},Za.colorProps),render:function(){var e,t,n=this.$createElement,r=this.props,i=r.ptr,a=r.ptrPreloader,o=r.ptrDistance,s=r.ptrBottom,l=r.ptrMousewheel,c=r.infinite,u=r.infinitePreloader,d=r.id,h=r.style,f=r.infiniteDistance,p=r.infiniteTop;return i&&a&&(e=n("div",{class:"ptr-preloader"},[n(gs),n("div",{class:"ptr-arrow"})])),c&&u&&(t=n(gs,{class:"infinite-scroll-preloader"})),n("div",{style:h,class:this.classes,ref:"el",attrs:{id:d,"data-ptr-distance":o||void 0,"data-ptr-mousewheel":l||void 0,"data-infinite-distance":f||void 0}},[s?null:e,p?t:null,this.$slots.default,p?null:t,s?e:null])},computed:{classes:function(){var e=this.props,t=e.className,n=e.tab,r=e.tabActive,i=e.ptr,a=e.ptrBottom,o=e.infinite,s=e.infiniteTop,l=e.hideBarsOnScroll,c=e.hideNavbarOnScroll,u=e.hideToolbarOnScroll,d=e.messagesContent,h=e.loginScreen;return Qa.classNames(t,"page-content",{tab:n,"tab-active":r,"ptr-content":i,"ptr-bottom":a,"infinite-scroll-content":o,"infinite-scroll-top":s,"hide-bars-on-scroll":l,"hide-navbar-on-scroll":c,"hide-toolbar-on-scroll":u,"messages-content":d,"login-screen-content":h},Za.colorClasses(e))},props:function(){return eo(this)}},created:function(){Qa.bindMethods(this,["onPtrPullStart","onPtrPullMove","onPtrPullEnd","onPtrRefresh","onPtrDone","onInfinite","onTabShow","onTabHide"])},mounted:function(){var e=this,t=e.$refs.el,n=e.props,r=n.ptr,i=n.infinite,a=n.tab;e.$f7ready((function(n){e.eventTargetEl=t,r&&(n.on("ptrPullStart",e.onPtrPullStart),n.on("ptrPullMove",e.onPtrPullMove),n.on("ptrPullEnd",e.onPtrPullEnd),n.on("ptrRefresh",e.onPtrRefresh),n.on("ptrDone",e.onPtrDone)),i&&n.on("infinite",e.onInfinite),a&&(n.on("tabShow",e.onTabShow),n.on("tabHide",e.onTabHide))}))},beforeDestroy:function(){this.$f7&&(this.$f7.off("ptrPullStart",this.onPtrPullStart),this.$f7.off("ptrPullMove",this.onPtrPullMove),this.$f7.off("ptrPullEnd",this.onPtrPullEnd),this.$f7.off("ptrRefresh",this.onPtrRefresh),this.$f7.off("ptrDone",this.onPtrDone),this.$f7.off("infinite",this.onInfinite),this.$f7.off("tabShow",this.onTabShow),this.$f7.off("tabHide",this.onTabHide),this.eventTargetEl=null,delete this.eventTargetEl)},methods:{onPtrPullStart:function(e){this.eventTargetEl===e&&this.dispatchEvent("ptr:pullstart ptrPullStart")},onPtrPullMove:function(e){this.eventTargetEl===e&&this.dispatchEvent("ptr:pullmove ptrPullMove")},onPtrPullEnd:function(e){this.eventTargetEl===e&&this.dispatchEvent("ptr:pullend ptrPullEnd")},onPtrRefresh:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("ptr:refresh ptrRefresh",t)},onPtrDone:function(e){this.eventTargetEl===e&&this.dispatchEvent("ptr:done ptrDone")},onInfinite:function(e){this.eventTargetEl===e&&this.dispatchEvent("infinite")},onTabShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:show tabShow",e)},onTabHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:hide tabHide",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}}},bs={name:"f7-page",props:Object.assign({id:[String,Number],name:String,stacked:Boolean,withSubnavbar:{type:Boolean,default:void 0},subnavbar:{type:Boolean,default:void 0},withNavbarLarge:{type:Boolean,default:void 0},navbarLarge:{type:Boolean,default:void 0},noNavbar:Boolean,noToolbar:Boolean,tabs:Boolean,pageContent:{type:Boolean,default:!0},noSwipeback:Boolean,ptr:Boolean,ptrDistance:Number,ptrPreloader:{type:Boolean,default:!0},ptrBottom:Boolean,ptrMousewheel:Boolean,infinite:Boolean,infiniteTop:Boolean,infiniteDistance:Number,infinitePreloader:{type:Boolean,default:!0},hideBarsOnScroll:Boolean,hideNavbarOnScroll:Boolean,hideToolbarOnScroll:Boolean,messagesContent:Boolean,loginScreen:Boolean},Za.colorProps),data:function(){eo(this);return{state:{hasSubnavbar:!1,hasNavbarLarge:!1,hasNavbarLargeCollapsed:!1,hasCardExpandableOpened:!1,routerPositionClass:"",routerForceUnstack:!1,routerPageRole:null,routerPageRoleDetailRoot:!1,routerPageMasterStack:!1}}},render:function(){var e,t,n,r,i=this.$createElement,a=this.props,o=a.id,s=a.style,l=a.name,c=a.pageContent,u=a.messagesContent,d=a.ptr,h=a.ptrDistance,f=a.ptrPreloader,p=a.ptrBottom,m=a.ptrMousewheel,v=a.infinite,g=a.infiniteDistance,y=a.infinitePreloader,b=a.infiniteTop,_=a.hideBarsOnScroll,w=a.hideNavbarOnScroll,k=a.hideToolbarOnScroll,E=a.loginScreen,S=a.className,T=a.stacked,C=a.tabs,M=a.subnavbar,x=a.withSubnavbar,$=a.navbarLarge,L=a.withNavbarLarge,P=a.noNavbar,O=a.noToolbar,I=a.noSwipeback,A=[],D=[],N=this.$slots,R=N.static,B=N.fixed,Y=N.default;e="navbar toolbar tabbar subnavbar searchbar messagebar fab list-index".split(" "),n=this.$options.propsData.messagesContent,Y&&Y.forEach((function(i){if(void 0!==i){var a=!1,o=i.tag;if(o){o.indexOf("subnavbar")>=0&&(t=!0),o.indexOf("navbar")>=0&&i.componentOptions&&i.componentOptions.propsData&&"large"in i.componentOptions.propsData&&(i.componentOptions.propsData.large||""===i.componentOptions.propsData.large)&&(r=!0),void 0===n&&o.indexOf("messages")>=0&&(n=!0);for(var s=0;s<e.length;s+=1)o.indexOf(e[s])>=0&&(a=!0);c&&(a?A.push(i):D.push(i))}else c&&D.push(i)}}));var j=void 0===M&&void 0===x&&(t||this.state.hasSubnavbar),F=void 0===$&&void 0===L&&(r||this.state.hasNavbarLarge),H=Qa.classNames(S,"page",this.state.routerPositionClass,{stacked:T&&!this.state.routerForceUnstack,tabs:C,"page-with-subnavbar":M||x||j,"page-with-navbar-large":$||L||F,"no-navbar":P,"no-toolbar":O,"no-swipeback":I,"page-master":"master"===this.state.routerPageRole,"page-master-detail":"detail"===this.state.routerPageRole,"page-master-detail-root":!0===this.state.routerPageRoleDetailRoot,"page-master-stacked":!0===this.state.routerPageMasterStack,"page-with-navbar-large-collapsed":!0===this.state.hasNavbarLargeCollapsed,"page-with-card-opened":!0===this.state.hasCardExpandableOpened,"login-screen-page":E},Za.colorClasses(a));if(!c)return i("div",{ref:"el",style:s,class:H,attrs:{id:o,"data-name":l}},[B,R,Y]);var U=i(ys,{on:{ptrPullStart:this.onPtrPullStart,ptrPullMove:this.onPtrPullMove,ptrPullEnd:this.onPtrPullEnd,ptrRefresh:this.onPtrRefresh,ptrDone:this.onPtrDone,infinite:this.onInfinite},attrs:{ptr:d,ptrDistance:h,ptrPreloader:f,ptrBottom:p,ptrMousewheel:m,infinite:v,infiniteTop:b,infiniteDistance:g,infinitePreloader:y,hideBarsOnScroll:_,hideNavbarOnScroll:w,hideToolbarOnScroll:k,messagesContent:u||n,loginScreen:E}},[R,D]);return i("div",{ref:"el",style:s,class:H,attrs:{id:o,"data-name":l}},[A,B,U])},created:function(){Qa.bindMethods(this,["onPtrPullStart","onPtrPullMove","onPtrPullEnd","onPtrRefresh","onPtrDone","onInfinite","onPageMounted","onPageInit","onPageReinit","onPageBeforeIn","onPageBeforeOut","onPageAfterOut","onPageAfterIn","onPageBeforeRemove","onPageBeforeUnmount","onPageStack","onPageUnstack","onPagePosition","onPageRole","onPageMasterStack","onPageMasterUnstack","onPageNavbarLargeCollapsed","onPageNavbarLargeExpanded","onCardOpened","onCardClose","onPageTabShow","onPageTabHide"])},mounted:function(){var e=this,t=e.$refs.el;e.$f7ready((function(n){e.eventTargetEl=t,n.on("pageMounted",e.onPageMounted),n.on("pageInit",e.onPageInit),n.on("pageReinit",e.onPageReinit),n.on("pageBeforeIn",e.onPageBeforeIn),n.on("pageBeforeOut",e.onPageBeforeOut),n.on("pageAfterOut",e.onPageAfterOut),n.on("pageAfterIn",e.onPageAfterIn),n.on("pageBeforeRemove",e.onPageBeforeRemove),n.on("pageBeforeUnmount",e.onPageBeforeUnmount),n.on("pageStack",e.onPageStack),n.on("pageUnstack",e.onPageUnstack),n.on("pagePosition",e.onPagePosition),n.on("pageRole",e.onPageRole),n.on("pageMasterStack",e.onPageMasterStack),n.on("pageMasterUnstack",e.onPageMasterUnstack),n.on("pageNavbarLargeCollapsed",e.onPageNavbarLargeCollapsed),n.on("pageNavbarLargeExpanded",e.onPageNavbarLargeExpanded),n.on("cardOpened",e.onCardOpened),n.on("cardClose",e.onCardClose),n.on("pageTabShow",e.onPageTabShow),n.on("pageTabHide",e.onPageTabHide)}))},beforeDestroy:function(){if(this.$f7){var e=this.$f7;e.off("pageMounted",this.onPageMounted),e.off("pageInit",this.onPageInit),e.off("pageReinit",this.onPageReinit),e.off("pageBeforeIn",this.onPageBeforeIn),e.off("pageBeforeOut",this.onPageBeforeOut),e.off("pageAfterOut",this.onPageAfterOut),e.off("pageAfterIn",this.onPageAfterIn),e.off("pageBeforeRemove",this.onPageBeforeRemove),e.off("pageBeforeUnmount",this.onPageBeforeUnmount),e.off("pageStack",this.onPageStack),e.off("pageUnstack",this.onPageUnstack),e.off("pagePosition",this.onPagePosition),e.off("pageRole",this.onPageRole),e.off("pageMasterStack",this.onPageMasterStack),e.off("pageMasterUnstack",this.onPageMasterUnstack),e.off("pageNavbarLargeCollapsed",this.onPageNavbarLargeCollapsed),e.off("pageNavbarLargeExpanded",this.onPageNavbarLargeExpanded),e.off("cardOpened",this.onCardOpened),e.off("cardClose",this.onCardClose),e.off("pageTabShow",this.onPageTabShow),e.off("pageTabHide",this.onPageTabHide),this.eventTargetEl=null,delete this.eventTargetEl}},methods:{onPtrPullStart:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["ptr:pullstart ptrPullStart"].concat(t))},onPtrPullMove:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["ptr:pullmove ptrPullMove"].concat(t))},onPtrPullEnd:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["ptr:pullend ptrPullEnd"].concat(t))},onPtrRefresh:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["ptr:refresh ptrRefresh"].concat(t))},onPtrDone:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["ptr:done ptrDone"].concat(t))},onInfinite:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["infinite"].concat(t))},onPageMounted:function(e){this.eventTargetEl===e.el&&this.dispatchEvent("page:mounted pageMounted",e)},onPageInit:function(e){if(this.eventTargetEl===e.el){var t=this.props,n=t.withSubnavbar,r=t.subnavbar,i=t.withNavbarLarge,a=t.navbarLarge;void 0===n&&void 0===r&&(e.$navbarEl&&e.$navbarEl.length&&e.$navbarEl.find(".subnavbar").length||e.$el.children(".navbar").find(".subnavbar").length)&&this.setState({hasSubnavbar:!0}),void 0===i&&void 0===a&&e.$navbarEl&&e.$navbarEl.hasClass("navbar-large")&&this.setState({hasNavbarLarge:!0}),this.dispatchEvent("page:init pageInit",e)}},onPageReinit:function(e){this.eventTargetEl===e.el&&this.dispatchEvent("page:reinit pageReinit",e)},onPageBeforeIn:function(e){this.eventTargetEl===e.el&&(e.swipeBack||("next"===e.from&&this.setState({routerPositionClass:"page-next"}),"previous"===e.from&&this.setState({routerPositionClass:"page-previous"})),this.dispatchEvent("page:beforein pageBeforeIn",e))},onPageBeforeOut:function(e){this.eventTargetEl===e.el&&this.dispatchEvent("page:beforeout pageBeforeOut",e)},onPageAfterOut:function(e){this.eventTargetEl===e.el&&("next"===e.to&&this.setState({routerPositionClass:"page-next"}),"previous"===e.to&&this.setState({routerPositionClass:"page-previous"}),this.dispatchEvent("page:afterout pageAfterOut",e))},onPageAfterIn:function(e){this.eventTargetEl===e.el&&(this.setState({routerPositionClass:"page-current"}),this.dispatchEvent("page:afterin pageAfterIn",e))},onPageBeforeRemove:function(e){this.eventTargetEl===e.el&&this.dispatchEvent("page:beforeremove pageBeforeRemove",e)},onPageBeforeUnmount:function(e){this.eventTargetEl===e.el&&this.dispatchEvent("page:beforeunmount pageBeforeUnmount",e)},onPageStack:function(e){this.eventTargetEl===e&&this.setState({routerForceUnstack:!1})},onPageUnstack:function(e){this.eventTargetEl===e&&this.setState({routerForceUnstack:!0})},onPagePosition:function(e,t){this.eventTargetEl===e&&this.setState({routerPositionClass:"page-".concat(t)})},onPageRole:function(e,t){this.eventTargetEl===e&&this.setState({routerPageRole:t.role,routerPageRoleDetailRoot:t.detailRoot})},onPageMasterStack:function(e){this.eventTargetEl===e&&this.setState({routerPageMasterStack:!0})},onPageMasterUnstack:function(e){this.eventTargetEl===e&&this.setState({routerPageMasterStack:!1})},onPageNavbarLargeCollapsed:function(e){this.eventTargetEl===e&&this.setState({hasNavbarLargeCollapsed:!0})},onPageNavbarLargeExpanded:function(e){this.eventTargetEl===e&&this.setState({hasNavbarLargeCollapsed:!1})},onCardOpened:function(e,t){this.eventTargetEl===t&&this.setState({hasCardExpandableOpened:!0})},onCardClose:function(e,t){this.eventTargetEl===t&&this.setState({hasCardExpandableOpened:!1})},onPageTabShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("page:tabshow pageTabShow")},onPageTabHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("page:tabhide pageTabHide")},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))},setState:function(e,t){fo(this,e,t)}},computed:{props:function(){return eo(this)}}},_s={name:"f7-panel",props:Object.assign({id:[String,Number],side:String,effect:String,cover:Boolean,reveal:Boolean,left:Boolean,right:Boolean,opened:Boolean,resizable:Boolean,backdrop:{type:Boolean,default:!0},backdropEl:{type:String,default:void 0},visibleBreakpoint:{type:Number,default:void 0},collapsedBreakpoint:{type:Number,default:void 0},swipe:Boolean,swipeNoFollow:Boolean,swipeOnlyClose:Boolean,swipeActiveArea:{type:Number,default:0},swipeThreshold:{type:Number,default:0}},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.resizable;return e("div",{ref:"el",style:r,class:this.classes,attrs:{id:n}},[this.$slots.default,i&&e("div",{class:"panel-resize-handler"})])},computed:{classes:function(){var e,t=this.props,n=t.left,r=t.reveal,i=t.className,a=t.resizable,o=t.side,s=t.effect;return o=o||(n?"left":"right"),s=s||(r?"reveal":"cover"),Qa.classNames(i,"panel",(e={"panel-resizable":a},K()(e,"panel-".concat(o),o),K()(e,"panel-".concat(s),s),e),Za.colorClasses(t))},props:function(){return eo(this)}},watch:{"props.resizable":function(e){this.f7Panel&&(e?this.f7Panel.enableResizable():this.f7Panel.disableResizable())},"props.opened":function(e){this.f7Panel&&(e?this.f7Panel.open():this.f7Panel.close())}},created:function(){Qa.bindMethods(this,["onOpen","onOpened","onClose","onClosed","onBackdropClick","onSwipe","onSwipeOpen","onBreakpoint","onCollapsedBreakpoint","onResize"])},mounted:function(){var e=this,t=e.$refs.el,n=e.props,r=n.opened,i=n.resizable,a=n.backdrop,o=n.backdropEl,s=n.visibleBreakpoint,l=n.collapsedBreakpoint,c=n.swipe,u=n.swipeNoFollow,d=n.swipeOnlyClose,h=n.swipeActiveArea,f=n.swipeThreshold;e.$f7ready((function(){var n=e.$$;if(n){0===n(".panel-backdrop").length&&n('<div class="panel-backdrop"></div>').insertBefore(t);var p=Qa.noUndefinedProps({el:t,resizable:i,backdrop:a,backdropEl:o,visibleBreakpoint:s,collapsedBreakpoint:l,swipe:c,swipeNoFollow:u,swipeOnlyClose:d,swipeActiveArea:h,swipeThreshold:f,on:{open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed,backdropClick:e.onBackdropClick,swipe:e.onSwipe,swipeOpen:e.onSwipeOpen,collapsedBreakpoint:e.onCollapsedBreakpoint,breakpoint:e.onBreakpoint,resize:e.onResize}});e.f7Panel=e.$f7.panel.create(p),r&&e.f7Panel.open(!1)}}))},beforeDestroy:function(){this.f7Panel&&this.f7Panel.destroy&&this.f7Panel.destroy()},methods:{onOpen:function(e){this.dispatchEvent("panel:open panelOpen",e)},onOpened:function(e){this.dispatchEvent("panel:opened panelOpened",e)},onClose:function(e){this.dispatchEvent("panel:close panelClose",e)},onClosed:function(e){this.dispatchEvent("panel:closed panelClosed",e)},onBackdropClick:function(e){this.dispatchEvent("panel:backdrop-click panelBackdropClick",e)},onSwipe:function(e){this.dispatchEvent("panel:swipe panelSwipe",e)},onSwipeOpen:function(e){this.dispatchEvent("panel:swipeopen panelSwipeOpen",e)},onBreakpoint:function(e){this.dispatchEvent("panel:breakpoint panelBreakpoint",e)},onCollapsedBreakpoint:function(e){this.dispatchEvent("panel:collapsedbreakpoint panelCollapsedBreakpoint",e)},onResize:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["panel:resize panelResize"].concat(t))},open:function(e){this.f7Panel&&this.f7Panel.open(e)},close:function(e){this.f7Panel&&this.f7Panel.close(e)},toggle:function(e){this.f7Panel&&this.f7Panel.toggle(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}}},ws={name:"f7-photo-browser",props:{id:[String,Number],init:{type:Boolean,default:!0},params:Object,photos:Array,exposition:{type:Boolean,default:!0},expositionHideCaptions:{type:Boolean,default:!1},type:{type:String},navbar:{type:Boolean,default:!0},toolbar:{type:Boolean,default:!0},theme:{type:String},captionsTheme:{type:String},iconsColor:{type:String},swipeToClose:{type:Boolean,default:!0},pageBackLinkText:{type:String,default:void 0},popupCloseLinkText:{type:String,default:void 0},navbarOfText:{type:String,default:void 0},navbarShowCount:{type:Boolean,default:void 0},swiper:{type:Object},url:{type:String},routableModals:{type:Boolean,default:!0},virtualSlides:{type:Boolean,default:!0},view:[String,Object],renderNavbar:Function,renderToolbar:Function,renderCaption:Function,renderObject:Function,renderLazyPhoto:Function,renderPhoto:Function,renderPage:Function,renderPopup:Function,renderStandalone:Function},render:function(){this.$createElement;return null},watch:{"props.photos":function(e){var t=this.f7PhotoBrowser;t&&(this.f7PhotoBrowser.params.photos=e,t.opened&&t.swiper&&t.swiper.update())}},beforeDestroy:function(){this.f7PhotoBrowser&&this.f7PhotoBrowser.destroy&&this.f7PhotoBrowser.destroy()},mounted:function(){var e=this;e.props.init&&e.$f7ready((function(t){var n;n=void 0!==e.props.params?e.props.params:Object.assign({},e.props),Object.keys(n).forEach((function(e){void 0!==n[e]&&""!==n[e]||delete n[e]})),n=Qa.extend({},n,{on:{open:function(){e.dispatchEvent("photobrowser:open photoBrowserOpen")},close:function(){e.dispatchEvent("photobrowser:close photoBrowserClose")},opened:function(){e.dispatchEvent("photobrowser:opened photoBrowserOpened")},closed:function(){e.dispatchEvent("photobrowser:closed photoBrowserClosed")},swipeToClose:function(){e.dispatchEvent("photobrowser:swipetoclose photoBrowserSwipeToClose")}}}),e.f7PhotoBrowser=t.photoBrowser.create(n)}))},methods:{open:function(e){return this.f7PhotoBrowser.open(e)},close:function(){return this.f7PhotoBrowser.close()},expositionToggle:function(){return this.f7PhotoBrowser.expositionToggle()},expositionEnable:function(){return this.f7PhotoBrowser.expositionEnable()},expositionDisable:function(){return this.f7PhotoBrowser.expositionDisable()},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},ks={name:"f7-popover",props:Object.assign({id:[String,Number],opened:Boolean,target:[String,Object],backdrop:Boolean,backdropEl:[String,Object,window.HTMLElement],closeByBackdropClick:Boolean,closeByOutsideClick:Boolean,closeOnEscape:Boolean},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{ref:"el",style:t.style,class:Qa.classNames(n,"popover",Za.colorClasses(t)),attrs:{id:r}},[e("div",{class:"popover-angle"}),e("div",{class:"popover-inner"},[this.$slots.default])])},watch:{"props.opened":function(e){this.f7Popover&&(e?this.f7Popover.open():this.f7Popover.close())}},created:function(){Qa.bindMethods(this,["onOpen","onOpened","onClose","onClosed"])},mounted:function(){var e=this,t=e.$refs.el;if(t){var n=e.props,r=n.target,i=n.opened,a=n.backdrop,o=n.backdropEl,s=n.closeByBackdropClick,l=n.closeByOutsideClick,c=n.closeOnEscape,u={el:t,on:{open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed}};r&&(u.targetEl=r);var d=e.$options.propsData;void 0!==d.closeByBackdropClick&&(u.closeByBackdropClick=s),void 0!==d.closeByOutsideClick&&(u.closeByOutsideClick=l),void 0!==d.closeOnEscape&&(u.closeOnEscape=c),void 0!==d.backdrop&&(u.backdrop=a),void 0!==d.backdropEl&&(u.backdropEl=o),e.$f7ready((function(){e.f7Popover=e.$f7.popover.create(u),i&&r&&e.f7Popover.open(r,!1)}))}},beforeDestroy:function(){this.f7Popover&&this.f7Popover.destroy()},methods:{onOpen:function(e){this.dispatchEvent("popover:open popoverOpen",e)},onOpened:function(e){this.dispatchEvent("popover:opened popoverOpened",e)},onClose:function(e){this.dispatchEvent("popover:close popoverClose",e)},onClosed:function(e){this.dispatchEvent("popover:closed popoverClosed",e)},open:function(e){if(this.f7Popover)return this.f7Popover.open(e)},close:function(e){if(this.f7Popover)return this.f7Popover.close(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},Es={name:"f7-popup",props:Object.assign({id:[String,Number],tabletFullscreen:Boolean,opened:Boolean,animate:Boolean,backdrop:Boolean,backdropEl:[String,Object,window.HTMLElement],closeByBackdropClick:Boolean,closeOnEscape:Boolean,swipeToClose:{type:[Boolean,String],default:!1},swipeHandler:[String,Object,window.HTMLElement],push:Boolean},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.tabletFullscreen,o=t.push;return e("div",{ref:"el",style:i,class:Qa.classNames(n,"popup",{"popup-tablet-fullscreen":a,"popup-push":o},Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},watch:{"props.opened":function(e){this.f7Popup&&(e?this.f7Popup.open():this.f7Popup.close())}},created:function(){Qa.bindMethods(this,["onOpen","onOpened","onClose","onClosed","onSwipeStart","onSwipeMove","onSwipeEnd","onSwipeClose"])},mounted:function(){var e=this,t=e.$refs.el;if(t){var n=e.props,r=n.closeByBackdropClick,i=n.backdrop,a=n.backdropEl,o=n.animate,s=n.closeOnEscape,l=n.swipeToClose,c=n.swipeHandler,u={el:t,on:{swipeStart:e.onSwipeStart,swipeMove:e.onSwipeMove,swipeEnd:e.onSwipeEnd,swipeClose:e.onSwipeClose,open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed}},d=e.$options.propsData;void 0!==d.closeByBackdropClick&&(u.closeByBackdropClick=r),void 0!==d.closeOnEscape&&(u.closeOnEscape=s),void 0!==d.animate&&(u.animate=o),void 0!==d.backdrop&&(u.backdrop=i),void 0!==d.backdropEl&&(u.backdropEl=a),void 0!==d.swipeToClose&&(u.swipeToClose=l),void 0!==d.swipeHandler&&(u.swipeHandler=c),e.$f7ready((function(){e.f7Popup=e.$f7.popup.create(u),e.props.opened&&e.f7Popup.open(!1)}))}},beforeDestroy:function(){this.f7Popup&&this.f7Popup.destroy()},methods:{onSwipeStart:function(e){this.dispatchEvent("popup:swipestart popupSwipeStart",e)},onSwipeMove:function(e){this.dispatchEvent("popup:swipemove popupSwipeMove",e)},onSwipeEnd:function(e){this.dispatchEvent("popup:swipeend popupSwipeEnd",e)},onSwipeClose:function(e){this.dispatchEvent("popup:swipeclose popupSwipeClose",e)},onOpen:function(e){this.dispatchEvent("popup:open popupOpen",e)},onOpened:function(e){this.dispatchEvent("popup:opened popupOpened",e)},onClose:function(e){this.dispatchEvent("popup:close popupClose",e)},onClosed:function(e){this.dispatchEvent("popup:closed popupClosed",e)},open:function(e){if(this.f7Popup)return this.f7Popup.open(e)},close:function(e){if(this.f7Popup)return this.f7Popup.close(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},Ss={name:"f7-progressbar",props:Object.assign({id:[String,Number],progress:Number,infinite:Boolean},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.progress,r=t.id,i=t.style,a=t.infinite,o=t.className,s={transform:n?"translate3d(".concat(-100+n,"%, 0, 0)"):"",WebkitTransform:n?"translate3d(".concat(-100+n,"%, 0, 0)"):""};return e("span",{ref:"el",style:i,class:Qa.classNames(o,"progressbar",{"progressbar-infinite":a},Za.colorClasses(t)),attrs:{id:r,"data-progress":n}},[e("span",{style:s})])},methods:{set:function(e,t){this.$f7&&this.$f7.progressbar.set(this.$refs.el,e,t)}},computed:{props:function(){return eo(this)}}},Ts={name:"f7-radio",props:Object.assign({id:[String,Number],checked:Boolean,name:[Number,String],value:[Number,String,Boolean],disabled:Boolean,readonly:Boolean,defaultChecked:Boolean},Za.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.name,i=n.value,a=n.disabled,o=n.readonly,s=n.checked,l=(n.defaultChecked,n.id),c=n.style,u=n.className;e=t("input",{ref:"inputEl",domProps:{value:i,disabled:a,readonly:o,checked:s},on:{change:this.onChange},attrs:{type:"radio",name:r}});var d=t("i",{class:"icon-radio"});return t("label",{style:c,class:Qa.classNames(u,"radio",{disabled:a},Za.colorClasses(n)),attrs:{id:l}},[e,d,this.$slots.default])},created:function(){Qa.bindMethods(this,["onChange"])},methods:{onChange:function(e){this.dispatchEvent("change",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},Cs={name:"f7-row",props:Object.assign({id:[String,Number],noGap:Boolean,tag:{type:String,default:"div"},resizable:Boolean,resizableFixed:Boolean,resizableAbsolute:Boolean,resizableHandler:{type:Boolean,default:!0}},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.tag,o=t.noGap,s=t.resizable,l=t.resizableFixed,c=t.resizableAbsolute,u=t.resizableHandler;return e(a,{style:i,class:Qa.classNames(n,"row",{"no-gap":o,resizable:s,"resizable-fixed":l,"resizable-absolute":c},Za.colorClasses(t)),ref:"el",attrs:{id:r}},[this.$slots.default,s&&u&&e("span",{class:"resize-handler"})])},created:function(){Qa.bindMethods(this,["onClick","onResize"])},mounted:function(){var e=this;e.eventTargetEl=e.$refs.el,e.eventTargetEl.addEventListener("click",e.onClick),e.$f7ready((function(t){t.on("gridResize",e.onResize)}))},beforeDestroy:function(){var e=this.$refs.el;e&&this.$f7&&(e.removeEventListener("click",this.onClick),this.$f7.off("gridResize",this.onResize),delete this.eventTargetEl)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onResize:function(e){e===this.eventTargetEl&&this.dispatchEvent("grid:resize gridResize")},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},Ms={name:"f7-searchbar",props:Object.assign({id:[String,Number],noShadow:Boolean,noHairline:Boolean,form:{type:Boolean,default:!0},placeholder:{type:String,default:"Search"},disableButton:{type:Boolean,default:!0},disableButtonText:{type:String,default:"Cancel"},clearButton:{type:Boolean,default:!0},value:[String,Number,Array],inputEvents:{type:String,default:"change input compositionend"},expandable:Boolean,inline:Boolean,searchContainer:[String,Object],searchIn:{type:String,default:".item-title"},searchItem:{type:String,default:"li"},searchGroup:{type:String,default:".list-group"},searchGroupTitle:{type:String,default:".item-divider, .list-group-title"},foundEl:{type:[String,Object],default:".searchbar-found"},notFoundEl:{type:[String,Object],default:".searchbar-not-found"},backdrop:{type:Boolean,default:void 0},backdropEl:[String,Object],hideOnEnableEl:{type:[String,Object],default:".searchbar-hide-on-enable"},hideOnSearchEl:{type:[String,Object],default:".searchbar-hide-on-search"},ignore:{type:String,default:".searchbar-ignore"},customSearch:{type:Boolean,default:!1},removeDiacritics:{type:Boolean,default:!1},hideDividers:{type:Boolean,default:!0},hideGroups:{type:Boolean,default:!0},init:{type:Boolean,default:!0}},Za.colorProps),render:function(){var e,t,n=this.$createElement,r=this.props,i=r.placeholder,a=r.clearButton,o=r.disableButton,s=r.disableButtonText,l=r.form,c=r.noShadow,u=r.noHairline,d=r.expandable,h=r.className,f=r.style,p=r.id,m=r.value,v=r.inline;a&&(e=n("span",{ref:"clearEl",class:"input-clear-button"})),o&&(t=n("span",{ref:"disableEl",class:"searchbar-disable-button"},[s]));var g,y=l?"form":"div",b=Qa.classNames(h,"searchbar",{"searchbar-inline":v,"no-shadow":c,"no-hairline":u,"searchbar-expandable":d},Za.colorClasses(r));return g=n("input",{ref:"inputEl",domProps:{value:m},on:{input:this.onInput,change:this.onChange,focus:this.onFocus,blur:this.onBlur},attrs:{placeholder:i,type:"search"}}),n(y,{ref:"el",style:f,class:b,attrs:{id:p}},[this.$slots["before-inner"],n("div",{class:"searchbar-inner"},[this.$slots["inner-start"],n("div",{class:"searchbar-input-wrap"},[this.$slots["input-wrap-start"],g,n("i",{class:"searchbar-icon"}),e,this.$slots["input-wrap-end"]]),t,this.$slots["inner-end"],this.$slots.default]),this.$slots["after-inner"]])},created:function(){Qa.bindMethods(this,["onSubmit","onClearButtonClick","onDisableButtonClick","onInput","onChange","onFocus","onBlur"])},mounted:function(){var e=this,t=e.props,n=t.init,r=t.inputEvents,i=t.searchContainer,a=t.searchIn,o=t.searchItem,s=t.searchGroup,l=t.searchGroupTitle,c=t.hideOnEnableEl,u=t.hideOnSearchEl,d=t.foundEl,h=t.notFoundEl,f=t.backdrop,p=t.backdropEl,m=t.disableButton,v=t.ignore,g=t.customSearch,y=t.removeDiacritics,b=t.hideDividers,_=t.hideGroups,w=t.form,k=t.expandable,E=t.inline,S=e.$refs,T=S.el,C=S.clearEl,M=S.disableEl;w&&T&&T.addEventListener("submit",e.onSubmit,!1),C&&C.addEventListener("click",e.onClearButtonClick),M&&M.addEventListener("click",e.onDisableButtonClick),n&&e.$f7ready((function(){var t=Qa.noUndefinedProps({el:e.$refs.el,inputEvents:r,searchContainer:i,searchIn:a,searchItem:o,searchGroup:s,searchGroupTitle:l,hideOnEnableEl:c,hideOnSearchEl:u,foundEl:d,notFoundEl:h,backdrop:f,backdropEl:p,disableButton:m,ignore:v,customSearch:g,removeDiacritics:y,hideDividers:b,hideGroups:_,expandable:k,inline:E,on:{search:function(t,n,r){e.dispatchEvent("searchbar:search searchbarSearch",t,n,r)},clear:function(t,n){e.dispatchEvent("searchbar:clear searchbarClear",t,n)},enable:function(t){e.dispatchEvent("searchbar:enable searchbarEnable",t)},disable:function(t){e.dispatchEvent("searchbar:disable searchbarDisable",t)}}});Object.keys(t).forEach((function(e){""===t[e]&&delete t[e]})),e.f7Searchbar=e.$f7.searchbar.create(t)}))},beforeDestroy:function(){var e=this.$refs,t=e.el,n=e.clearEl,r=e.disableEl;this.props.form&&t&&t.removeEventListener("submit",this.onSubmit,!1),n&&n.removeEventListener("click",this.onClearButtonClick),r&&r.removeEventListener("click",this.onDisableButtonClick),this.f7Searchbar&&this.f7Searchbar.destroy&&this.f7Searchbar.destroy()},methods:{search:function(e){if(this.f7Searchbar)return this.f7Searchbar.search(e)},enable:function(){if(this.f7Searchbar)return this.f7Searchbar.enable()},disable:function(){if(this.f7Searchbar)return this.f7Searchbar.disable()},toggle:function(){if(this.f7Searchbar)return this.f7Searchbar.toggle()},clear:function(){if(this.f7Searchbar)return this.f7Searchbar.clear()},onChange:function(e){this.dispatchEvent("change",e)},onInput:function(e){this.dispatchEvent("input",e)},onFocus:function(e){this.dispatchEvent("focus",e)},onBlur:function(e){this.dispatchEvent("blur",e)},onSubmit:function(e){this.dispatchEvent("submit",e)},onClearButtonClick:function(e){this.dispatchEvent("click:clear clickClear",e)},onDisableButtonClick:function(e){this.dispatchEvent("click:disable clickDisable",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},xs={name:"f7-segmented",props:Object.assign({id:[String,Number],raised:Boolean,raisedIos:Boolean,raisedMd:Boolean,raisedAurora:Boolean,round:Boolean,roundIos:Boolean,roundMd:Boolean,roundAurora:Boolean,strong:Boolean,strongIos:Boolean,strongMd:Boolean,strongAurora:Boolean,tag:{type:String,default:"div"}},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.raised,i=t.raisedIos,a=t.raisedAurora,o=t.raisedMd,s=t.round,l=t.roundIos,c=t.roundAurora,u=t.roundMd,d=t.strong,h=t.strongIos,f=t.strongMd,p=t.strongAurora,m=t.id,v=t.style;return e(t.tag,{style:v,class:Qa.classNames(n,{segmented:!0,"segmented-raised":r,"segmented-raised-ios":i,"segmented-raised-aurora":a,"segmented-raised-md":o,"segmented-round":s,"segmented-round-ios":l,"segmented-round-aurora":c,"segmented-round-md":u,"segmented-strong":d,"segmented-strong-ios":h,"segmented-strong-md":f,"segmented-strong-aurora":p},Za.colorClasses(t)),attrs:{id:m}},[this.$slots.default,(d||h||f||p)&&e("span",{class:"segmented-highlight"})])},computed:{props:function(){return eo(this)}}},$s={name:"f7-sheet",props:Object.assign({id:[String,Number],opened:Boolean,top:Boolean,bottom:Boolean,position:String,backdrop:Boolean,backdropEl:[String,Object,window.HTMLElement],closeByBackdropClick:Boolean,closeByOutsideClick:Boolean,closeOnEscape:Boolean,push:Boolean,swipeToClose:Boolean,swipeToStep:Boolean,swipeHandler:[String,Object,window.HTMLElement]},Za.colorProps),render:function(){var e,t=this.$createElement,n=[],r=[],i=this.props,a=i.id,o=i.style,s=i.className,l=i.top,c=i.bottom,u=i.position,d=i.push;e="navbar toolbar tabbar subnavbar searchbar messagebar fab list-index".split(" ");var h=this.$slots.default;h&&h.length&&h.forEach((function(t){if(void 0!==t){var i=!1,a=t.tag;if(a){for(var o=0;o<e.length;o+=1)a.indexOf(e[o])>=0&&(i=!0);i?n.push(t):r.push(t)}}}));var f=t("div",{class:"sheet-modal-inner"},[r]),p="bottom";return u?p=u:l?p="top":c&&(p="bottom"),t("div",{ref:"el",style:o,class:Qa.classNames(s,"sheet-modal","sheet-modal-".concat(p),{"sheet-modal-push":d},Za.colorClasses(i)),attrs:{id:a}},[n,f])},watch:{"props.opened":function(e){this.f7Sheet&&(e?this.f7Sheet.open():this.f7Sheet.close())}},created:function(){Qa.bindMethods(this,["onOpen","onOpened","onClose","onClosed","onStepOpen","onStepClose","onStepProgress"])},mounted:function(){var e=this;if(e.$refs.el){var t=e.props,n=t.opened,r=t.backdrop,i=t.backdropEl,a=t.closeByBackdropClick,o=t.closeByOutsideClick,s=t.closeOnEscape,l=t.swipeToClose,c=t.swipeToStep,u=t.swipeHandler,d={el:e.$refs.el,on:{open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed,stepOpen:e.onStepOpen,stepClose:e.onStepClose,stepProgress:e.onStepProgress}},h=e.$options.propsData;void 0!==h.backdrop&&(d.backdrop=r),void 0!==h.backdropEl&&(d.backdropEl=i),void 0!==h.closeByBackdropClick&&(d.closeByBackdropClick=a),void 0!==h.closeByOutsideClick&&(d.closeByOutsideClick=o),void 0!==h.closeOnEscape&&(d.closeOnEscape=s),void 0!==h.swipeToClose&&(d.swipeToClose=l),void 0!==h.swipeToStep&&(d.swipeToStep=c),void 0!==h.swipeHandler&&(d.swipeHandler=u),e.$f7ready((function(){e.f7Sheet=e.$f7.sheet.create(d),n&&e.f7Sheet.open(!1)}))}},beforeDestroy:function(){this.f7Sheet&&this.f7Sheet.destroy()},methods:{onStepProgress:function(e,t){this.dispatchEvent("sheet:stepprogress sheetStepProgress",e,t)},onStepOpen:function(e){this.dispatchEvent("sheet:stepopen sheetStepOpen",e)},onStepClose:function(e){this.dispatchEvent("sheet:stepclose sheetStepClose",e)},onOpen:function(e){this.dispatchEvent("sheet:open sheetOpen",e)},onOpened:function(e){this.dispatchEvent("sheet:opened sheetOpened",e)},onClose:function(e){this.dispatchEvent("sheet:close sheetClose",e)},onClosed:function(e){this.dispatchEvent("sheet:closed sheetClosed",e)},open:function(e){if(this.f7Sheet)return this.f7Sheet.open(e)},close:function(e){if(this.f7Sheet)return this.f7Sheet.close(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},Ls={name:"f7-skeleton-block",props:Object.assign({id:[String,Number],width:[Number,String],height:[Number,String],tag:{type:String,default:"div"}},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.width,o=t.height,s=t.tag,l=Qa.classNames("skeleton-block",n,Za.colorClasses(t)),c=i;if(a){var u="number"==typeof a?"".concat(a,"px"):a;c?"object"===O()(c)?c=Object.assign({width:u},c):"string"==typeof c&&(c="width: ".concat(u,"; ").concat(c)):c={width:u}}if(o){var d="number"==typeof o?"".concat(o,"px"):o;c?"object"===O()(c)?c=Object.assign({height:d},c):"string"==typeof c&&(c="height: ".concat(d,"; ").concat(c)):c={height:d}}return e(s,{style:c,class:l,attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},Ps={name:"f7-skeleton-text",props:Object.assign({id:[String,Number],width:[Number,String],height:[Number,String],tag:{type:String,default:"span"}},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.width,o=t.height,s=t.tag,l=Qa.classNames("skeleton-text",n,Za.colorClasses(t)),c=i;if(a){var u="number"==typeof a?"".concat(a,"px"):a;c?"object"===O()(c)?c=Object.assign({width:u},c):"string"==typeof c&&(c="width: ".concat(u,"; ").concat(c)):c={width:u}}if(o){var d="number"==typeof o?"".concat(o,"px"):o;c?"object"===O()(c)?c=Object.assign({height:d},c):"string"==typeof c&&(c="height: ".concat(d,"; ").concat(c)):c={height:d}}return e(s,{style:c,class:l,attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},Os={name:"f7-stepper",props:Object.assign({id:[String,Number],init:{type:Boolean,default:!0},value:{type:Number,default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},formatValue:Function,name:String,inputId:String,input:{type:Boolean,default:!0},inputType:{type:String,default:"text"},inputReadonly:{type:Boolean,default:!1},autorepeat:{type:Boolean,default:!1},autorepeatDynamic:{type:Boolean,default:!1},wraps:{type:Boolean,default:!1},manualInputMode:{type:Boolean,default:!1},decimalPoint:{type:Number,default:4},buttonsEndInputMode:{type:Boolean,default:!0},disabled:Boolean,buttonsOnly:Boolean,round:Boolean,roundMd:Boolean,roundIos:Boolean,roundAurora:Boolean,fill:Boolean,fillMd:Boolean,fillIos:Boolean,fillAurora:Boolean,large:Boolean,largeMd:Boolean,largeIos:Boolean,largeAurora:Boolean,small:Boolean,smallMd:Boolean,smallIos:Boolean,smallAurora:Boolean,raised:Boolean,raisedMd:Boolean,raisedIos:Boolean,raisedAurora:Boolean},Za.colorProps),render:function(){var e,t,n,r=this.$createElement,i=this.props,a=i.input,o=i.buttonsOnly,s=i.inputType,l=i.value,c=i.inputReadonly,u=i.min,d=i.max,h=i.step,f=i.id,p=i.style,m=i.name,v=i.inputId;a&&!o&&(n=r("input",{ref:"inputEl",domProps:{readOnly:c,value:l},on:{input:this.onInput,change:this.onChange},attrs:{name:m,id:v,type:s,min:"number"===s?u:void 0,max:"number"===s?d:void 0,step:"number"===s?h:void 0}}),e=r("div",{class:"stepper-input-wrap"},[n]));return a||o||(t=r("div",{class:"stepper-value"},[l])),r("div",{ref:"el",style:p,class:this.classes,attrs:{id:f}},[r("div",{ref:"minusEl",class:"stepper-button-minus"}),e,t,r("div",{ref:"plusEl",class:"stepper-button-plus"})])},computed:{classes:function(){var e=this.props,t=e.round,n=e.roundIos,r=e.roundMd,i=e.roundAurora,a=e.fill,o=e.fillIos,s=e.fillMd,l=e.fillAurora,c=e.large,u=e.largeIos,d=e.largeMd,h=e.largeAurora,f=e.small,p=e.smallIos,m=e.smallMd,v=e.smallAurora,g=e.raised,y=e.raisedMd,b=e.raisedIos,_=e.raisedAurora,w=e.disabled;return Qa.classNames(this.props.className,"stepper",{disabled:w,"stepper-round":t,"stepper-round-ios":n,"stepper-round-md":r,"stepper-round-aurora":i,"stepper-fill":a,"stepper-fill-ios":o,"stepper-fill-md":s,"stepper-fill-aurora":l,"stepper-large":c,"stepper-large-ios":u,"stepper-large-md":d,"stepper-large-aurora":h,"stepper-small":f,"stepper-small-ios":p,"stepper-small-md":m,"stepper-small-aurora":v,"stepper-raised":g,"stepper-raised-ios":b,"stepper-raised-md":y,"stepper-raised-aurora":_},Za.colorClasses(e))},props:function(){return eo(this)}},created:function(){Qa.bindMethods(this,["onInput","onMinusClick","onPlusClick"])},mounted:function(){var e=this,t=e.$refs,n=t.minusEl,r=t.plusEl;n&&n.addEventListener("click",e.onMinusClick),r&&r.addEventListener("click",e.onPlusClick),e.props.init&&e.$f7ready((function(t){var n=e.props,r=n.min,i=n.max,a=n.value,o=n.step,s=n.formatValue,l=n.autorepeat,c=n.autorepeatDynamic,u=n.wraps,d=n.manualInputMode,h=n.decimalPoint,f=n.buttonsEndInputMode,p=e.$refs.el;p&&(e.f7Stepper=t.stepper.create(Qa.noUndefinedProps({el:p,min:r,max:i,value:a,step:o,formatValue:s,autorepeat:l,autorepeatDynamic:c,wraps:u,manualInputMode:d,decimalPoint:h,buttonsEndInputMode:f,on:{change:function(t,n){e.dispatchEvent("stepper:change stepperChange",n)}}})))}))},beforeDestroy:function(){var e=this.$refs,t=e.minusEl,n=e.plusEl;t&&t.removeEventListener("click",this.onMinusClick),n&&n.removeEventListener("click",this.onPlusClick),this.props.init&&this.f7Stepper&&this.f7Stepper.destroy&&this.f7Stepper.destroy()},methods:{increment:function(){this.f7Stepper&&this.f7Stepper.increment()},decrement:function(){this.f7Stepper&&this.f7Stepper.decrement()},setValue:function(e){this.f7Stepper&&this.f7Stepper.setValue&&this.f7Stepper.setValue(e)},getValue:function(){if(this.f7Stepper&&this.f7Stepper.getValue)return this.f7Stepper.getValue()},onInput:function(e){var t=this.f7Stepper;this.dispatchEvent("input",e,t)},onChange:function(e){var t=this.f7Stepper;this.dispatchEvent("change",e,t)},onMinusClick:function(e){var t=this.f7Stepper;this.dispatchEvent("stepper:minusclick stepperMinusClick",e,t)},onPlusClick:function(e){var t=this.f7Stepper;this.dispatchEvent("stepper:plusclick stepperPlusClick",e,t)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}}},Is={name:"f7-subnavbar",props:Object.assign({id:[String,Number],sliding:Boolean,title:String,inner:{type:Boolean,default:!0}},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.inner,r=t.title,i=t.style,a=t.id,o=t.className,s=t.sliding;return e("div",{class:Qa.classNames(o,"subnavbar",{sliding:s},Za.colorClasses(t)),style:i,attrs:{id:a}},[n?e("div",{class:"subnavbar-inner"},[r&&e("div",{class:"subnavbar-title"},[r]),this.$slots.default]):this.$slots.default])},computed:{props:function(){return eo(this)}}},As={name:"f7-swipeout-actions",props:Object.assign({id:[String,Number],left:Boolean,right:Boolean,side:String},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.left,r=t.right,i=t.side,a=t.className,o=t.id,s=i;return s||(n&&(s="left"),r&&(s="right")),e("div",{style:t.style,class:Qa.classNames(a,"swipeout-actions-".concat(s),Za.colorClasses(t)),attrs:{id:o}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},Ds={name:"f7-swipeout-button",props:Object.assign({id:[String,Number],text:String,confirmTitle:String,confirmText:String,overswipe:Boolean,close:Boolean,delete:Boolean,href:String},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.overswipe,o=t.delete,s=t.close,l=t.href,c=t.confirmTitle,u=t.confirmText,d=t.text;return e("a",{ref:"el",style:i,class:Qa.classNames(n,{"swipeout-overswipe":a,"swipeout-delete":o,"swipeout-close":s},Za.colorClasses(t)),attrs:{href:l||"#",id:r,"data-confirm":u||void 0,"data-confirm-title":c||void 0}},[this.$slots.default||[d]])},created:function(){Qa.bindMethods(this,["onClick"])},mounted:function(){this.$refs.el.addEventListener("click",this.onClick)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick)},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return eo(this)}}},Ns={name:"f7-swiper-slide",props:{id:[String,Number],zoom:Boolean},render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.zoom;return e("div",{style:i,class:Qa.classNames(n,"swiper-slide"),attrs:{id:r}},[a?e("div",{class:"swiper-zoom-container"},[this.$slots.default]):this.$slots.default])},computed:{props:function(){return eo(this)}}},Rs={name:"f7-swiper",props:Object.assign({id:[String,Number],params:Object,pagination:Boolean,scrollbar:Boolean,navigation:Boolean,init:{type:Boolean,default:!0}},Za.colorProps),render:function(){var e,t,n,r,i=this.$createElement,a=this.props,o=a.id,s=a.style,l=a.className;return this.paginationComputed&&(e=i("div",{ref:"paginationEl",class:"swiper-pagination"})),this.scrollbarComputed&&(t=i("div",{ref:"scrollbarEl",class:"swiper-scrollbar"})),this.navigationComputed&&(n=i("div",{ref:"nextEl",class:"swiper-button-next"}),r=i("div",{ref:"prevEl",class:"swiper-button-prev"})),i("div",{style:s,ref:"el",class:Qa.classNames(l,"swiper-container",Za.colorClasses(a)),attrs:{id:o}},[this.$slots["before-wrapper"],i("div",{class:"swiper-wrapper"},[this.$slots.default]),e,t,r,n,this.$slots["after-wrapper"]])},computed:{paginationComputed:function(){var e=this.props,t=e.pagination,n=e.params;return!!(!0===t||n&&n.pagination&&!n.pagination.el)},scrollbarComputed:function(){var e=this.props,t=e.scrollbar,n=e.params;return!!(!0===t||n&&n.scrollbar&&!n.scrollbar.el)},navigationComputed:function(){var e=this.props,t=e.navigation,n=e.params;return!(!0!==t&&(!n||!n.navigation||n.navigation.nextEl||n.navigation.prevEl))},props:function(){return eo(this)}},updated:function(){this.initialUpdate?this.swiper&&this.swiper.update&&this.swiper.update():this.initialUpdate=!0},mounted:function(){var e=this;e.props.init&&e.$f7ready((function(t){var n={pagination:{},navigation:{},scrollbar:{}},r=e.props,i=r.params,a=r.pagination,o=r.navigation,s=r.scrollbar;i&&Qa.extend(n,i),a&&!n.pagination.el&&(n.pagination.el=e.$refs.paginationEl),!o||n.navigation.nextEl||n.navigation.prevEl||(n.navigation.nextEl=e.$refs.nextEl,n.navigation.prevEl=e.$refs.prevEl),s&&!n.scrollbar.el&&(n.scrollbar.el=e.$refs.scrollbarEl),e.swiper=t.swiper.create(e.$refs.el,n)}))},beforeDestroy:function(){this.props.init&&this.swiper&&this.swiper.destroy&&this.swiper.destroy()}},Bs={name:"f7-tab",props:Object.assign({id:[String,Number],tabActive:Boolean},Za.colorProps),data:function(){eo(this);return{state:{tabContent:null}}},render:function(){var e,t=this.$createElement,n=this.props,r=n.tabActive,i=n.id,a=n.className,o=n.style,s=this.state.tabContent,l=Qa.classNames(a,"tab",{"tab-active":r},Za.colorClasses(n));return s&&(e=s.component),t("div",{style:o,ref:"el",class:l,attrs:{id:i}},[s?t(e,{key:s.id,props:s.props}):this.$slots.default])},created:function(){Qa.bindMethods(this,["onTabShow","onTabHide"])},updated:function(){this.routerData&&ho.events.emit("tabRouterDidUpdate",this.routerData)},beforeDestroy:function(){this.$f7&&(this.$f7.off("tabShow",this.onTabShow),this.$f7.off("tabHide",this.onTabHide)),this.routerData&&(ho.routers.tabs.splice(ho.routers.tabs.indexOf(this.routerData),1),this.routerData=null,this.eventTargetEl=null,delete this.routerData,delete this.eventTargetEl)},mounted:function(){var e=this,t=e.$refs.el;e.setState({tabContent:null}),e.$f7ready((function(){e.$f7.on("tabShow",e.onTabShow),e.$f7.on("tabHide",e.onTabHide),e.eventTargetEl=t,e.routerData={el:t,component:e,setTabContent:function(t){e.setState({tabContent:t})}},ho.routers.tabs.push(e.routerData)}))},methods:{show:function(e){this.$f7&&this.$f7.tab.show(this.$refs.el,e)},onTabShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:show tabShow",e)},onTabHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:hide tabHide",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))},setState:function(e,t){fo(this,e,t)}},computed:{props:function(){return eo(this)}}},Ys={name:"f7-tabs",props:Object.assign({id:[String,Number],animated:Boolean,swipeable:Boolean,routable:Boolean,swiperParams:{type:Object,default:void 0}},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.animated,r=t.swipeable,i=t.id,a=t.style,o=t.className,s=t.routable,l=Qa.classNames(o,Za.colorClasses(t)),c=Qa.classNames({"tabs-animated-wrap":n,"tabs-swipeable-wrap":r}),u=Qa.classNames({tabs:!0,"tabs-routable":s});return n||r?e("div",{style:a,class:Qa.classNames(c,l),ref:"wrapEl",attrs:{id:i}},[e("div",{class:u},[this.$slots.default])]):e("div",{style:a,class:Qa.classNames(u,l),attrs:{id:i}},[this.$slots.default])},mounted:function(){var e=this.props,t=e.swipeable,n=e.swiperParams;if(t&&n){var r=this.$refs.wrapEl;r&&(r.f7SwiperParams=n)}},computed:{props:function(){return eo(this)}}},js={name:"f7-toolbar",props:Object.assign({id:[String,Number],tabbar:Boolean,labels:Boolean,scrollable:Boolean,hidden:Boolean,noShadow:Boolean,noHairline:Boolean,noBorder:Boolean,position:{type:String,default:void 0},topMd:{type:Boolean,default:void 0},topIos:{type:Boolean,default:void 0},topAurora:{type:Boolean,default:void 0},top:{type:Boolean,default:void 0},bottomMd:{type:Boolean,default:void 0},bottomIos:{type:Boolean,default:void 0},bottomAurora:{type:Boolean,default:void 0},bottom:{type:Boolean,default:void 0},inner:{type:Boolean,default:!0}},Za.colorProps),data:function(){var e=this;eo(this);return{state:function(){var t=e,n=t.$f7;return n||t.$f7ready((function(){t.setState({_theme:t.$theme})})),{_theme:n?t.$theme:null}}()}},render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.className,a=t.inner,o=t.tabbar,s=t.labels,l=t.scrollable,c=t.hidden,u=t.noShadow,d=t.noHairline,h=t.noBorder,f=t.topMd,p=t.topIos,m=t.topAurora,v=t.top,g=t.bottomMd,y=t.bottomIos,b=t.bottomAurora,_=t.bottom,w=t.position,k=this.state._theme;return e("div",{style:r,ref:"el",class:Qa.classNames(i,"toolbar",{tabbar:o,"toolbar-bottom":k&&k.md&&g||k&&k.ios&&y||k&&k.aurora&&b||_||"bottom"===w,"toolbar-top":k&&k.md&&f||k&&k.ios&&p||k&&k.aurora&&m||v||"top"===w,"tabbar-labels":s,"tabbar-scrollable":l,"toolbar-hidden":c,"no-shadow":u,"no-hairline":d||h},Za.colorClasses(t)),attrs:{id:n}},[this.$slots["before-inner"],a?e("div",{class:"toolbar-inner"},[this.$slots.default]):this.$slots.default,this.$slots["after-inner"]])},created:function(){Qa.bindMethods(this,["onHide","onShow"])},updated:function(){this.props.tabbar&&this.$f7&&this.$f7.toolbar.setHighlight(this.$refs.el)},mounted:function(){var e=this,t=e.$refs.el;t&&e.$f7ready((function(n){e.eventTargetEl=t,e.props.tabbar&&n.toolbar.setHighlight(t),n.on("toolbarShow",e.onShow),n.on("toolbarHide",e.onHide)}))},beforeDestroy:function(){if(this.$refs.el&&this.$f7){var e=this.$f7;e.off("toolbarShow",this.onShow),e.off("toolbarHide",this.onHide),this.eventTargetEl=null,delete this.eventTargetEl}},methods:{onHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("toolbar:hide toolbarHide")},onShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("toolbar:show toolbarShow")},hide:function(e){this.$f7&&this.$f7.toolbar.hide(this.$refs.el,e)},show:function(e){this.$f7&&this.$f7.toolbar.show(this.$refs.el,e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))},setState:function(e,t){fo(this,e,t)}},computed:{props:function(){return eo(this)}}},Fs={props:Object.assign({id:[String,Number],toggle:{type:Boolean,default:void 0},itemToggle:Boolean,selectable:Boolean,selected:Boolean,opened:Boolean,label:String,loadChildren:Boolean,link:{type:[Boolean,String],default:void 0}},Za.colorProps,{},Za.linkActionsProps,{},Za.linkRouterProps,{},Za.linkIconProps),name:"f7-treeview-item",render:function(){var e,t=this.$createElement,n=this.props,r=n.id,i=n.style,a=n.toggle,o=n.label,s=n.icon,l=n.iconMaterial,c=n.iconF7,u=n.iconMd,d=n.iconIos,h=n.iconAurora,f=n.iconSize,p=n.iconColor,m=n.link,v=this.$slots,g=v.default&&v.default.length||v.children&&v.children.length||v["children-start"]&&v["children-start"].length,y=void 0===a?g:a;(s||l||c||u||d||h)&&(e=t(ko,{attrs:{material:l,f7:c,icon:s,md:u,ios:d,aurora:h,color:p,size:f}}));var b=m||""===m?"a":"div";return t("div",{ref:"el",style:i,class:this.classes,attrs:{id:r}},[t(b,Eo(Object.assign({ref:"rootEl",class:this.itemRootClasses},this.itemRootAttrs)),[this.$slots["root-start"],y&&t("div",{class:"treeview-toggle"}),t("div",{class:"treeview-item-content"},[this.$slots["content-start"],e,this.$slots.media,t("div",{class:"treeview-item-label"},[this.$slots["label-start"],o,this.$slots.label]),this.$slots.content,this.$slots["content-end"]]),this.$slots.root,this.$slots["root-end"]]),g&&t("div",{class:"treeview-item-children"},[this.$slots["children-start"],this.$slots.default,this.$slots.children])])},computed:{itemRootAttrs:function(){var e=this.props,t=e.link,n=t;return!0===t&&(n="#"),!1===t&&(n=void 0),Qa.extend({href:n},Za.linkRouterAttrs(e),Za.linkActionsAttrs(e))},itemRootClasses:function(){var e=this.props,t=e.selectable,n=e.selected,r=e.itemToggle;return Qa.classNames("treeview-item-root",{"treeview-item-selectable":t,"treeview-item-selected":n,"treeview-item-toggle":r},Za.linkRouterClasses(e),Za.linkActionsClasses(e))},classes:function(){var e=this.props,t=e.className,n=e.opened,r=e.loadChildren;return Qa.classNames(t,"treeview-item",{"treeview-item-opened":n,"treeview-load-children":r},Za.colorClasses(e))},props:function(){return eo(this)}},created:function(){Qa.bindMethods(this,["onClick","onOpen","onClose","onLoadChildren"])},mounted:function(){var e=this,t=e.$refs,n=t.el;t.rootEl.addEventListener("click",e.onClick),n&&(e.eventTargetEl=n,e.$f7ready((function(t){t.on("treeviewOpen",e.onOpen),t.on("treeviewClose",e.onClose),t.on("treeviewLoadChildren",e.onLoadChildren)})))},beforeDestroy:function(){var e=this.$refs,t=e.el;e.rootEl.removeEventListener("click",this.onClick),t&&!this.$f7&&(this.$f7.off("treeviewOpen",this.onOpen),this.$f7.off("treeviewClose",this.onClose),this.$f7.off("treeviewLoadChildren",this.onLoadChildren),this.eventTargetEl=null,delete this.eventTargetEl)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onOpen:function(e){this.eventTargetEl===e&&this.dispatchEvent("treeview:open treeviewOpen",e)},onClose:function(e){this.eventTargetEl===e&&this.dispatchEvent("treeview:close treeviewClose",e)},onLoadChildren:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("treeview:loadchildren treeviewLoadChildren",e,t)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))}}},Hs={props:Object.assign({id:[String,Number]},Za.colorProps),name:"f7-treeview",render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Qa.classNames(n,"treeview",Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},Us={name:"f7-view",props:Object.assign({id:[String,Number],tab:Boolean,tabActive:Boolean,name:String,router:Boolean,linksView:[Object,String],url:String,main:Boolean,stackPages:Boolean,xhrCache:Boolean,xhrCacheIgnore:Array,xhrCacheIgnoreGetParameters:Boolean,xhrCacheDuration:Number,preloadPreviousPage:Boolean,allowDuplicateUrls:Boolean,reloadPages:Boolean,reloadDetail:Boolean,masterDetailResizable:Boolean,masterDetailBreakpoint:Number,removeElements:Boolean,removeElementsWithTimeout:Boolean,removeElementsTimeout:Number,restoreScrollTopOnBack:Boolean,loadInitialPage:Boolean,iosSwipeBack:Boolean,iosSwipeBackAnimateShadow:Boolean,iosSwipeBackAnimateOpacity:Boolean,iosSwipeBackActiveArea:Number,iosSwipeBackThreshold:Number,mdSwipeBack:Boolean,mdSwipeBackAnimateShadow:Boolean,mdSwipeBackAnimateOpacity:Boolean,mdSwipeBackActiveArea:Number,mdSwipeBackThreshold:Number,auroraSwipeBack:Boolean,auroraSwipeBackAnimateShadow:Boolean,auroraSwipeBackAnimateOpacity:Boolean,auroraSwipeBackActiveArea:Number,auroraSwipeBackThreshold:Number,pushState:Boolean,pushStateRoot:String,pushStateAnimate:Boolean,pushStateAnimateOnLoad:Boolean,pushStateSeparator:String,pushStateOnLoad:Boolean,animate:Boolean,transition:String,iosDynamicNavbar:Boolean,iosAnimateNavbarBackIcon:Boolean,materialPageLoadDelay:Number,passRouteQueryToRequest:Boolean,passRouteParamsToRequest:Boolean,routes:Array,routesAdd:Array,routesBeforeEnter:[Function,Array],routesBeforeLeave:[Function,Array],init:{type:Boolean,default:!0}},Za.colorProps),data:function(){eo(this);return{state:{pages:[]}}},render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.tab,a=t.main,o=t.tabActive,s=t.className,l=Qa.classNames(s,"view",{"view-main":a,"tab-active":o,tab:i},Za.colorClasses(t));return e("div",{ref:"el",style:r,class:l,attrs:{id:n}},[this.$slots.default,this.state.pages.map((function(t){var n=t.component;return e(n,{key:t.id,props:t.props})}))])},created:function(){Qa.bindMethods(this,["onSwipeBackMove","onSwipeBackBeforeChange","onSwipeBackAfterChange","onSwipeBackBeforeReset","onSwipeBackAfterReset","onTabShow","onTabHide","onViewInit"])},mounted:function(){var e=this,t=e.$refs.el;e.$f7ready((function(n){n.on("tabShow",e.onTabShow),n.on("tabHide",e.onTabHide),e.routerData={el:t,component:e,pages:e.state.pages,instance:null,setPages:function(t){e.setState({pages:t})}},ho.routers.views.push(e.routerData),e.props.init&&(e.routerData.instance=n.views.create(t,Object.assign({on:{init:e.onViewInit}},Qa.noUndefinedProps(e.$options.propsData||{}))),e.f7View=e.routerData.instance,e.f7View.on("resize",e.onResize),e.f7View.on("swipebackMove",e.onSwipeBackMove),e.f7View.on("swipebackBeforeChange",e.onSwipeBackBeforeChange),e.f7View.on("swipebackAfterChange",e.onSwipeBackAfterChange),e.f7View.on("swipebackBeforeReset",e.onSwipeBackBeforeReset),e.f7View.on("swipebackAfterReset",e.onSwipeBackAfterReset))}))},beforeDestroy:function(){ho.instance&&(ho.instance.off("tabShow",this.onTabShow),ho.instance.off("tabHide",this.onTabHide)),this.f7View&&(this.f7View.off("resize",this.onResize),this.f7View.off("swipebackMove",this.onSwipeBackMove),this.f7View.off("swipebackBeforeChange",this.onSwipeBackBeforeChange),this.f7View.off("swipebackAfterChange",this.onSwipeBackAfterChange),this.f7View.off("swipebackBeforeReset",this.onSwipeBackBeforeReset),this.f7View.off("swipebackAfterReset",this.onSwipeBackAfterReset),this.f7View.destroy&&this.f7View.destroy()),ho.routers.views.splice(ho.routers.views.indexOf(this.routerData),1),this.routerData=null,delete this.routerData},updated:function(){this.routerData&&ho.events.emit("viewRouterDidUpdate",this.routerData)},methods:{onViewInit:function(e){this.dispatchEvent("view:init viewInit",e),this.props.init||(this.routerData.instance=e,this.f7View=this.routerData.instance)},onResize:function(e,t){this.dispatchEvent("view:resize viewResize",t)},onSwipeBackMove:function(e){var t=e;this.dispatchEvent("swipeback:move swipeBackMove",t)},onSwipeBackBeforeChange:function(e){var t=e;this.dispatchEvent("swipeback:beforechange swipeBackBeforeChange",t)},onSwipeBackAfterChange:function(e){var t=e;this.dispatchEvent("swipeback:afterchange swipeBackAfterChange",t)},onSwipeBackBeforeReset:function(e){var t=e;this.dispatchEvent("swipeback:beforereset swipeBackBeforeReset",t)},onSwipeBackAfterReset:function(e){var t=e;this.dispatchEvent("swipeback:afterreset swipeBackAfterReset",t)},onTabShow:function(e){e===this.$refs.el&&this.dispatchEvent("tab:show tabShow",e)},onTabHide:function(e){e===this.$refs.el&&this.dispatchEvent("tab:hide tabHide",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];no.apply(void 0,[this,e].concat(n))},setState:function(e,t){fo(this,e,t)}},computed:{props:function(){return eo(this)}}},zs={name:"f7-views",props:Object.assign({id:[String,Number],tabs:Boolean},Za.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,a=t.tabs;return e("div",{style:i,class:Qa.classNames(n,"views",{tabs:a},Za.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return eo(this)}}},Vs=0,qs={proto:{pageComponentLoader:function(e,t,n,r,i,a){var o,s=e;if(ho.routers.views.forEach((function(t){t.el&&t.el===e&&(o=t)})),o){var l,c={component:t,id:"".concat(Qa.now(),"_").concat(Vs+=1),props:Qa.extend({f7route:r.route,$f7route:r.route,f7router:this,$f7router:this},r.route.params,r.props||{})};o.component&&(o.component.$f7router=this,o.component.$f7route=r.route),ho.events.on("viewRouterDidUpdate",(function e(t){if(t===o&&!l){ho.events.off("viewRouterDidUpdate",e);var n=s.children[s.children.length-1];c.el=n,i(n),l=!0}})),o.pages.push(c),o.setPages(o.pages)}else a()},removePage:function(e){if(e){var t,n=this;if((t="length"in e&&e[0]?e[0].f7Page:e.f7Page)&&t.route&&t.route.route&&t.route.route.keepAlive)n.app.$(e).remove();else{var r,i,a;if(ho.routers.views.forEach((function(e){e.el&&e.el===n.el&&(r=e)})),"length"in e){if(0===e.length)return;i=e[0]}else i=e;if(i)r.pages.forEach((function(e,t){e.el===i&&(a=!0,r.pages.splice(t,1),r.setPages(r.pages))})),a||i.parentNode.removeChild(i)}}},tabComponentLoader:function(e,t,n,r,i,a){var o;if(e||a(),ho.routers.tabs.forEach((function(t){t.el&&t.el===e&&(o=t)})),o){var s,l={id:"".concat(Qa.now(),"_").concat(Vs+=1),component:t,props:Qa.extend({f7route:r.route,$f7route:r.route,f7router:this,$f7router:this},r.route.params,r.props||{})};o.component&&(o.component.$f7router=this,o.component.$f7route=r.route),ho.events.on("tabRouterDidUpdate",(function t(n){if(n===o&&!s){ho.events.off("tabRouterDidUpdate",t);var r=e.children[0];i(r),s=!0}})),o.setTabContent(l)}else a()},removeTabContent:function(e){if(e){var t;ho.routers.tabs.forEach((function(n){n.el&&n.el===e&&(t=n)}));var n=t&&t.component;t&&n?t.setTabContent(null):e.innerHTML=""}},modalComponentLoader:function(e,t,n,r,i,a){var o=ho.routers.modals;if(o){var s,l={component:t,id:"".concat(Qa.now(),"_").concat(Vs+=1),props:Qa.extend({f7route:r.route,$f7route:r.route,f7router:this,$f7router:this},r.route.params,r.props||{})};o.component&&(o.component.$f7router=this,o.component.$f7route=r.route),ho.events.on("modalsRouterDidUpdate",(function e(){if(!s){ho.events.off("modalsRouterDidUpdate",e);var t=o.el.children[o.el.children.length-1];l.el=t,i(t),s=!0}})),o.modals.push(l),o.setModals(o.modals)}else a()},removeModal:function(e){var t,n=ho.routers.modals;n&&(n.modals.forEach((function(n){n.el===e&&(t=n)})),n.modals.splice(n.modals.indexOf(t),1),n.setModals(n.modals))}}};function Ws(e){ho.ready(e)}var Gs={},Ks={name:"phenomePlugin",installed:!1,install:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ks.installed){Ks.installed=!0;var t=this;ho.Framework7=t,ho.events=new t.Events;var n=e.Vue||r.default;r.default.component("f7-accordion-content",to),r.default.component("f7-accordion-item",ro),r.default.component("f7-accordion-toggle",io),r.default.component("f7-accordion",ao),r.default.component("f7-actions-button",oo),r.default.component("f7-actions-group",so),r.default.component("f7-actions-label",lo),r.default.component("f7-actions",co),r.default.component("f7-app",mo),r.default.component("f7-appbar",vo),r.default.component("f7-badge",go),r.default.component("f7-block-footer",yo),r.default.component("f7-block-header",bo),r.default.component("f7-block-title",_o),r.default.component("f7-block",wo),r.default.component("f7-button",So),r.default.component("f7-card-content",To),r.default.component("f7-card-footer",Co),r.default.component("f7-card-header",Mo),r.default.component("f7-card",xo),r.default.component("f7-checkbox",$o),r.default.component("f7-chip",Lo),r.default.component("f7-col",Po),r.default.component("f7-fab-backdrop",Oo),r.default.component("f7-fab-button",Io),r.default.component("f7-fab-buttons",Ao),r.default.component("f7-fab",Do),r.default.component("f7-gauge",No),r.default.component("f7-icon",ko),r.default.component("f7-input",jo),r.default.component("f7-link",Fo),r.default.component("f7-list-button",Ho),r.default.component("f7-list-group",Uo),r.default.component("f7-list-index",zo),r.default.component("f7-list-input",Vo),r.default.component("f7-list-item-cell",qo),r.default.component("f7-list-item-content",Wo),r.default.component("f7-list-item-row",Go),r.default.component("f7-list-item",Ko),r.default.component("f7-list",Jo),r.default.component("f7-login-screen-title",Xo),r.default.component("f7-login-screen",Qo),r.default.component("f7-menu-dropdown-item",Zo),r.default.component("f7-menu-dropdown",es),r.default.component("f7-menu-item",ts),r.default.component("f7-menu",ns),r.default.component("f7-message",rs),r.default.component("f7-messagebar-attachment",is),r.default.component("f7-messagebar-attachments",as),r.default.component("f7-messagebar-sheet-image",os),r.default.component("f7-messagebar-sheet-item",ss),r.default.component("f7-messagebar-sheet",ls),r.default.component("f7-messagebar",cs),r.default.component("f7-messages-title",us),r.default.component("f7-messages",ds),r.default.component("f7-nav-left",hs),r.default.component("f7-nav-right",fs),r.default.component("f7-nav-title-large",ps),r.default.component("f7-nav-title",ms),r.default.component("f7-navbar",vs),r.default.component("f7-page-content",ys),r.default.component("f7-page",bs),r.default.component("f7-panel",_s),r.default.component("f7-photo-browser",ws),r.default.component("f7-popover",ks),r.default.component("f7-popup",Es),r.default.component("f7-preloader",gs),r.default.component("f7-progressbar",Ss),r.default.component("f7-radio",Ts),r.default.component("f7-range",Bo),r.default.component("f7-routable-modals",po),r.default.component("f7-row",Cs),r.default.component("f7-searchbar",Ms),r.default.component("f7-segmented",xs),r.default.component("f7-sheet",$s),r.default.component("f7-skeleton-block",Ls),r.default.component("f7-skeleton-text",Ps),r.default.component("f7-stepper",Os),r.default.component("f7-subnavbar",Is),r.default.component("f7-swipeout-actions",As),r.default.component("f7-swipeout-button",Ds),r.default.component("f7-swiper-slide",Ns),r.default.component("f7-swiper",Rs),r.default.component("f7-tab",Bs),r.default.component("f7-tabs",Ys),r.default.component("f7-text-editor",Yo),r.default.component("f7-toggle",Ro),r.default.component("f7-toolbar",js),r.default.component("f7-treeview-item",Fs),r.default.component("f7-treeview",Hs),r.default.component("f7-view",Us),r.default.component("f7-views",zs),Object.defineProperty(n.prototype,"$f7",{get:function(){return ho.instance}});var i=e.theme;"md"===i&&(Gs.md=!0),"ios"===i&&(Gs.ios=!0),"aurora"===i&&(Gs.aurora=!0),i&&"auto"!==i||(Gs.ios=!!t.device.ios,Gs.aurora=t.device.desktop&&t.device.electron,Gs.md=!Gs.ios&&!Gs.aurora),ho.ready((function(){Gs.ios="ios"===ho.instance.theme,Gs.md="md"===ho.instance.theme,Gs.aurora="aurora"===ho.instance.theme})),Object.defineProperty(n.prototype,"$theme",{get:function(){return{ios:ho.instance?"ios"===ho.instance.theme:Gs.ios,md:ho.instance?"md"===ho.instance.theme:Gs.md,aurora:ho.instance?"aurora"===ho.instance.theme:Gs.aurora}}}),n.prototype.Dom7=t.$,n.prototype.$$=t.$,n.prototype.$device=t.device,n.prototype.$request=t.request,n.prototype.$utils=t.utils,n.prototype.$f7ready=Ws,Object.defineProperty(n.prototype,"$f7route",{get:function(){var e;if(this.props&&this.props.f7route)return this.props.f7route;if(this.f7route)return this.f7route;if(this._f7route)return this._f7route;this.$vnode&&this.$vnode.data&&this.$vnode.data.props&&this.$vnode.data.props.f7route&&(e=this.$vnode.data.props.f7route);for(var t=this;t&&!e;)t._f7route&&(e=t._f7route),t=t.$parent;return e},set:function(e){this._f7route=e}}),Object.defineProperty(n.prototype,"$f7router",{get:function(){var e;if(this.props&&this.props.f7router)return this.props.f7router;if(this.f7router)return this.f7router;if(this._f7router)return this._f7router;this.$vnode&&this.$vnode.data&&this.$vnode.data.props&&this.$vnode.data.props.f7route&&(e=this.$vnode.data.props.f7router);for(var t=this;t&&!e;)t._f7router?e=t._f7router:t.f7View?e=t.f7View.router:t.$refs&&t.$refs.el&&t.$refs.el.f7View&&(e=t.$refs.el.f7View.router),t=t.$parent;return e},set:function(e){this._f7router=e}}),t.Router.use(qs)}}},Js=Ks,Xs=(n(299),n(300),n(301),n(2)),Qs=n.n(Xs),Zs={f7:null,handleSplashscreen:function(){var e=Zs.f7;window.navigator.splashscreen&&!e.device.electron&&setTimeout((function(){window.navigator.splashscreen.hide()}),2e3)},handleAndroidBackButton:function(){Zs.f7.device.electron||(Zs.backButtonTimestamp=(new Date).getTime(),document.addEventListener("backbutton",(function(e){return(new Date).getTime()-Zs.backButtonTimestamp<250?(Zs.backButtonTimestamp=(new Date).getTime(),window.navigator.app&&window.navigator.app.exitApp&&window.navigator.app.exitApp(),!0):(Zs.backButtonTimestamp=(new Date).getTime(),e.preventDefault(),!1)}),!1))},handleKeyboard:function(){var e=Zs.f7;if(window.Keyboard&&window.Keyboard.shrinkView&&!e.device.electron){var t=e.$;window.Keyboard.shrinkView(!1),window.Keyboard.disableScrollingInShrinkView(!0),window.Keyboard.hideFormAccessoryBar(!0),window.addEventListener("keyboardWillShow",(function(){e.input.scrollIntoView(document.activeElement,0,!0,!0)})),window.addEventListener("keyboardDidShow",(function(){e.input.scrollIntoView(document.activeElement,0,!0,!0)})),window.addEventListener("keyboardDidHide",(function(){document.activeElement&&t(document.activeElement).parents(".messagebar").length||window.Keyboard.hideFormAccessoryBar(!1)})),window.addEventListener("keyboardHeightWillChange",(function(e){var n=e.keyboardHeight;n>0?(document.body.style.height="calc(100% - ".concat(n,"px)"),t("html").addClass("device-with-keyboard")):(document.body.style.height="",t("html").removeClass("device-with-keyboard"))})),t(document).on("touchstart","input, textarea, select",(function(e){var t=e.target.nodeName.toLowerCase(),n=e.target.type;"select"===t||["datetime-local","time","date","datetime"].indexOf(n)>=0?window.Keyboard.hideFormAccessoryBar(!1):window.Keyboard.hideFormAccessoryBar(!0)}),!0)}},init:function(e){Zs.f7=e,Zs.handleAndroidBackButton(),Zs.handleSplashscreen(),Zs.handleKeyboard()}},el=Zs,tl=n(1),nl=n.n(tl),rl=n(6),il=n.n(rl),al=n(110),ol={data:function(){return{myAppVersion:5,userEmail:null,frd_email:null}},methods:{refreshChats:function(e){var t=this;return il()(nl.a.mark((function n(){var r;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.chatOpen){n.next=8;break}return(r={}).email_u=t.userEmail,r.email_f=e,r.domain=t.user[0].domain,n.next=7,t.$store.dispatch("getChatMessages",r);case 7:t.$store.dispatch("getTypingMessages",r);case 8:case"end":return n.stop()}}),n)})))()},refresh:function(){var e=this;return il()(nl.a.mark((function t(){var n;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.signed_in&&e.chatOpen&&e.refreshChats(e.frd_email),!e.signed_in||e.chatOpen){t.next=13;break}return(n={}).email=e.userEmail,n.domain=e.user[0].domain,t.next=7,e.$store.dispatch("getFriendMatch",n);case 7:return t.next=9,e.$store.dispatch("getUserPersonalDetails",n);case 9:return t.next=11,e.$store.dispatch("getFriendList",n);case 11:return t.next=13,e.$store.dispatch("getTotalMessage",n);case 13:case"end":return t.stop()}}),t)})))()},sendBroadCast:function(){var e=this;this.$f7.popover.close();this.$f7.dialog.create({title:"Send Broadcast Message",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Title" required maxlength="50"> <div class="item-input-wrap"><input class="dialog-input body" type="textarea" placeholder="Enter Message" resizable required maxlength="200"></div></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Send"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim(),i=t.$el.find(".body").val().trim();if(""!=r&&""!=i){var a={};a.title=r,a.message_details=i,e.$store.dispatch("pushNotifications",a);e.chat_group_name;e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Fields cannot be empty")},on:{open:function(){}}}).open()},checkInternet:function(){var e=this;return il()(nl.a.mark((function t(){return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},formatNumber:function(e){return al(e).format("0,0.00")},logoutApp:function(){var e=this.$f7;this.$store.dispatch("signOut"),this.$f7.popover.close(),e.panel.close()},gotoChat:function(e){this.frd_email=e.email;var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))},initHome:function(){this.$store.commit("setShowTabs",!0),this.$store.commit("setChatOpen",!1),this.frd_email=null}},computed:{chatOpen:function(){return this.$store.getters.chatOpen},advert_default:function(){return console.log("******** me if call ***********advert_default()",this.$store.getters.advert_default),this.$store.getters.advert_default},photoStatus:function(){return this.$store.getters.photoStatus},user:function(){return this.$store.getters.user},app_version:function(){return this.$store.getters.app_version},app_db_version:function(){return this.$store.getters.app_db_version},user_payout:{get:function(){return this.formatNumber(this.$store.getters.user_payout)},set:function(e){this.$store.commit("setUserLocation",e)}},user_country:function(){return this.$store.getters.user_country},subscribe_affiliate:function(){return this.$store.getters.subscribe_affiliate},user_details:function(){return this.$store.getters.user_details},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests},message_count:function(){return this.$store.getters.message_count},total_message:function(){return this.$store.getters.total_message},signed_in:function(){return this.$store.getters.signed_in}},mounted:function(){},watch:{photoStatus:function(e){e||(this.$f7router.navigate("/editprofilepicture/",{}),this.$store.commit("setAlertMessage","Please Upload Profile Picture before chatting with others"))}},created:function(){var e=this;return il()(nl.a.mark((function t(){var n;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={},e.userEmail=e.user[0].email,n.email=e.user[0].email,n.domain=e.user[0].domain,t.next=6,e.$store.dispatch("getTotalMessage",n);case 6:return t.next=8,e.$store.dispatch("getFriendMatch",n);case 8:return t.next=10,e.$store.dispatch("getUserPersonalDetails",n);case 10:return t.next=12,e.$store.dispatch("getFriendList",n);case 12:return t.next=14,e.$store.dispatch("getUserPhotoStatus",n);case 14:return e.$store.dispatch("getAdvertDefault"),window.hasOwnProperty("cordova")&&window.plugins.OneSignal.getIds((function(t){if(null!=t){var n={};n.playerID=t.userId,n.pushToken=t.pushToken,n.email=e.user[0].email,n.domain=e.user[0].domain,e.$store.dispatch("sendOneSignalToken",n)}})),setInterval(e.refresh,1e4),t.next=19,e.$store.dispatch("getUserPhotoStatus",n);case 19:if(t.sent){t.next=23;break}return e.$f7router.navigate("/editprofilepicture/",{}),t.abrupt("return");case 23:if(e.$store.dispatch("getAppVersion"),"Android"!=e.app_version&&"iOS"!=e.app_version){t.next=30;break}if(e.$store.dispatch("getAppDbVersion"),!(e.myAppVersion<e.app_db_version)){t.next=30;break}return e.$store.commit("setAppUpdate",!0),e.$f7router.navigate("/newversion/"),t.abrupt("return");case 30:return e.checkInternet(),t.abrupt("return");case 37:case"end":return t.stop()}}),t)})))()}};n(313);function sl(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var ll=sl(ol,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"home"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{attrs:{sliding:!1,large:""}},[n("f7-nav-left",[n("f7-link",{attrs:{"icon-ios":"f7:menu","icon-aurora":"f7:menu","icon-md":"material:menu","panel-open":"left"}})],1),e._v(" "),n("f7-nav-title",{attrs:{sliding:"",right:""}},[e._v("Penpal America")]),e._v(" "),n("f7-nav-right",[n("f7-icon",{attrs:{slot:"right",f7:"bell"},slot:"right"},[e.total_message>0?n("f7-badge",{attrs:{color:"red"}},[e._v(e._s(e.total_message))]):e._e()],1),e._v(" "),n("f7-link",{attrs:{slot:"right","popover-open":".popover-menu"},slot:"right"},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])])],1),e._v(" "),n("f7-nav-title-large",{attrs:{sliding:""}},[e._v("Penpal America")]),e._v(" "),n("f7-subnavbar",{attrs:{inner:!1}},[n("f7-searchbar",{attrs:{"search-container":".search-list","search-in":".item-title","disable-button":!e.$theme.aurora}})],1)],1),e._v(" "),n("f7-list",{staticClass:"searchbar-not-found"},[n("f7-list-item",{attrs:{title:"Nothing found"}})],1),e._v(" "),n("f7-list",{staticClass:"search-list searchbar-found",attrs:{"media-list":""}},e._l(e.friends,(function(t,r){return n("f7-list-item",{key:r,attrs:{title:t.name,text:t.latest_message},on:{click:function(n){return e.gotoChat(t)}}},[t.message_count>0?n("f7-badge",{attrs:{slot:"after-title",color:"red"},slot:"after-title"},[e._v(e._s(t.message_count))]):e._e(),e._v(" "),n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url1},slot:"media"}),e._v(" "),"online"==t.userStatus?n("span",{attrs:{slot:"footer"},slot:"footer"},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("circle_fill")]),e._v(" "),n("font",{attrs:{color:"green"}},[e._v("online")])],1):n("span",{attrs:{slot:"footer"},slot:"footer"},[n("i",{staticClass:"f7-icons size-29 color-lightgrey"},[e._v("circle_fill")]),e._v(" "),n("font",{attrs:{color:"grey"}},[e._v("offline")])],1),e._v(" "),t.location?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(t.location))]):e._e(),e._v(" "),2==t.userType||3==t.userType?n("span",{attrs:{slot:"after-title"},slot:"after-title"},[e._v("Moderator")]):e._e()],1)})),1),e._v(" "),n("f7-popover",{staticClass:"popover-menu"},[n("f7-list",[n("f7-list-item",{attrs:{link:"/viewprofile/","popover-close":"",title:"Profile"}}),e._v(" "),n("f7-list-item",{attrs:{link:"/editProfile/","popover-close":"",title:"Settings"}}),e._v(" "),n("f7-list-item",{attrs:{link:"/addPhoto/","popover-close":"",title:"Add Photos"}}),e._v(" "),n("f7-list-item",{attrs:{link:"/usernotifications/","popover-close":"",title:"Notifications"}})],1)],1),e._v(" "),n("f7-popup",{staticClass:"demo-popup-user",attrs:{"backdrop:false":""}},[n("f7-page",[n("f7-navbar",{attrs:{title:e.user_details[0].name,subtitle:e.user_details[0].location}},[n("div",{attrs:{slot:"default"},slot:"default"},[n("span",{attrs:{"v-if":e.user_details[0].birthDate}},[e._v(e._s(e.moment(e.user_details[0].birthDate,"YYYYMMDD").fromNow(!0)))])]),e._v(" "),n("f7-nav-right",[n("f7-link",{attrs:{"popup-close":""}},[e._v("Close")])],1)],1),e._v(" "),n("f7-block",[n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover1",attrs:{src:this.user_details[0].photo_url}})]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Profile Message")]),e._v(" "),n("br"),e._v("\n "+e._s(e.user_details[0].profileMessage)+"\n ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Email")]),e._v(" "),n("br"),e._v("\n "+e._s(this.user_details.email)+" --\x3e Only you see this\n ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Phone Number")]),e._v(" "),n("br"),e._v("\n "+e._s(this.user_details.phonenumber)+" --\x3e Only you see this\n ")])]),e._v(" "),n("br"),e._v(" "),n("br")])],1)],1)],1)}),[],!1,null,null,null).exports,cl=sl({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"}},[n("f7-navbar",{attrs:{title:"About","back-link":"Back"}}),e._v(" "),n("f7-block-title",[e._v("About My App")]),e._v(" "),n("f7-block",{attrs:{strong:""}},[n("p",[e._v("Fugiat perspiciatis excepturi, soluta quod non ullam deleniti. Nobis sint nemo consequuntur, fugiat. Eius perferendis animi autem incidunt vel quod tenetur nostrum, voluptate omnis quasi quidem illum consequuntur, a, quisquam.")]),e._v(" "),n("p",[e._v("Laudantium neque magnam vitae nemo quam commodi, in cum dolore obcaecati laborum, excepturi harum, optio qui, consequuntur? Obcaecati dolor sequi nesciunt culpa quia perspiciatis, reiciendis ex debitis, ut tenetur alias.")])]),e._v(" "),n("f7-block",[n("p",[e._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni molestiae laudantium dignissimos est nobis delectus nemo ea alias voluptatum architecto, amet similique, saepe iste consectetur in repellat ut minus quibusdam!")]),e._v(" "),n("p",[e._v("Molestias et distinctio porro nesciunt ratione similique, magni doloribus, rerum nobis, aliquam quae reiciendis quasi modi. Nam a recusandae, fugiat in ea voluptates fuga eius, velit corrupti reprehenderit dignissimos consequatur!")]),e._v(" "),n("p",[e._v("Blanditiis, cumque quo adipisci. Molestiae, dolores dolorum quos doloremque ipsa ullam eligendi commodi deserunt doloribus inventore magni? Ea mollitia veniam nostrum nihil, iusto doloribus a at! Ea molestiae ullam delectus!")])])],1)}),[],!1,null,null,null).exports,ul=sl({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"form"}},[n("f7-navbar",{attrs:{title:"Form","back-link":"Back"}}),e._v(" "),n("f7-block-title",[e._v("Form Example")]),e._v(" "),n("f7-list",{attrs:{"no-hairlines-md":""}},[n("f7-list-input",{attrs:{label:"Name",type:"text",placeholder:"Your name"}}),e._v(" "),n("f7-list-input",{attrs:{label:"E-mail",type:"email",placeholder:"E-mail"}}),e._v(" "),n("f7-list-input",{attrs:{label:"URL",type:"url",placeholder:"URL"}}),e._v(" "),n("f7-list-input",{attrs:{label:"Password",type:"password",placeholder:"Password"}}),e._v(" "),n("f7-list-input",{attrs:{label:"Phone",type:"tel",placeholder:"Phone"}}),e._v(" "),n("f7-list-input",{attrs:{label:"Gender",type:"select"}},[n("option",[e._v("Male")]),e._v(" "),n("option",[e._v("Female")])]),e._v(" "),n("f7-list-input",{attrs:{label:"Birth date",type:"date",placeholder:"Birth day",defaultValue:"2014-04-30"}}),e._v(" "),n("f7-list-item",{attrs:{title:"Toggle"}},[n("f7-toggle",{attrs:{slot:"after"},slot:"after"})],1),e._v(" "),n("f7-list-input",{attrs:{label:"Range",input:!1}},[n("f7-range",{attrs:{slot:"input",value:50,min:0,max:100,step:1},slot:"input"})],1),e._v(" "),n("f7-list-input",{attrs:{type:"textarea",label:"Textarea",placeholder:"Bio"}}),e._v(" "),n("f7-list-input",{attrs:{type:"textarea",label:"Resizable",placeholder:"Bio",resizable:""}})],1),e._v(" "),n("f7-block-title",[e._v("Buttons")]),e._v(" "),n("f7-block",{attrs:{strong:""}},[n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col"},[e._v("Button")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{fill:""}},[e._v("Fill")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{raised:""}},[e._v("Raised")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{raised:"",fill:""}},[e._v("Raised Fill")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{round:""}},[e._v("Round")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{round:"",fill:""}},[e._v("Round Fill")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{outline:""}},[e._v("Outline")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{round:"",outline:""}},[e._v("Outline Round")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{small:"",outline:""}},[e._v("Small")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{small:"",round:"",outline:""}},[e._v("Small Round")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{small:"",fill:""}},[e._v("Small")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{small:"",round:"",fill:""}},[e._v("Small Round")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{large:"",raised:""}},[e._v("Large")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{large:"",fill:"",raised:""}},[e._v("Large Fill")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{large:"",fill:"",raised:"",color:"red"}},[e._v("Large Red")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{large:"",fill:"",raised:"",color:"green"}},[e._v("Large Green")])],1)],1),e._v(" "),n("f7-block-title",[e._v("Checkbox group")]),e._v(" "),n("f7-list",[n("f7-list-item",{attrs:{checkbox:"",name:"my-checkbox",value:"Books",title:"Books"}}),e._v(" "),n("f7-list-item",{attrs:{checkbox:"",name:"my-checkbox",value:"Movies",title:"Movies"}}),e._v(" "),n("f7-list-item",{attrs:{checkbox:"",name:"my-checkbox",value:"Food",title:"Food"}})],1),e._v(" "),n("f7-block-title",[e._v("Radio buttons group")]),e._v(" "),n("f7-list",[n("f7-list-item",{attrs:{radio:"",name:"radio",value:"Books",title:"Books"}}),e._v(" "),n("f7-list-item",{attrs:{radio:"",name:"radio",value:"Movies",title:"Movies"}}),e._v(" "),n("f7-list-item",{attrs:{radio:"",name:"radio",value:"Food",title:"Food"}})],1)],1)}),[],!1,null,null,null).exports,dl=sl({data:function(){return{products:this.$f7.data.products}}},(function(){var e=this.$createElement,t=this._self._c||e;return t("f7-page",{attrs:{name:"catalog"}},[t("f7-navbar",{attrs:{title:"Catalog"}}),this._v(" "),t("f7-list",this._l(this.products,(function(e){return t("f7-list-item",{key:e.id,attrs:{title:e.title,link:"/product/"+e.id+"/"}})})),1)],1)}),[],!1,null,null,null).exports,hl=sl({},void 0,void 0,!1,null,null,null).exports,fl=n(41),pl=n.n(fl),ml=n(4),vl=n.n(ml);var gl={name:"app",components:{Media:pl.a},data:function(){return{last_photo:null,moderator:!0,appState:1,ref:{},cursor:null,pageSize:3,backPage:!1,forwardPage:!0,topPage:!1,bottomPage:!0,photo_url:null,photo_state:0,videofile:!1}},watch:{back_page:function(e){null!=e&&(this.backPage=e)},forward_page:function(e){null!=e&&(this.forwardPage=e)},top_page:function(e){null!=e&&(this.topPage=e)},bottom_page:function(e){null!=e&&(this.bottomPage=e)},db_reference:function(e){null!=e&&(this.ref=e)},db_cursor:function(e){null!=e&&(this.cursor=e)}},computed:{appUpdate:function(){return this.$store.getters.appUpdate},top_page:function(){return this.$store.getters.top_page},bottom_page:function(){return this.$store.getters.bottom_page},back_page:function(){return this.$store.getters.back_page},forward_page:function(){return this.$store.getters.forward_page},db_reference:function(){return this.ref=this.$store.getters.db_reference,this.$store.getters.db_reference},db_cursor:function(){return this.$store.getters.db_cursor},contacts:function(){return this.$store.getters.contacts},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:K()({nextPicture:function(){if(this.photo_state++,this.videofile=!1,this.photo_state<=this.friend.photo_number){if(1==this.photo_state&&(this.photo_url=this.friend.photo_url1,this.last_photo=this.friend.photo_url1),2==this.photo_state){var e=!0;""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.photo_url=this.friend.photo_url2,this.last_photo=this.friend.photo_url2,e=!1),""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.photo_url=this.friend.photo_url3,this.last_photo=this.friend.photo_url3,e=!1),""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.photo_url=this.friend.photo_url4,this.last_photo=this.friend.photo_url4,e=!1),""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.photo_url=this.friend.photo_url5,this.last_photo=this.friend.photo_url5,this.videofile=!0,e=!1),""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.photo_url=this.friend.photo_url6,this.last_photo=this.friend.photo_url6,this.videofile=!0,e=!1)}if(3==this.photo_state){e=!0;""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.photo_url=this.friend.photo_url3,this.last_photo=this.friend.photo_url3,e=!1),""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.photo_url=this.friend.photo_url4,this.last_photo=this.friend.photo_url4,e=!1),""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.photo_url=this.friend.photo_url5,this.last_photo=this.friend.photo_url5,this.videofile=!0,e=!1),""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.last_photo=this.friend.photo_url6,this.photo_url=this.friend.photo_url6,this.videofile=!0,e=!1,console.log("")),""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.last_photo=this.friend.photo_url2,this.photo_url=this.friend.photo_url2,e=!1)}if(4==this.photo_state){e=!0;""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.photo_url=this.friend.photo_url4,this.last_photo=this.friend.photo_url4,e=!1),""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.photo_url=this.friend.photo_url5,this.last_photo=this.friend.photo_url5,this.videofile=!0,e=!1),""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.photo_url=this.friend.photo_url6,this.last_photo=this.friend.photo_url6,this.videofile=!0,e=!1),""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.last_photo=this.friend.photo_url2,this.photo_url=this.friend.photo_url2,e=!1),""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.last_photo=this.friend.photo_url3,this.photo_url=this.friend.photo_url3,e=!1)}if(5==this.photo_state){e=!0;""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.photo_url=this.friend.photo_url5,this.last_photo=this.friend.photo_url5,this.videofile=!0,e=!1),""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.photo_url=this.friend.photo_url6,this.last_photo=this.friend.photo_url6,this.videofile=!0,e=!1),""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.photo_url=this.friend.photo_url2,this.last_photo=this.friend.photo_url2,e=!1),""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.last_photo=this.friend.photo_url3,this.photo_url=this.friend.photo_url3,e=!1),""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.last_photo=this.friend.photo_url4,this.photo_url=this.friend.photo_url4,e=!1)}if(6==this.photo_state){e=!0;""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.photo_url=this.friend.photo_url6,this.last_photo=this.friend.photo_url6,this.videofile=!0,e=!1),""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.photo_url=this.friend.photo_url2,this.last_photo=this.friend.photo_url2,e=!1),""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.photo_url=this.friend.photo_url3,this.last_photo=this.friend.photo_url3,e=!1),""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.last_photo=this.friend.photo_url4,this.photo_url=this.friend.photo_url4,e=!1),""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.last_photo=this.friend.photo_url5,this.photo_url=this.friend.photo_url5,this.videofile=!0,e=!1)}}else this.photo_state=1,this.photo_url=this.friend.photo_url1,this.last_photo=this.friend.photo_url1},handle:function(){var e=this;console.log("Video paused!, playing in 2 sec..."),setTimeout((function(){e.$refs.fish.play()}),2e3)},onlineUsers:function(){var e=this;return il()(nl.a.mark((function t(){var n;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getUserPageSize");case 2:e.pageSize=t.sent,(n={}).ref=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=Qs.a.auth().currentUser.uid,e.$store.dispatch("gotoTopPageOnline",n);case 9:case"end":return t.stop()}}),t)})))()},ilike:function(){var e=this;return il()(nl.a.mark((function t(){var n,r;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n={email:"nosa.osahon@gmail.com",gender:"F",domain:"penpalamerica.com"},(r=e).$f7.request.post("https://chatme24.com/penpal/userpenpal.php",n,(function(e){var t=JSON.parse(e);console.log(e),r.$store.commit("setContacts",t)}));case 4:case"end":return t.stop()}}),t)})))()},idontlike:function(){var e=this;return il()(nl.a.mark((function t(){var n,r;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n={email:"nosa.osahon@gmail.com",gender:"F",domain:"penpalamerica.com"},(r=e).$f7.request.post("https://chatme24.com/penpal/userpenpal.php",n,(function(e){var t=JSON.parse(e);console.log(e),r.$store.commit("setContacts",t)}));case 4:case"end":return t.stop()}}),t)})))()},checkInternet:function(){var e=this;return il()(nl.a.mark((function t(){return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=Qs.a.auth().currentUser.uid,t.recipient=e.uid,console.log("request",t),this.$store.dispatch("sendRequest",t)},gotoChat:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))}},"initHome",(function(){this.$store.commit("setShowTabs",!0)})),created:function(){var e=this;return il()(nl.a.mark((function t(){var n;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.$f7route.params.frd,e.friend=JSON.parse(n),e.friend_Details=e.friend,e.friend_uid_chat=e.friend.uid,e.photo_url=e.friend.photo_url1,console.log(e.friend),e.photo_state=1,e.last_photo=e.friend.photo_url1,e.checkInternet(),e.checkInternet();case 10:case"end":return t.stop()}}),t)})))()}},yl=gl,bl=(n(315),sl(yl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"}},[n("f7-navbar",{attrs:{title:this.friend.name,subtitle:this.friend.userStatus,"back-link":"Back"}},[n("div",{attrs:{slot:"left"},slot:"left"},[n("f7-link",{attrs:{fill:"","popup-open":".demo-popup"}},[n("img",{staticClass:"small-avatar2",attrs:{slot:"media",src:this.friend.photo_url1},slot:"media"})])],1),e._v(" "),n("f7-nav-right")],1),e._v(" "),e.videofile?n("div",{attrs:{id:"video"}},[n("Media",{ref:"fish",style:{width:"100%"},attrs:{kind:"video",muted:!0,src:e.photo_url,autoplay:!0,controls:!0,loop:!0},on:{pause:function(t){return e.handle()}}}),e._v(" "),n("f7-block",[n("f7-row",{attrs:{gap:""}},[n("f7-col"),e._v(" "),e.friend.photo_number>0?n("f7-col",[n("f7-button",{attrs:{fill:""},on:{click:e.nextPicture}},[e._v("Next")])],1):e._e(),e._v(" "),n("f7-col")],1)],1)],1):n("div",[n("f7-list",{attrs:{"media-list":""}},[e._l(e.contacts,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",subtitle:t.name}},[n("img",{staticClass:"imagePicture",attrs:{slot:"title",src:e.photo_url},slot:"title"}),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v("\n , "+e._s(e.moment(t.birthDate,"YYYYMMDD").fromNow(!0))),n("br")]),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(t.location)),n("br")]),e._v(" "),n("span",{attrs:{slot:"text"},slot:"text"},[e._v(e._s(t.profileMessage))])])})),e._v(" "),n("f7-block",[n("f7-row",{attrs:{gap:""}},[n("f7-col"),e._v(" "),e.friend.photo_number>1?n("f7-col",[n("f7-button",{attrs:{fill:""},on:{click:e.nextPicture}},[e._v("Next")])],1):n("span",[e._v(" Press Back Button to continue ")]),e._v(" "),n("f7-col")],1)],1)],2)],1),e._v("\n\n |\n")],1)}),[],!1,null,"35cc4908",null)),_l=bl.exports,wl={name:"app",components:{Media:pl.a},data:function(){return{last_photo:null,moderator:!0,appState:1,ref:{},cursor:null,pageSize:3,backPage:!1,forwardPage:!0,topPage:!1,bottomPage:!0,photo_url:null,photo_state:0,videofile:!1}},watch:{back_page:function(e){null!=e&&(this.backPage=e)},forward_page:function(e){null!=e&&(this.forwardPage=e)},top_page:function(e){null!=e&&(this.topPage=e)},bottom_page:function(e){null!=e&&(this.bottomPage=e)},db_reference:function(e){null!=e&&(this.ref=e)},db_cursor:function(e){null!=e&&(this.cursor=e)}},computed:{appUpdate:function(){return this.$store.getters.appUpdate},top_page:function(){return this.$store.getters.top_page},bottom_page:function(){return this.$store.getters.bottom_page},back_page:function(){return this.$store.getters.back_page},forward_page:function(){return this.$store.getters.forward_page},db_reference:function(){return this.ref=this.$store.getters.db_reference,this.$store.getters.db_reference},db_cursor:function(){return this.$store.getters.db_cursor},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:K()({nextPicture:function(){if(this.photo_state++,this.videofile=!1,this.photo_state<=this.friend.photo_number){if(1==this.photo_state&&(this.photo_url=this.friend.photo_url1,this.last_photo=this.friend.photo_url1),2==this.photo_state){var e=!0;""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.photo_url=this.friend.photo_url2,this.last_photo=this.friend.photo_url2,e=!1),""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.photo_url=this.friend.photo_url3,this.last_photo=this.friend.photo_url3,e=!1),""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.photo_url=this.friend.photo_url4,this.last_photo=this.friend.photo_url4,e=!1),""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.photo_url=this.friend.photo_url5,this.last_photo=this.friend.photo_url5,this.videofile=!0,e=!1),""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.photo_url=this.friend.photo_url6,this.last_photo=this.friend.photo_url6,this.videofile=!0,e=!1)}if(3==this.photo_state){e=!0;""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.photo_url=this.friend.photo_url3,this.last_photo=this.friend.photo_url3,e=!1),""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.photo_url=this.friend.photo_url4,this.last_photo=this.friend.photo_url4,e=!1),""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.photo_url=this.friend.photo_url5,this.last_photo=this.friend.photo_url5,this.videofile=!0,e=!1),""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.last_photo=this.friend.photo_url6,this.photo_url=this.friend.photo_url6,this.videofile=!0,e=!1,console.log("")),""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.last_photo=this.friend.photo_url2,this.photo_url=this.friend.photo_url2,e=!1)}if(4==this.photo_state){e=!0;""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.photo_url=this.friend.photo_url4,this.last_photo=this.friend.photo_url4,e=!1),""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.photo_url=this.friend.photo_url5,this.last_photo=this.friend.photo_url5,this.videofile=!0,e=!1),""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.photo_url=this.friend.photo_url6,this.last_photo=this.friend.photo_url6,this.videofile=!0,e=!1),""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.last_photo=this.friend.photo_url2,this.photo_url=this.friend.photo_url2,e=!1),""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.last_photo=this.friend.photo_url3,this.photo_url=this.friend.photo_url3,e=!1)}if(5==this.photo_state){e=!0;""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.photo_url=this.friend.photo_url5,this.last_photo=this.friend.photo_url5,this.videofile=!0,e=!1),""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.photo_url=this.friend.photo_url6,this.last_photo=this.friend.photo_url6,this.videofile=!0,e=!1),""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.photo_url=this.friend.photo_url2,this.last_photo=this.friend.photo_url2,e=!1),""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.last_photo=this.friend.photo_url3,this.photo_url=this.friend.photo_url3,e=!1),""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.last_photo=this.friend.photo_url4,this.photo_url=this.friend.photo_url4,e=!1)}if(6==this.photo_state){e=!0;""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.photo_url=this.friend.photo_url6,this.last_photo=this.friend.photo_url6,this.videofile=!0,e=!1),""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.photo_url=this.friend.photo_url2,this.last_photo=this.friend.photo_url2,e=!1),""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.photo_url=this.friend.photo_url3,this.last_photo=this.friend.photo_url3,e=!1),""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.last_photo=this.friend.photo_url4,this.photo_url=this.friend.photo_url4,e=!1),""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.last_photo=this.friend.photo_url5,this.photo_url=this.friend.photo_url5,this.videofile=!0,e=!1)}}else this.photo_state=1,this.photo_url=this.friend.photo_url1,this.last_photo=this.friend.photo_url1},checkInternet:function(){var e=this;return il()(nl.a.mark((function t(){return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=Qs.a.auth().currentUser.uid,t.recipient=e.uid,console.log("request",t),this.$store.dispatch("sendRequest",t)},gotoChat:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))}},"initHome",(function(){this.$store.commit("setShowTabs",!0)})),created:function(){var e=this;return il()(nl.a.mark((function t(){var n;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.$f7route.params.frd,e.friend=JSON.parse(n),e.friend_Details=e.friend,e.friend_uid_chat=e.friend.uid,e.photo_url=e.friend.photo_url1,e.photo_state=1,e.last_photo=e.friend.photo_url1,e.checkInternet(),e.checkInternet();case 9:case"end":return t.stop()}}),t)})))()}},kl=wl,El=(n(316),sl(kl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"viewuserprofile"}},[n("f7-navbar",{attrs:{title:this.friend.name,subtitle:this.friend.userStatus,"back-link":"Back"}},[n("div",{attrs:{slot:"left"},slot:"left"},[n("img",{staticClass:"small-avatar2",attrs:{slot:"media",src:this.friend.photo_url1},slot:"media"})]),e._v(" "),n("f7-nav-right")],1),e._v(" "),e.videofile?n("div",{attrs:{id:"video"}},[n("Media",{ref:"fish",style:{width:"100%",height:"auto"},attrs:{kind:"video",muted:!0,src:e.photo_url,autoplay:!0,controls:!0,loop:!0}}),e._v(" "),n("f7-list",{staticClass:"wrapper",attrs:{"media-list":""}},[n("f7-list-item",{attrs:{swipeout:"",subtitle:e.friend.name}},["M"==e.friend.gender?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(" M")]):n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(" F")]),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v("\n "+e._s(e.moment(e.friend.birthDate,"YYYYMMDD").fromNow(!0))),n("br")]),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(e.friend.location))]),e._v(" \n\n "),n("span",{attrs:{slot:"text"},slot:"text"},[e._v(e._s(e.friend.profileMessage))])])],1),e._v(" "),n("f7-block",[n("f7-row",{attrs:{gap:""}},[n("f7-col"),e._v(" "),e.friend.photo_number>0?n("f7-col",[n("f7-button",{attrs:{fill:""},on:{click:e.nextPicture}},[e._v("Next")])],1):e._e(),e._v(" "),n("f7-col")],1)],1)],1):n("div",[n("f7-list",{staticClass:"wrapper",attrs:{"media-list":""}},[n("f7-list-item",{attrs:{swipeout:"",subtitle:e.friend.name}},["M"==e.friend.gender?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(" M")]):n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(" F")]),e._v(" "),n("img",{staticClass:"imagePicture",attrs:{slot:"title",src:e.photo_url},slot:"title"}),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v("\n "+e._s(e.moment(e.friend.birthDate,"YYYYMMDD").fromNow(!0))),n("br")]),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(e.friend.location)),n("br")]),e._v(" "),n("span",{attrs:{slot:"text"},slot:"text"},[e._v(e._s(e.friend.profileMessage))])]),e._v(" "),n("f7-block",[n("f7-row",{attrs:{gap:""}},[n("f7-col"),e._v(" "),e.friend.photo_number>1?n("f7-col",[n("f7-button",{attrs:{fill:""},on:{click:e.nextPicture}},[e._v("Next")])],1):n("span",[e._v(" Press Back Button to continue ")]),e._v(" "),n("f7-col")],1)],1)],1)],1),e._v("\n\n |\n")],1)}),[],!1,null,"1e261ff3",null)),Sl=El.exports,Tl={},Cl=sl(Tl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",[n("f7-navbar",{attrs:{title:"Dynamic Route","back-link":"Back"}}),e._v(" "),n("f7-block",{attrs:{strong:""}},[n("ul",[n("li",[n("b",[e._v("Url:")]),e._v(" "+e._s(e.$f7route.url))]),e._v(" "),n("li",[n("b",[e._v("Path:")]),e._v(" "+e._s(e.$f7route.path))]),e._v(" "),n("li",[n("b",[e._v("Hash:")]),e._v(" "+e._s(e.$f7route.hash))]),e._v(" "),n("li",[n("b",[e._v("Params:")]),e._v(" "),n("ul",e._l(e.$f7route.params,(function(t,r){return n("li",{key:r},[n("b",[e._v(e._s(r)+":")]),e._v(" "+e._s(t))])})),0)]),e._v(" "),n("li",[n("b",[e._v("Query:")]),e._v(" "),n("ul",e._l(e.$f7route.query,(function(t,r){return n("li",{key:r},[n("b",[e._v(e._s(r)+":")]),e._v(" "+e._s(t))])})),0)]),e._v(" "),n("li",[n("b",[e._v("Route:")]),e._v(" "+e._s(e.$f7route.route.path))])])]),e._v(" "),n("f7-block",{attrs:{strong:""}},[n("f7-link",{on:{click:function(t){return e.$f7router.back()}}},[e._v("Go back via Router API")])],1)],1)}),[],!1,null,null,null),Ml=Cl.exports,xl={data:function(){return{user:this.$f7route.context.user}}},$l=sl(xl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",[n("f7-navbar",{attrs:{title:e.user.firstName+" "+e.user.lastName,"back-link":"Back"}}),e._v(" "),n("f7-block",{attrs:{strong:""}},[e._v("\n "+e._s(e.user.about)+"\n ")]),e._v(" "),n("f7-list",e._l(e.user.links,(function(e,t){return n("f7-list-item",{key:t,attrs:{link:e.url,title:e.title,external:"",target:"_blank"}})})),1)],1)}),[],!1,null,null,null),Ll=$l.exports,Pl={},Ol=sl(Pl,(function(){var e=this.$createElement,t=this._self._c||e;return t("f7-page",[t("f7-navbar",{attrs:{title:"Not found","back-link":"Back"}}),this._v(" "),t("f7-block",{attrs:{strong:""}},[t("p",[this._v("Sorry")]),this._v(" "),t("p",[this._v("Requested content not found.")])])],1)}),[],!1,null,null,null),Il=Ol.exports,Al=n(32),Dl={computed:{alert_message:function(){return this.$store.getters.alert_message},quit_application:function(){return this.$store.getters.quit_application}},watch:{alert_message:function(e){var t=this;null!=e&&(this.showToastBottom(e),setTimeout((function(){t.$store.commit("setAlertMessage",null)}),200))},quit_application:function(e){null!=e&&(this.quitAppDialogue(e),this.$store.commit("setQuitApplication",null))}},methods:{showToastBottom:function(e){this.toastBottom&&!this.toastBottom.destroyed||(this.toastBottom=this.$f7.toast.create({text:e,closeTimeout:4e3,position:"center",destroyOnClose:!0})),this.toastBottom.open()},quitAppDialogue:function(e){var t=this;this.$f7.dialog.create({title:"Quit",text:"Are you sure you want to quit Application?",content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:function(e,n){var r=t.$f7;1==n?(t.$store.commit("setQuitApplication",null),t.$f7.dialog.close(),r.panel.close(),window.hasOwnProperty("cordova")&&window.navigator.app.exitApp()):(t.$store.commit("setQuitApplication",null),t.$f7.dialog.close(),r.panel.close())},on:{open:function(){}}}).open()}}},Nl=(n(25),{data:function(){return{email:null,password:null,time_left:-1,app_agree:!1}},mixins:[Dl],computed:{show_resend_email:function(){return this.$store.getters.show_resend_email},pageStatus:function(){return this.$store.getters.pageStatus}},methods:{myFunction:function(){},userConsent:function(){var e={country:"Nigeria",phonenumber:"2348022225545"},t=JSON.stringify(e);this.$store.commit("setAlertMessage","Phone Verified"),this.$f7router.navigate("/signup/"+encodeURIComponent(t))},onCheckBoxChange:function(){},getOS:function(){var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?n="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(t)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?n="Windows":/Android/.test(e)?n="Android":!n&&/Linux/.test(t)&&(n="Linux"),n},forgetPassword:function(){var e=this,t=Qs.a.auth();null!=this.email?t.sendPasswordResetEmail(this.email).then((function(){e.$store.commit("setAlertMessage","A reset email has been sent to your inbox")})).catch((function(t){e.$store.commit("setAlertMessage",t)})):e.$store.commit("setAlertMessage","Please enter your email")},color:function(e){return e<=0?"#007aff":"gray"},resendEmail:function(){this.time_left<=0&&(this.$store.dispatch("sendVerification"),this.countDown())},countDown:function(){var e=this;e.time_left=20;var t=Object(Al.setInterval)((function(){e.time_left-=1,e.time_left<=0&&Object(Al.clearInterval)(t)}),1e3)},signIn:function(){var e=this;return il()(nl.a.mark((function t(){var n,r;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=7;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:if("offline"!=t.sent){t.next=7;break}return e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue..."),t.abrupt("return");case 7:if(null==e.email||null==e.password){t.next=19;break}return(n={}).email=e.email,n.password=e.password,Ka.dialog.preloader("Logging you to the App.<br>First time might take long.<br>Please wait..."),t.next=14,e.$store.dispatch("signIn",n);case 14:r=t.sent,Ka.dialog.close(),"1"==r&&e.$store.commit("setAlertMessage","Please Verify Your Email..."),t.next=20;break;case 19:e.$store.commit("setAlertMessage","Provide valid email and password to continue... ");case 20:case"end":return t.stop()}}),t)})))()}},created:function(){}}),Rl=Nl,Bl=(n(317),sl(Rl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{staticClass:"page-one",attrs:{name:"signin","no-swipeback":"","login-screen":""}},[n("f7-login-screen-title",[e._v("Penpal America")]),e._v(" "),n("div",[n("f7-list",{attrs:{"no-hairlines-md":""}},[n("f7-list-input",{attrs:{value:e.email,label:"E-mail",type:"email",placeholder:"Your e-mail","clear-button":"",validate:""},on:{input:function(t){e.email=t.target.value}}}),e._v(" "),n("f7-list-input",{attrs:{value:e.password,label:"Password",type:"password",placeholder:"Your password","clear-button":""},on:{input:function(t){e.password=t.target.value}}})],1),e._v(" "),n("f7-block",[n("f7-button",{attrs:{fill:"","open-confirm":""},on:{click:e.signIn}},[e._v("Sign in")]),e._v(" "),n("br"),e._v(" "),n("div",{staticStyle:{"text-align":"center"}},[e.show_resend_email?n("f7-link",{attrs:{color:e.color(e.time_left)},on:{click:e.resendEmail}},[e._v("\n Resend Confirmation Email\n "),e.time_left>0?n("span",[e._v(" "+e._s(e.time_left))]):e._e()]):e._e(),e._v(" "),n("br"),e._v(" "),n("f7-link",{on:{click:e.userConsent}},[e._v("Don't have an account? Sign up")]),e._v(" "),n("br"),e._v(" "),n("f7-link",{on:{click:e.forgetPassword}},[e._v("Forget Password")]),e._v(" "),n("br")],1)],1)],1)],1)}),[],!1,null,"f7f10fc0",null)),Yl=Bl.exports,jl={data:function(){return{email:null,password:null,time_left:-1,app_agree:!1}},mixins:[Dl],computed:{show_resend_email:function(){return this.$store.getters.show_resend_email},pageStatus:function(){return this.$store.getters.pageStatus}},methods:{myFunction:function(){},userConsent:function(){var e=this,t=!1;this.$f7.dialog.create({title:"App User's Consent Required",text:"",content:"<div class='page' data-page='home' style='height: 300px; position:relative'><div class='page-content infinite-scroll-content' style='overflow: auto'><div class='list simple-list'><h2>Privacy Policy</h2><p>Swift Alliance builds the Penpal America App as a social network app. This SERVICE is provided by Swift Alliance at no cost and is intended for use as is.</p><p> This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service. </p> <p> If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. we will not use or share your information with anyone except as described in this Privacy Policy. </p> <p> The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Penpal America unless otherwise defined in this Privacy Policy. </p> <p><strong>Information Collection and Use</strong></p> <p> For a better experience, while using our Service, we may require you to provide us with certain personally identifiable information, including but not limited to Contacts in your Phonebook,Your Phone Number,Your Profile Picture. The information that we request will be securely saved on our secure Servers, we will never share these information without your permission. <br> your name, number, and your profile Picture will be available publicly to other users. </p> <p> The app does use third party services that may collect information used to identify you. </p><div><p> we want to inform you that whenever you use our Service, in a case of an error in the app we collect data and information (through third party products) on your phone called Log Data. This Log Data may include information such as your device Internet Protocol (“IP”) address, device name, operating system version, the configuration of the app when utilizing our Service, the time and date of your use of the Service, and other statistics. </p> <p><strong>Permissions we request</strong></p> <p> <ul> <li>Contacts: to be able to communicate with your Friends that are in your Contacts</li> <li>Camera: to be able to Take Pictures/Videos and to be able to make Video Calls.</li> <li>Microphpone: to be able to send Voice Messages and also to be able to make Voice/Video Calls.</li> <li>Storage: to save the Sent/Received Files in your Device</li> </ul> </p> <p><strong>Cookies</strong></p> <p> Cookies are files with a small amount of data that are commonly used as anonymous unique identifiers. These are sent to your browser from the websites that you visit and are stored on your device's internal memory. </p> <p> This Service does not use these “cookies” explicitly. However, the app may use third party code and libraries that use “cookies” to collect information and improve their services. You have the option to either accept or refuse these cookies and know when a cookie is being sent to your device. If you choose to refuse our cookies, you may not be able to use some portions of this Service. </p> <p><strong>Service Providers</strong></p> <p> we may employ third-party companies and individuals due to the following reasons: </p> <ul><li>To facilitate our Service;</li> <li>To provide the Service on our behalf;</li> <li>To perform Service-related services; or</li> <li>To assist us in analyzing how our Service is used.</li></ul> <p> we want to inform users of this Service that these third parties have access to your Personal Information. The reason is to perform the tasks assigned to them on our behalf. However, they are obligated not to disclose or use the information for any other purpose. </p> <p><strong>Security</strong></p> <p> we value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and we cannot guarantee its absolute security. </p> <p><strong>Links to Other Sites</strong></p> <p> This Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by us. Therefore, we strongly advise you to review the Privacy Policy of these websites. we have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services. </p> <p><strong>Children’s Privacy</strong></p> <p> These Services do not address anyone under the age of 13. we do not knowingly collect personally identifiable information from children under 13. In the case we discover that a child under 13 has provided us with personal information, we immediately delete this from our servers. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact us so that we will be able to do necessary actions. </p> <p><strong>Changes to This Privacy Policy</strong></p> <p> we may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. we will notify you of any changes by posting the new Privacy Policy on this page. These changes are effective immediately after they are posted on this page. </p> <p><strong>Contact Us</strong></p> <p> If you have any questions or suggestions about our Privacy Policy, do not hesitate to contact us at support@penpalamerica.com </p> <div class='list media-list'><label class='item-checkbox item-content'><input type='checkbox' name='demo-media-checkbox' value ='1' /><i class='icon icon-checkbox'></i><p>I agree with the above conditions.</p></label></div></div><div class='preloader infinite-scroll-preloader'></div></div></div>",buttons:[{text:"Decline",close:!0},{text:"I Agree"}],onClick:function(n,r){if(1==r)if(t){var i=e.$f7;e.$f7router.navigate("/phoneverify/"),e.$f7.dialog.close(),i.panel.close()}else e.$store.commit("setAlertMessage","Scroll to bottom page to accept Terms & Conditions before continuing. ")},on:{open:function(){}}}).open();(0,this.Dom7)('[name="demo-media-checkbox"]').on("change",(function(e){t=!!e.target.checked}))},onCheckBoxChange:function(){},getOS:function(){var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?n="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(t)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?n="Windows":/Android/.test(e)?n="Android":!n&&/Linux/.test(t)&&(n="Linux"),n},forgetPassword:function(){var e=this;return il()(nl.a.mark((function t(){var n,r,i;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e,Qs.a.auth(),null==e.email){t.next=14;break}return r="",(i={}).email=e.email,i.domain="penpalamerica.com",t.next=9,n.$store.dispatch("resetPassword",i);case 9:r=t.sent,console.log(r),"0"==r?n.$store.commit("setAlertMessage","We have sent an email to ".concat(i.email," to reset your password")):n.$store.commit("setAlertMessage","We cannot find account associated with the email"),t.next=15;break;case 14:n.$store.commit("setAlertMessage","Please enter your email");case 15:case"end":return t.stop()}}),t)})))()},color:function(e){return e<=0?"#007aff":"gray"},resendEmail:function(){if(null!=this.email){if(this.time_left<=0){var e={};e.email=this.email,e.domain="penpalamerica.com",this.$store.dispatch("sendVerification",e),this.countDown()}}else this.$store.commit("setAlertMessage","Please provide your valid email")},countDown:function(){var e=this;e.time_left=20;var t=Object(Al.setInterval)((function(){e.time_left-=1,e.time_left<=0&&Object(Al.clearInterval)(t)}),1e3)},signIn:function(){var e=this;return il()(nl.a.mark((function t(){var n;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=7;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:if("offline"!=t.sent){t.next=7;break}return e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue..."),t.abrupt("return");case 7:if(null==e.email||null==e.password){t.next=17;break}return(n={}).email=e.email,n.password=e.password,t.next=13,e.$store.dispatch("signInMySQL",n);case 13:"1"==t.sent&&e.$store.commit("setAlertMessage","Please Verify Your Email..."),t.next=18;break;case 17:e.$store.commit("setAlertMessage","Provide valid email and password to continue... ");case 18:case"end":return t.stop()}}),t)})))()},individualMigration:function(){Qs.a.database().ref("users").child("6HKyTaBMx1NyTgSHlzNJM6uafwH2").once("value",(function(e){var t,n=(t=new Date(e.dateCreated)).getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds(),r=(t=new Date(e.lastSeen)).getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds(),i={birthDate:e.birthDate,country:e.country,dateCreated:n,email:e.email,emailverified:e.emailverified,gender:e.gender,lastSeen:r,location:e.location,name:e.name,phonenumber:e.phonenumber,photoUpload:e.photoUpload,photo_url1:e.photo_url,profileMessage:e.profileMessage,userToken:e.userToken,userType:e.userType,domain:"penpalamerica.com"};Ja.request.post("https://chatme24.com/penpal/migrationpenpal.php",i,function(){var e=il()(nl.a.mark((function e(t){return nl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("data",t),"-1"!=t){e.next=4;break}return e.next=4,Qs.a.database().ref("users").child("6HKyTaBMx1NyTgSHlzNJM6uafwH2").update({migrated:!0}).catch((function(e){console.log(e.message)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}))}},created:function(){}},Fl=jl,Hl=(n(318),sl(Fl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.pageStatus?n("f7-page",{staticClass:"page-one",attrs:{name:"signin","no-swipeback":"","login-screen":""}},[n("f7-login-screen-title",[e._v("Penpal America")]),e._v(" "),n("div",[n("f7-list",{attrs:{"no-hairlines-md":""}},[n("f7-list-input",{attrs:{value:e.email,label:"E-mail",type:"email",placeholder:"Your e-mail","clear-button":"",validate:""},on:{input:function(t){e.email=t.target.value}}}),e._v(" "),n("f7-list-input",{attrs:{value:e.password,label:"Password",type:"password",placeholder:"Your password","clear-button":""},on:{input:function(t){e.password=t.target.value}}})],1),e._v(" "),n("f7-block",[n("f7-button",{attrs:{fill:"","open-confirm":""},on:{click:e.signIn}},[e._v("Sign in")]),e._v(" "),n("br"),e._v(" "),n("div",{staticStyle:{"text-align":"center"}},[e.show_resend_email?n("f7-link",{attrs:{color:e.color(e.time_left)},on:{click:e.resendEmail}},[e._v("\n Resend Confirmation Email\n "),e.time_left>0?n("span",[e._v(" "+e._s(e.time_left))]):e._e()]):e._e(),e._v(" "),n("br"),e._v(" "),n("f7-link",{on:{click:e.userConsent}},[e._v("Don't have an account? Sign up")]),e._v(" "),n("br"),e._v(" "),n("f7-link",{on:{click:e.forgetPassword}},[e._v("Forget Password")]),e._v(" "),n("br")],1)],1)],1)],1):e._e()}),[],!1,null,"a626f196",null)),Ul=Hl.exports,zl={data:function(){return{email:null,password:null,time_left:-1,app_agree:!1}},methods:{gotoSignIn:function(){this.$f7router.navigate("/signin/")},gotoHome:function(){this.$f7router.navigate("/../index.html/",External)}},created:function(){}},Vl=zl,ql=(n(319),sl(Vl,(function(){var e=this.$createElement,t=this._self._c||e;return t("f7-page",{attrs:{name:"firstpage","no-swipeback":""}},[t("div",{staticClass:"page-one",attrs:{align:"center"}},[t("f7-block",[t("h1",[t("font",{attrs:{color:"white"}},[this._v("Welcome to Penpal America")])],1),this._v(" "),t("h3",[t("font",{attrs:{color:"white"}},[this._v("Register today to chat with Americans")])],1),this._v(" "),t("div",{staticClass:"halfcol"},[t("f7-button",{attrs:{fill:"","open-confirm":""},on:{click:this.gotoSignIn}},[this._v("Get Started")]),this._v(" "),t("br")],1)])],1)])}),[],!1,null,"64c62117",null)),Wl=ql.exports,Gl={mixins:[Dl],f7Page:bs,f7LoginScreenTitle:Xo,f7List:Jo,f7ListItem:Ko,f7ListButton:Ho,f7BlockFooter:yo,f7ListInput:Vo,data:function(){return{name:null,email:null,password:null,phonenumber:null,country:null,gender:null,lastseen:null,location:null,profileMessage:null,dateofbirth:null,tempPayload:null}},computed:{pageStatus:function(){return this.$store.getters.pageStatus},image_url:function(){return this.$store.getters.image_url},files:function(){return this.$store.getters.files},signed_up:function(){return this.$store.getters.signed_up},valid_inputs:function(){return this.$store.getters.valid_inputs}},watch:{signed_up:function(e){1==e&&this.$f7router.navigate("/signin/")},valid_inputs:function(e){}},methods:{getOS:function(){var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?n="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(t)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?n="Windows":/Android/.test(e)?n="Android":!n&&/Linux/.test(t)&&(n="Linux"),n},launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFile","setImageURL")},signUp:function(){var e=this;return il()(nl.a.mark((function t(){var n,r,i,a,o,s,l,c;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("web",n=e,(r={}).phonenumber=e.phonenumber,r.country=e.country,r.userToken="web",!e.name){t.next=16;break}if(!(e.name.length<3)){t.next=13;break}return n.$store.dispatch("verifyInputs","Name must be 3 characters long minimum)"),n.$store.dispatch("resetVerifyInputs"),t.abrupt("return");case 13:r.name=e.name;case 14:t.next=19;break;case 16:return n.$store.dispatch("verifyInputs","Enter Your Name ( 3 characters long minimum)"),n.$store.dispatch("resetVerifyInputs"),t.abrupt("return");case 19:if(!e.email){t.next=23;break}r.email=e.email,t.next=26;break;case 23:return n.$store.dispatch("verifyInputs","Enter Valid Email Address"),n.$store.dispatch("resetVerifyInputs"),t.abrupt("return");case 26:if(!e.password){t.next=36;break}if(!(e.password.length<6)){t.next=33;break}return n.$store.dispatch("verifyInputs","Password must be 6 characters long minimum)"),n.$store.dispatch("resetVerifyInputs"),t.abrupt("return");case 33:r.password=e.password;case 34:t.next=39;break;case 36:return n.$store.dispatch("verifyInputs","Enter Your Password ( 6 characters long minimum )"),n.$store.dispatch("resetVerifyInputs"),t.abrupt("return");case 39:if(!e.dateofbirth){t.next=53;break}if(i=new Date(e.dateofbirth),a=new Date,o=a-i,!(Math.floor(o/315576e5)<18)){t.next=50;break}return n.$store.dispatch("verifyInputs","Service is for Persons 18+"),n.$store.dispatch("resetVerifyInputs"),t.abrupt("return");case 50:r.dateofbirth=vl()(String(e.dateofbirth)).format("YYYY/MM/DD/");case 51:t.next=56;break;case 53:return n.$store.dispatch("verifyInputs","Please Enter your age"),n.$store.dispatch("resetVerifyInputs"),t.abrupt("return");case 56:if(!e.location){t.next=66;break}if(!(e.location.length<2)){t.next=63;break}return n.$store.dispatch("verifyInputs","location must be 2 characters long minimum)"),n.$store.dispatch("resetVerifyInputs"),t.abrupt("return");case 63:r.location=e.location;case 64:t.next=69;break;case 66:return n.$store.dispatch("verifyInputs","Enter Your location ( 2 characters long minimum )"),n.$store.dispatch("resetVerifyInputs"),t.abrupt("return");case 69:if(!e.gender){t.next=73;break}r.gender=e.gender,t.next=76;break;case 73:return n.$store.dispatch("verifyInputs","Select Gender from the list"),n.$store.dispatch("resetVerifyInputs"),t.abrupt("return");case 76:if(!e.profileMessage){t.next=86;break}if(!(e.profileMessage.length<10)){t.next=83;break}return n.$store.dispatch("verifyInputs","Profile Message must be 10 characters long minimum)"),n.$store.dispatch("resetVerifyInputs"),t.abrupt("return");case 83:r.profileMessage=e.profileMessage;case 84:t.next=89;break;case 86:return n.$store.dispatch("verifyInputs","Enter Profile Message ( 10 characters long minimum)"),n.$store.dispatch("resetVerifyInputs"),t.abrupt("return");case 89:if(r.photoURL=e.image_url,r.userType="1",r.userStatus="offline",r.lastSeen=Date.now(),r.photoUpload="false",!e.valid_inputs){t.next=102;break}if(!n.files){t.next=102;break}return t.next=98,n.$store.dispatch("uploadImageMySQL",n.files[0]);case 98:s=t.sent,console.log("image not surURL",s),r.photoUpload="true",r.photoURL=s;case 102:l=(l=(l=(l=(l=(l=e.country).replace(".","")).replace("#","")).replace("$","")).replace("[","")).replace("]",""),"M"==r.gender?r.genderSearch="F":r.genderSearch="M",c={photoUpload:r.photoUpload,password:r.password,name:r.name,email:r.email,phonenumber:e.phonenumber,location:r.location,profileMessage:r.profileMessage,country:l,gender:r.gender,genderSearch:r.genderSearch,birthDate:r.dateofbirth,photo_url1:r.photoURL,domain:"penpalamerica.com"},{header:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE"}},e.$f7.request.post("https://chatme24.com/penpal/registerpenpal.php",c,(function(e){if(console.log(e),"0"==e)return n.$store.commit("setSignedUp",!0),n.$store.commit("setPageStatus",!0),n.$store.commit("setAlertMessage","A verification email has been sent to ".concat(r.email)),void n.$f7router.navigate("/firstpage/");"-1"!=e?"1"!=e?"3"!=e?"2"!=e?n.$store.commit("setAlertMessage","Unknow Error Occurred during registration. Please try later."):n.$store.commit("setAlertMessage","Some SignUp Fields are misssing"):n.$store.commit("setAlertMessage","User already exists (phonenumber)"):n.$store.commit("setAlertMessage","User already exists (email)"):n.$store.commit("setAlertMessage","Database Error! Please try again or contact Admin")}));case 111:case"end":return t.stop()}}),t)})))()}},created:function(){this.$store.commit("setSignedUp",!1);var e=this.$f7route.params.phone,t=JSON.parse(e);this.phonenumber=t.phonenumber,this.country=t.country}},Kl=(n(320),sl(Gl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.pageStatus?n("f7-page",{attrs:{name:"signup","no-swipeback":"","login-screen":""}},[n("f7-login-screen-title",[e._v("Sign Up")]),e._v(" "),n("f7-navbar",{attrs:{title:"Sign up","back-link":"Back"}}),e._v(" "),n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover",attrs:{src:e.image_url,alt:""},on:{click:e.launchFilePicker}})]),e._v(" "),n("div",{staticClass:"list inline-labels no-hairlines-md"},[n("ul",[n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Name")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"text",placeholder:"Display name",required:"",validate:""},domProps:{value:e.name},on:{input:function(t){e.name=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("E-mail")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"email",placeholder:"Your e-mail",required:"",validate:""},domProps:{value:e.email},on:{input:function(t){e.email=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Gender")]),e._v(" "),n("div",{staticClass:"item-input-wrap input-dropdown-wrap"},[n("select",{attrs:{placeholder:"Please choose..."},domProps:{value:e.gender},on:{input:function(t){e.gender=t.target.value}}},[n("option",{attrs:{value:"M"}},[e._v("Male")]),e._v(" "),n("option",{attrs:{value:"F"}},[e._v("Female")])])])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Password")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"password",placeholder:"Your password"},domProps:{value:e.password},on:{input:function(t){e.password=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Birthday")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"date",placeholder:"Please choose..."},domProps:{value:e.dateofbirth},on:{input:function(t){e.dateofbirth=t.target.value}}})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Location")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"text",placeholder:"Your Present location"},domProps:{value:e.location},on:{input:function(t){e.location=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("span",{attrs:{"v-if":e.valid_inputs}}),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Message")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("textarea",{staticClass:"resizable",attrs:{placeholder:"Your Profile Message",maxlength:"200"},domProps:{value:e.profileMessage},on:{input:function(t){e.profileMessage=t.target.value}}})])])])])]),e._v(" "),n("div",[n("f7-block",[n("f7-button",{attrs:{fill:""},on:{click:e.signUp}},[e._v("Sign up")]),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.onFilePicked}}),e._v(" "),n("br"),e._v(" "),n("f7-link",{attrs:{href:"https://penpalamerica.com/terms.html",external:""}},[e._v("Terms and Conditions |\n ")]),e._v(" "),n("f7-link",{attrs:{href:"https://penpalamerica.com/privacy.html",external:""}},[e._v("Privacy")])],1)],1)],1):e._e()}),[],!1,null,"5c72e67c",null).exports),Jl={mixins:[Dl],data:function(){return{name:null,email:null,password:null}},computed:{user:function(){return this.$store.getters.user},group_image_url:function(){return this.$store.getters.group_image_url},display_name:{get:function(){return this.$store.getters.display_name},set:function(e){this.$store.commit("setDisplayName",e)}},user_location:{get:function(){return this.$store.getters.user_location},set:function(e){this.$store.commit("setUserLocation",e)}},profile_message:{get:function(){return this.$store.getters.profile_message},set:function(e){this.$store.commit("setProfileMessage",e)}},uploadFile:{get:function(){return this.$store.getters.uploadFile},set:function(e){this.$store.commit("setUploadFile",e)}},image_url:function(){return this.$store.getters.image_url},files:function(){return this.$store.getters.files},photo_url:function(){return this.$store.getters.photo_url}},watch:{uploadFile:function(e){if(e>0){this.$f7.progressbar.set("#demo-inline-progressbar",e)}e>99&&this.$store.commit("setUploadFile",0)}},methods:{launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFile","setImageURL")},updateProfile:function(e){var t=this;return il()(nl.a.mark((function e(){var n,r,i;return nl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((n=t).display_name.length<2)){e.next=4;break}return n.$store.commit("setAlertMessage","Display name is too short"),e.abrupt("return");case 4:if(!(n.user_location.length<2)){e.next=7;break}return n.$store.commit("setAlertMessage","Your location is too short"),e.abrupt("return");case 7:if(!(n.profile_message.length<10)){e.next=10;break}return n.$store.commit("setAlertMessage","profile message is too short"),e.abrupt("return");case 10:if(!n.files){e.next=33;break}return e.next=13,n.$store.dispatch("uploadImageMySQL",n.files[0]);case 13:return r=e.sent,(i={}).email=n.user[0].email,i.name=n.display_name,i.location=n.user_location,i.profileMessage=n.profile_message,i.domain=n.user[0].domain,i.photo_url1=r,e.next=23,t.$store.dispatch("updateUserProfile",i);case 23:if("0"!=e.sent){e.next=30;break}return e.next=27,t.$store.dispatch("getUserPersonalDetails",i);case 27:n.$store.commit("setAlertMessage","Your profile has been updated"),e.next=31;break;case 30:n.$store.commit("setAlertMessage","Sorry we cannot update your profile at this time");case 31:e.next=49;break;case 33:return(i={}).email=n.user[0].email,i.name=n.display_name,i.location=n.user_location,i.profileMessage=n.profile_message,i.domain=n.user[0].domain,e.next=41,t.$store.dispatch("updateUserProfile",i);case 41:if("0"!=e.sent){e.next=48;break}return e.next=45,t.$store.dispatch("getUserPersonalDetails",i);case 45:n.$store.commit("setAlertMessage","Your profile has been updated"),e.next=49;break;case 48:n.$store.commit("setAlertMessage","Sorry we cannot update your profile at this time");case 49:case"end":return e.stop()}}),e)})))()}},created:function(){null!=this.user[0].photo_url1&&this.$store.commit("setImageURL",this.user[0].photo_url1),null!=this.user[0].name&&this.$store.commit("setDisplayName",this.user[0].name),null!=this.user[0].location&&this.$store.commit("setUserLocation",this.user[0].location),null!=this.user[0].profileMessage&&this.$store.commit("setProfileMessage",this.user[0].profileMessage)}},Xl=(n(321),sl(Jl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"editprofile"}},[n("f7-navbar",{attrs:{title:"Edit Profile","back-link":"Back"}}),e._v(" "),n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover",attrs:{src:e.image_url,alt:""},on:{click:e.launchFilePicker}})]),e._v(" "),n("div",{staticClass:"align-center"},[n("div",{staticClass:"list inline-labels no-hairlines-md"},[n("ul",[n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Display Name")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"text",placeholder:"Display name",required:"",validate:""},domProps:{value:e.display_name},on:{input:function(t){e.display_name=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Your Location")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"text",placeholder:"Enter Your Location",required:"",validate:""},domProps:{value:e.user_location},on:{input:function(t){e.user_location=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Profile Message")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("textarea",{staticClass:"resizable",attrs:{placeholder:"Enter Your Profile Message",maxlength:"200"},domProps:{value:e.profile_message},on:{input:function(t){e.profile_message=t.target.value}}})])])])])]),e._v(" "),n("f7-block",[e.uploadFile>0?n("div",[n("p",[n("f7-progressbar",{attrs:{progress:0,id:"demo-inline-progressbar"}})],1)]):e._e(),e._v(" "),n("f7-button",{attrs:{raised:""},on:{click:function(t){return e.updateProfile(!0)}}},[e._v("Update Profile")]),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.onFilePicked}})],1)],1)],1)}),[],!1,null,"e77ca5ee",null).exports),Ql={name:"app",components:{mixins:[Dl],Media:pl.a},data:function(){return{name:null,email:null,password:null,photoURL:null,addvideo:"https://penpalamerica.com/images/addvideo.jpg"}},computed:{delete_photo2:function(){return this.$store.getters.delete_photo2},delete_photo3:function(){return this.$store.getters.delete_photo3},delete_photo4:function(){return this.$store.getters.delete_photo4},delete_photo5:function(){return this.$store.getters.delete_photo5},delete_photo6:function(){return this.$store.getters.delete_photo6},user:function(){return this.$store.getters.user},image_url:function(){return this.$store.getters.image_url},image_url1:function(){return this.$store.getters.image_url1},image_url2:function(){return this.$store.getters.image_url2},image_url3:function(){return this.$store.getters.image_url3},image_url4:function(){return this.$store.getters.image_url4},image_url5:function(){return this.$store.getters.image_url5},image_url6:function(){return this.$store.getters.image_url6},files:function(){return this.$store.getters.files},photo_url:function(){return this.$store.getters.photo_url}},watch:{},methods:{deletePhoto:function(e){var t=this;this.$f7.dialog.create({title:"Delete Photo?",text:"Do you want to Delete this Photo?",content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:function(n,r){if(1==r){var i=t.$f7,a={};a.email=t.user[0].email,a.domain=t.user[0].domain,a.url=e,t.$store.dispatch("deletePhoto",a),t.$f7.dialog.close(),i.panel.close()}},on:{open:function(){}}}).open()},launchFilePicker:function(e){"1"==e&&(this.photoURL="1"),"2"==e&&(this.photoURL="2"),"3"==e&&(this.photoURL="3"),"4"==e&&(this.photoURL="4"),"5"==e&&(this.photoURL="5"),"6"==e&&(this.photoURL="6"),this.$refs.file.click()},onFilePicked:function(){var e=this;return il()(nl.a.mark((function t(){var n,r,i,a;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e,r="setImageURL"+e.photoURL,(i={}).action_name=r,i.url=e.photoURL,t.next=7,e.$store.dispatch("readFilePlus",i);case 7:if(!n.files){t.next=16;break}return(a={}).files=n.files[0],a.url=e.photoURL,a.email=n.user[0].email,a.domain=n.user[0].domain,t.next=15,n.$store.dispatch("uploadImageMySQLAddPhoto",a);case 15:t.sent;case 16:case"end":return t.stop()}}),t)})))()}},created:function(){null!=this.user[0].photo_url1&&this.$store.commit("setImageURL1",this.user[0].photo_url1),""!=this.user[0].photo_url2&&(this.$store.commit("setDeletePhoto2",!0),this.$store.commit("setImageURL2",this.user[0].photo_url2)),""!=this.user[0].photo_url3&&(this.$store.commit("setDeletePhoto3",!0),this.$store.commit("setImageURL3",this.user[0].photo_url3)),""!=this.user[0].photo_url4&&(this.$store.commit("setDeletePhoto4",!0),this.$store.commit("setImageURL4",this.user[0].photo_url4)),""!=this.user[0].photo_url5&&(this.$store.commit("setDeletePhoto5",!0),this.$store.commit("setImageURL5",this.user[0].photo_url5)),""!=this.user[0].photo_url6&&(this.$store.commit("setDeletePhoto6",!0),this.$store.commit("setImageURL6",this.user[0].photo_url6)),null!=this.user[0].name&&this.$store.commit("setDisplayName",this.user[0].name),null!=this.user[0].location&&this.$store.commit("setUserLocation",this.user[0].location),null!=this.user[0].profileMessage&&this.$store.commit("setProfileMessage",this.user[0].profileMessage)}},Zl=(n(322),sl(Ql,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"addphoto"}},[n("f7-navbar",{attrs:{title:"Add Photos","back-link":"Back"}}),e._v(" "),n("f7-block",[n("f7-row",[n("f7-col",[n("div",{staticClass:"wrapper"},[n("span",{staticStyle:{"font-size":"10px","margin-left":"5px"}},[e._v("Profile Picture")]),n("br"),e._v(" "),n("img",{staticClass:"image--cover",attrs:{src:e.image_url1,alt:""},on:{click:function(t){return e.launchFilePicker(1)}}})])]),e._v(" "),n("f7-col",[n("div",{staticClass:"wrapper"},[n("span",{staticStyle:{"font-size":"10px","margin-left":"5px"}},[e._v("Add Photo")]),e._v(" "),e.delete_photo2?n("span",[n("f7-link",{on:{click:function(t){return e.deletePhoto(2)}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("bin_xmark_fill")])])],1):e._e(),e._v(" "),n("br"),e._v(" "),n("img",{staticClass:"image--cover",attrs:{src:e.image_url2,alt:""},on:{click:function(t){return e.launchFilePicker(2)}}})])])],1),e._v(" "),n("f7-row",[n("f7-col",[n("div",{staticClass:"wrapper"},[n("span",{staticStyle:{"font-size":"10px","margin-left":"5px"}},[e._v("Add Photo")]),e._v(" "),e.delete_photo3?n("span",[n("f7-link",{on:{click:function(t){return e.deletePhoto(3)}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("bin_xmark_fill")])])],1):e._e(),e._v(" "),n("br"),e._v(" "),n("img",{staticClass:"image--cover",attrs:{src:e.image_url3,alt:""},on:{click:function(t){return e.launchFilePicker(3)}}})])]),e._v(" "),n("f7-col",[n("div",{staticClass:"wrapper"},[n("span",{staticStyle:{"font-size":"10px","margin-left":"5px"}},[e._v("Add Photo")]),e._v(" "),e.delete_photo4?n("span",[n("f7-link",{on:{click:function(t){return e.deletePhoto(4)}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("bin_xmark_fill")])])],1):e._e(),e._v(" "),n("br"),e._v(" "),n("img",{staticClass:"image--cover",attrs:{src:e.image_url4,alt:""},on:{click:function(t){return e.launchFilePicker(4)}}})])])],1),e._v(" "),n("f7-row",[n("f7-col",[n("div",{staticClass:"wrapper"},[n("Media",{ref:"fish",style:{width:"50%",align:"left"},attrs:{kind:"video",muted:!0,src:e.image_url5,autoplay:!1,controls:!0,loop:!0}}),n("br"),e._v(" "),n("img",{staticClass:"img-class",attrs:{src:e.addvideo,alt:""},on:{click:function(t){return e.launchFilePicker(5)}}}),e._v(" "),e.delete_photo5?n("span",[n("f7-link",{on:{click:function(t){return e.deletePhoto(5)}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("bin_xmark_fill")])])],1):e._e()],1)]),e._v(" "),n("f7-col",[n("div",{staticClass:"wrapper"},[n("Media",{ref:"fish",style:{width:"50%"},attrs:{kind:"video",muted:!0,src:e.image_url6,autoplay:!1,controls:!0,loop:!0}}),n("br"),e._v(" "),n("img",{staticClass:"img-class",attrs:{src:e.addvideo,alt:""},on:{click:function(t){return e.launchFilePicker(6)}}}),e._v(" "),e.delete_photo6?n("span",[n("f7-link",{on:{click:function(t){return e.deletePhoto(6)}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("bin_xmark_fill")])])],1):e._e()],1)])],1)],1),e._v(" "),n("div",{staticClass:"align-center"},[n("f7-block",[n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.onFilePicked}})])],1)],1)}),[],!1,null,"97334af2",null).exports),ec=n(110),tc={data:function(){return{userEmail:null}},methods:{formatNumber:function(e){return ec(e).format("0,0.00")}},computed:{photoStatus:function(){return this.$store.getters.photoStatus},user:function(){return this.$store.getters.user},user_payout:{get:function(){return this.formatNumber(this.$store.getters.user_payout)},set:function(e){this.$store.commit("setUserLocation",e)}},user_country:function(){return this.$store.getters.user_country},subscribe_affiliate:function(){return this.$store.getters.subscribe_affiliate},user_details:function(){return this.$store.getters.user_details}},watch:{},created:function(){return il()(nl.a.mark((function e(){return nl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()}},nc=(n(323),sl(tc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",[n("f7-navbar",{attrs:{"back-link":"Back",title:e.user_details[0].name,subtitle:e.user_details[0].location}},[n("div",{attrs:{slot:"default"},slot:"default"},[n("span",{attrs:{"v-if":e.user_details[0].birthDate}},[e._v(e._s(e.moment(e.user_details[0].birthDate,"YYYYMMDD").fromNow(!0)))])])]),e._v(" "),n("f7-block",[n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover1",attrs:{src:this.user_details[0].photo_url1}})]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Profile Message")]),e._v(" "),n("br"),e._v("\n "+e._s(e.user_details[0].profileMessage)+"\n ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Email")]),e._v(" "),n("br"),e._v("\n "+e._s(this.user_details[0].email)+" --\x3e Only you see this\n ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Phone Number")]),e._v(" "),n("br"),e._v("\n "+e._s(this.user_details[0].phonenumber)+" --\x3e Only you see this\n ")])]),e._v(" "),n("br"),e._v(" "),n("br")])],1)}),[],!1,null,null,null).exports),rc={mixins:[Dl],props:{f7router:{}},data:function(){return{name:null,email:null,password:null}},computed:{user:function(){return this.$store.getters.user},upload_button:function(){return this.$store.getters.upload_button},group_image_url:function(){return this.$store.getters.group_image_url},uploadFile:{get:function(){return this.$store.getters.uploadFile},set:function(e){this.$store.commit("setUploadFile",e)}},image_url:function(){return this.$store.getters.image_url},files:function(){return this.$store.getters.files},photo_url:function(){return this.$store.getters.photo_url}},watch:{uploadFile:function(e){if(e>0){this.$f7.progressbar.set("#demo-inline-progressbar",e)}e>99&&this.$store.commit("setUploadFile",0)}},methods:{launchFilePicker:function(){this.$refs.file.click()},signOut:function(){this.$store.dispatch("signOut")},onFilePicked:function(){this.$store.dispatch("readFile","setImageURL")},updateProfile:function(e){var t=this;return il()(nl.a.mark((function e(){var n,r;return nl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t).files){e.next=18;break}return console.log("files to update",n.files[0]),(r={}).email=n.user[0].email,r.photo=n.files[0],r.domain=n.user[0].domain,e.next=9,n.$store.dispatch("uploadImageMySQLPlus",r);case 9:if("0"!=e.sent){e.next=15;break}return n.$store.dispatch("signOutPlus"),e.abrupt("return");case 15:n.$store.commit("setAlertMessage","Sorry Profile Picture could not be updated now");case 16:e.next=19;break;case 18:n.$store.commit("setAlertMessage","Select an Image File before continue with the upload");case 19:case"end":return e.stop()}}),e)})))()}},created:function(){this.$store.commit("setGroupImageURL","https://penpalamerica.com/images/profilepicture.png"),null!=this.photo_url&&this.$store.commit("setImageURL",this.photo_url)}},ic=(n(324),sl(rc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"editprofile"}},[e.upload_button?n("div",[n("f7-navbar",{attrs:{title:"Upload Your Picture","back-link":"Back"}})],1):n("div",[n("f7-navbar",{attrs:{title:"Upload Your Picture"}})],1),e._v(" "),n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover",attrs:{src:e.image_url,alt:""},on:{click:e.launchFilePicker}}),e._v(" "),e.upload_button?n("p",{staticStyle:{color:"blue"}},[e._v("\n Click the back button to continue\n ")]):n("p",{staticStyle:{color:"red"}},[e._v("\n Update Your Profile before chatting with Pals...\n ")])]),e._v(" "),n("div",{staticClass:"align-center"},[n("f7-block",[e.uploadFile>0?n("div",[n("p",[n("f7-progressbar",{attrs:{progress:0,id:"demo-inline-progressbar"}})],1)]):e._e(),e._v(" "),e.upload_button?n("div",[n("p",[e._v("Update Profile")])]):n("div",[n("f7-button",{attrs:{raised:""},on:{click:function(t){return e.updateProfile(!0)}}},[e._v("Update Profile")])],1),e._v(" "),n("div",[n("br"),n("br"),e._v(" "),n("f7-button",{attrs:{raised:""},on:{click:function(t){return e.signOut(!0)}}},[e._v("Sign Out")])],1),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.onFilePicked}})])],1)])}),[],!1,null,"76fbb2ce",null).exports),ac=n(288),oc=n.n(ac),sc=(n(325),{components:{VuePhoneNumberInput:oc.a,f7Page:bs,f7LoginScreenTitle:Xo,f7List:Jo,f7ListItem:Ko,f7ListButton:Ho,f7BlockFooter:yo,f7ListInput:Vo},data:function(){return{confirmationResult:null,phonenumber:null,phoneNumber2:null,phoneNumber3:"0665656565",defaultCountry:"",countriesList:[],countriesIgnored:[],translations:{countrySelectorLabel:"Code pays",countrySelectorError:"Choisir un pays",phoneNumberLabel:"Numéro de téléphone"},results:{},results2:{},results3:{},dark:!1,disabled:!1,hasLoaderActive:!1,hasErrorActive:!1,status:!1,phNo:"",appVerifier:"",otp:""}},methods:{getOS:function(){var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?n="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(t)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?n="Windows":/Android/.test(e)?n="Android":!n&&/Linux/.test(t)&&(n="Linux"),n},getCountryName:function(e){var t="";switch(e){case"AF":t="Afghanistan";break;case"AL":t="Albania";break;case"DZ":t="Algeria";break;case"AS":t="American Samoa";break;case"AD":t="Andorra";break;case"AO":t="Angola";break;case"AI":t="Anguilla";break;case"AQ":t="Antarctica";break;case"AG":t="Antigua and Barbuda";break;case"AR":t="Argentina";break;case"AM":t="Armenia";break;case"AW":t="Aruba";break;case"AU":t="Australia";break;case"AT":t="Austria";break;case"AZ":t="Azerbaijan";break;case"BS":t="Bahamas";break;case"BH":t="Bahrain";break;case"BD":t="Bangladesh";break;case"BB":t="Barbados";break;case"BY":t="Belarus";break;case"BE":t="Belgium";break;case"BZ":t="Belize";break;case"BJ":t="Benin";break;case"BM":t="Bermuda";break;case"BT":t="Bhutan";break;case"BO":t="Bolivia";break;case"BQ":t="Bonaire";break;case"BA":t="Bosnia Herzegovina";break;case"BW":t="Botswana";break;case"IO":t="Br. Indian Ocean Terr.";break;case"VG":t="Br. Virgin Isds";break;case"BR":t="Brazil";break;case"BN":t="Brunei Darussalam";break;case"BG":t="Bulgaria";break;case"BF":t="Burkina Faso";break;case"BI":t="Burundi";break;case"CV":t="Cabo Verde";break;case"KH":t="Cambodia";break;case"CM":t="Cameroon";break;case"CA":t="Canada";break;case"KY":t="Cayman Isds";break;case"CF":t="Central African Rep.";break;case"TD":t="Chad";break;case"CL":t="Chile";break;case"CN":t="China";break;case"HK":t="China, Hong Kong SAR";break;case"MO":t="China, Macao SAR";break;case"CX":t="Christmas Isds";break;case"CC":t="Cocos Isds";break;case"CO":t="Colombia";break;case"KM":t="Comoros";break;case"CG":t="Congo";break;case"CK":t="Cook Isds";break;case"CR":t="Costa Rica";break;case"CI":t="Côte d'Ivoire";break;case"HR":t="Croatia";break;case"CU":t="Cuba";break;case"CW":t="Curaçao";break;case"CY":t="Cyprus";break;case"CZ":t="Czechia";break;case"CS":t="Czechoslovakia";break;case"KP":t="Dem. People's Rep. of Korea";break;case"CD":t="Dem. Rep. of the Congo";break;case"DK":t="Denmark";break;case"DJ":t="Djibouti";break;case"DM":t="Dominica";break;case"DO":t="Dominican Rep.";break;case"PK":t="East and West Pakistan";break;case"EC":t="Ecuador";break;case"EG":t="Egypt";break;case"SV":t="El Salvador";break;case"GQ":t="Equatorial Guinea";break;case"ER":t="Eritrea";break;case"EE":t="Estonia";break;case"ET":t="Ethiopia";break;case"EU":t="EU-28";break;case"FO":t="Faeroe Isds";break;case"FK":t="Falkland Isds (Malvinas)";break;case"FJ":t="Fiji";break;case"FI":t="Finland";break;case"YE":t="Fmr Arab Rep. of Yemen";break;case"DD":t="Fmr Dem. Rep. of Germany";break;case"VD":t="Fmr Dem. Rep. of Vietnam";break;case"YD":t="Fmr Dem. Yemen";break;case"ET":t="Fmr Ethiopia";break;case"DE":t="Fmr Fed. Rep. of Germany";break;case"PC":t="Fmr Pacific Isds";break;case"PA":t="Fmr Panama, excl.Canal Zone";break;case"PZ":t="Fmr Panama-Canal-Zone";break;case"VN":t="Fmr Rep. of Vietnam";break;case"SD":t="Fmr Sudan";break;case"SU":t="Fmr USSR";break;case"YU":t="Fmr Yugoslavia";break;case"FQ":t="Fr. South Antarctic Terr.";break;case"FR":t="France";break;case"GF":t="French Guiana";break;case"PF":t="French Polynesia";break;case"FM":t="FS Micronesia";break;case"GA":t="Gabon";break;case"GM":t="Gambia";break;case"GE":t="Georgia";break;case"DE":t="Germany";break;case"GH":t="Ghana";break;case"GI":t="Gibraltar";break;case"GR":t="Greece";break;case"GL":t="Greenland";break;case"GD":t="Grenada";break;case"GP":t="Guadeloupe";break;case"GU":t="Guam";break;case"GT":t="Guatemala";break;case"GN":t="Guinea";break;case"GW":t="Guinea-Bissau";break;case"GY":t="Guyana";break;case"HT":t="Haiti";break;case"HM":t="Heard Island and McDonald Islands";break;case"VA":t="Holy See (Vatican City State)";break;case"HN":t="Honduras";break;case"HU":t="Hungary";break;case"IS":t="Iceland";break;case"IN":t="India";break;case"ID":t="Indonesia";break;case"IR":t="Iran";break;case"IQ":t="Iraq";break;case"IE":t="Ireland";break;case"IL":t="Israel";break;case"IT":t="Italy";break;case"JM":t="Jamaica";break;case"JP":t="Japan";break;case"JO":t="Jordan";break;case"KZ":t="Kazakhstan";break;case"KE":t="Kenya";break;case"KI":t="Kiribati";break;case"KW":t="Kuwait";break;case"KG":t="Kyrgyzstan";break;case"LA":t="Lao People's Dem. Rep.";break;case"LV":t="Latvia";break;case"LB":t="Lebanon";break;case"LS":t="Lesotho";break;case"LR":t="Liberia";break;case"LY":t="Libya";break;case"LT":t="Lithuania";break;case"LU":t="Luxembourg";break;case"MG":t="Madagascar";break;case"MW":t="Malawi";break;case"MY":t="Malaysia";break;case"MV":t="Maldives";break;case"ML":t="Mali";break;case"MT":t="Malta";break;case"MH":t="Marshall Isds";break;case"MQ":t="Martinique";break;case"MR":t="Mauritania";break;case"MU":t="Mauritius";break;case"YT":t="Mayotte";break;case"MX":t="Mexico";break;case"MN":t="Mongolia";break;case"ME":t="Montenegro";break;case"MS":t="Montserrat";break;case"MA":t="Morocco";break;case"MZ":t="Mozambique";break;case"MM":t="Myanmar";break;case"MP":t="N Mariana Isds";break;case"NA":t="Namibia";break;case"NR":t="Nauru";break;case"NP":t="Nepal";break;case"AN":t="Neth Antilles";break;case"NL":t="Netherlands";break;case"NC":t="New Caledonia";break;case"NZ":t="New Zealand";break;case"NI":t="Nicaragua";break;case"NE":t="Niger";break;case"NG":t="Nigeria";break;case"NU":t="Niue";break;case"NF":t="Norfolk Isds";break;case"NO":t="Norway";break;case"OM":t="Oman";break;case"PK":t="Pakistan";break;case"PW":t="Palau";break;case"PA":t="Panama";break;case"PG":t="Papua New Guinea";break;case"PY":t="Paraguay";break;case"PE":t="Peru";break;case"PH":t="Philippines";break;case"PN":t="Pitcairn";break;case"PL":t="Poland";break;case"PT":t="Portugal";break;case"QA":t="Qatar";break;case"KR":t="Rep of Korea";break;case"MD":t="Rep of Moldova";break;case"RE":t="Réunion";break;case"RO":t="Romania";break;case"RU":t="Russian Federation";break;case"RW":t="Rwanda";break;case"BL":t="Saint Barthélemy";break;case"SH":t="Saint Helena";break;case"KN":t="Saint Kitts and Nevis";break;case"KN":t="Saint Kitts, Nevis and Anguilla";break;case"LC":t="Saint Lucia";break;case"SX":t="Saint Maarten";break;case"PM":t="Saint Pierre and Miquelon";break;case"VC":t="Saint Vincent and the Grenadines";break;case"WS":t="Samoa";break;case"SM":t="San Marino";break;case"ST":t="Sao Tome and Principe";break;case"SA":t="Saudi Arabia";break;case"SN":t="Senegal";break;case"RS":t="Serbia";break;case"CS":t="Serbia and Montenegro";break;case"SC":t="Seychelles";break;case"SL":t="Sierra Leone";break;case"SG":t="Singapore";break;case"SK":t="Slovakia";break;case"SI":t="Slovenia";break;case"SB":t="Solomon Isds";break;case"SO":t="Somalia";break;case"ZA":t="South Africa";break;case"GS":t="South Georgia";break;case"SS":t="South Sudan";break;case"ES":t="Spain";break;case"LK":t="Sri Lanka";break;case"PS":t="State of Palestine";break;case"SD":t="Sudan";break;case"SR":t="Suriname";break;case"SZ":t="Swaziland";break;case"SE":t="Sweden";break;case"CH":t="Switzerland";break;case"SY":t="Syria";break;case"TJ":t="Tajikistan";break;case"MK":t="TFYR of Macedonia";break;case"TH":t="Thailand";break;case"TL":t="Timor-Leste";break;case"TG":t="Togo";break;case"TK":t="Tokelau";break;case"TO":t="Tonga";break;case"TT":t="Trinidad and Tobago";break;case"TN":t="Tunisia";break;case"TR":t="Turkey";break;case"TM":t="Turkmenistan";break;case"TC":t="Turks and Caicos Isds";break;case"TV":t="Tuvalu";break;case"UG":t="Uganda";break;case"UA":t="Ukraine";break;case"AE":t="United Arab Emirates";break;case"GB":t="United Kingdom";break;case"TZ":t="United Rep. of Tanzania";break;case"UM":t="United States Minor Outlying Islands";break;case"UY":t="Uruguay";break;case"VI":t="US Virgin Isds";break;case"US":t="United States";break;case"UZ":t="Uzbekistan";break;case"VU":t="Vanuatu";break;case"VE":t="Venezuela";break;case"VN":t="Viet Nam";break;case"WF":t="Wallis and Futuna Isds";break;case"EH":t="Western Sahara";break;case"WL":t="World";break;case"YE":t="Yemen";break;case"ZM":t="Zambia";break;case"ZW":t="Zimbabwe";break;default:t="Unknown"}return t},onUpdate:function(e){this.results=e},onUpdate2:function(e){this.results2=e},onUpdate3:function(e){this.results3=e},sendOtp:function(){var e=this;if(this.phNo=this.results.formattedNumber,this.phNo.length<6)this.$store.commit("setAlertMessage","Invalid Phone Number/OTP Format !");else{var t=this.phNo;if("Android"==this.getOS()||"iOS"==this.getOS())cordova.plugins.firebase.auth.verifyPhoneNumber(t,0).then((function(t){e.confirmationResult=t,e.$store.commit("setAlertMessage","SMS sent to your mobile Phone")})).catch((function(t){console.log("Send SMS error",t),e.$store.commit("setAlertMessage","Couldn't verify your phone "+t.message)}));else{var n=this.appVerifier;Qs.a.auth().signInWithPhoneNumber(t,n).then((function(t){window.confirmationResult=t,e.$store.commit("setAlertMessage","SMS sent to your mobile Phone")})).catch((function(t){e.$store.commit("setAlertMessage","Error ! SMS not sent "+t.message)}))}}},verifyOtp:function(){var e=this;if(this.phNo.length<6||6!=this.otp.length)this.$store.commit("setAlertMessage","Invalid Phone Number/OTP Format !");else{var t=this.otp;"Android"==this.getOS()||"iOS"==this.getOS()?cordova.plugins.firebase.auth.signInWithVerificationId(this.confirmationResult,t).then((function(){var t={};t.country=e.getCountryName(e.results.countryCode),t.phonenumber=e.results.formattedNumber;var n=JSON.stringify(t);e.$store.commit("setAlertMessage","Phone Verified"),e.$f7router.navigate("/signup/"+encodeURIComponent(n))})).catch((function(t){e.$store.commit("setAlertMessage","Couldn't verify your phone "+t.message)})):window.confirmationResult.confirm(t).then((function(t){var n={};n.country=e.getCountryName(e.results.countryCode),n.phonenumber=e.results.formattedNumber;var r=JSON.stringify(n);e.$store.commit("setAlertMessage","Phone Verified"),e.$f7router.navigate("/signup/"+encodeURIComponent(r))})).catch((function(t){e.$store.commit("setAlertMessage","Couldn't verify your phone "+t.message)}))}},initReCaptcha:function(){var e=this;setTimeout((function(){window.recaptchaVerifier=new Qs.a.auth.RecaptchaVerifier("recaptcha-container",{size:"invisible",callback:function(e){},"expired-callback":function(){}}),e.appVerifier=window.recaptchaVerifier}),1e3)}},computed:{resultsTable:function(){return Object.keys(this.results)},resultsTable2:function(){return Object.keys(this.results2)},resultsTable3:function(){return Object.keys(this.results3)}},created:function(){this.initReCaptcha()}}),lc=(n(326),sl(sc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"verifyphonenumber","no-swipeback":"","login-screen":""}},[n("f7-login-screen-title",[e._v("Verify Your Phone Number")]),e._v(" "),n("f7-navbar",{attrs:{title:"Phone Verification","back-link":"Back"}}),e._v(" "),n("div",{staticClass:"align-center"},[n("f7-block",[n("f7-list",{attrs:{"no-hairlines-md":""}},[n("div",{staticClass:"component mb-2"},[n("VuePhoneNumberInput",{staticClass:"mb-2",attrs:{id:"phoneNumber1",color:"dodgerblue",dark:e.dark,disabled:e.disabled,"ignored-countries":e.countriesIgnored,"preferred-countries":e.countriesList,loader:e.hasLoaderActive,clearable:"",error:e.hasErrorActive},on:{update:e.onUpdate},model:{value:e.phonenumber,callback:function(t){e.phonenumber=t},expression:"phonenumber"}}),e._v(" "),n("b",[e._v("Phone number")]),e._v("\n : "+e._s(e.results.formattedNumber)+"\n ")],1),e._v(" "),n("br"),e._v(" "),n("f7-button",{attrs:{fill:""},on:{click:e.sendOtp}},[e._v("Get OTP")]),e._v(" "),n("div",{attrs:{id:"recaptcha-container"}}),e._v(" "),n("f7-list-input",{attrs:{value:e.otp,label:"Enter OTP Received",type:"text",placeholder:"Enter OTP","clear-button":""},on:{input:function(t){e.otp=t.target.value}}})],1),e._v(" "),n("f7-button",{attrs:{fill:"",color:"blue"},on:{click:e.verifyOtp}},[e._v("Verify")]),e._v(" "),n("br"),e._v(" "),n("f7-button",{attrs:{fill:"",color:"blue"},on:{click:function(t){return e.sendOtp()}}},[e._v("Resend OTP")])],1)],1)],1)}),[],!1,null,"504141de",null).exports),cc={data:function(){return{image1:n(327),image2:n(328)}},computed:{app_version:function(){return this.$store.getters.app_version}},created:function(){this.$store.dispatch("getAppVersion")}},uc=(n(329),sl(cc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"newupdate"}},[n("f7-navbar",{attrs:{title:"Update Your App"}}),e._v(" "),n("f7-block-title",{attrs:{align:"center"}},[n("h1",[e._v("App Update Available")])]),e._v(" "),n("f7-block",["Android"==e.app_version?n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},[n("div",{staticClass:"page-content",attrs:{align:"center"}},[n("h3",[e._v("Update App from Google Play")]),e._v(" "),n("p",[e._v("Please click below link to update Penpal America App")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.penpalamerica.penpal",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/googleimage.png":"file:./images/googleimage.png",width:"50%",height:"50%"}})])],1)])],1):e._e(),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},["iOS"==e.app_version?n("div",{staticClass:"page-content"},[n("h3",[e._v("Update App from App Store")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.chatme24.chatme24",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/appleimage.png":"file:/images/appleimage.png",width:"50%"}})])],1):e._e()])],1),e._v(" "),n("f7-row",[n("div",{staticClass:"wrapper"},[n("f7-link",{attrs:{href:"/firstpage/"}},[e._v("Go Back To Home")])],1)])],1)],1)}),[],!1,null,"7b06f792",null).exports),dc=(n(330),{data:function(){return{emailcode:null,userEmail:null}},methods:{signIn:function(){this.$f7router.navigate("/firstpage/")},verifyEmail:function(){var e=this;console.log("verify Email");var t={emailcode:this.emailcode,email:this.userEmail};this.$f7.request.post("https://chatme24.com/register/verifyemailpenpalamerica.php",t,(function(t){"0"==t&&(console.log(t),e.$store.commit("setAlertMessage","Email Verification complete. Please login"),e.$f7.dialog.close(),e.$f7router.navigate("/signinbackup/")),"1"==t&&e.$store.commit("setAlertMessage","Email Code supplied is not correct")}))}},created:function(){this.$store.commit("setSignedUp",!1);var e=this.$f7route.params.email;this.userEmail=e,console.log(e)}}),hc=(n(408),sl(dc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"verifyemail"}},[n("f7-navbar",{attrs:{title:"Verify Your Email"}}),e._v(" "),n("div",[n("div",{staticClass:"pagealign"},[n("h3",[e._v("Please Verify The Email Below")]),e._v(" "),n("p",[e._v(e._s(e.userEmail))])]),e._v(" "),n("f7-block",[n("div",{staticClass:"list inline-labels no-hairlines-md"},[n("ul",[n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Email Code")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"text",placeholder:"Enter Email Code",required:"",validate:""},domProps:{value:e.emailcode},on:{input:function(t){e.emailcode=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])])])])]),e._v(" "),n("f7-block",[n("f7-button",{attrs:{fill:"","open-confirm":""},on:{click:e.verifyEmail}},[e._v("Verify Email")]),e._v(" "),n("br"),e._v(" "),n("div",{staticStyle:{"text-align":"center"}},[n("f7-link",{on:{click:e.signIn}},[e._v("Back to SignIn")])],1)],1)],1)],1)}),[],!1,null,"d29b6012",null).exports),fc={computed:{contacts:function(){return this.$store.getters.contacts}},methods:{addFrd:function(e){var t={};t.sender=Qs.a.auth().currentUser.uid,t.recipient=e.uid,console.log("request",t),this.$store.dispatch("sendRequest",t)}},created:function(){this.$store.dispatch("getAllUsers")}},pc=(n(409),sl(fc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"}},[n("f7-navbar",{attrs:{title:"Contacts","back-link":"Back"}}),e._v(" "),n("f7-list",{attrs:{"media-list":""}},e._l(e.contacts,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",title:t.name}},["online"==t.userStatus?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[n("font",{attrs:{color:"green"}},[e._v("online")])],1):n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[n("font",{attrs:{color:"grey"}},[e._v("offline")])],1),e._v(" "),2==t.userType||3==t.userType?n("span",{attrs:{slot:"after-title"},slot:"after-title"},[e._v("Moderator")]):e._e(),e._v(" "),"offline"==t.userStatus?n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{size:"1",color:"grey"}},[e._v(e._s(e.moment(t.lastSeen).format("LLL"))+";")])],1):e._e(),e._v(" "),n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url},slot:"media"})])})),1)],1)}),[],!1,null,"38b09e4b",null).exports),mc=n(289),vc={components:{Rave:n.n(mc).a},data:function(){return{raveKey:"FLWPUBK-581258c33a65e85bc6116e0596a71662-X",email:"",amount1:100,amount2:3e3,amount3:5e3,amount4:2,amount5:5,amount6:10,plan:1e3,fname:"",lname:"",subaccounts:[],country:"NG",currency:"NGN",meta:[{metaname:"Swift",metavalue:"Swift Alliance"}],sub:[{id:"1324"},{id:"1221"}],payment_status:null,friend:null,friend_Details:null}},computed:{reference:function(){return this.$store.getters.reference},user_details:function(){return this.$store.getters.user_details},user_country:function(){return this.$store.getters.user_country}},methods:{payBronze:function(){},paySilver:function(){},payGold:function(){},callback:function(e){if(console.log(e),"00"==e.respcode&&"Approved. Successful"==e.respmsg||"00"==e.respcode&&"Approved"==e.respmsg){this.payment_status=e.status;var t=this.friend.payout,n=e.data.data.amount,r=.75*n,i=t+r;this.$store.dispatch("getReference"),this.payment_status=e.respmsg;var a="You just received Gift amount: "+r;this.$store.dispatch("sendMessage",{friend:this.friend,msg:a,img:null});var o=Qs.a.auth().currentUser.uid;Qs.a.database().ref("users/"+this.friend.uid).update({payout:i});o=Qs.a.auth().currentUser.uid;Qs.a.database().ref("pay4mePayout/"+o).push({friend_uid:this.friend.uid,friend_email:this.friend.email,oldPayout:this.friend.payout,pay4meAmount:n,userPay4meAmount:r,newPayout:i,senderName:this.user_details.name,receiverName:this.friend.name});var s={userID:this.friend.uid,email:this.friend.email,oldPayout:this.friend.payout,pay4meAmount:n,userPay4meAmount:r,newPayout:i,senderName:this.user_details.name,senderID:Qs.a.auth().currentUser.uid,receiverName:this.friend.name};this.$f7.request.post("https://citygists.com/register/citygistspayout.php",s,(function(e){console.log("Load was performed",e)}))}},close:function(e){}},created:function(){var e=this.$f7route.params.frd;this.friend=JSON.parse(e),this.friend_Details=this.friend,this.$store.dispatch("getReference"),this.$store.dispatch("getUserDetails"),this.fname=this.user_details.name,this.email=this.user_details.email,this.$store.dispatch("getUserCountry")}},gc=(n(410),sl(vc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"}},[n("f7-navbar",{attrs:{title:"Gift Program","back-link":"Back"}}),e._v(" "),n("f7-block-title",[n("b",[e._v("Send Me Gifts")])]),e._v(" "),n("f7-block",{attrs:{strong:""}},[n("p",[e._v("You are about to send Gift to "+e._s(this.friend.name))]),e._v(" "),n("p",[e._v("Select from the options below: Bronze, Silver or Gold")])]),e._v(" "),"Nigeria"==this.user_country?n("div",[n("f7-block",[n("Rave",{attrs:{email:e.email,amount:e.amount1,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,paymentPlan:e.plan,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"NGN",country:"NG","style-class":"paymentbtn"}},[n("i",[e._v("Send Bronze Gift (N1,000)")])])],1),e._v(" "),n("f7-block",[n("Rave",{attrs:{email:e.email,amount:e.amount2,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,paymentPlan:e.plan,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"NGN",country:"NG","style-class":"paymentbtn"}},[n("i",[e._v("Send Silver Gift (N3,000)")])])],1),e._v(" "),n("f7-block",[n("Rave",{attrs:{email:e.email,amount:e.amount3,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,paymentPlan:e.plan,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"NGN",country:"NG","style-class":"paymentbtn"}},[n("i",[e._v("Send Gold Gift (N5,000)")])])],1)],1):n("div",[n("f7-block",[n("Rave",{attrs:{email:e.email,amount:e.amount4,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,paymentPlan:e.plan,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"USD",country:"US","style-class":"paymentbtn"}},[n("i",[e._v("Send Bronze Gift ($2.00)")])])],1),e._v(" "),n("f7-block",[n("Rave",{attrs:{email:e.email,amount:e.amount5,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,paymentPlan:e.plan,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"USD",country:"US","style-class":"paymentbtn"}},[n("i",[e._v("Send Silver Gift ($5.00)")])])],1),e._v(" "),n("f7-block",[n("Rave",{attrs:{email:e.email,amount:e.amount6,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,paymentPlan:e.plan,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"USD",country:"US","style-class":"paymentbtn"}},[n("i",[e._v("Send Gold Gift ($10.00)")])])],1)],1),e._v(" "),n("f7-block",[e.payment_status?n("div",{attrs:{align:"center"}},[n("span",[e._v("Payment "+e._s(e.payment_status))])]):e._e()])],1)}),[],!1,null,"71c04af6",null).exports),yc={data:function(){return{moderator:!0,appState:1,ref:{},cursor:null,pageSize:3,backPage:!1,forwardPage:!0,topPage:!1,bottomPage:!0}},watch:{photoStatus:function(e){e||this.$f7router.navigate("/editprofilepicture/",{})},back_page:function(e){null!=e&&(this.backPage=e)},forward_page:function(e){null!=e&&(this.forwardPage=e)},top_page:function(e){null!=e&&(this.topPage=e)},bottom_page:function(e){null!=e&&(this.bottomPage=e)},db_reference:function(e){null!=e&&(this.ref=e)},db_cursor:function(e){null!=e&&(this.cursor=e)}},computed:{onesignal_playerID:function(){return this.$store.getters.onesignal_playerID},photoStatus:function(){return this.$store.getters.photoStatus},total_message:function(){return this.$store.getters.total_message},user:function(){return this.$store.getters.user},appUpdate:function(){return this.$store.getters.appUpdate},db_reference:function(){return this.ref=this.$store.getters.db_reference,this.$store.getters.db_reference},db_cursor:function(){return this.$store.getters.db_cursor},contacts:function(){return this.$store.getters.contacts},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:{onlineUsers:function(){var e=this;return il()(nl.a.mark((function t(){var n;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getUserPageSize");case 2:e.pageSize=t.sent,(n={}).ref=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=firebase.auth().currentUser.uid,e.$store.dispatch("gotoTopPageOnline",n);case 9:case"end":return t.stop()}}),t)})))()},ilike:function(e,t){var n=this.user[0].email,r={email_u:this.user[0].email,email_f:e,domain:"penpalamerica.com",name:t,genderSearch:this.user[0].genderSearch},i=this,a=i.$f7;a.request.post("https://chatme24.com/penpal/penpalmatch.php",r,function(){var r=il()(nl.a.mark((function r(o){var s,l,c,u,d,h=this;return nl.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("0"!=(s=JSON.parse(o))[0].response){r.next=22;break}return(l={}).email=e,l.domain="penpalamerica.com",r.next=7,i.$store.dispatch("getOnesignalPlayerIDPlus",l);case 7:null!=(c=r.sent)&&((u={}).onesignal_playerID=c,u.message="You have a new like. Please checkout for this pal that likes you",i.$store.dispatch("sendNotification",u)),(u={}).email_u=s[0].email,u.email_f=e,u.photo_url=s[0].photo_url1,u.friend_name=t,u.profileMessage=s[0].profileMessage,u.domain="penpalamerica.com",u.name=s[0].myname,i.$store.dispatch("sendEmailNotificationLike",u),d={email:s[0].email,genderSearch:s[0].genderSearch,name:s[0].name,domain:"penpalamerica.com"},a.request.post("https://chatme24.com/penpal/userpenpal.php",d,(function(e){var t=JSON.parse(e);i.$store.commit("setContacts",t)})),r.next=42;break;case 22:if("1"!=s[0].response){r.next=42;break}return(l={}).email=e,l.domain="penpalamerica.com",r.next=28,i.$store.dispatch("getOnesignalPlayerIDPlus",l);case 28:null!=(c=r.sent)&&((u={}).onesignal_playerID=c,u.message="You have a new match with "+s[0].myname,i.$store.dispatch("sendNotification",u)),(u={}).email_u=s[0].email,u.email_f=e,u.photo_url=s[0].photo_url1,u.friend_name=t,u.profileMessage=s[0].profileMessage,u.domain="penpalamerica.com",u.name=s[0].myname,i.$store.dispatch("sendEmailNotificationMatch",u),a.dialog.create({title:"Wow! It is a match!",text:"Send A Message to "+s[0].name,content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Your Message" maxlength="200"></div></div>',buttons:[{text:"Not Now..",close:!0},{text:"Submit Message"}],onClick:function(t,r){var o=t.$el.find(".dialog-input").val().trim();if(o.length>0){i.$store.dispatch("sendMessage",{email_f:e,msg:o,img:null,email_u:n,domain:"penpalamerica.com",sentby:n}),i.$f7.dialog.close(),i.$store.commit("setAlertMessage","Message Sent.");var l={email:s[0].email,genderSearch:s[0].genderSearch,name:s[0].name,domain:"penpalamerica.com"};a.request.post("https://chatme24.com/penpal/userpenpal.php",l,(function(e){var t=JSON.parse(e);i.$store.commit("setContacts",t)}))}else 1==r&&h.$store.commit("setAlertMessage","Empty Message is not allowed")},on:{open:function(){}}}).open(),d={email:s[0].email,genderSearch:s[0].genderSearch,name:s[0].name,domain:"penpalamerica.com"},a.request.post("https://chatme24.com/penpal/userpenpal.php",d,(function(e){var t=JSON.parse(e);i.$store.commit("setContacts",t)}));case 42:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}())},idontlike:function(e,t){this.user[0].email;var n={email_u:this.user[0].email,email_f:e,domain:"penpalamerica.com",name:t,genderSearch:this.user[0].genderSearch},r=this,i=r.$f7;i.request.post("https://chatme24.com/penpal/penpalmatchplus.php",n,(function(e){"0"==e&&r.$store.commit("setAlertMessage","Hey, you missed a match! ".concat(t," picked you as a friend"))}));n={email:this.user[0].email,genderSearch:this.user[0].genderSearch,domain:"penpalamerica.com"};i.request.post("https://chatme24.com/penpal/userpenpal.php",n,(function(e){var t=JSON.parse(e);r.$store.commit("setContacts",t)}))},checkInternet:function(){var e=this;return il()(nl.a.mark((function t(){return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=firebase.auth().currentUser.uid,t.recipient=e.uid,this.$store.dispatch("sendRequest",t)},gotoGallery:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/gallery/"+encodeURIComponent(t))}},created:function(){var e=this;return il()(nl.a.mark((function t(){var n,r,i;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n={}).email=e.user[0].email,n.domain=e.user[0].domain,t.next=5,e.$store.dispatch("getUserPhotoStatus",n);case 5:if(t.sent){t.next=9;break}return e.$f7router.navigate("/editprofilepicture/",{}),t.abrupt("return");case 9:r={email:e.user[0].email,genderSearch:e.user[0].genderSearch,domain:e.user[0].domain},(i=e).$f7.request.post("https://chatme24.com/penpal/userpenpal.php",r,(function(e){var t=JSON.parse(e);i.$store.commit("setContacts",t)})),e.checkInternet();case 14:case"end":return t.stop()}}),t)})))()}},bc=(n(411),sl(yc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"home"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{attrs:{sliding:!1,large:""}},[n("f7-nav-left",[n("f7-link",{attrs:{"icon-ios":"f7:menu","icon-aurora":"f7:menu","icon-md":"material:menu","panel-open":"left"}})],1),e._v(" "),n("f7-nav-title",{attrs:{sliding:"",right:""}},[e._v("Penpal America")]),e._v(" "),n("f7-nav-right"),e._v(" "),n("f7-nav-title-large",{attrs:{sliding:""}},[e._v("Penpal America")])],1),e._v(" "),e.appUpdate?n("div",[n("f7-block",[n("f7-block-title",{attrs:{align:"center"}},[n("h1",[e._v("App Update Available")])]),e._v(" "),"Android"==e.app_version?n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},[n("div",{staticClass:"page-content",attrs:{align:"center"}},[n("h3",[e._v("Update App from Google Play Member")]),e._v(" "),n("p",[e._v("Please click below link to update Penpal America App")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.penpalamerica.penpal",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/googleimage.png":"file:./images/googleimage.png",width:"50%",height:"50%"}})])],1)])],1):e._e(),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},["iOS"==e.app_version?n("div",{staticClass:"page-content"},[n("h3",[e._v("Update App from App Store")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.chatme24.chatme24",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/appleimage.png":"file:/images/appleimage.png",width:"50%"}})])],1):e._e()])],1)],1)],1):n("div",[n("f7-list",{attrs:{"media-list":""}},e._l(e.contacts,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",subtitle:t.name},on:{click:function(n){return e.gotoGallery(t)}}},[n("img",{staticClass:"imagePicture",attrs:{slot:"title",src:t.photo_url1},slot:"title"}),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v("\n , "+e._s(e.moment(t.birthDate,"YYYYMMDD").fromNow(!0))),n("br")]),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(t.location)),n("br")]),e._v(" "),n("span",{attrs:{slot:"text"},slot:"text"},[e._v(e._s(t.profileMessage))]),e._v(" "),n("f7-row",{attrs:{"no-gap":"",align:"center"}},[n("f7-col"),e._v(" "),n("f7-col",[n("f7-link",{attrs:{fill:""},on:{click:function(n){return e.idontlike(t.email,t.name)}}},[n("f7-icon",{staticClass:"f7-icons size-40",attrs:{f7:"multiply_circle_fill",color:"red"}})],1)],1),e._v(" "),n("f7-col",[n("f7-link",{attrs:{fill:""},on:{click:function(n){return e.ilike(t.email,t.name)}}},[n("f7-icon",{staticClass:"f7-icons size-40",attrs:{f7:"heart_circle_fill",color:"green"}})],1)],1),e._v(" "),n("f7-col")],1)],1)})),1)],1),e._v(" "),e._v("\n |\n")],1)}),[],!1,null,"64394a86",null).exports),_c={data:function(){return{}},methods:{sendBroadCast:function(){var e=this;this.$f7.popover.close();this.$f7.dialog.create({title:"Send Broadcast Message",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Title" required maxlength="50"> <div class="item-input-wrap"><input class="dialog-input body" type="textarea" placeholder="Enter Message" resizable required maxlength="200"></div></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Send"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim(),i=t.$el.find(".body").val().trim();if(""!=r&&""!=i){var a={};a.title=r,a.message_details=i,e.$store.dispatch("pushNotifications",a);e.chat_group_name;e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Fields cannot be empty")},on:{open:function(){}}}).open()},checkInternet:function(){var e=this;return il()(nl.a.mark((function t(){return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection2");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},formatNumber:function(e){return numeral(e).format("0,0.00")},logoutApp:function(){var e=this.$f7;this.$store.dispatch("signOut"),this.$f7.popover.close(),e.panel.close()},gotoChat:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))},initHome:function(){var e=this;return il()(nl.a.mark((function t(){var n;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.$store.commit("setShowTabs",!0),(n={}).email=e.user[0].email,n.domain=e.user[0].domain,t.next=6,e.$store.dispatch("getFriendMatch",n);case 6:return t.next=8,e.$store.dispatch("getFriendList",n);case 8:case"end":return t.stop()}}),t)})))()}},computed:{photoStatus:function(){return this.$store.getters.photoStatus},user:function(){return this.$store.getters.user},user_payout:{get:function(){return this.formatNumber(this.$store.getters.user_payout)},set:function(e){this.$store.commit("setUserLocation",e)}},user_country:function(){return this.$store.getters.user_country},subscribe_affiliate:function(){return this.$store.getters.subscribe_affiliate},user_details:function(){return this.$store.getters.user_details},friendsMatch:function(){return this.$store.getters.friendsMatch},friend_requests:function(){return this.$store.getters.friend_requests},message_count:function(){return this.$store.getters.message_count},total_message:function(){return this.$store.getters.total_message}},mounted:function(){var e=this;return il()(nl.a.mark((function t(){var n;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(n={}).email=e.user[0].email,n.domain=e.user[0].domain;case 3:case"end":return t.stop()}}),t)})))()},watch:{photoStatus:function(e){e||(this.$f7router.navigate("/editprofilepicture/",{}),this.$store.commit("setAlertMessage","Please Upload Profile Picture before chatting with others"))}},created:function(){var e=this;return il()(nl.a.mark((function t(){var n;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n={}).email=e.user[0].email,n.domain=e.user[0].domain,t.next=5,e.$store.dispatch("getUserPhotoStatus",n);case 5:if(t.sent){t.next=9;break}return e.$f7router.navigate("/editprofilepicture/",{}),t.abrupt("return");case 9:return e.checkInternet(),t.abrupt("return");case 17:case"end":return t.stop()}}),t)})))()}},wc=(n(412),sl(_c,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"match"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{attrs:{sliding:!1,large:""}},[n("f7-nav-left",[n("f7-link",{attrs:{"icon-ios":"f7:menu","icon-aurora":"f7:menu","icon-md":"material:menu","panel-open":"left"}})],1),e._v(" "),n("f7-nav-title",{attrs:{sliding:"",right:""}},[e._v("Penpal America")]),e._v(" "),n("f7-nav-right"),e._v(" "),n("f7-nav-title-large",{attrs:{sliding:""}},[e._v("Penpal America")]),e._v(" "),n("f7-subnavbar",{attrs:{inner:!1}},[n("f7-searchbar",{attrs:{"search-container":".search-list","search-in":".item-title","disable-button":!e.$theme.aurora}})],1)],1),e._v(" "),n("f7-list",{staticClass:"searchbar-not-found"},[n("f7-list-item",{attrs:{title:"Nothing found"}})],1),e._v(" "),n("f7-list",{staticClass:"search-list searchbar-found",attrs:{"media-list":""}},e._l(e.friendsMatch,(function(t,r){return n("f7-list-item",{key:r,attrs:{title:t.name,text:t.latest_message},on:{click:function(n){return e.gotoChat(t)}}},[t.message_count>0?n("f7-badge",{attrs:{slot:"after-title",color:"red"},slot:"after-title"},[e._v(e._s(t.message_count))]):e._e(),e._v(" "),n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url1},slot:"media"}),e._v(" "),"online"==t.userStatus?n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{color:"green"}},[e._v("online")])],1):n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{color:"grey"}},[e._v("offline")])],1),e._v(" "),t.location?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(t.location))]):e._e(),e._v(" "),2==t.userType||3==t.userType?n("span",{attrs:{slot:"after-title"},slot:"after-title"},[e._v("Moderator")]):e._e()],1)})),1),e._v(" "),n("f7-popup",{staticClass:"demo-popup-user",attrs:{"backdrop:false":""}},[n("f7-page",[n("f7-navbar",{attrs:{title:this.user_details.name,subtitle:this.user_details.location}},[n("div",{attrs:{slot:"default"},slot:"default"},[n("span",{attrs:{"v-if":this.user_details.birthDate}},[e._v(e._s(e.moment(this.user_details.birthDate,"YYYYMMDD").fromNow(!0)))])]),e._v(" "),n("f7-nav-right",[n("f7-link",{attrs:{"popup-close":""}},[e._v("Close")])],1)],1),e._v(" "),n("f7-block",[n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover1",attrs:{src:this.user_details.photo_url}})]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Profile Message")]),e._v(" "),n("br"),e._v("\n "+e._s(this.user_details.profileMessage)+"\n ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Email")]),e._v(" "),n("br"),e._v("\n "+e._s(this.user_details.email)+" --\x3e Only you see this\n ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Phone Number")]),e._v(" "),n("br"),e._v("\n "+e._s(this.user_details.phonenumber)+" --\x3e Only you see this\n ")])]),e._v(" "),n("br"),e._v(" "),n("br")])],1)],1)],1)}),[],!1,null,"5791ec0b",null).exports),kc={data:function(){return{moderator:!0,appState:1,scores:[]}},watch:{},computed:{contacts:function(){return this.$store.getters.contacts},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:K()({checkInternet:function(){var e=this;return il()(nl.a.mark((function t(){return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=Qs.a.auth().currentUser.uid,t.recipient=e.uid,console.log("request",t),this.$store.dispatch("sendRequest",t)},gotoChat:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))}},"initHome",(function(){this.$store.commit("setShowTabs",!0)})),mounted:function(){var e=this;this.$f7ready((function(t){var n=e;n.$f7.request.get("https://chatme24.com/sportsupdate/goalalert/pullgoals.php",(function(e){var t=JSON.parse(e);n.scores=t}))}))},created:function(){this.checkInternet()}},Ec=(n(413),sl(kc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{staticClass:"navbar color-theme-orange",attrs:{title:"Live Scores","back-link":"Back"}},[n("f7-nav-right",[n("f7-link",{staticClass:"searchbar-enable",attrs:{"data-searchbar":".searchbar-demo","icon-ios":"f7:search","icon-aurora":"f7:search","icon-md":"material:search",color:"blue"}})],1),e._v(" "),n("f7-searchbar",{staticClass:"searchbar-demo",attrs:{expandable:"","search-container":".search-list","search-in":".item-title","disable-button":!e.$theme.aurora}})],1),e._v(" "),n("f7-list",{staticClass:"searchbar-not-found"},[n("f7-list-item",{attrs:{title:"Nothing found"}})],1),e._v(" "),n("f7-list",{staticClass:"search-list searchbar-found",attrs:{"media-list":""}},e._l(e.scores,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",title:t.league}},[n("span",{attrs:{slot:"title"},slot:"title"},[n("br"),e._v(e._s(e._f("capitalize")(t.teamhost)))]),e._v(" "),n("span",{attrs:{slot:"title"},slot:"title"},[e._v(" v ")]),e._v(" "),n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e._f("capitalize")(t.teamvisitor))),n("br")]),e._v(" "),r%2==0?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[n("f7-badge",{attrs:{color:"green"}},[e._v(e._s(t.score))])],1):e._e(),e._v(" "),r%2==1?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[n("f7-badge",{attrs:{color:"red"}},[e._v(e._s(t.score))])],1):e._e(),e._v(" "),""!=t.matchtime?n("span",{attrs:{slot:"text"},slot:"text"},[e._v("\n "+e._s(t.matchtime)+"'\n ")]):e._e(),e._v(" "),n("span",{attrs:{slot:"footer"},slot:"footer"},[e._v("\n "+e._s(t.matchstatus)+"\n ")])])})),1)],1)}),[],!1,null,"188c3f12",null).exports),Sc={data:function(){return{moderator:!0,appState:1,englishclubs:[],spainclubs:[],franceclubs:[],germanclubs:[],italyclubs:[]}},watch:{},computed:{contacts:function(){return this.$store.getters.contacts},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:K()({checkInternet:function(){var e=this;return il()(nl.a.mark((function t(){return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=Qs.a.auth().currentUser.uid,t.recipient=e.uid,console.log("request",t),this.$store.dispatch("sendRequest",t)},gotoChat:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))}},"initHome",(function(){this.$store.commit("setShowTabs",!0)})),mounted:function(){var e=this;this.$f7ready((function(t){var n=e,r=n.$f7;r.request.get("https://chatme24.com/sportsupdate/goalalert/pullstandingeng.php",(function(e){var t=JSON.parse(e);n.englishclubs=t,console.log(t)})),r.request.get("https://chatme24.com/sportsupdate/goalalert/pullstandingspa.php",(function(e){var t=JSON.parse(e);n.spainclubs=t})),r.request.get("https://chatme24.com/sportsupdate/goalalert/pullstandingfrance.php",(function(e){var t=JSON.parse(e);n.franceclubs=t}))}))},created:function(){this.checkInternet()}},Tc=(n(414),sl(Sc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{staticClass:"navbar color-theme-orange",attrs:{title:"Club Standings","back-link":"Back"}},[n("f7-nav-right",[n("f7-link",{staticClass:"searchbar-enable",attrs:{"data-searchbar":".searchbar-demo","icon-ios":"f7:search","icon-aurora":"f7:search","icon-md":"material:search",color:"blue"}})],1),e._v(" "),n("f7-searchbar",{staticClass:"searchbar-demo",attrs:{expandable:"","search-container":".search-list","search-in":".item-title","disable-button":!e.$theme.aurora}})],1),e._v(" "),n("f7-list",{staticClass:"searchbar-not-found"},[n("f7-list-item",{attrs:{title:"Nothing found"}})],1),e._v(" "),n("f7-block-title",[n("b",[e._v("Premiership")])]),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"10"}},[n("b",[e._v("SN")])]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[n("b",[e._v("Clubs")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("P")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("W")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("D")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("L")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("GD")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("PTS")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("Last 5")])])],1),e._v(" "),e._l(e.englishclubs,(function(t,r){return n("f7-row",{key:r,attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"10"}},[e._v(e._s(t.SN))]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[e._v(e._s(t.team))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.P))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.W))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.D))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.L))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.GD))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.PTS))]),e._v(" "),"1"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e()],1)}))],2),e._v(" "),n("f7-block-title",[n("b",[e._v("La Liga")])]),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"10"}},[n("b",[e._v("SN")])]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[n("b",[e._v("Clubs")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("P")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("W")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("D")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("L")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("GD")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("PTS")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("Last 5")])])],1),e._v(" "),e._l(e.spainclubs,(function(t,r){return n("f7-row",{key:r,attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.SN))]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[e._v(e._s(t.team))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.P))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.W))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.D))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.L))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.GD))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.PTS))]),e._v(" "),"1"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e()],1)}))],2),e._v(" "),n("f7-block-title",[n("b",[e._v("France Ligue 1")])]),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"10"}},[n("b",[e._v("SN")])]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[n("b",[e._v("Clubs")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("P")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("W")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("D")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("L")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("GD")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("PTS")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("Last 5")])])],1),e._v(" "),e._l(e.franceclubs,(function(t,r){return n("f7-row",{key:r,attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"10"}},[e._v(e._s(t.SN))]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[e._v(e._s(t.team))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.P))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.W))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.D))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.L))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.GD))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.PTS))]),e._v(" "),"1"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e()],1)}))],2)],1)}),[],!1,null,"5299bb87",null).exports),Cc={methods:{confirm:function(e){this.$store.dispatch("confirmRequest",e)},remove:function(e){this.$store.dispatch("deleteRequest",e)}},computed:{friend_requests:function(){return this.$store.getters.friend_requests}},created:function(){this.$store.dispatch("getMyRequests")}},Mc=(n(415),sl(Cc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"}},[n("f7-navbar",{attrs:{title:"Requests","back-link":"Back"}}),e._v(" "),n("f7-block-title",[e._v("Friend requests")]),e._v(" "),n("f7-list",{attrs:{"media-list":""}},e._l(e.friend_requests,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",title:t.name}},[n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url},slot:"media"}),e._v(" "),n("f7-swipeout-actions",{attrs:{right:""}},[n("f7-swipeout-button",{attrs:{color:"green"},on:{click:function(n){return e.confirm(t)}}},[e._v("Add")]),e._v(" "),n("f7-swipeout-button",{attrs:{color:"red"},on:{click:function(n){return e.remove(t)}}},[e._v("Delete")])],1)],1)})),1)],1)}),[],!1,null,"626b71e2",null).exports),xc=n(90),$c=n.n(xc),Lc={data:function(){return{hold_message:null,friend_email:null,friend:null,friend_Details:null,attachments:[],sheetVisible:!1,typingMessage:{},responseInProgress:!1,messagetype:"video"}},computed:{files:function(){return this.$store.getters.files},chatOpen:function(){return this.$store.getters.chatOpen},user:function(){return this.$store.getters.user},onesignal_playerID:function(){return this.$store.getters.onesignal_playerID},advert_default:function(){return this.$store.getters.advert_default},advert_country:function(){return this.$store.getters.advert_country},sent_by:function(){return this.$store.getters.sent_by},received_by:function(){return this.$store.getters.received_by},subscribe_affiliate_friend:function(){return this.$store.getters.subscribe_affiliate_friend},block_by_friend:function(){return this.$store.getters.block_by_friend},friend_status:function(){return this.$store.getters.friend_status},ban_status:function(){return this.$store.getters.ban_status},user_status:function(){return this.$store.getters.user_status},images:function(){return this.$store.getters.images},chat_messages:function(){return this.$store.getters.chat_messages},typing_message:function(){return this.$store.getters.typing_message},attachmentsVisible:function(){return this.attachments.length>0},placeholder:function(){return this.attachments.length>0?"Add comment or Send":"Message"}},beforeDestroy:function(){var e={},t={};e.email_u=this.user[0].email,e.email_f=this.friend.email,e.domain="penpalamerica.com",t.email=this.user[0].email,t.domain="penpalamerica.com",this.$store.dispatch("resetMessageCount",e),this.$store.dispatch("updateUserStatus",t)},mounted:function(){var e=this;e.$f7ready((function(){e.messagebar=e.$refs.messagebar.f7Messagebar,e.messages=e.$refs.messages.f7Messages}))},watch:{},methods:{deleteMessage:function(e){var t=this;this.$f7.dialog.create({title:"Delete Message?",text:"Do you want to Delete this Message?",content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:function(n,r){if(1==r){var i=t.$f7,a={};a.email_f=t.friend.email,a.email_u=t.user[0].email,a.domain=t.user[0].domain,a.message_id=e,t.$store.dispatch("deleteMessage",a),t.$f7.dialog.close(),i.panel.close()}},on:{open:function(){}}}).open()},gotoGallery:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/viewuserprofile/"+encodeURIComponent(t))},placeAdvert:function(){cordova.InAppBrowser.open("http://apache.org","_blank","location=yes"),window.open("https://www.swiftallianceltd.com/","_system")},unMatch:function(e,t){var n=this;this.$f7.dialog.create({title:"Unmatch ".concat(t,"?"),text:"This will remove ".concat(t," from your friend list and communication between two of you will not be possible again. Please can you confirm you want this?"),content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:function(t,r){if(1==r){var i=n.$f7,a={};a.email_u=n.user[0].email,a.email_f=e,a.domain=n.user[0].domain;n.$store.dispatch("unMatchUser",a);n.$f7.dialog.close(),i.panel.close(),n.$f7.popover.close(),n.$store.commit("setAlertMessage","Done. Account Unmatched! Please close the popup.")}},on:{open:function(){}}}).open()},initHome:function(){},refreshTyping:function(){var e=this;return il()(nl.a.mark((function t(){var n;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.chatOpen&&((n={}).email_u=e.user[0].email,n.email_f=e.friend.email,n.domain=e.user[0].domain,e.$store.dispatch("getTypingMessages",n));case 1:case"end":return t.stop()}}),t)})))()},activeUsers:function(e){return chat_messages.filter((function(e){return"B6CMLDC11DUQVcDzWSKG2OFcIgi2"==e.sentby}))},pay4me:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/pay4me/"+encodeURIComponent(t))},reportUser:function(){var e=this;this.$f7.popover.close();this.$f7.dialog.create({title:"Reason for Reporting",text:"1. Sending nude pictures<br>2. Abusive language<br>3. Indecent conversation<br>4. Others",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="tel" placeholder="Enter number" required validate pattern="[1-4]*" data-error-message="Only numbers from 1 to 4" maxlength="1"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if("1"==r||"2"==r||"3"==r||"4"==r){var i={};i.uid=e.friend.uid,i.report_id=r,i.frd_key=e.friend.frd_key,e.$store.dispatch("reportUserToAdmin",i),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Select Reason for Reporting the user")},on:{open:function(){}}}).open()},unBlockUser:function(e){this.$store.dispatch("unBlockUser",this.friend),this.$store.dispatch("checkUserBlocked",this.friend),this.$store.dispatch("checkBlockByFriend",this.friend),this.$f7.popover.close()},blockUser:function(e){this.$store.dispatch("blockUser",this.friend),this.$store.dispatch("checkUserBlocked",this.friend),this.$store.dispatch("checkBlockByFriend",this.friend),this.$f7.popover.close()},addModerator:function(e){this.$store.dispatch("addModerator",this.friend.uid),this.$f7.popover.close()},removeModerator:function(e){this.$store.dispatch("removeModerator",this.friend.uid),this.$f7.popover.close()},unBanUser:function(e){this.$store.dispatch("unBanUser",this.friend.uid),this.$store.dispatch("getBanUserStatus",this.friend.uid),this.$f7.popover.close()},banUser:function(e){var t=this;return il()(nl.a.mark((function e(){return nl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$f7.popover.close(),t.$f7.dialog.create({title:"Reason for Banning User",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Reason for Banning" required validate maxlength="100"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Submit"}],onClick:function(e,n){var r=e.$el.find(".dialog-input").val().trim();if(0!=r.length){if(r.length<10)return void t.$store.commit("setAlertMessage","Reason provided too short...");var i={};i.uid=t.friend.uid,i.comments=r,t.$store.dispatch("banUser",i),t.$store.dispatch("getBanUserStatus",t.friend.uid),t.$store.commit("setAlertMessage","User has been banned");var a={uid:t.friend.uid,comments:r};t.$f7.request.post("https://chatme24.com/statistics/banuser.php",a,(function(e){}))}else 1==n&&t.$store.commit("setAlertMessage","Provide Reason for Banning the user")},on:{open:function(){}}}).open();case 2:case"end":return e.stop()}}),e)})))()},gotoKeyDown:function(e){var t=this;return il()(nl.a.mark((function e(){var n;return nl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n={}).email_u=t.user[0].email,n.email_f=t.friend.email,n.domain=t.user[0].domain,e.next=6,t.$store.dispatch("sendDownTypingMessage",n);case 6:t.$store.dispatch("getTypingMessages",n);case 7:case"end":return e.stop()}}),e)})))()},gotoKeyUp:function(e){var t=this,n={};n.email_u=this.user[0].email,n.email_f=this.friend.email,n.domain=this.user[0].domain,setTimeout(il()(nl.a.mark((function e(){return nl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$store.dispatch("getTypingMessages",n);case 1:case"end":return e.stop()}}),e)}))),3e3)},launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFileMessage")},isFirstMessage:function(e,t){var n=this.chat_messages[t-1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isLastMessage:function(e,t){var n=this.chat_messages[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isTailMessage:function(e,t){var n=this.chat_messages[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},deleteAttachment:function(e){var t=this.attachments.indexOf(e);this.attachments.splice(t,1)[0]},handleAttachment:function(e){var t=this.$$(e.target).parents("label.checkbox").index(),n=this.images[t];e.target.checked?this.attachments.unshift(n):this.attachments.splice(this.attachments.indexOf(n),1)},sendMessage:function(){var e=this;return il()(nl.a.mark((function t(){var n,r,i,a;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=7;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:if("offline"!=t.sent){t.next=7;break}return e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue..."),t.abrupt("return");case 7:if(null==e.onesignal_playerID){t.next=15;break}return(n={}).onesignal_playerID=e.onesignal_playerID,n.message="You have a new message from "+e.user[0].name,t.next=13,e.$store.dispatch("sendNotification",n);case 13:t.next=25;break;case 15:return(n={}).email_u=e.user[0].email,n.email_f=e.friend.email,n.photo_url=e.user[0].photo_url1,n.friend_name=e.friend.name,n.profileMessage=e.user[0].profileMessage,n.domain=e.friend.domain,n.name=e.user[0].name,t.next=25,e.$store.dispatch("sendEmailNotification",n);case 25:if(i=(r=e).messagebar.getValue().replace(/\n/g,"<br>").trim(),a=[],r.attachments.forEach((function(e){a.push({image:e})})),i.trim().length&&a.push({text:i}),0!==a.length){t.next=32;break}return t.abrupt("return");case 32:r.attachments.length>0?$c.a.forEach(r.files,(function(e){r.$store.dispatch("uploadImageMySQLChat",e).then((function(e){r.$store.dispatch("sendMessage",{email_f:r.friend.email,msg:i,img:e,email_u:r.friend.user_email,domain:r.friend.domain,sentby:r.friend.user_email})}))})):r.$store.dispatch("sendMessage",{email_f:r.friend.email,msg:i,img:null,email_u:r.friend.user_email,domain:r.friend.domain,sentby:r.friend.user_email}),r.attachments=[],r.sheetVisible=!1,r.messagebar.clear(),i.length>0&&r.messagebar.focus();case 37:case"end":return t.stop()}}),t)})))()},resetTypingMessage:function(){var e=this;setTimeout((function(){e.$store.dispatch("sendUpTypingMessage",e.friend_Details)}),4e3)}},created:function(){this.$store.commit("setChatOpen",!0);var e=this.$f7route.params.frd;this.friend=JSON.parse(e),this.friend_Details=this.friend,this.friend_email=this.friend.email;var t={};t.email=this.user[0].email,t.domain=this.user[0].domain,this.$store.dispatch("getUserPersonalDetails",t),this.$store.commit("setShowTabs",!1);var n={};n.email_u=this.user[0].email,n.email=this.friend.email,n.domain=this.user[0].domain,this.$store.dispatch("getOnesignalPlayerID",n),t.email_u=this.user[0].email,t.email_f=this.friend.email,t.domain=this.user[0].domain,this.$store.dispatch("getChatMessages",t),setInterval(this.refreshTyping,5e3)}},Pc=(n(416),sl(Lc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return(e.friend_email=e.friend.email)?n("div",[n("f7-page",{on:{"page:beforein":e.initHome}},[n("f7-navbar",{attrs:{title:this.friend.name,subtitle:this.friend.userStatus,"back-link":"Back"}},[n("div",{attrs:{slot:"left"},slot:"left"},[n("img",{staticClass:"small-avatar2",attrs:{slot:"media",src:this.friend.photo_url1},on:{click:function(t){return e.gotoGallery(e.friend)}},slot:"media"})]),e._v(" "),n("f7-nav-right",[this.subscribe_affiliate_friend?n("div",[n("f7-link",{on:{click:function(t){return e.pay4me(e.friend)}}},[e._v("Gift")])],1):e._e(),e._v(" "),n("f7-link",{attrs:{"popover-open":".popover-menu"}},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])])],1)],1),e._v(" "),n("f7-messagebar",{ref:"messagebar",attrs:{placeholder:e.placeholder,"attachments-visible":e.attachmentsVisible,"sheet-visible":e.sheetVisible},nativeOn:{keydown:function(t){return e.gotoKeyDown(e.friend)},keyup:function(t){return e.gotoKeyUp(e.friend)}}},[n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:paperclip","icon-aurora":"f7:Paperclip","icon-md":"material:link"},on:{click:e.launchFilePicker},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:camera_fill","icon-aurora":"f7:camera_fill","icon-md":"material:camera_alt"},on:{click:function(t){e.sheetVisible=!e.sheetVisible}},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-end","icon-ios":"f7:arrow_up_fill","icon-aurora":"f7:arrow_up_fill","icon-md":"material:send"},on:{click:e.sendMessage},slot:"inner-end"}),e._v(" "),n("f7-messagebar-attachments",e._l(e.attachments,(function(t,r){return n("f7-messagebar-attachment",{key:r,attrs:{image:t},on:{"attachment:delete":function(n){return e.deleteAttachment(t)}}})})),1),e._v(" "),n("f7-messagebar-sheet",e._l(e.images,(function(t,r){return n("f7-messagebar-sheet-image",{key:r,attrs:{image:t,checked:e.attachments.indexOf(t)>=0},on:{change:e.handleAttachment}})})),1)],1),e._v(" "),n("f7-messages",{ref:"messages"},e._l(e.chat_messages,(function(t,r){return n("div",{key:r,staticClass:"messages"},[n("f7-messages-title",[n("b",[e._v(e._s(r))])]),e._v(" "),e._l(t,(function(t,i){return n("f7-message",{key:i,attrs:{name:t.name,type:t.type,image:t.image,avatar:t.avatar,first:e.isFirstMessage(t,r),last:e.isLastMessage(t,r),tail:e.isTailMessage(t,r)}},["received"!=t.type?n("div",{attrs:{slot:"text"},slot:"text"},["1"==t.messagedeleted?n("div",[n("span",[n("i",{staticClass:"f7-icons size-16 color-icon-white"},[e._v(" nosign")]),e._v("\n "),n("i",[e._v("You deleted this message")])])]):n("div",[n("f7-link",{staticClass:"color-white",on:{click:function(n){return e.deleteMessage(t.sn)}}},[t.text?n("span",{domProps:{innerHTML:e._s(t.text)}}):e._e()])],1)]):n("div",{attrs:{slot:"text"},slot:"text"},["1"==t.messagedeleted?n("div",[n("i",{staticClass:"f7-icons size-16 color-icon-white"},[e._v(" nosign")]),e._v(" "),n("i",[e._v("This message was deleted")])]):n("div",[t.text?n("span",{domProps:{innerHTML:e._s(t.text)}}):e._e()])]),e._v(" "),n("div",{attrs:{slot:"text",align:"right"},slot:"text"},["2"==t.read?n("span",{staticClass:"chat-time"},["1"==t.status?n("div",[e._v("\n "+e._s(t.smalldate)+"\n "),n("i",{staticClass:"material-icons color-greenyellow size-12"},[e._v("done_all")])]):n("div",[e._v(e._s(t.smalldate))])]):n("span",{staticClass:"chat-time"},["1"==t.status?n("div",[e._v("\n "+e._s(t.smalldate)+"\n "),n("i",{staticClass:"material-icons color-white size-12"},[e._v("done")])]):n("div",[e._v(e._s(t.smalldate))])])])])})),e._v(" "),e.friend.email==e.sent_by&&(e.friend_Details.user_email=e.received_by)&&1==e.typing_message?n("f7-message",{attrs:{type:"received",typing:!0,first:!0,last:!0,tail:!0,header:e.friend_Details.name+" is typing",avatar:e.friend_Details.photo_url1}}):e._e()],2)})),0),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file",multiple:""},on:{change:e.onFilePicked}}),e._v(" "),"3"==e.user_status?n("f7-popover",{staticClass:"popover-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Block User"},on:{click:function(t){return e.blockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Unblock User"},on:{click:function(t){return e.unBlockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Report User"},on:{click:function(t){return e.reportUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Ban User"},on:{click:function(t){return e.banUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Un-Ban User"},on:{click:function(t){return e.unBanUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Add Moderator"},on:{click:function(t){return e.addModerator(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Remove Moderator"},on:{click:function(t){return e.removeModerator(""+e.friend)}}})],1)],1):e._e(),e._v(" "),"2"==e.user_status?n("f7-popover",{staticClass:"popover-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Block User"},on:{click:function(t){return e.blockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Unblock User"},on:{click:function(t){return e.unBlockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Report User"},on:{click:function(t){return e.reportUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Ban User"},on:{click:function(t){return e.banUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Un-Ban User"},on:{click:function(t){return e.unBanUser(""+e.friend)}}})],1)],1):e._e(),e._v(" "),"1"==e.user_status?n("f7-popover",{staticClass:"popover-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Block User"},on:{click:function(t){return e.blockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Unblock User"},on:{click:function(t){return e.unBlockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Report User"},on:{click:function(t){return e.reportUser(""+e.friend)}}})],1)],1):e._e(),e._v(" "),n("f7-popup",{staticClass:"demo-popup"},[n("f7-page",[n("f7-navbar",{attrs:{title:this.friend.name,subtitle:this.friend.location}},[n("div",{attrs:{slot:"default"},slot:"default"},[n("span",{attrs:{"v-if":this.friend.birthDate}},[e._v(e._s(e.moment(this.friend.birthDate,"YYYYMMDD").fromNow(!0)))])]),e._v(" "),n("f7-nav-right",[n("f7-link",{attrs:{"popup-close":""}},[e._v("Close")])],1)],1),e._v(" "),n("f7-block",[n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover1",attrs:{src:this.friend.photo_url1}})]),e._v(" "),n("p",[n("b",[e._v("Status:")]),e._v("\n "+e._s(this.friend.userStatus)),n("br"),e._v(" "),"offline"==this.friend.userStatus?n("span",[n("b",[e._v("Lastseen:")]),e._v("\n "+e._s(e.moment(this.friend.lastSeen).fromNow())+" ")]):e._e(),n("br"),e._v(" "),n("b",[e._v("Profile Message")]),e._v(" "),n("br"),e._v("\n "+e._s(this.friend.profileMessage)+"\n\n "),n("br"),n("b",[e._v("Location")]),e._v(" "),n("br"),e._v("\n "+e._s(this.friend.location)+"\n ")]),e._v(" "),n("p",[e._v("\n UnMatch "+e._s(this.friend.name)+"\n "),n("f7-link",{on:{click:function(t){return e.unMatch(e.friend.email,e.friend.name)}}},[n("f7-icon",{attrs:{material:"delete",color:"blue"}})],1)],1)]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[e._v("To place your adverts visit Swift Alliance Limited website")]),e._v(" "),n("f7-link",{attrs:{href:"https://www.swiftallianceltd.com/",external:""}},[e._v("Place Advert")])],1),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",e._l(e.advert_country,(function(t,r){return n("p",{key:r},[r%2==0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2==0?n("span",[n("br"),e._v(e._s(t.textMessage))]):e._e()],1)})),0),e._v(" "),n("f7-col",e._l(e.advert_country,(function(t,r){return n("p",{key:r},[r%2>0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2>0?n("span",[n("br"),e._v(e._s(t.textMessage))]):e._e()],1)})),0)],1)],1),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",e._l(e.advert_default,(function(t,r){return n("p",{key:r},[r%2==0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2==0?n("span",[n("br"),e._v(e._s(t.textMessage))]):e._e()],1)})),0),e._v(" "),n("f7-col",e._l(e.advert_default,(function(t,r){return n("p",{key:r},[r%2>0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2>0?n("span",[n("br"),e._v(e._s(t.textMessage))]):e._e()],1)})),0)],1)],1),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[e._v("To place your adverts visit Swift Alliance Limited website")]),e._v(" "),n("f7-link",{attrs:{href:"https://www.swiftallianceltd.com/",external:""}},[e._v("Place Advert")])],1)],1)],1)],1)],1):e._e()}),[],!1,null,"5a2213a8",null).exports),Oc={data:function(){return{posts:[]}},computed:{user_notifications:function(){return this.$store.getters.user_notifications},user:function(){return this.$store.getters.user}},methods:{},created:function(){var e={};e.domain=this.user[0].domain,this.$store.dispatch("getUserNotifications",e)}},Ic=(n(417),sl(Oc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"notifications"}},[n("f7-navbar",{attrs:{title:"Notifications","back-link":"Back"}}),e._v(" "),n("f7-block-title",[n("h1",[n("b",[e._v("Recent Notifications")])])]),e._v(" "),n("f7-block",e._l(e.user_notifications,(function(t,r){return n("f7-list",{key:r},[n("h2",{domProps:{innerHTML:e._s(t.title)}}),e._v(" "),n("p",{domProps:{innerHTML:e._s(t.messageDetails)}}),e._v(" "),n("span",{staticClass:"small-time",domProps:{innerHTML:e._s(e.moment(t.dateCreated).format("MMMM Do YYYY, h:mm a"))}})])})),1)],1)}),[],!1,null,"755c9324",null).exports),Ac=sl({data:function(){return{agreement:!1}},computed:{user_country:function(){return this.$store.getters.user_country},subscribe_affiliate:function(){return this.$store.getters.subscribe_affiliate}},methods:{onCheckBoxChange:function(e){e.target.value;e.target.checked?this.agreement=!0:this.agreement=!1},deactivateAffiliate:function(){var e=this;this.$f7.dialog.create({title:"Delete Gift Feature?",text:"Your Gifts including your earns for the month will be deleted. Confirm if you want to continue with deleting your Gift Account.",content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:function(t,n){if(1==n){var r=e.$f7;e.$store.dispatch("deleteAffiliate"),e.$f7.dialog.close(),r.panel.close(),e.$store.dispatch("getUserAffiliate")}},on:{open:function(){}}}).open()},activateAffiliate:function(){var e=this;if(this.agreement)if("Nigeria"==this.user_country){this.$f7.popover.close();this.$f7.dialog.create({title:"Bank Details",text:"",content:"<div class='dialog-input-field item-input'><div class='item-input-wrap'><input class='dialog-input' type='text' placeholder='Bank Name' required /></div></div><div class='dialog-input-field item-input'><div class='item-input-wrap'><input class='dialog-input account-number' type='text' placeholder='Account - Number' required /></div></div><div class='dialog-input-field item-input'><div class='item-input-wrap'><input class='dialog-input account-name' type='text' placeholder='Account Name' required /></div></div>",buttons:[{text:"Cancel",close:!0},{text:"Submit"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim(),i=t.$el.find(".account-number").val().trim(),a=t.$el.find(".account-name").val().trim();if(r.length>=2)if(10==i.length)if(a.length>=2){var o={};o.bank_name=r,o.account_number=i,o.account_name=a,o.paypal="",e.$store.dispatch("processAffiliate",o),e.$f7.dialog.close(),e.$store.dispatch("getUserAffiliate")}else e.$store.commit("setAlertMessage","Account Name too short");else e.$store.commit("setAlertMessage","Account Number is too short or too long");else 1==n&&e.$store.commit("setAlertMessage","Bank Name too short")},on:{open:function(){}}}).open()}else{this.$f7.popover.close();this.$f7.dialog.create({title:"Paypal Details",text:"",content:"<div class='dialog-input-field item-input'><div class='item-input-wrap'><input class='dialog-input' type='text' placeholder='PayPay Details' required /></div></div>",buttons:[{text:"Cancel",close:!0},{text:"Submit"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if(r.length>=2){var i={bank_name:"",account_number:"",account_name:""};i.paypal=r,e.$store.dispatch("processAffiliate",i),e.$f7.dialog.close(),e.$store.dispatch("getUserAffiliate")}else 1==n&&e.$store.commit("setAlertMessage","Your PayPal Details are too Short")},on:{open:function(){}}}).open()}else this.$store.commit("setAlertMessage","Check I agree button to continue...")}},created:function(){this.$store.dispatch("getUserCountry"),this.$store.dispatch("getUserAffiliate")}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"}},[n("f7-navbar",{attrs:{title:"Gift Program","back-link":"Back"}}),e._v(" "),n("f7-block-title",[n("b",[e._v("Join Our Gift Program")])]),e._v(" "),"Nigeria"==e.user_country?n("f7-block",{attrs:{strong:""}},[n("p",[e._v("The Gift features once activated allows members to send you real money. We have three categories of Gifts: Bronze, Silver or Gold. For your country, Bronze is N1,000.00, Silver is N3,000 and Gold is N5,000")]),e._v(" "),n("p",[e._v("You get paid on Friday Whenever your earnings reach N5,000 or more. Note for any money you earn we charge 25% admin fees. This means if a member sends you Bronze of N1,000, we will credit your account with N750.")])]):n("f7-block",[n("p",[e._v("The Gift features once activated allows members to send you real money. We have three categories of Gifts: Bronze, Silver or Gold. For your country, Bronze is $2.00, Silver is $5.00 and Gold is $10.00")]),e._v(" "),n("p",[e._v("You get paid on Friday Whenever your earnings reach $25.00 or more. Note for any money you earn we charge 25% admin fees. This means if a member sends you Bronze of $2.0, we will credit your account with $1.50.")])]),e._v(" "),n("div",[this.subscribe_affiliate?n("f7-block",[n("p",[n("font",{attrs:{color:"green"}},[e._v("Your Affiliate Account is Active")])],1),e._v(" "),n("f7-button",{attrs:{fill:"",color:"red"},on:{click:e.deactivateAffiliate}},[e._v("DeActivate Program")])],1):n("f7-block",[n("div",{staticClass:"list media-list"},[n("f7-list",[n("f7-list-item",{attrs:{checkbox:"",title:"I agree with the above conditions.",name:"affiliate-checkbox",color:"green"},on:{change:e.onCheckBoxChange}})],1)],1),e._v(" "),n("f7-button",{attrs:{fill:""},on:{click:e.activateAffiliate}},[e._v("Activate Program")])],1)],1)],1)}),[],!1,null,null,null).exports,Dc={components:{f7Page:bs,f7LoginScreenTitle:Xo,f7List:Jo,f7ListItem:Ko,f7ListButton:Ho,f7BlockFooter:yo,f7ListInput:Vo},data:function(){return{twitter:null,instagram:null}},methods:{registerModerator:function(){var e={};null!=this.twitter&&null!=this.instagram?(e.twitter=this.twitter,e.instagram=this.instagram,this.$store.dispatch("processModerator",e),this.$store.commit("setAlertMessage","Your Form received and Email sent to you. Please check your email."),this.twitter=null,this.instagram=null):this.$store.commit("setAlertMessage","Please provide your Twitter and Instagram details")},created:function(){}}},Nc=(n(418),sl(Dc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about","no-swipeback":"","login-screen":""}},[n("f7-navbar",{attrs:{title:"Be A Moderator","back-link":"Back"}}),e._v(" "),n("f7-block",[n("p",[n("b",[e._v("Be Our Moderator.")])])]),e._v(" "),n("f7-block",[n("p",[e._v("\n Do you have over 500 followers in your Twitter and Instagram Pages?"),n("br"),e._v("\n If Yes, please complete the form below to be selected as our Moderator.\n ")])]),e._v(" "),n("div",{staticClass:"align-center"},[n("f7-list",{attrs:{"no-hairlines-md":""}},[n("f7-list-input",{attrs:{value:e.twitter,label:"Your Twitter Handle",type:"text",placeholder:"Your Twitter Handle","clear-button":"",required:""},on:{input:function(t){e.twitter=t.target.value}}}),e._v(" "),n("f7-list-input",{attrs:{value:e.instagram,label:"Your Instagram IG",type:"text",placeholder:"Your Instagram IG","clear-button":"",required:""},on:{input:function(t){e.instagram=t.target.value}}})],1)],1),e._v(" "),n("div",[n("f7-block",[n("f7-button",{attrs:{fill:""},on:{click:e.registerModerator}},[e._v("Submit")])],1)],1)],1)}),[],!1,null,"45d5b5de",null).exports),Rc={data:function(){return{userCountry:null,text1:"Join Chatme24 to meet new friends",text2:"Join Penpal America to meet new friends",everydayblogger:[],weekblogger:[],monthblogger:{type:Array,default:function(){return[{}]}},todayblogger:[]}},watch:{user_country:function(e){}},methods:{advertrouter:function(e){this.$f7router.navigate("https://247sms.com",External)},gotoJoinGroup:function(e){this.$store.dispatch("addGroupMember"),this.$store.commit("setAlertMessage","You have been added to the group")},gotoGroup:function(e){this.$f7router.navigate("/chatgroup/")},init:function(){var e=this;this.$store.commit("setShowTabs",!0);this.$f7ready((function(t){Qs.a.database().ref("users").child(Qs.a.auth().currentUser.uid).once("value",(function(t){var n={country:t.val().country},r=e,i=r.$f7;i.request.post("https://chatme24.com/register/sportsnewsupdatefrench.php",n,(function(e){var t=JSON.parse(e);r.everydayblogger=t})),i.request.post("https://chatme24.com/register/sportsnewsupdategermany.php",n,(function(e){var t=JSON.parse(e);r.todayblogger=t})),i.request.post("https://chatme24.com/register/sportsnewsupdatespain.php",n,(function(e){var t=JSON.parse(e);r.weekblogger=t})),i.request.post("https://chatme24.com/register/sportsnewsupdateengland.php",n,(function(e){var t=JSON.parse(e);r.monthblogger=t}))}))}))}},computed:{advert_default:function(){return this.$store.getters.advert_default},advert_country:function(){return this.$store.getters.advert_country},chat_groups:function(){return this.$store.getters.chat_groups},user_country:function(){return this.$store.getters.user_country}},mounted:function(){},created:function(){this.init(),this.$store.dispatch("getAppDbVersion"),this.$store.dispatch("getAppVersion"),this.$store.dispatch("getAdvertDefault"),this.$store.dispatch("getAdvertCountry")}},Bc=(n(419),sl(Rc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"chatgroups"},on:{"page:beforein":e.init}},[n("f7-navbar",{attrs:{title:"Sports Update","back-link":"Back"}}),e._v(" "),n("f7-block",[n("f7-block",[n("h4",[e._v("Premier League Updates")]),e._v(" "),n("p",[e._v("Powered By Google Alert")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},e._l(e.monthblogger,(function(t,r){return n("p",{key:r},[n("b",[e._v(e._s(t.title))]),e._v(" "),n("br"),e._v(e._s(t.content)+"\n\n "),n("f7-link",{attrs:{href:t.link,external:""}},[e._v(" Read More --\x3e ")])],1)})),0)],1),e._v(" "),n("h4",[e._v("Spain La Liga Sports Updates")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},e._l(e.weekblogger,(function(t,r){return n("p",{key:r},[n("b",[e._v(e._s(t.title))]),e._v(" "),n("br"),e._v(e._s(t.content)+"\n\n "),n("f7-link",{attrs:{href:t.link,external:""}},[e._v(" Read More --\x3e ")])],1)})),0)],1),e._v(" "),n("h4",[e._v("Germany - Bundesliga Sports Updates")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},e._l(e.todayblogger,(function(t,r){return n("p",{key:r},[n("b",[e._v(e._s(t.title))]),e._v(" "),n("br"),e._v(e._s(t.content)+"\n\n "),n("f7-link",{attrs:{href:t.link,external:""}},[e._v(" Read More --\x3e ")])],1)})),0)],1),e._v(" "),n("h4",[e._v("French - Ligue1 Sports Updates")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},e._l(e.everydayblogger,(function(t,r){return n("p",{key:r},[n("b",[e._v(e._s(t.title))]),e._v(" "),n("br"),e._v(e._s(t.content)+"\n\n "),n("f7-link",{attrs:{href:t.link,external:""}},[e._v(" Read More --\x3e ")])],1)})),0)],1),e._v(" "),n("p",[e._v("Source: Google Alert")])],1)],1)],1)}),[],!1,null,"68dc1a8c",null).exports),Yc={data:function(){return{userCountry:null,text1:"Join Chatme24 to meet new friends",text2:"Join Penpal America to meet new friends",weekblogger:[],monthblogger:[],todayblogger:[]}},watch:{},methods:{advertrouter:function(e){this.$f7router.navigate("https://247sms.com",External)},gotoJoinGroup:function(e){this.$store.dispatch("addGroupMember"),this.$store.commit("setAlertMessage","You have been added to the group")},gotoGroup:function(e){this.$f7router.navigate("/chatgroup/")},init:function(){var e=this;this.$store.commit("setShowTabs",!0);this.$f7ready((function(t){Qs.a.database().ref("users").child(Qs.a.auth().currentUser.uid).once("value",(function(t){var n={country:t.val().country},r=e,i=r.$f7;i.request.post("https://chatme24.com//statistics//todayblogger.php",n,(function(e){var t=JSON.parse(e);r.todayblogger=t})),i.request.post("https://chatme24.com//statistics//weekblogger.php",n,(function(e){var t=JSON.parse(e);r.weekblogger=t})),i.request.post("https://chatme24.com//statistics//monthblogger.php",n,(function(e){var t=JSON.parse(e);r.monthblogger=t}))}))}))}},computed:{advert_default:function(){return this.$store.getters.advert_default},advert_country:function(){return this.$store.getters.advert_country},chat_groups:function(){return this.$store.getters.chat_groups},user_country:function(){return this.$store.getters.user_country}},mounted:function(){},created:function(){this.init()}},jc=(n(420),sl(Yc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"chatgroups"},on:{"page:beforein":e.init}},[n("div",{staticClass:"wrapper"},[n("f7-navbar",{attrs:{title:"Football Blogging"}}),e._v(" "),n("f7-block",[n("f7-link",{on:{click:e.gotoGroup}},[e._v("Start 247footballchat Blogging")]),e._v(" "),n("f7-block",[n("h4",[e._v("This Month Top Bloggers")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.monthblogger,(function(t,r){return n("p",{key:r},[e._v("\n "+e._s(t.name)+"\n ")])})),0),e._v(" "),n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.monthblogger,(function(t,r){return n("p",{key:r},[e._v("\n "+e._s(t.scores)+"\n ")])})),0)],1),e._v(" "),n("h4",[e._v("This Week Top Bloggers")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.weekblogger,(function(t,r){return n("p",{key:r},[e._v("\n "+e._s(t.name)+"\n ")])})),0),e._v(" "),n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.weekblogger,(function(t,r){return n("p",{key:r},[e._v("\n "+e._s(t.scores)+"\n ")])})),0)],1),e._v(" "),n("h4",[e._v("Today's Top Bloggers")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.todayblogger,(function(t,r){return n("p",{key:r},[e._v("\n "+e._s(t.name)+"\n ")])})),0),e._v(" "),n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.todayblogger,(function(t,r){return n("p",{key:r},[e._v("\n "+e._s(t.scores)+"\n ")])})),0)],1)],1)],1)],1),e._v(" "),n("div",{staticClass:"wrapper"},[n("h4",[n("b",[e._v("Paid Adverts")])]),e._v(" "),n("span",[e._v("\n To place your adverts below send mail to support@247footballchat.com\n ")])]),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",e._l(e.advert_country,(function(t,r){return n("p",{key:r},[r%2==0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2==0?n("span",[n("br"),e._v(e._s(t.textMesage))]):e._e()],1)})),0),e._v(" "),n("f7-col",e._l(e.advert_country,(function(t,r){return n("p",{key:r},[r%2>0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2>0?n("span",[n("br"),e._v(e._s(t.textMesage))]):e._e()],1)})),0)],1)],1),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",e._l(e.advert_default,(function(t,r){return n("p",{key:r},[r%2==0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2==0?n("span",[n("br"),e._v(e._s(t.textMesage))]):e._e()],1)})),0),e._v(" "),n("f7-col",e._l(e.advert_default,(function(t,r){return n("p",{key:r},[r%2>0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2>0?n("span",[n("br"),e._v(e._s(t.textMesage))]):e._e()],1)})),0)],1)],1),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[e._v("To place your adverts here send mail to support@247footballchat.com")])])],1)}),[],!1,null,"c95ca604",null).exports),Fc={data:function(){return{user_uid:null,openBraket:" (",closeBraket:")",chatgroup:null,attachments:[],sheetVisible:!1,typingMessage:null,messagesData:[],responseInProgress:!1,appState:1,moderator:!0}},computed:{total_group_messages:function(){return this.$store.getters.total_group_messages},number_online:function(){return this.$store.getters.number_online},typing_message_group:function(){return this.$store.getters.typing_message_group},app_state:function(){return this.$store.getters.app_state},user_status:function(){return this.$store.getters.user_status},chat_group_name:function(){return this.$store.getters.chat_group_name},group_messages:function(){return this.$store.getters.group_messages},images:function(){return this.$store.getters.images},attachmentsVisible:function(){return this.attachments.length>0},placeholder:function(){return this.attachments.length>0?"Add comment or Send":"Message"}},watch:{typing_message_group:function(e){}},beforeDestroy:function(){this.$store.dispatch("statisticsUsersOnlineRemove")},mounted:function(){var e=this;e.$f7ready((function(){e.messagebar=e.$refs.messagebar.f7Messagebar,e.messages=e.$refs.messages.f7Messages})),this.$store.dispatch("getGroupName2")},methods:{sendBroadCast:function(){var e=this;this.$f7.popover.close();this.$f7.dialog.create({title:"Send Broadcast Message",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Title" required maxlength="50"> <div class="item-input-wrap"><input class="dialog-input body" type="textarea" placeholder="Enter Message" resizable required maxlength="200"></div></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Send"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim(),i=t.$el.find(".body").val().trim();if(""!=r&&""!=i){var a={};a.title=r,a.message_details=i,e.$store.dispatch("pushNotifications",a);var o={group_name:e.chat_group_name,message:"Broadcast: Title: "+r+" Message: "+i,img:null};e.$store.dispatch("sendGroupMessage",o),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Fields cannot be empty")},on:{open:function(){}}}).open()},liveScores:function(){this.$f7router.navigate("/livescores/"),this.$f7.popover.close()},sportsUpdate:function(){this.$f7router.navigate("/sportsupdate/"),this.$f7.popover.close()},standing:function(){this.$f7router.navigate("/standings/"),this.$f7.popover.close()},placeAdvert:function(){var e=this;this.$f7.popover.close();this.$f7.dialog.create({title:"Provide Advert Details",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input-URL" type="text" placeholder="URL" required validate maxlength="200"></div><div class="item-input-wrap"><input class="dialog-input-image" type="text" placeholder="Image URL" required validate maxlength="200"></div><div class="item-input-wrap"><input class="dialog-input-alternate" type="text" placeholder="Alternate" required validate maxlength="100"></div><div class="item-input-wrap"><input class="dialog-input-textmessage" type="text" placeholder="Text Message" required validate maxlength="200"></div><div class="item-input-wrap"><input class="dialog-input-country" type="text" placeholder="Country" required validate maxlength="50"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Submit"}],onClick:function(t,n){var r=t.$el.find(".dialog-input-URL").val().trim(),i=t.$el.find(".dialog-input-image").val().trim(),a=t.$el.find(".dialog-input-alternate").val().trim(),o=t.$el.find(".dialog-input-textmessage").val().trim(),s=t.$el.find(".dialog-input-country").val().trim();if(0!=r.length)if(0!=i.length)if(0!=a.length)if(0!=o.length)if(0!=s.length){var l={url:r,image:i,alternate:a,textMesage:o,country:s};e.$store.dispatch("placeAdvert",l),e.$store.commit("setAlertMessage","Advert Placed Successfully")}else e.$store.commit("setAlertMessage","Provide Country message");else e.$store.commit("setAlertMessage","Provide Text message");else e.$store.commit("setAlertMessage","Provide Alternate message");else e.$store.commit("setAlertMessage","Provide Image message");else e.$store.commit("setAlertMessage","Provide URL message")},on:{open:function(){}}}).open();this.$f7.popover.close()},lockApp:function(){this.$store.dispatch("closeAppState"),this.$store.dispatch("getAppState"),this.$f7.popover.close()},openApp:function(){this.$store.dispatch("openAppState"),this.$store.dispatch("getAppState"),this.$f7.popover.close()},launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFileMessage")},leaveGroup:function(){var e={};e.group_name=this.chat_group_name,this.$store.dispatch("leaveGroup",e)},goto:function(e){this.$f7router.navigate(e)},isFirstMessage:function(e,t){var n=this.messagesData[t-1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isLastMessage:function(e,t){var n=this.messagesData[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isTailMessage:function(e,t){var n=this.messagesData[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},deleteAttachment:function(e){var t=this.attachments.indexOf(e);this.attachments.splice(t,1)[0]},handleAttachment:function(e){var t=this.$$(e.target).parents("label.checkbox").index(),n=this.images[t];e.target.checked?this.attachments.unshift(n):this.attachments.splice(this.attachments.indexOf(n),1)},sendMessage:function(){var e=this;return il()(nl.a.mark((function t(){var n,r,i,a,o,s,l;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=7;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:if("offline"!=t.sent){t.next=7;break}return e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue..."),t.abrupt("return");case 7:return t.next=9,e.$store.dispatch("getUserStatus");case 9:return t.next=11,e.$store.dispatch("getAppState");case 11:if(e.app_state||"1"!=e.user_status){t.next=14;break}return e.$store.commit("setAlertMessage","Only moderators can send messages now"),t.abrupt("return");case 14:if("0"!=e.user_status){t.next=17;break}return e.$store.commit("setAlertMessage","You have been banned from using this service"),t.abrupt("return");case 17:if(r=(n=e).messagebar.getValue().replace(/\n/g,"<br>").trim(),i=[],n.attachments.forEach((function(e){i.push({image:e})})),r.trim().length&&i.push({text:r}),0!==i.length){t.next=24;break}return t.abrupt("return");case 24:if(!(n.attachments.length>0)){t.next=28;break}_.forEach(n.attachments,(function(t){n.$store.dispatch("uploadChatImages",t).then((function(t){var i={group_name:e.chat_group_name,message:r,img:t};n.$store.dispatch("sendGroupMessage",i)}))})),t.next=38;break;case 28:return a={group_name:e.chat_group_name,message:r,img:null},n.$store.dispatch("sendGroupMessage",a),t.next=32,e.$store.dispatch("getUserCountry");case 32:return o=t.sent,t.next=35,e.$store.dispatch("getUserEmail");case 35:s=t.sent,l={uid:Qs.a.auth().currentUser.uid,country:o,email:s,name:Qs.a.auth().currentUser.displayName},e.$f7.request.post("https://chatme24.com/statistics/statistics.php",l,(function(e){}));case 38:n.attachments=[],n.sheetVisible=!1,n.messagebar.clear(),r.length&&n.messagebar.focus(),n.responseInProgress;case 43:case"end":return t.stop()}}),t)})))()}},created:function(){this.user_uid=Qs.a.auth().currentUser.uid,this.$store.commit("setShowTabs",!1),this.$store.dispatch("getGroupMessages"),this.$store.dispatch("getAppState"),this.$store.dispatch("getUserStatus"),this.$store.dispatch("statisticsUsersOnline"),this.$store.dispatch("getTotalGroupMessages")}},Hc=(n(421),sl(Fc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",[n("f7-navbar",{attrs:{title:"Online: "+e.number_online,subtitle:"Messages sent: "+e.total_group_messages,"back-link":"Back"}},[n("f7-nav-right",[e.app_state?n("span",[n("f7-link",{attrs:{href:"/livescores/"}},[e._v("Live")]),e._v(" ")],1):n("span",[e._v("G-Closed ")]),e._v(" "),"3"==e.user_status?n("f7-link",{attrs:{"popover-open":".popover-menu"}},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])]):e._e(),e._v(" "),"2"==e.user_status?n("f7-link",{attrs:{"popover-open":".popoverModerator-menu"}},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])]):e._e(),e._v(" "),"1"==e.user_status?n("f7-link",{attrs:{"popover-open":".popoverUser-menu"}},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])]):e._e()],1)],1),e._v(" "),n("f7-messagebar",{ref:"messagebar",attrs:{placeholder:e.placeholder,"attachments-visible":e.attachmentsVisible,"sheet-visible":e.sheetVisible}},[n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:folder","icon-aurora":"f7:folder","icon-md":"material:folder"},on:{click:e.launchFilePicker},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:camera_fill","icon-aurora":"f7:camera_fill","icon-md":"material:camera_alt"},on:{click:function(t){e.sheetVisible=!e.sheetVisible}},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-end","icon-ios":"f7:arrow_up_fill","icon-aurora":"f7:arrow_up_fill","icon-md":"material:send"},on:{click:e.sendMessage},slot:"inner-end"}),e._v(" "),n("f7-messagebar-attachments",e._l(e.attachments,(function(t,r){return n("f7-messagebar-attachment",{key:r,attrs:{image:t},on:{"attachment:delete":function(n){return e.deleteAttachment(t)}}})})),1),e._v(" "),n("f7-messagebar-sheet",e._l(e.images,(function(t,r){return n("f7-messagebar-sheet-image",{key:r,attrs:{image:t,checked:e.attachments.indexOf(t)>=0},on:{change:e.handleAttachment}})})),1)],1),e._v(" "),n("f7-messages",{ref:"messages"},e._l(e.group_messages,(function(t,r){return n("div",{key:r,staticClass:"messages"},[n("f7-messages-title",[n("b",[e._v(e._s(r))])]),e._v(" "),e._l(t,(function(t,i){return n("f7-message",{key:i,attrs:{type:t.type,image:t.image,name:t.displayName+e.openBraket+t.club+e.closeBraket,club:t.club,avatar:t.avatar,first:e.isFirstMessage(t,r),last:e.isLastMessage(t,r),tail:e.isTailMessage(t,r)}},[t.text?n("span",{attrs:{slot:"text"},domProps:{innerHTML:e._s(t.text)},slot:"text"}):e._e(),e._v(" "),t.text?n("span",{staticClass:"chat-time",attrs:{slot:"text"},domProps:{innerHTML:e._s(t.smalldate)},slot:"text"}):e._e()])})),e._v(" "),e.typing_message_group>0?n("f7-message",{attrs:{type:"received",typing:!0,first:!0,last:!0,tail:!0,header:e.typing_message_group+" Person(s) typing"}}):e._e()],2)})),0),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file",multiple:""},on:{change:e.onFilePicked}}),e._v(" "),n("f7-popover",{staticClass:"popover-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Close Gateway"},on:{click:function(t){return e.lockApp()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Open Gate"},on:{click:function(t){return e.openApp()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Send Broadcast Message"},on:{click:function(t){return e.sendBroadCast()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Live Scores"},on:{click:function(t){return e.liveScores()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Sports Update"},on:{click:function(t){return e.sportsUpdate()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Standings"},on:{click:function(t){return e.standing()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Place Advert"},on:{click:function(t){return e.placeAdvert()}}})],1)],1),e._v(" "),n("f7-popover",{staticClass:"popoverModerator-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Close Gateway"},on:{click:function(t){return e.lockApp()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Open Gate"},on:{click:function(t){return e.openApp()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Send Broadcast Message"},on:{click:function(t){return e.sendBroadCast()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Live Scores"},on:{click:function(t){return e.liveScores()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Sports Update"},on:{click:function(t){return e.sportsUpdate()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Standings"},on:{click:function(t){return e.standing()}}})],1)],1),e._v(" "),n("f7-popover",{staticClass:"popoverUser-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Live Scores"},on:{click:function(t){return e.liveScores()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Sports Update"},on:{click:function(t){return e.sportsUpdate()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Standings"},on:{click:function(t){return e.standing()}}})],1)],1)],1)}),[],!1,null,"86dc0086",null).exports),Uc=sl({data:function(){return{friend:null,friend_Details:null,attachments:[],sheetVisible:!1,responseInProgress:!1}},computed:{images:function(){return this.$store.getters.images},post_chat_messages:function(){return this.$store.getters.post_chat_messages},attachmentsVisible:function(){return this.attachments.length>0},placeholder:function(){return this.attachments.length>0?"Add comment or Send":"Message"}},mounted:function(){var e=this;e.$f7ready((function(){e.messagebar=e.$refs.messagebar.f7Messagebar,e.messages=e.$refs.messages.f7Messages}))},methods:{launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFileMessage")},isFirstMessage:function(e,t){var n=this.messagesData[t-1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isLastMessage:function(e,t){var n=this.messagesData[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isTailMessage:function(e,t){var n=this.messagesData[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},deleteAttachment:function(e){var t=this.attachments.indexOf(e);this.attachments.splice(t,1)[0]},handleAttachment:function(e){var t=this.$$(e.target).parents("label.checkbox").index(),n=this.images[t];e.target.checked?this.attachments.unshift(n):this.attachments.splice(this.attachments.indexOf(n),1)},sendMessage:function(){var e=this,t=e.messagebar.getValue().replace(/\n/g,"<br>").trim(),n=[];e.attachments.forEach((function(e){n.push({image:e})})),t.trim().length&&n.push({text:t}),0!==n.length&&(e.attachments.length>0?_.forEach(e.attachments,(function(n){e.$store.dispatch("uploadChatImages",n).then((function(n){e.$store.dispatch("sendMessageToFriends",{friend:e.friend,msg:t,img:n})}))})):e.$store.dispatch("sendMessageToFriends",{friend:e.friend,msg:t,img:null}),e.attachments=[],e.sheetVisible=!1,e.messagebar.clear(),t.length>0&&e.messagebar.focus())}},created:function(){this.$store.commit("setShowTabs",!1),this.$store.dispatch("getPostChatMessages")}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",[n("f7-navbar",{attrs:{title:"Post Messages To Your Friends","back-link":"Back"}}),e._v(" "),n("f7-messagebar",{ref:"messagebar",attrs:{placeholder:e.placeholder,"attachments-visible":e.attachmentsVisible,"sheet-visible":e.sheetVisible}},[n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:folder","icon-aurora":"f7:folder","icon-md":"material:folder"},on:{click:e.launchFilePicker},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:camera_fill","icon-aurora":"f7:camera_fill","icon-md":"material:camera_alt"},on:{click:function(t){e.sheetVisible=!e.sheetVisible}},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-end","icon-ios":"f7:arrow_up_fill","icon-aurora":"f7:arrow_up_fill","icon-md":"material:send"},on:{click:e.sendMessage},slot:"inner-end"}),e._v(" "),n("f7-messagebar-attachments",e._l(e.attachments,(function(t,r){return n("f7-messagebar-attachment",{key:r,attrs:{image:t},on:{"attachment:delete":function(n){return e.deleteAttachment(t)}}})})),1),e._v(" "),n("f7-messagebar-sheet",e._l(e.images,(function(t,r){return n("f7-messagebar-sheet-image",{key:r,attrs:{image:t,checked:e.attachments.indexOf(t)>=0},on:{change:e.handleAttachment}})})),1)],1),e._v(" "),n("f7-messages",{ref:"messages"},e._l(e.post_chat_messages,(function(t,r){return n("div",{key:r,staticClass:"messages"},[n("f7-messages-title",[n("b",[e._v(e._s(r))])]),e._v(" "),e._l(t,(function(t,r){return n("f7-message",{key:r,attrs:{type:t.type,image:t.image,name:t.name,avatar:t.avatar}},[t.text?n("span",{attrs:{slot:"text"},domProps:{innerHTML:e._s(t.text)},slot:"text"}):e._e(),e._v(" "),t.text?n("span",{staticClass:"chat-time",attrs:{slot:"text"},domProps:{innerHTML:e._s(t.smalldate)},slot:"text"}):e._e()])}))],2)})),0),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file",multiple:""},on:{change:e.onFilePicked}})],1)}),[],!1,null,null,null).exports,zc={data:function(){return{group_name:"New Group"}},computed:{group_image_url:function(){return this.$store.getters.group_image_url},files:function(){return this.$store.getters.files}},methods:{createGroup:function(){var e=this;return il()(nl.a.mark((function t(){var n;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n={}).name=e.group_name,n.pic=e.group_image_url,console.log(n),!e.files){t.next=8;break}return t.next=7,e.$store.dispatch("uploadFile","group_profile/");case 7:n.pic=t.sent;case 8:e.$store.dispatch("createGroup",n);case 9:case"end":return t.stop()}}),t)})))()},launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFile","setGroupImageURL")}},created:function(){this.$store.commit("setGroupImageURL","https://firebasestorage.googleapis.com/v0/b/whatchat-4c8cf.appspot.com/o/group_profile%2Fgroup%20icon.jpg?alt=media&token=2a2ef2b7-31fb-4677-a1d6-664c48791542")}},Vc=(n(422),sl(zc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"newgroup"}},[n("f7-navbar",{attrs:{title:"New group","back-link":"Back"}}),e._v(" "),n("f7-block-title",[e._v("New group")]),e._v(" "),n("f7-block",[n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover",attrs:{src:e.group_image_url,alt:""},on:{click:e.launchFilePicker}})]),e._v(" "),n("f7-list",{attrs:{"no-hairlines-md":""}},[n("f7-list-input",{attrs:{value:e.group_name,label:"Group Name",type:"text",placeholder:"Your group name","clear-button":""},on:{input:function(t){e.group_name=t.target.value}}})],1),e._v(" "),n("f7-button",{attrs:{fill:""},on:{click:e.createGroup}},[e._v("Create New Group")]),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.onFilePicked}})],1)],1)}),[],!1,null,"6ac28f14",null).exports),qc={data:function(){return{group_name:null}},computed:{p_members:function(){var e=L()(this.$store.getters.friends);return _.forEach(this.group_members,(function(t){var n=_.findIndex(e,t);e.splice(n,1)})),e},group_members:function(){return this.$store.getters.group_members}},methods:{add:function(e){var t={};t.newmember=e,t.group_name=this.group_name,this.$store.dispatch("addMember",t)}},created:function(){var e=this;return il()(nl.a.mark((function t(){return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.group_name=e.$f7route.params.group_name,e.$store.dispatch("getGroupMembers",e.group_name);case 2:case"end":return t.stop()}}),t)})))()}},Wc=(n(423),sl(qc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"addmembers"}},[n("f7-navbar",{attrs:{title:"Add Members","back-link":"Back"}}),e._v(" "),n("f7-block-title",[e._v("Add members")]),e._v(" "),n("f7-block",[n("f7-list",{attrs:{"media-list":""}},e._l(e.p_members,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",title:t.name}},[n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url},slot:"media"}),e._v(" "),n("f7-swipeout-actions",{attrs:{right:""}},[n("f7-swipeout-button",{attrs:{color:"green"},on:{click:function(n){return e.add(t)}}},[e._v("Add")])],1)],1)})),1)],1)],1)}),[],!1,null,"45580f0e",null).exports),Gc={data:function(){return{group_name:null}},computed:{group_members:function(){return this.$store.getters.group_members}},created:function(){this.group_name=this.$f7route.params.group_name,this.$store.dispatch("getGroupMembers",this.group_name)}},Kc=(n(424),sl(Gc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"groupinfo"}},[n("f7-navbar",{attrs:{title:"groupinfo","back-link":"Back"}}),e._v(" "),e.group_members.length>0?n("f7-block-title",[e._v(e._s(e.group_members.length)+" member"+e._s(e.group_members.length>1?"s":""))]):n("f7-block-title",[e._v("No members yet")]),e._v(" "),n("f7-block",[n("f7-list",{attrs:{"media-list":""}},e._l(e.group_members,(function(e,t){return n("f7-list-item",{key:t,attrs:{swipeout:"",title:e.name}},[n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:e.photo_url},slot:"media"})])})),1)],1)],1)}),[],!1,null,"045a652f",null).exports),Jc={data:function(){return{group_name:null}},methods:{remove:function(e){var t={};t.member=e,t.group_name=this.group_name,this.$store.dispatch("removeMember",t)}},computed:{group_members:function(){return this.$store.getters.group_members}},created:function(){this.group_name=this.$f7route.params.group_name,this.$store.dispatch("getGroupMembers",this.group_name)}},Xc=(n(425),[{path:"/",component:ll},{path:"/signin/",component:Ul},{path:"/signinbackup/",component:Yl},{path:"/firstpage/",component:Wl},{path:"/signup/:phone",component:Kl},{path:"/viewprofile/",component:nc},{path:"/editprofile/",component:Xl},{path:"/addphoto/",component:Zl},{path:"/editprofilepicture/",component:ic},{path:"/phoneverify/",component:lc},{path:"/verifyemail/:email",component:hc},{path:"/members/",component:bc},{path:"/match/",component:wc},{path:"/newversion/",component:uc},{path:"/about/",name:"AboutPage",component:cl},{path:"/form/",component:ul},{path:"/catalog/",component:dl},{path:"/pay4me/:frd",component:gc},{path:"/settings/",component:hl},{path:"/contacts/",component:pc},{path:"/requests/",component:Mc},{path:"/chat/:frd",component:Pc},{path:"/gallery/:frd",component:_l},{path:"/viewuserprofile/:frd",component:Sl},{path:"/usernotifications/",component:Ic},{path:"/livescores/",component:Ec},{path:"/sportsupdate/",component:Bc},{path:"/standings/",component:Tc},{path:"/affiliate/",component:Ac},{path:"/beamoderator/",component:Nc},{path:"/chatgroups/",component:jc},{path:"/chatgroup/",component:Hc},{path:"/postfriends/",component:Uc},{path:"/newgroup/",component:Vc},{path:"/addmembers/:group_name",component:Wc},{path:"/groupmembers/:group_name",component:sl(Jc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"groupmembers"}},[n("f7-navbar",{attrs:{title:"groupmembers","back-link":"Back"}}),e._v(" "),e.group_members.length>0?n("f7-block-title",[e._v(e._s(e.group_members.length)+" member"+e._s(e.group_members.length>1?"s":""))]):n("f7-block-title",[e._v("No members yet")]),e._v(" "),n("f7-block",[n("f7-list",{attrs:{"media-list":""}},e._l(e.group_members,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",title:t.name}},[n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url},slot:"media"}),e._v(" "),n("f7-swipeout-actions",{attrs:{right:""}},[n("f7-swipeout-button",{attrs:{color:"red"},on:{click:function(n){return e.remove(t)}}},[e._v("Remove")])],1)],1)})),1)],1)],1)}),[],!1,null,"12041dd4",null).exports},{path:"/groupinfo/:group_name",component:Kc},{path:"/dynamic-route/blog/:blogId/post/:postId/",component:Ml},{path:"/request-and-load/user/:userId/",async:function(e,t,n,r){var i=this.app;i.preloader.show();e.params.userId;setTimeout((function(){i.preloader.hide(),n({component:Ll},{context:{user:{firstName:"Vladimir",lastName:"Kharlampidi",about:"Hello, i am creator of Framework7! Hope you like it!",links:[{title:"Framework7 Website",url:"http://framework7.io"},{title:"Framework7 Forum",url:"http://forum.framework7.io"}]}}})}),1e3)}},{path:"(.*)",component:Il}]);Qs.a.initializeApp({apiKey:"AIzaSyBOrXDYXQam4RhmVBe_ea2EwUHvRrTiwms",authDomain:"penpalamerica.firebaseapp.com",databaseURL:"https://penpalamerica.firebaseio.com",projectId:"penpalamerica",storageBucket:"penpalamerica.appspot.com",messagingSenderId:"737042362490",appId:"1:737042362490:web:55c82badf582b5765b4bc3"});var Qc={data:function(){return{userEmail:null,f7params:{id:"com.penpalamerica.penpal",name:"Penpal America",theme:"auto",data:function(){return{user:{firstName:"John",lastName:"Doe"},products:[{id:"1",title:"Apple iPhone 8",description:"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nisi tempora similique reiciendis, error nesciunt vero, blanditiis pariatur dolor, minima sed sapiente rerum, dolorem corrupti hic modi praesentium unde saepe perspiciatis."},{id:"2",title:"Apple iPhone 8 Plus",description:"Velit odit autem modi saepe ratione totam minus, aperiam, labore quia provident temporibus quasi est ut aliquid blanditiis beatae suscipit odio vel! Nostrum porro sunt sint eveniet maiores, dolorem itaque!"},{id:"3",title:"Apple iPhone X",description:"Expedita sequi perferendis quod illum pariatur aliquam, alias laboriosam! Vero blanditiis placeat, mollitia necessitatibus reprehenderit. Labore dolores amet quos, accusamus earum asperiores officiis assumenda optio architecto quia neque, quae eum."}]}},routes:Xc,input:{scrollIntoViewOnFocus:this.$device.cordova&&!this.$device.electron,scrollIntoViewCentered:this.$device.cordova&&!this.$device.electron},statusbar:{overlay:this.$device.cordova&&this.$device.ios||"auto",iosOverlaysWebView:!0,androidOverlaysWebView:!1}},username:"",password:""}},mixins:[Dl],computed:{user:function(){return this.$store.getters.user},user_pageSize:function(){return this.$store.getters.user_pageSize},show_tabbar:function(){return this.$store.getters.show_tabbar},signed_in:function(){return this.$store.getters.signed_in},photo_url:function(){return this.$store.getters.photo_url},display_name:function(){return this.$store.getters.display_name},user_location:function(){return this.$store.getters.user_location},user_club:function(){return this.$store.getters.user_club},profile_message:function(){return this.$store.getters.profile_message}},watch:{user:function(e){null!=e&&(this.userEmail=e[0].email)}},methods:{deleteAccount:function(){var e=this;this.$f7.dialog.create({title:"Delete Account?",text:"Your Profile including your messages will be deleted. Confirm if you want to continue with the Account Deletion",content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:function(t,n){if(1==n){var r=e.$f7,i={};i.email=e.user[0].email,i.domain=e.user[0].domain,e.$store.dispatch("deleteAccount",i),e.$f7.dialog.close(),r.panel.close()}},on:{open:function(){}}}).open()},editClub:function(){var e=this;this.$f7.dialog.create({title:"Enter your new club name",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Your New Club" maxlength="10"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if(r.length>0){var i={};i.club=r,e.$store.dispatch("editClub",i),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Empty Message is not allowed")},on:{open:function(){console.log("OPEN")}}}).open()},editLocation:function(){var e=this;this.$f7.dialog.create({title:"Enter New Location",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Your New Location" maxlength="50"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if(r.length>0){var i={};i.location=r,i.email=e.user[0].email,i.domain=e.user[0].domain,e.$store.dispatch("editLocation",i),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Empty Message is not allowed")},on:{open:function(){console.log("OPEN")}}}).open()},genderSearch:function(){var e=this;this.$f7.dialog.create({title:"Enter Gender Search ( M or F)",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter New Gender Search" required maxlength="1" ></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if(r.length>0){var i={};i.genderSearch=r,i.email=e.user[0].email,i.domain=e.user[0].domain,"M"==r||"F"==r?(e.$store.dispatch("editgenderSearch",i),e.$f7.dialog.close()):e.$store.commit("setAlertMessage","Allowed inputs are 'M' or 'F'")}else 1==n&&e.$store.commit("setAlertMessage","Empty Message is not allowed")},on:{open:function(){}}}).open()},editProfileMessage:function(){var e=this;this.$f7.dialog.create({title:"Enter New Profile Message",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter New Profile Message" maxlength="200"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if(r.length>0){var i={};i.profileMessage=r,i.email=e.user[0].email,i.domain=e.user[0].domain,e.$store.dispatch("editProfileMessage",i),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Empty Message is not allowed")},on:{open:function(){console.log("OPEN")}}}).open()},sendTokenToServer:function(e){console.log(e)},alertLoginData:function(){this.$f7.dialog.alert("Username: "+this.username+"<br>Password: "+this.password)},signOut:function(){var e=this.$f7;this.$store.dispatch("signOut"),e.panel.close()}},mounted:function(){this.$f7ready((function(e){e.device.cordova&&el.init(e)}))}},Zc=(n(426),sl(Qc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-app",{attrs:{params:e.f7params}},[n("f7-panel",{attrs:{left:"",cover:"","theme-dark":""}},[e.signed_in?n("f7-view",[n("f7-page",[n("f7-block",[n("f7-block",[e._v("Display Name: "+e._s(e.user[0].name))])],1),e._v(" "),n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover",attrs:{src:e.user[0].photo_url1,alt:""}})]),e._v(" "),n("f7-block",[e._v("\n Location: "+e._s(e.user[0].location)+"\n "),n("f7-link",{on:{click:function(t){return e.editLocation()}}},[n("f7-icon",{attrs:{material:"edit",color:"blue"}})],1)],1),e._v(" "),n("f7-block",[e._v("\n Profile Message: "+e._s(e.user[0].profileMessage)+"\n "),n("f7-link",{on:{click:function(t){return e.editProfileMessage()}}},[n("f7-icon",{attrs:{material:"edit",color:"blue"}})],1)],1),e._v(" "),n("f7-block",[e._v("\n Gender Search: "+e._s(e.user[0].genderSearch)+"\n "),n("f7-link",{on:{click:function(t){return e.genderSearch()}}},[n("f7-icon",{attrs:{material:"edit",color:"blue"}})],1)],1),e._v(" "),n("f7-block",[e._v("\n Delete Account\n "),n("f7-link",{on:{click:function(t){return e.deleteAccount()}}},[n("f7-icon",{attrs:{material:"delete",color:"blue"}})],1)],1),e._v(" "),n("f7-list",[n("f7-list-item",{attrs:{view:".view-main","panel-close":"",title:"Sign out"},on:{click:e.signOut}})],1)],1)],1):e._e()],1),e._v(" "),e.signed_in?n("f7-views",{staticClass:"safe-areas",attrs:{tabs:""}},[n("f7-toolbar",{directives:[{name:"show",rawName:"v-show",value:e.show_tabbar,expression:"show_tabbar"}],attrs:{tabbar:"",labels:"",bottom:""}},[n("f7-link",{attrs:{"tab-link":"#view-home","tab-link-active":"","icon-ios":"f7:home_fil","icon-aurora":"f7:home_fil","icon-md":"material:favorite",text:"Friends"}}),e._v(" "),n("f7-link",{attrs:{"tab-link":"#view-members","icon-ios":"f7:people_round_fill","icon-aurora":"f7:people_round_fill","icon-md":"material:person",text:"Members"}}),e._v(" "),n("f7-link",{attrs:{"tab-link":"#view-match","icon-ios":"f7:persons_round_fill","icon-aurora":"f7:persons_round_fill","icon-md":"material:people",text:"Match"}})],1),e._v(" "),n("f7-view",{attrs:{id:"view-home",main:"",tab:"","tab-active":"",url:"/"}}),e._v(" "),n("f7-view",{attrs:{id:"view-members",name:"members",tab:"",url:"/members/"}}),e._v(" "),n("f7-view",{attrs:{id:"view-match",name:"match",tab:"",url:"/match/"}})],1):e._e(),e._v(" "),e.signed_in?e._e():n("f7-view",{attrs:{url:"/firstpage/",main:!0}}),e._v(" "),n("f7-popup",{attrs:{id:"my-popup"}},[n("f7-view",[n("f7-page",[n("f7-navbar",{attrs:{title:"Popup"}},[n("f7-nav-right",[n("f7-link",{attrs:{"popup-close":""}},[e._v("Close")])],1)],1),e._v(" "),n("f7-block",[n("p",[e._v("Popup content goes here.")])])],1)],1)],1),e._v(" "),n("f7-login-screen",{attrs:{id:"my-login-screen"}},[n("f7-view",[n("f7-page",{attrs:{"login-screen":""}},[n("f7-login-screen-title",[e._v("Login")]),e._v(" "),n("f7-list",{attrs:{form:""}},[n("f7-list-input",{attrs:{type:"text",name:"username",placeholder:"Your username",value:e.username},on:{input:function(t){e.username=t.target.value}}}),e._v(" "),n("f7-list-input",{attrs:{type:"password",name:"password",placeholder:"Your password",value:e.password},on:{input:function(t){e.password=t.target.value}}})],1),e._v(" "),n("f7-list",[n("f7-list-button",{attrs:{title:"Sign In","login-screen-close":""},on:{click:e.alertLoginData}}),e._v(" "),n("f7-block-footer",[e._v("\n Some text about login information.\n "),n("br"),e._v('Click "Sign In" to close Login Screen\n ')])],1)],1)],1)],1)],1)}),[],!1,null,"17f3f838",null).exports),eu=n(106),tu=n(21),nu=n.n(tu);function ru(){var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?n="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(t)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?n="Windows":/Android/.test(e)?n="Android":!n&&/Linux/.test(t)&&(n="Linux"),n}var iu,au={state:{user:[],upload_button:!1,app_db_version:null,app_version:null,signed_in:!1,signed_up:!1,valid_inputs:!0,show_resend_email:!1,photo_url:null,display_name:null,user_location:null,genderSearch:null,profile_message:null,total_message:null,pageStatus:!0},getters:{pageStatus:function(e){return e.pageStatus},user:function(e){return e.user},upload_button:function(e){return e.upload_button},genderSearch:function(e){return e.genderSearch},app_version:function(e){return e.app_version},app_db_version:function(e){return e.app_db_version},valid_inputs:function(e){return e.valid_inputs},signed_in:function(e){return e.signed_in},signed_up:function(e){return e.signed_up},show_resend_email:function(e){return e.show_resend_email},photo_url:function(e){return e.photo_url},display_name:function(e){return e.display_name},user_location:function(e){return e.user_location},profile_message:function(e){return e.profile_message},total_message:function(e){return e.total_message}},mutations:{setUser:function(e,t){e.user=t},setPageStatus:function(e,t){e.pageStatus=t},setUploadButton:function(e,t){e.upload_button=t},setGenderSearch:function(e,t){e.genderSearch=t},setAppVersion:function(e,t){e.app_version=t},setAppDbVersion:function(e,t){e.app_db_version=t},setValidInputs:function(e,t){e.valid_inputs=t},setSignedIn:function(e,t){e.signed_in=t},setSignedUp:function(e,t){e.signed_up=t},setShowResendEmail:function(e,t){e.show_resend_email=t},setPhotoURL:function(e,t){e.photo_url=t},setDisplayName:function(e,t){e.display_name=t},setUserLocation:function(e,t){e.user_location=t},setProfileMessage:function(e,t){e.profile_message=t},setTotalMessage:function(e,t){e.total_message=t}},actions:{checkConnection:function(e){return nu()(e),new Promise((function(e,t){var n=navigator.connection.type,r={};r[Connection.UNKNOWN]="Unknown connection",r[Connection.ETHERNET]="Ethernet connection",r[Connection.WIFI]="WiFi connection",r[Connection.CELL_2G]="Cell 2G connection",r[Connection.CELL_3G]="Cell 3G connection",r[Connection.CELL_4G]="Cell 4G connection",r[Connection.CELL]="Cell generic connection",r[Connection.NONE]="No network connection","No network connection"==r[n]?e("offline"):e("online")})).catch((function(e){reject(e)}))},getAppDbVersion:function(e){var t=e.commit;return new Promise((function(e,n){var r={domain:"penpalamerica.com"},i=r;Ja.request.post("https://chatme24.com/penpal/penpalgetappversion.php",i,(function(n){t("setAppDbVersion",n),e(n)}))}))},getAppVersion:function(e){var t=e.commit;"Android"==ru()&&t("setAppVersion","Android"),"iOS"==ru()&&t("setAppVersion","iOS")},resetVerifyInputs:function(e){(0,e.commit)("setValidInputs",!0)},verifyInputs:function(e,t){var n=e.commit;n("setValidInputs",!1),n("setAlertMessage",t)},rerouteuser:function(e){var t=e.commit;t("setSignedIn",!1),t("setAlertMessage","Please verify with your email"),t("setShowResendEmail",!0)},signInMySQL:function(e,t){return il()(nl.a.mark((function n(){var r,i,a;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,i=e.dispatch,a={email:t.email,password:t.password,domain:"penpalamerica.com"},Ja.request.post("https://chatme24.com/penpal/loginpenpal.php",a,function(){var e=il()(nl.a.mark((function e(t){var n,a;return nl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=JSON.parse(t),a={email:n[0].email,domain:"penpalamerica.com"},"0"!=n[0].response){e.next=9;break}return e.next=5,i("getUserPersonalDetails",a);case 5:e.sent,r("setAlertMessage","Welcome ".concat(n[0].name)),r("setSignedIn",!0),r("setShowResendEmail",!1);case 9:"1"==n[0].response&&(r("setAlertMessage","Check your email and verify your account."),r("setShowResendEmail",!0)),"2"==n[0].response&&r("setAlertMessage","User not found. Kindly create a new Account"),"3"==n[0].response&&r("setAlertMessage","Incorret login details. Please try again"),"4"==n[0].response&&r("setAlertMessage","Your Account has been banned. Contact Admin"),"5"==n[0].response&&r("setAlertMessage","This account was deleted by you. Contact support if you want it restored"),"-1"==n[0].response&&r("setAlertMessage","Database Error! Please try again or contact Admin");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){r("setAlertMessage","Network Issue. Please check your internet connection and try again")}));case 3:case"end":return n.stop()}}),n)})))()},getUserPersonalDetails:function(e,t){var n=e.commit;return new Promise((function(e,r){Ja.request.post("https://chatme24.com/penpal/userdetailspenpal.php",t,function(){var t=il()(nl.a.mark((function t(r){var i;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=JSON.parse(r),n("setUser",i),n("setUserDetails",i),e("0");case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}))},signIn:function(e,t){return il()(nl.a.mark((function n(){var r,i,a,o,s,l,c,u;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,i=e.dispatch,a="0",o="0",s="",n.next=6,Qs.a.auth().signInWithEmailAndPassword(t.email,t.password).then((function(e){console.log("check check");Qs.a.auth().onAuthStateChanged((function(e){if(null!=e)if(e.emailVerified){Ka.dialog.close(),r("setAlertMessage","Welcome ".concat(e.displayName)),r("setSignedIn",!0),r("setShowResendEmail",!1);var t=Qs.a.auth().currentUser.uid;Qs.a.database().ref("users/"+t).update({userStatus:"online"})}else Ka.dialog.close(),r("setSignedIn",!1),r("setAlertMessage","Please verify with your email"),r("setShowResendEmail",!0);else Ka.dialog.close()}))})).catch((function(e){o="1",s=e.message,console.log("Old user",s)}));case 6:if(console.log("continue",o),"1"!=o){n.next=24;break}return(l={}).email=t.email,l.password=t.password,n.next=13,i("checkUserExistsAmerica",l);case 13:if(!(null!=(c=n.sent)&&c.length>0)){n.next=23;break}return a="1",n.next=18,i("signUpOldUser",c);case 18:return u=n.sent,n.next=21,i("deleteOldAccount",u);case 21:n.next=24;break;case 23:r("setAlertMessage",s);case 24:return n.abrupt("return",a);case 25:case"end":return n.stop()}}),n)})))()},signUp:function(e,t){var n=e.commit,r=e.dispatch,i=t.country;i=(i=(i=(i=(i=i.replace(".","")).replace("#","")).replace("$","")).replace("[","")).replace("]",""),null!=t.email&&null!=t.password&&Qs.a.auth().createUserWithEmailAndPassword(t.email,t.password).then((function(e){Qs.a.database().ref("users").child(e.user.uid).set({uid:e.user.uid,country:i,name:t.name,email:t.email,gender:t.gender,phonenumber:t.phonenumber,location:t.location,profileMessage:t.profileMessage,birthDate:t.dateofbirth,emailverified:!1,photo_url:t.photoURL,userType:t.userType,userStatus:t.userStatus,lastSeen:t.lastSeen,userToken:t.userToken,dateCreated:t.lastSeen,payout:"0",photoUpload:t.photoUpload,pageSize:3,serviceExpiration:t.lastSeen}),e.user.updateProfile({displayName:t.name,photoURL:t.photoURL}).then((function(){r("sendVerification"),n("setSignedUp",!0)})).catch((function(e){n("setAlertMessage",e.message)}))})).catch((function(e){n("setAlertMessage",e.message)}))},signUpOldUser:function(e,t){var n=e.commit,r=e.dispatch;if(null!=t[0].email&&null!=t[0].password)return Qs.a.auth().createUserWithEmailAndPassword(t[0].email,t[0].password).then((function(e){Qs.a.database().ref("users").child(e.user.uid).set({uid:e.user.uid,photoUpload:t[0].photoUpload,country:t[0].country,name:t[0].name,email:t[0].email,gender:t[0].gender,phonenumber:t[0].phonenumber,location:t[0].location,profileMessage:t[0].profileMessage,birthDate:t[0].birthDate,emailverified:t[0].emailverified,photo_url:t[0].photo_url,userType:t[0].userType,userStatus:t[0].userStatus,lastSeen:t[0].lastSeen,userToken:t[0].userToken,dateCreated:t[0].lastSeen,payout:t[0].payout,pageSize:t[0].pageSize,serviceExpiration:t[0].serviceExpiration}),e.user.updateProfile({displayName:t[0].name,photoURL:t[0].photoURL}).then((function(){r("sendVerification"),n("setSignedUp",!0),console.log("updated profile",t[0].email)})).catch((function(e){console.log(e.message),n("setAlertMessage",e.message)}))})).catch((function(e){console.log(e.message),n("setAlertMessage",e.message)})),t[0].uid;console.log("parameters are null")},signOutPlus:function(e){var t=e.commit;t("setShowResendEmail",!0),t("setAlertMessage","Profile Picture uploaded successfully. Please login again to start chatting"),t("setSignedIn",!1)},signOut:function(e){var t=e.commit;t("setShowResendEmail",!0),t("setAlertMessage","You have been signed out"),t("setSignedIn",!1)},countryExist:function(e,t){return il()(nl.a.mark((function n(){var r,i;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,console.log("country Exists module"),i=(i=(i=(i=(i=(i=t).replace(".","")).replace("#","")).replace("$","")).replace("[","")).replace("]",""),n.next=10,r("checkUserExists2",i);case 10:"#"==n.sent&&Qs.a.database().ref("/appState").child(i).set({appStateValue:"0"}).catch((function(e){}));case 12:case"end":return n.stop()}}),n)})))()},sendVerification:function(e,t){var n=e.commit,r={email:t.email,domain:t.domain};Ja.request.post("https://chatme24.com/penpal/penpalsendVerification.php",r,(function(e){console.log(e),n("setAlertMessage","0"!=e?"1"==e?"We cannot find the email provide. No verification email sent.":"A verification email cannot be sent now":"A verification email has been sent to ".concat(t.email))}))}}},ou=n(290),su=n(50),lu=n.n(su),cu={state:{image_url:"https://penpalamerica.com/images/profilepicture.png",image_url1:"https://penpalamerica.com/images/profilepicture.png",image_url2:"https://penpalamerica.com/images/profilepicture.png",image_url3:"https://penpalamerica.com/images/profilepicture.png",image_url4:"https://penpalamerica.com/images/profilepicture.png",image_url5:"https://penpalamerica.com/images/profilepicture.png",image_url6:"https://penpalamerica.com/images/profilepicture.png",files:null,images:[],group_image_url:"https://penpalamerica.com/images/profilepicture.png",uploadFile:0},getters:{image_url:function(e){return e.image_url},image_url1:function(e){return e.image_url1},image_url2:function(e){return e.image_url2},image_url3:function(e){return e.image_url3},image_url4:function(e){return e.image_url4},image_url5:function(e){return e.image_url5},image_url6:function(e){return e.image_url6},files:function(e){return e.files},images:function(e){return e.images},group_image_url:function(e){return e.group_image_url},uploadFile:function(e){return e.uploadFile}},mutations:{setUploadFile:function(e,t){e.uploadFile=t},setImageURL:function(e,t){e.image_url=t},setImageURL1:function(e,t){e.image_url1=t},setImageURL2:function(e,t){e.image_url2=t},setImageURL3:function(e,t){e.image_url3=t},setImageURL4:function(e,t){e.image_url4=t},setImageURL5:function(e,t){e.image_url5=t},setImageURL6:function(e,t){e.image_url6=t},setGroupImageURL:function(e,t){e.group_image_url=t},setFiles:function(e,t){e.files=t},setImages:function(e,t){e.images=t}},actions:{readFileMessage:function(e){var t=e.commit,n=event.target.files;if(n[0].size>2097152)t("setAlertMessage","The File size is greater than 2MB. Kindly upload image less than 2MB");else for(var r=0;r<n.length;r++){var i=n[r];if(!i.type.match("image"))return void t("setAlertMessage","Invalid File Format. Upload Images only");var a=new FileReader,o=[];a.addEventListener("load",(function(e){var t=e.target;o.push(t.result)})),t("setFiles",n),t("setImages",o),a.readAsDataURL(i)}},readFile:function(e,t){var n=e.commit,r=event.target.files;n("setFiles",r);var i=new FileReader,a=r[0];a.size<=2097152?(i.readAsDataURL(a),i.addEventListener("load",(function(){var e=i.result;n(t,e)}))):n("setAlertMessage","The image size is greater than 2MB")},readFilePlus:function(e,t){var n=e.commit;return new Promise((function(e,r){var i=event.target.files;n("setFiles",i);var a=new FileReader,o=i[0];if(5!=t.url&&6!=t.url||"image/jpeg"!=o.type&&"image/png"!=o.type&&"image/pjpeg"!=o.type)if(1!=t.url&&2!=t.url&&3!=t.url&&4!=t.url||"video/mp4"!=o.type){if("image/jpeg"==o.type||"image/png"==o.type||"image/pjpeg"==o.type){if(!(o.size<=3145728))return void n("setAlertMessage","The image size is greater than 3MB");a.readAsDataURL(o),a.addEventListener("load",(function(){var e=a.result;n(t.action_name,e)}))}if("video/mp4"==o.type){if(!(o.size<=10485760))return void n("setAlertMessage","The video File is greater than 10MB");a.readAsDataURL(o),a.addEventListener("load",(function(){var e=a.result;n(t.action_name,e)}))}e(i)}else n("setAlertMessage","Only Image is allowed here");else n("setAlertMessage","Only Video is allowed here")}))},uploadFile:function(e,t){var n=e.commit,r=e.state;return console.log("file upload module",t),new Promise((function(e,i){var a=r.files[0],o=Qs.a.storage().ref(t+"/"+Object(ou.v4)()+".jpg").put(a);o.on("state_changed",(function(e){var t=e.bytesTransferred/e.totalBytes*100;n("setUploadFile",t)}),(function(e){i(e)}),(function(){o.snapshot.ref.getDownloadURL().then((function(t){e(t)}))}))}))},uploadImageMySQL:function(e,t){var n=this,r=e.commit;return new Promise((function(e,i){var a=new FormData;a.append("name","photo"),a.append("photo",t);lu.a.post("https://chatme24.com/penpalamerica/upload/php/upload.php",a,{header:{"Content-Type":"image/png","Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE"}}).then((function(t){var i=JSON.stringify(t),a=JSON.parse(i);n.updateResponse=a,console.log("Display2",t.data[0].message),r("setImages",t.data[0].message),e(t.data[0].message)}))}))},uploadImageMySQLAddPhoto:function(e,t){var n=this,r=e.commit;return new Promise((function(e,i){var a=new FormData;a.append("name","photo"),a.append("photo",t.files);var o="";lu.a.post("https://chatme24.com/penpalamerica/upload/php/upload.php",a,{header:{"Content-Type":"image/png","Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE"}}).then((function(i){var a=JSON.stringify(i),s=JSON.parse(a);n.updateResponse=s,o=i.data[0].errorNo;var l=i.data[0].message;if("0"==o){var c={url:t.url,url_details:l,domain:t.domain,email:t.email},u="setImageURL"+t.url;console.log("action_name2",u),Ja.request.post("https://chatme24.com/penpal/uploadaddphoto.php",c,(function(e){if("0"==e)return r(u,l),void r("setAlertMessage","Photo Uploaded Successfully")}))}e("done")}))}))},uploadImageMySQLPlus:function(e,t){e.commit;return new Promise((function(e,n){var r=new FormData;r.append("name","photo"),r.append("photo",t.photo),r.append("email",t.email),r.append("domain",t.domain);lu.a.post("https://chatme24.com/penpal/uploadplus.php",r,{header:{"Content-Type":"image/png","Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE"}}).then((function(t){console.log("image upload response > ",t),"0"==t.data?e("0"):e("1")}))}))},uploadImageMySQLChat:function(e,t){var n=this,r=e.commit;return new Promise((function(e,i){var a=new FormData;a.append("name","photo"),a.append("photo",t);lu.a.post("https://chatme24.com/penpalamerica/upload/php/uploadchat.php",a,{header:{"Content-Type":"image/png","Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE"}}).then((function(t){var i=JSON.stringify(t),a=JSON.parse(i);n.updateResponse=a,console.log("Display2",t.data[0].message),r("setImages",t.data[0].message),e(t.data[0].message)}))}))},uploadChatImages:function(e,t){e.commit;return new Promise((function(e,n){var r=Math.random().toString(36).substr(2,9);console.log("file upload images",t);var i=Qs.a.storage().ref("chat_images/"+"".concat(r,".png")).putString(t,"data_url",{contentType:"image/png"});i.on("state_changed",(function(e){var t=e.bytesTransferred/e.totalBytes*100;console.log("Upload is "+t+"% done")}),(function(e){n(e)}),(function(){i.snapshot.ref.getDownloadURL().then((function(t){e(t)}))}))}))}}},uu=Qs.a.database().ref("/requests"),du=Qs.a.database().ref("/friends"),hu=Qs.a.database().ref("/chats"),fu=Qs.a.database().ref("/users"),pu=Qs.a.database().ref("/groups"),mu=Qs.a.database().ref("/messageCount"),vu=(Qs.a.database().ref("/typingMessage"),Qs.a.database().ref("/blockfriends")),gu=Qs.a.database().ref("/reportfriends"),yu=Qs.a.database().ref("/userNotifications"),bu=Qs.a.database().ref("/postMessages");n(446);function _u(e,t){Ja.request.post("https://chatme24.com/penpal/migrationpenpal.php",e,function(){var e=il()(nl.a.mark((function e(n){return nl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("0"!=n){e.next=3;break}return e.next=3,Qs.a.database().ref("users").child(t).update({migrated2:!0});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}var wu={state:{delete_photo2:!1,delete_photo3:!1,delete_photo4:!1,delete_photo5:!1,delete_photo6:!1,advert_default:null,photoStatus:!1,chatOpen:!1,appUpdate:!1,updatePreloader:0,searchResult:0,top_page:!1,bottom_page:!0,back_page:!1,forward_page:!0,db_reference:null,db_cursor:null,onesignal_playerID:null,sent_by:null,received_by:null,subscribe_affiliate_friend:!1,reference:null,contacts:[],search_contacts:[],friends:[],friendsMatch:[],friend_requests:[],message_count:[],chat_messages:[],typing_message:0,friend_status:0,block_by_friend:0,members:[],user_details:[]},getters:{delete_photo2:function(e){return e.delete_photo2},delete_photo3:function(e){return e.delete_photo3},delete_photo4:function(e){return e.delete_photo4},delete_photo5:function(e){return e.delete_photo5},delete_photo6:function(e){return e.delete_photo6},advert_default:function(e){return e.advert_default},photoStatus:function(e){return e.photoStatus},chatOpen:function(e){return e.chatOpen},friendsMatch:function(e){return e.friendsMatch},updatePreloader:function(e){return e.updatePreloader},appUpdate:function(e){return e.appUpdate},searchResult:function(e){return e.searchResult},top_page:function(e){return e.top_page},bottom_page:function(e){return e.bottom_page},back_page:function(e){return e.back_page},forward_page:function(e){return e.forward_page},db_reference:function(e){return e.db_reference},db_cursor:function(e){return e.db_cursor},onesignal_playerID:function(e){return e.onesignal_playerID},sent_by:function(e){return e.sent_by},received_by:function(e){return e.received_by},subscribe_affiliate_friend:function(e){return e.subscribe_affiliate_friend},reference:function(e){return e.reference},contacts:function(e){return e.contacts},search_contacts:function(e){return e.search_contacts},friends:function(e){return e.friends},members:function(e){return e.members},friend_requests:function(e){return e.friend_requests},message_count:function(e){return e.message_count},chat_messages:function(e){return e.chat_messages},typing_message:function(e){return e.typing_message},friend_status:function(e){return e.friend_status},block_by_friend:function(e){return e.block_by_friend},user_details:function(e){return e.user_details}},mutations:{setDeletePhoto2:function(e,t){e.delete_photo2=t},setDeletePhoto3:function(e,t){e.delete_photo3=t},setDeletePhoto4:function(e,t){e.delete_photo4=t},setDeletePhoto5:function(e,t){e.delete_photo5=t},setDeletePhoto6:function(e,t){e.delete_photo6=t},setAdvertDefault:function(e,t){e.advert_default=t},setReceivedBy:function(e,t){e.received_by=t},setPhotoStatus:function(e,t){e.photoStatus=t},setChatOpen:function(e,t){e.chatOpen=t},setFriendsMatch:function(e,t){e.friendsMatch=t},setAppUpdate:function(e,t){e.appUpdate=t},setSearchResult:function(e,t){e.searchResult=t},setUpdatePreloader:function(e,t){e.updatePreloader=t},setTopPage:function(e,t){e.top_page=t},setBottomPage:function(e,t){e.bottom_page=t},setBackPage:function(e,t){e.back_page=t},setForwardPage:function(e,t){e.forward_page=t},setDbReference:function(e,t){e.db_reference=t},setDbCursor:function(e,t){e.db_cursor=t},setOnesignalPlayerID:function(e,t){e.onesignal_playerID=t},setSentBy:function(e,t){e.sent_by=t},setSubscribeAffiliateFriend:function(e,t){e.subscribe_affiliate_friend=t},setReference:function(e,t){e.reference=t},setSearchContacts:function(e,t){e.search_contacts=t},setContacts:function(e,t){e.contacts=t},setFriends:function(e,t){e.friends=t},setMembers:function(e,t){e.members=t},setFriendRequests:function(e,t){e.friend_requests=t},setMessageCount:function(e,t){e.message_count=t},setChatMessages:function(e,t){e.chat_messages=t},setTypingMessage:function(e,t){e.typing_message=t},setFriendStatus:function(e,t){e.friend_status=t},setBlockByFriend:function(e,t){e.block_by_friend=t},setUserDetails:function(e,t){e.user_details=t}},actions:(iu={getAdvertDefault:function(e){var t=e.commit;return new Promise((function(e,n){var r={domain:"penpalamerica.com"},i=r;Ja.request.post("https://chatme24.com/penpal/penpaladverts.php",i,(function(n){var r=JSON.parse(n);t("setAdvertDefault",r),e(n)}))}))},getAdvertCountry:function(e){return il()(nl.a.mark((function t(){var n;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.commit,e.dispatch,n("setAdvertCountry",myAdverts);case 2:case"end":return t.stop()}}),t)})))()},unMatchUser:function(e,t){return nu()(e),new Promise((function(e,n){var r=t;Ja.request.post("https://chatme24.com/penpal/penpalunmatch.php",r,(function(t){e(t)}))}))},sendEmailNotificationLike:function(e,t){return nu()(e),new Promise((function(e,n){var r=t;Ja.request.post("https://chatme24.com/penpal/penpalemailnotificationlike.php",r,(function(t){e(t)}))}))},sendEmailNotificationMatch:function(e,t){return nu()(e),new Promise((function(e,n){var r=t;Ja.request.post("https://chatme24.com/penpal/penpalemailnotificationmatch.php",r,(function(t){e(t)}))}))},sendEmailNotification:function(e,t){return nu()(e),new Promise((function(e,n){var r=t;Ja.request.post("https://chatme24.com/penpal/penpalemailnotification.php",r,(function(t){e(t)}))}))},resetPassword:function(e,t){return nu()(e),new Promise((function(e,n){var r={email:t.email,domain:t.domain};Ja.request.post("https://chatme24.com/penpal/penpalsendpasswordreset.php",r,(function(t){e(t)}))}))},sendOneSignalToken:function(e,t){return il()(nl.a.mark((function n(){var r;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:nu()(e),r={playerID:t.playerID,pushToken:t.pushToken,email:t.email,domain:t.domain},Ja.request.post("https://chatme24.com/penpal/penpalonesignal.php",r,(function(e){}));case 3:case"end":return n.stop()}}),n)})))()},getUserNotifications:function(e,t){return il()(nl.a.mark((function n(){var r,i;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,i={domain:t.domain},Ja.request.post("https://chatme24.com/penpal/penpalnotifications.php",i,(function(e){var t=JSON.parse(e);r("setUserNotifications",t)}));case 3:case"end":return n.stop()}}),n)})))()},updateUserProfile:function(e,t){e.commit;return new Promise((function(e,n){var r={name:t.name,profileMessage:t.profileMessage,location:t.location,email:t.email,domain:t.domain,photo_url1:t.photo_url1};Ja.request.post("https://chatme24.com/penpal/penpalupdateuserprofile.php",r,(function(t){e(t)}))}))},updateUserStatus:function(e,t){e.commit;var n={email:t.email,domain:t.domain};Ja.request.post("https://chatme24.com/penpal/penpalupdateuserstatus.php",n,(function(e){JSON.parse(e)}))},getFriendList:function(e,t){var n=e.commit,r={email:t.email,domain:t.domain};Ja.request.post("https://chatme24.com/penpal/penpalfriends.php",r,(function(e){var t=JSON.parse(e);n("setFriends",t)}))},getFriendMatch:function(e,t){var n=e.commit,r={email:t.email,domain:t.domain};Ja.request.post("https://chatme24.com/penpal/penpalmatchtable.php",r,function(){var e=il()(nl.a.mark((function e(t){var r;return nl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=JSON.parse(t),e.next=3,n("setFriendsMatch",r);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},deleteOldAccount:function(e,t){e.commit},checkUserExistsAmerica:function(e,t){return il()(nl.a.mark((function n(){var r,i;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.dispatch,r=[],i=new Promise((function(e,n){Qs.a.database().ref("users").orderByValue().on("value",(function(n){var i=n.val();for(var a in i)if(i[a].email===t.email){var o={};i[a].photo.includes("https://firebasestorage.googleapis.com/v0/b/penpalamerica.appspot.com/o/image_profile")?o.photoUpload=!0:o.photoUpload=!1,o.uid=i[a].uid,o.password=t.password,o.country=i[a].country,o.name=i[a].name,o.email=i[a].email,o.gender=i[a].gender,o.phonenumber=i[a].phonenumber,o.location=i[a].location,o.profileMessage=i[a].profileMessage,o.birthDate=i[a].birthDate,o.emailverified=!1,o.photo_url=i[a].photo,o.userType=i[a].userType,o.userStatus=i[a].userStatus,o.lastSeen=i[a].lastSeen,o.userToken=i[a].userToken,o.dateCreated=i[a].lastSeen,o.payout="0",o.pageSize=3,o.serviceExpiration=i[a].serviceExpiration,r.push(o);break}e(r)}))})),n.abrupt("return",i);case 4:case"end":return n.stop()}}),n)})))()},sendLatestMessage:function(e,t){return il()(nl.a.mark((function n(){var r,i,a,o,s,l;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,i=Qs.a.auth().currentUser.uid,a=t.userkey,o=t.friend.uid,t.friend.frd_key,s="",n.next=8,r("getUserMessageCount",t);case 8:if(null!=(l=n.sent)?isNaN(l)?l=0:l++:l=0,s=null!=t.img?"photo":t.msg,n.prev=11,null==s||null==o){n.next=15;break}return n.next=15,du.child(o).child(a).update({message_count:l,latest_message:s,uid:i});case 15:n.next=19;break;case 17:n.prev=17,n.t0=n.catch(11);case 19:case"end":return n.stop()}}),n,null,[[11,17]])})))()},getOnesignalPlayerIDPlus:function(e,t){e.commit;return new Promise((function(e,n){var r={email:t.email,domain:t.domain};Ja.request.post("https://chatme24.com/penpal/penpalgetonesignal.php",r,(function(t){e("0"!=t?t:null)}))}))},getOnesignalPlayerID:function(e,t){var n=e.commit,r={email:t.email,domain:t.domain};Ja.request.post("https://chatme24.com/penpal/penpalgetonesignal.php",r,(function(e){n("setOnesignalPlayerID","0"!=e?e:null)}))},getFriendAffiliate:function(e,t){var n=e.commit,r=t;Qs.a.database().ref("pay4me").child(r).once("value",(function(e){null!=e.val()&&null!=e.val()?n("setSubscribeAffiliateFriend",!0):n("setSubscribeAffiliateFriend",!1)}))},updateReadMessage:function(e,t){e.dispatch;var n=Qs.a.auth().currentUser.uid,r=(t.userkey,t.uid);t.frd_key,Qs.a.auth().currentUser;hu.child(r).child(n).on("value",(function(e){var t=e.val();_.forEach(t,(function(e,t){try{hu.child(r).child(n).child(t).update({read:"2"})}catch(e){console.log(e)}}))}))},resetMessageCount:function(e,t){return il()(nl.a.mark((function n(){var r;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:nu()(e),r={email_u:t.email_u,email_f:t.email_f,domain:t.domain},Ja.request.post("https://chatme24.com/penpal/penpaltotalmessagesupdate.php",r,function(){var e=il()(nl.a.mark((function e(t){return nl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("data resetmessage",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return n.stop()}}),n)})))()},getUserMessageCount:function(e,t){return nu()(e),new Promise((function(e,n){var r=t.friend.uid,i=t.userkey;du.child(r).child(i).once("value",(function(t){t.val()?e(t.val().message_count):e("0")})).catch((function(e){n(e)}))}))},confirmFriendRequest:function(e,t){e.dispatch;try{du.child(Qs.a.auth().currentUser.uid).push({uid:t.friend.uid,message_count:"0",latest_message:" "}),du.child(t.friend.uid).push({message_count:"0",latest_message:" ",uid:Qs.a.auth().currentUser.uid})}catch(e){reject(err)}return"010220"},createFriendTables:function(e,t){e.dispatch;try{var n=du.child(Qs.a.auth().currentUser.uid).push().key;du.child(Qs.a.auth().currentUser.uid).child(n).update({uid:t.friend.uid,message_count:"0",latest_message:" "}),du.child(t.friend.uid).child(n).update({message_count:"0",latest_message:" ",uid:Qs.a.auth().currentUser.uid})}catch(e){console.log(e)}return n},sendDownTypingMessage:function(e,t){return il()(nl.a.mark((function n(){var r;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:nu()(e),r={email_u:t.email_u,email_f:t.email_f,type:"1",domain:t.domain},Ja.request.post("https://chatme24.com/penpal/penpaltyping.php",r,function(){var e=il()(nl.a.mark((function e(t){return nl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return n.stop()}}),n)})))()},sendUpTypingMessage:function(e,t){return il()(nl.a.mark((function n(){var r;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:nu()(e),r={email_u:t.email_u,email_f:t.email_f,type:"0",domain:t.domain},Ja.request.post("https://chatme24.com/penpal/penpaltyping.php",r,function(){var e=il()(nl.a.mark((function e(t){return nl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return n.stop()}}),n)})))()},getTypingMessages:function(e,t){var n=e.commit;if(null!=t.email_u&&null!=t.email_f){var r={email_u:t.email_u,email_f:t.email_f,domain:t.domain};Ja.request.post("https://chatme24.com/penpal/penpaltypingcommit.php",r,function(){var e=il()(nl.a.mark((function e(r){return nl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"1"==r&&(n("setSentBy",t.email_u),n("setReceivedBy",t.email_f),n("setTypingMessage","1")),"2"==r&&(n("setSentBy",t.email_f),n("setReceivedBy",t.email_u),n("setTypingMessage","1")),"3"==r&&(n("setSentBy",t.email_u),n("setReceivedBy",t.email_f),n("setSentBy",t.email_f),n("setReceivedBy",t.email_u),n("setTypingMessage","1")),"0"==r&&n("setTypingMessage","0");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}},getUserKey:function(e,t){return nu()(e),new Promise((function(e,n){var r=t.friend.uid;du.child(r).orderByChild("uid").equalTo(Qs.a.auth().currentUser.uid).once("value",(function(t){var n;for(var r in t.val())n=r;e(n)})).catch((function(e){n(e)}))}))},getUserMessageCount2:function(e,t){return nu()(e),new Promise((function(e,n){var r=t.friend.uid,i=t.friend.userKey;mu.child(r).child(i).orderByChild("uid").equalTo(Qs.a.auth().currentUser.uid).on("value",(function(t){e(t.message_count)})).catch((function(e){n(e)}))}))},getChatMessages:function(e,t){return il()(nl.a.mark((function n(){var r,i;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.dispatch,r=e.commit,i={email_u:t.email_u,email_f:t.email_f,domain:t.domain},Ja.request.post("https://chatme24.com/penpal/penpalgetmessages.php",i,(function(e){var n=JSON.parse(e);_.forEach(n,(function(e){e.type=e.sentby==t.email_u?"sent":"received",e.name=e.sentby==t.email_u?e.myName:e.myFriendName,e.date=vl()(e.datecreated).format("MMMM Do dddd"),e.smalldate=vl()(e.datecreated).format("LTS"),e.sentby==t.email_u?e.status="1":e.status="0"}));var i=_.groupBy(n,"date");r("setChatMessages",i),r("setSentBy",rs.email_u)}));case 3:case"end":return n.stop()}}),n)})))()},getTotalMessage:function(e,t){var n=e.commit;console.log("Totatmessages",t.email);var r={email:t.email,domain:t.domain};Ja.request.post("https://chatme24.com/penpal/penpaltotalmessages.php",r,function(){var e=il()(nl.a.mark((function e(t){return nl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n("setTotalMessage",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},confirmRequest:function(e,t){var n=e.dispatch;return new Promise((function(e,r){du.child(Qs.a.auth().currentUser.uid).push({uid:t.uid}).then((function(){du.child(t.uid).push({uid:Qs.a.auth().currentUser.uid})})).then((function(){n("deleteRequest",t).then((function(){e(!0)}))})).catch((function(e){r(e)}))}))},deleteRequest:function(e,t){return nu()(e),new Promise((function(e,n){uu.child(Qs.a.auth().currentUser.uid).orderByChild("sender").equalTo(t.uid).once("value",(function(t){var r;for(var i in t.val())r=i;uu.child(Qs.a.auth().currentUser.uid).child(r).remove().then((function(){e(!0)})).catch((function(e){n(e)}))})).catch((function(e){n(e)}))}))},getMyRequests:function(e){return il()(nl.a.mark((function t(){var n,r,i;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,r("getAllUsers");case 3:i=t.sent,uu.child(Qs.a.auth().currentUser.uid).on("value",(function(e){var t=_.map(e.val(),"sender"),r=[];_.forEach(t,(function(e){var t=_.find(i,["uid",e]);r.push(t)})),n("setFriendRequests",r)}));case 5:case"end":return t.stop()}}),t)})))()},getUserDetails:function(e){var t=e.commit;Qs.a.database().ref("users").child(Qs.a.auth().currentUser.uid).on("value",(function(e){t("setUserDetails",e.val())}))},getMyFriends:function(e,t){return il()(nl.a.mark((function t(){var n,r,i;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,r("getAllUsers");case 3:i=t.sent,du.child(Qs.a.auth().currentUser.uid).on("value",(function(e){var t=e.val(),r=[];_.forEach(t,(function(e,t){var n=_.find(i,["uid",e.uid]);try{null!=n&&null!=n?null!=e.latest_message&&(n.latest_message=e.latest_message,n.message_count=e.message_count):null!=n&&null!=n&&(n.latest_message="",n.message_count=""),null!=n&&null!=n&&(n.frd_key=t,r.push(n))}catch(e){}})),n("setFriends",r)}));case 5:case"end":return t.stop()}}),t)})))()},getMyFriendsAI:function(e){return il()(nl.a.mark((function t(){var n;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.commit,du.child(Qs.a.auth().currentUser.uid).on("value",(function(e){if(null!=e.val()){var t=e.val(),r=[];_.forEach(t,(function(e,t){null==e&&null==e||fu.child(e.uid).orderByChild("uid").once("value",(function(n){if(e.uid!=Qs.a.auth().currentUser.uid){var i=n.val();null!=i&&null!=i&&(null!=e.latest_message?(i.latest_message=e.latest_message,i.message_count=e.message_count):null!=i&&null!=i&&(i.latest_message="",i.message_count="")),i.frd_key=t,r.push(i)}})).catch((function(e){reject(e)}))})),n("setFriends",r)}}));case 2:case"end":return t.stop()}}),t)})))()},sendMessage:function(e,t){return il()(nl.a.mark((function n(){var r,i,a;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,i=e.dispatch,a={email_f:t.email_f,message:t.msg,image_url:t.img,email_u:t.email_u,domain:t.domain,sentby:t.sentby},Ja.request.post("https://chatme24.com/penpal/penpalchatmessages.php",a,function(){var e=il()(nl.a.mark((function e(n){return nl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:JSON.parse(n),i("getChatMessages",t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){r("setAlertMessage","Network Issue. Please check your internet connection and try again")}));case 3:case"end":return n.stop()}}),n)})))()},sendNotification:function(e,t){nu()(e);var r=t.onesignal_playerID,i={app_id:"1bdd80c5-cabb-4296-9e59-ef5fa8638eed",contents:{en:t.message},include_player_ids:[r]},a={host:"onesignal.com",port:443,path:"/api/v1/notifications",method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"}},o=n(447).request(a,(function(e){e.on("data",(function(e){}))}));o.on("error",(function(e){console.log(e)})),o.write(JSON.stringify(i)),o.end()},getMyFriendsList:function(e,t){return nu()(e),new Promise((function(e,n){var r=t.friend.uid;du.child(r).orderByChild("uid").equalTo(Qs.a.auth().currentUser.uid).once("value",(function(t){var n=null;for(var r in t.val())n=r;e(n)})).catch((function(e){n(e)}))}))},checkUserExists2:function(e,t){return nu()(e),new Promise((function(e,n){Qs.a.database().ref("appState").child(t).on("value",(function(t){null!=t.val()&&null!=t.val()?e("OK"):e("#")}))}))},checkUserExists:function(e,t){return nu()(e),new Promise((function(e,n){Qs.a.database().ref("users").orderByValue().on("value",(function(n){var r=n.val(),i=[];_.forEach(r,(function(e){e.country==t&&i.push(e)})),e(i)}))}))},getAllUsers:function(e){return il()(nl.a.mark((function t(){var n,r;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,e.dispatch,[],r=new Promise((function(e,t){Qs.a.database().ref("users").orderByValue().on("value",(function(t){var r=t.val(),i=[];_.forEach(r,(function(e){Qs.a.auth().currentUser.uid!==e.uid&&i.push(e)})),n("setContacts",i),e(i)}))})),t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})))()},mergeMessages:function(e,t){return nu()(e),new Promise((function(e,n){var r=Qs.a.auth().currentUser;hu.child(r.uid).child(t.uid).on("value",(function(t){e(t.val())}))}))},mergeMessagesFriend:function(e,t){return nu()(e),new Promise((function(e,n){var r=Qs.a.auth().currentUser;hu.child(t.uid).child(r.uid).on("value",(function(t){e(t.val())}))}))},getMessageCount:function(e){e.commit;return new Promise((function(e,t){Qs.a.database().ref("users").child(Qs.a.auth().currentUser.uid).once("value",(function(t){e(t.val().country)}))}))},checkUserInFriendList:function(e,t){var n=e.commit,r=Qs.a.auth().currentUser.uid;if(null!=t.frd_key){var i=t.frd_key;return new Promise((function(e,t){du.child(r).child(i).once("value",(function(t){t.val()&&e(t.val().message_count)})).catch((function(e){t(e)}))}))}n("setAlertMessage","User not in your friend list")},blockUser:function(e,t){return il()(nl.a.mark((function n(){var r,i,a,o;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,i=e.dispatch,n.next=3,i("checkUserInFriendList",t);case 3:if(null!=n.sent){n.next=8;break}r("setAlertMessage","User not in your friend list"),n.next=13;break;case 8:return a=Qs.a.auth().currentUser.uid,o=t.uid,n.next=12,vu.child(a).child(o).update({flag:"1"});case 12:r("setAlertMessage","User has been blocked");case 13:case"end":return n.stop()}}),n)})))()},unBlockUser:function(e,t){return il()(nl.a.mark((function n(){var r,i,a,o;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,i=e.dispatch,n.next=3,i("checkUserInFriendList",t);case 3:if(null!=n.sent){n.next=8;break}r("setAlertMessage","User not in your friend list"),n.next=14;break;case 8:return a=Qs.a.auth().currentUser.uid,o=t.uid,t.frd_key,n.next=13,vu.child(a).child(o).update({flag:"0"});case 13:r("setAlertMessage","User has been unblocked");case 14:case"end":return n.stop()}}),n)})))()},checkUserBlocked:function(e,t){return il()(nl.a.mark((function n(){var r,i,a,o;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,null!=t.frd_key){n.next=5;break}return"0",r("setFriendStatus","0"),n.abrupt("return","0");case 5:return i=Qs.a.auth().currentUser.uid,a=t.uid,o=new Promise((function(e,t){vu.child(i).child(a).once("value",(function(t){t.val()&&r("setFriendStatus",t.val().flag),e(t.val())})).catch((function(e){t(e)}))})),n.abrupt("return",o);case 9:case"end":return n.stop()}}),n)})))()},userMigration:function(e){return il()(nl.a.mark((function t(){var n,r;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.commit,e.dispatch,n=0,r=new Promise((function(e,t){Qs.a.database().ref("users").orderByValue().on("value",(function(t){var r=t.val(),i="F";_.forEach(r,(function(e,t){if(null==e.migrated2){n++,i="M"==e.gender?"F":"M";var r,a=(r=new Date(e.dateCreated)).getFullYear()+"/"+(r.getMonth()+1)+"/"+r.getDate()+" "+r.getHours()+":"+r.getMinutes()+":"+r.getSeconds(),o=(r=new Date(e.lastSeen)).getFullYear()+"/"+(r.getMonth()+1)+"/"+r.getDate()+" "+r.getHours()+":"+r.getMinutes()+":"+r.getSeconds(),s={birthDate:e.birthDate,country:e.country,dateCreated:a,email:e.email,emailverified:e.emailverified,gender:e.gender,genderSearch:i,lastSeen:o,location:e.location,name:e.name,phonenumber:e.phonenumber,photoUpload:e.photoUpload,photo_url1:e.photo_url,profileMessage:e.profileMessage,userToken:e.userToken,userType:e.userType,domain:"penpalamerica.com"};setTimeout(_u(s,t),5e3),n++}})),e(n)}))})),t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})))()},checkBlockByFriend:function(e,t){return il()(nl.a.mark((function n(){var r,i,a,o;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,null!=t.frd_key){n.next=5;break}return"0",r("setBlockByFriend","0"),n.abrupt("return","0");case 5:return i=Qs.a.auth().currentUser.uid,a=t.uid,o=new Promise((function(e,t){vu.child(a).child(i).once("value",(function(t){t.val()&&r("setBlockByFriend",t.val().flag),e(t.val())})).catch((function(e){t(e)}))})),n.abrupt("return",o);case 9:case"end":return n.stop()}}),n)})))()},getAllUsersMigration:function(e){return il()(nl.a.mark((function t(){var n,r;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.commit,e.dispatch,[],0,r=new Promise((function(e,t){Qs.a.database().ref("users").orderByValue().on("value",(function(t){var r=t.val(),i=0;_.forEach(r,(function(e,t){if(null==e.birthDate&&(n=null!=e.age?vl()().subtract(e.age,"years").format("YYYY-MM-DD"):vl()().subtract(20,"years").format("YYYY-MM-DD"),Qs.a.database().ref("users").child(t).update({name:e.userName,uid:t,phonenumber:e.phone,birthDate:n,emailverified:!1,photo_url:e.photo,userType:"1",userStatus:"offline",lastSeen:Qs.a.database.ServerValue.TIMESTAMP,userToken:"web",dateCreated:Qs.a.database.ServerValue.TIMESTAMP,payout:"0",photoUpload:!1,pageSize:3,serviceExpiration:Qs.a.database.ServerValue.TIMESTAMP}),++i>100))return!1})),e(i)}))})),t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})))()},reportUserToAdmin:function(e,t){return il()(nl.a.mark((function n(){var r,i,a,o,s;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,i=e.dispatch,n.next=3,i("checkUserInFriendList",t);case 3:if(null!=n.sent){n.next=8;break}r("setAlertMessage","User not in your friend list"),n.next=14;break;case 8:return a=Qs.a.auth().currentUser.uid,o=t.uid,s=t.report_id,n.next=13,gu.child(a).child(o).update({report_flag:s});case 13:r("setAlertMessage","Your report has been submitted and will be reviewed by Admin");case 14:case"end":return n.stop()}}),n)})))()},editLocation:function(e,t){return il()(nl.a.mark((function n(){var r,i;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,!(t.location.length<2)){n.next=4;break}return r("setAlertMessage","Your Location is too short"),n.abrupt("return");case 4:if(!(t.location.length>50)){n.next=7;break}return r("setAlertMessage","Your Location is too long"),n.abrupt("return");case 7:i={location:t.location,domain:t.domain,email:t.email},Ja.request.post("https://chatme24.com/penpal/penpalupdateuserlocation.php",i,(function(e){console.log("location data",e),"0"==e?(r("setUserLocation",t.location),r("setAlertMessage","Your location has been updated.")):r("setAlertMessage","Sorry, Your location cannot be updated now")}));case 9:case"end":return n.stop()}}),n)})))()},editgenderSearch:function(e,t){return il()(nl.a.mark((function n(){var r,i;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,i={genderSearch:t.genderSearch,domain:t.domain,email:t.email},Ja.request.post("https://chatme24.com/penpal/penpalupdateusergendersearch.php",i,(function(e){"0"==e?(r("setGenderSearch",t.genderSearch),r("setAlertMessage","Your genderSearch has been updated.")):r("setAlertMessage","Sorry, Your genderSearch cannot be changed now")}));case 3:case"end":return n.stop()}}),n)})))()},editProfileMessage:function(e,t){return il()(nl.a.mark((function n(){var r,i;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,!(t.profileMessage.length<10)){n.next=4;break}return r("setAlertMessage","profile message is too short"),n.abrupt("return");case 4:if(!(t.profileMessage.length>200)){n.next=7;break}return self.$store.commit("setAlertMessage","profile message is too long"),n.abrupt("return");case 7:i={profileMessage:t.profileMessage,domain:t.domain,email:t.email},Ja.request.post("https://chatme24.com/penpal/penpalupdateuserprofilemessage.php",i,(function(e){"0"==e?(r("setProfileMessage",t.profileMessage),r("setAlertMessage","Your new Profile message has been updated.")):r("setAlertMessage","Sorry, Your new Profile Message cannot be changed now")}));case 9:case"end":return n.stop()}}),n)})))()},getReference:function(e,t){var n=e.commit,r="";"100000"==t&&(r="1"),"300000"==t&&(r="3"),"500000"==t&&(r="5");for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=0;a<10;a++)r+=i.charAt(Math.floor(Math.random()*i.length));n("setReference",r)},deleteAccount:function(e,t){return il()(nl.a.mark((function n(){var r,i;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,i={domain:t.domain,email:t.email},Ja.request.post("https://chatme24.com/penpal/penpaldeleteuseraccount.php",i,(function(e){"0"==e?(r("setAlertMessage","Your Account has been deleted"),r("setShowResendEmail",!1),r("setSignedIn",!1)):r("setAlertMessage","Your Account cannot be deleted now, please try again")}));case 3:case"end":return n.stop()}}),n)})))()},deleteMessage:function(e,t){return il()(nl.a.mark((function n(){var r,i;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,i={message_id:t.message_id,domain:t.domain,email_u:t.email_u,email_f:t.email_f},Ja.request.post("https://chatme24.com/penpal/penpaldeleteusermessage.php",i,(function(e){console.log("location data",e),r("setAlertMessage","0"==e?"The message has been deleted":"The message could not be deleted now, please try again")}));case 3:case"end":return n.stop()}}),n)})))()},deletePhoto:function(e,t){return il()(nl.a.mark((function n(){var r,i;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,"https://penpalamerica.com/images/profilepicture.png",i={url:t.url,domain:t.domain,email:t.email},Ja.request.post("https://chatme24.com/penpal/penpaldeleteuserphotos.php",i,(function(e){var n="setDeletePhoto"+t.url,i="setImageURL"+t.url;"0"==e?(r("setAlertMessage","Your Photo has been deleted"),r(n,!1),r(i,"https://penpalamerica.com/images/profilepicture.png")):r("setAlertMessage","Your Photo cannot be deleted now, please try again")}));case 4:case"end":return n.stop()}}),n)})))()},addModerator:function(e,t){var n=e.commit;Qs.a.database().ref("users/"+t).update({userType:"2"}),Qs.a.database().ref("userProfile/"+t).update({userType:"2"}),n("setAlertMessage","User Account has been changed to Moderator")},removeModerator:function(e,t){var n=e.commit;Qs.a.database().ref("users/"+t).update({userType:"1"}),Qs.a.database().ref("userProfile/"+t).update({userType:"1"}),n("setAlertMessage","Moderator Profile has been removed from your Account")},getAllUsersNew:function(e){return il()(nl.a.mark((function t(){var n,r,i,a,o,s;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,i=Qs.a.database().ref("/users"),n("setDbReference",i),a=Qs.a.auth().currentUser.uid,t.next=6,r("getUserPageSize");case 6:return o=t.sent,s=new Promise((function(e,t){(i=(i=i.orderByKey()).limitToFirst(o+1)).once("value").then((function(t){var r=[],i={};t.forEach((function(e){r.push(e.key),r.length!=o+1?e.key!=a&&(i[e.key]=e.val()):n("setDbCursor",e.key)})),n("setContacts",i),e(i)}))})),t.abrupt("return",s);case 9:case"end":return t.stop()}}),t)})))()},getAllUsersForward:function(e,t){return il()(nl.a.mark((function n(){var r,i,a,o,s,l;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,i=e.dispatch,a=t.dbReference,o=t.cursor,s=t.uid,l=t.pageSize,(a=(a=(a=a.orderByKey()).limitToFirst(l+1)).startAt(o)).once("value").then((function(e){var t,n=[],o={};if(!Object.keys(e.val()).length)return(t={}).ref=a,t.pageSize=l,t.uid=s,void i("gotoBottomPage",t);if(Object.keys(e.val()).length<l+1)return(t={}).ref=a,t.pageSize=l,t.uid=s,void i("gotoBottomPage",t);var c=0;e.forEach((function(e){n.push(e.key),n.length!=l+1?e.key!=s?o[e.key]=e.val():c=1:1==c?(o[e.key]=e.val(),r("setDbCursor",e.key)):r("setDbCursor",e.key)})),r("setTopPage",!0),r("setBottomPage",!0),r("setForwardPage",!0),r("setBackPage",!0),r("setContacts",o)}));case 9:case"end":return n.stop()}}),n)})))()},getAllUsersBackward:function(e,t){return il()(nl.a.mark((function n(){var r,i,a,o,s,l;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,i=e.dispatch,a=t.dbReference,o=t.cursor,s=t.uid,l=t.pageSize,(a=(a=(a=a.orderByKey()).limitToLast(l+1)).endAt(o)).once("value").then((function(e){var t,n=[],o={};return Object.keys(e.val()).length?Object.keys(e.val()).length<l+1?((t={}).ref=a,t.pageSize=l,t.uid=s,void i("gotoTopPage",t)):(e.forEach((function(e){n.push(e.key),1!=n.length?e.key!=s&&(o[e.key]=e.val()):r("setDbCursor",e.key)})),r("setTopPage",!0),r("setBottomPage",!0),r("setBackPage",!0),r("setForwardPage",!0),void r("setContacts",o)):((t={}).ref=a,t.pageSize=l,t.uid=s,void i("gotoTopPage",t))}));case 9:case"end":return n.stop()}}),n)})))()},gotoTopPage:function(e,t){var n=e.commit,r=t.pageSize,i=t.uid,a=Qs.a.database().ref("/users");(a=(a=a.orderByKey()).limitToFirst(r+1)).once("value").then((function(e){var t=[],a={};Object.keys(e.val()).length&&(e.forEach((function(e){t.push(e.key),t.length!=r+1?e.key!=i&&(a[e.key]=e.val()):n("setDbCursor",e.key)})),n("setTopPage",!1),n("setBottomPage",!0),n("setForwardPage",!0),n("setBackPage",!1),n("setContacts",a))}))}},K()(iu,"gotoTopPage",(function(e,t){var n=e.commit,r=t.pageSize,i=t.uid,a=Qs.a.database().ref("/users");(a=(a=a.orderByChild("dateCreated")).limitToFirst(r+1)).once("value").then((function(e){var t=[],a={};Object.keys(e.val()).length&&(e.forEach((function(e){t.push(e.key),t.length!=r+1?e.key!=i&&(a[e.key]=e.val()):n("setDbCursor",e.key)})),n("setTopPage",!1),n("setBottomPage",!0),n("setForwardPage",!0),n("setBackPage",!1),n("setContacts",a))}))})),K()(iu,"gotoSearchUsers",(function(e,t){var n=e.commit,r=(t.pageSize,t.uid),i=t.userStatus,a=Qs.a.database().ref("/users");(a=a.orderByKey()).once("value").then((function(e){var t={};Object.keys(e.val()).length&&(n("setUpdatePreloader",1),e.forEach((function(e){null!=e.val()&&e.key!=r&&e.val().userStatus==i&&null!=e.val().name&&(t[e.key]=e.val(),n("setSearchResult",!0))})),n("setTopPage",!1),n("setBottomPage",!0),n("setForwardPage",!0),n("setBackPage",!1),n("setContacts",t))}))})),K()(iu,"searchUsersOnline",(function(e,t){var n=e.commit,r=t.uid,i=Qs.a.database().ref("/users"),a=0;return(i=i.orderByKey()).once("value").then((function(e){var t={};Object.keys(e.val()).length?(e.forEach((function(e){null!=e.val()&&e.key!=r&&"online"==e.val().userStatus&&null!=e.val().name&&(t[e.key]=e.val(),n("setSearchResult",1),a++)})),n("setSearchContacts",t),0===a&&n("setSearchResult",2)):n("setSearchResult",2)})),a})),K()(iu,"searchUsersName",(function(e,t){var n=e.commit,r=t.uid,i=t.name,a=Qs.a.database().ref("/users"),o=0;return(a=a.orderByKey()).once("value").then((function(e){var t={};Object.keys(e.val()).length?(e.forEach((function(e){null!=e.val()&&e.key!=r&&e.val().name==i&&null!=e.val().name&&(t[e.key]=e.val(),n("setSearchResult",1),o++)})),n("setSearchContacts",t),0===o&&n("setSearchResult",2)):n("setSearchResult",2)})),o})),K()(iu,"searchUsersLocation",(function(e,t){var n=e.commit,r=t.uid,i=t.location,a=Qs.a.database().ref("/users"),o=0;return(a=a.orderByKey()).once("value").then((function(e){var t={};Object.keys(e.val()).length?(e.forEach((function(e){null!=e.val()&&e.key!=r&&e.val().location==i&&null!=e.val().name&&(t[e.key]=e.val(),n("setSearchResult",1),o++)})),n("setSearchContacts",t),0===o&&n("setSearchResult",2)):n("setSearchResult",2)})),o})),K()(iu,"searchUsersCountry",(function(e,t){var n=e.commit,r=t.uid,i=t.country,a=Qs.a.database().ref("/users"),o=0;return(a=a.orderByKey()).once("value").then((function(e){var t={};Object.keys(e.val()).length?(e.forEach((function(e){null!=e.val()&&e.key!=r&&e.val().country==i&&null!=e.val().name&&(t[e.key]=e.val(),n("setSearchResult",1),o++)})),n("setSearchContacts",t),0===o&&n("setSearchResult",2)):n("setSearchResult",2)})),o})),K()(iu,"gotoBottomPage",(function(e,t){var n=e.commit,r=t.pageSize,i=t.uid,a=Qs.a.database().ref("/users");(a=(a=a.orderByChild("dateCreated")).limitToLast(r+1)).once("value").then((function(e){var t=[],r={};Object.keys(e.val()).length&&(e.forEach((function(e){t.push(e.key),1!=t.length?e.key!=i&&(r[e.key]=e.val()):n("setDbCursor",e.key)})),n("setTopPage",!0),n("setBottomPage",!1),n("setForwardPage",!1),n("setBackPage",!0),n("setContacts",r))}))})),K()(iu,"getUserPageSize",(function(e){return nu()(e),new Promise((function(e,t){var n=Qs.a.auth().currentUser.uid;Qs.a.database().ref("/users").child(n).on("value",(function(t){t.val()?e(t.val().pageSize):e(3)}))}))})),K()(iu,"getUserPhotoStatus",(function(e,t){var n=e.commit;return new Promise((function(e,r){var i=t;Ja.request.post("https://chatme24.com/penpal/getuserphotostatus.php",i,(function(t){"0"==t?(n("setPhotoStatus",!0),e(!0)):(n("setPhotoStatus",!1),e(!1))}))}))})),K()(iu,"sendRequest",(function(e,t){e.commit;return new Promise((function(e,n){uu.child(t.recipient).push({sender:t.sender}).then((function(){e({success:!0})})).catch((function(e){n(e)}))}))})),iu)},ku={state:{advert_country:null,user_payout:null,subscribe_affiliate:!1,user_country:null,chat_groups:null,group_members:null,friend_members:null,group_messages:null,chat_group_name:null,user_status:null,app_state:!0,ban_status:!1,typing_message_group:0,number_online:0,total_group_messages:0,user_notifications:[],post_chat_messages:[]},getters:{user_payout:function(e){return e.user_payout},subscribe_affiliate:function(e){return e.subscribe_affiliate},post_chat_messages:function(e){return e.post_chat_messages},friend_members:function(e){return e.friend_members},total_group_messages:function(e){return e.total_group_messages},chat_groups:function(e){return e.chat_groups},number_online:function(e){return e.number_online},group_members:function(e){return e.group_members},group_messages:function(e){return e.group_messages},chat_group_name:function(e){return e.chat_group_name},user_status:function(e){return e.user_status},app_state:function(e){return e.app_state},ban_status:function(e){return e.ban_status},typing_message_group:function(e){return e.typing_message_group},user_notifications:function(e){return e.user_notifications},user_country:function(e){return e.user_country}},mutations:{setAdvertCountry:function(e,t){e.advert_country=t},setUserPayout:function(e,t){e.user_payout=t},setSubscribeAffiliate:function(e,t){e.subscribe_affiliate=t},setPostChatMessages:function(e,t){e.post_chat_messages=t},setFriendMembers:function(e,t){e.friend_members=t},setNumberOnline:function(e,t){e.number_online=t},setTotalGroupMessages:function(e,t){e.total_group_messages=t},setChatGroups:function(e,t){e.chat_groups=t},setGroupMembers:function(e,t){e.group_members=t},setGroupMessages:function(e,t){e.group_messages=t},setChatGroupName:function(e,t){e.chat_group_name=t},setUserStatus:function(e,t){e.user_status=t},setAppState:function(e,t){e.app_state=t},setBanStatus:function(e,t){e.ban_status=t},setTypingMessageGroup:function(e,t){e.typing_message_group=t},setUserNotifications:function(e,t){e.user_notifications=t},setUserCountry:function(e,t){e.user_country=t}},actions:{sendLatestGroupMessage:function(e,t){return il()(nl.a.mark((function t(){return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.dispatch;case 1:case"end":return t.stop()}}),t)})))()},placeAdvert:function(e,t){var n=e.commit,r={};r["/adverts/"+Qs.a.database().ref().child("/adverts/").push().key]=t,Qs.a.database().ref().update(r),n("setAlertMessage","Advert Placed successfully")},getGroupMessages:function(e){return il()(nl.a.mark((function t(){var n,r,i,a;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,i=[],t.next=4,r("getUserCountry");case 4:i.country=t.sent,a=Qs.a.auth().currentUser,pu.child(i.country).child("msgboard").on("value",(function(e){var t=e.val(),r=[];_.forEach(t,(function(e){e.type=e.sentby==a.uid?"sent":"received",e.date=vl()(e.timestamp).format("MMMM Do dddd"),e.smalldate=vl()(e.timestamp).format("LTS"),r.push(e)}));var i=_.groupBy(r,"date");n("setGroupMessages",i)}),(function(e){console.log(e)}));case 7:case"end":return t.stop()}}),t)})))()},sendGroupMessage:function(e,t){return il()(nl.a.mark((function n(){var r,i,a;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.dispatch;try{pu.child(t.group_name).child("msgboard").push({club:userClub,sentby:Qs.a.auth().currentUser.uid,displayName:Qs.a.auth().currentUser.displayName,avatar:Qs.a.auth().currentUser.photoURL,image:t.img,text:t.message,timestamp:Qs.a.database.ServerValue.TIMESTAMP})}catch(e){console.log(e)}return n.prev=2,n.next=5,r("getTotalGroupMessages");case 5:if(-5==(i=n.sent)&&(i=1),!(null!=i&&i>0)){n.next=14;break}return i++,n.next=11,r("getUserCountry");case 11:return a=n.sent,n.next=14,Qs.a.database().ref("/appStatistics").child(a).update({totalMessages:i});case 14:n.next=19;break;case 16:n.prev=16,n.t0=n.catch(2),console.log(n.t0);case 19:case"end":return n.stop()}}),n,null,[[2,16]])})))()},leaveGroup:function(e,t){return il()(nl.a.mark((function n(){var r,i;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return nu()(e),n.prev=1,r="",n.next=5,pu.child(Qs.a.auth().currentUser.uid).child(t.group_name).once("value",(function(e){r=e.val().owner}));case 5:return n.next=7,pu.child(r).child(t.group_name).child("members");case 7:return(i=n.sent).orderByChild("uid").equalTo(Qs.a.auth().currentUser.uid).once("value",(function(e){var t;for(var n in e.val())t=n;i.child(t).remove()})),n.next=11,pu.child(Qs.a.auth().currentUser.uid).child(t.group_name).remove();case 11:return n.next=13,dispatch("getGroupMembers",t.group_name);case 13:n.next=18;break;case 15:n.prev=15,n.t0=n.catch(1),console.log(n.t0);case 18:case"end":return n.stop()}}),n,null,[[1,15]])})))()},removeMember:function(e,t){return il()(nl.a.mark((function n(){var r,i;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,n.prev=1,n.next=4,pu.child(Qs.a.auth().currentUser.uid).child(t.group_name).child("members");case 4:return(i=n.sent).orderByChild("uid").equalTo(t.member.uid).once("value",(function(e){var t;for(var n in e.val())t=n;i.child(t).remove()})),n.next=8,pu.child(t.member.uid).child(t.group_name).remove();case 8:return n.next=10,r("getGroupMembers",t.group_name);case 10:n.next=15;break;case 12:n.prev=12,n.t0=n.catch(1),console.log(n.t0);case 15:case"end":return n.stop()}}),n,null,[[1,12]])})))()},getGroupMembers:function(e,t){return il()(nl.a.mark((function n(){var r,i,a;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,i="",n.next=4,pu.child(Qs.a.auth().currentUser.uid).child(t).once("value",(function(e){i=e.val().owner}));case 4:return a=new Promise((function(e,n){pu.child(i).child(t).once("value",(function(t){var n=t.val().members,i=[];for(var a in n)i.push(n[a]);e(n),r("setGroupMembers",i)}),(function(e){n(e)}))})),n.abrupt("return",a);case 6:case"end":return n.stop()}}),n)})))()},addMember:function(e,t){return il()(nl.a.mark((function n(){var r,i;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,n.prev=1,n.next=4,pu.child(Qs.a.auth().currentUser.uid).child(t.group_name).child("members").push(t.newmember);case 4:return n.next=6,r("getGroupImage",t.group_name);case 6:return i=n.sent,n.next=9,pu.child(t.newmember.uid).child(t.group_name).set({group_pic:i,msgboard:"",owner:Qs.a.auth().currentUser.uid});case 9:r("getGroupMembers",t.group_name),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(1),console.log(n.t0);case 15:case"end":return n.stop()}}),n,null,[[1,12]])})))()},banUser:function(e,t){return il()(nl.a.mark((function n(){var r,i;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return nu()(e),r=t.uid,i=t.comments,n.prev=3,n.next=6,Qs.a.database().ref("/users/").child(r).update({userType:"0",BanReasons:i});case 6:n.next=11;break;case 8:n.prev=8,n.t0=n.catch(3),console.log(n.t0);case 11:case"end":return n.stop()}}),n,null,[[3,8]])})))()},unBanUser:function(e,t){return il()(nl.a.mark((function n(){return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return nu()(e),n.prev=1,n.next=4,Qs.a.database().ref("/users/").child(t).update({userType:"1"});case 4:n.next=9;break;case 6:n.prev=6,n.t0=n.catch(1),console.log(n.t0);case 9:case"end":return n.stop()}}),n,null,[[1,6]])})))()},closeAppState:function(e){return il()(nl.a.mark((function t(){var n,r,i;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.prev=1,t.next=4,r("getUserCountry");case 4:return i=t.sent,t.next=7,Qs.a.database().ref("/appState").child(i).update({appStateValue:"1"});case 7:n("setAppState",!1),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),console.log(t.t0);case 13:case"end":return t.stop()}}),t,null,[[1,10]])})))()},openAppState:function(e){return il()(nl.a.mark((function t(){var n,r,i;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.prev=1,t.next=4,r("getUserCountry");case 4:return i=t.sent,t.next=7,Qs.a.database().ref("/appState").child(i).update({appStateValue:"0"});case 7:n("setAppState",!0),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),console.log(t.t0);case 13:case"end":return t.stop()}}),t,null,[[1,10]])})))()},getGroupImage:function(e,t){return nu()(e),new Promise((function(e,n){pu.child(Qs.a.auth().currentUser.uid).child(t).once("value",(function(t){var n=t.val().group_pic;e(n)})).catch((function(e){n(e)}))}))},getStaticGroupImage:function(e,t){nu()(e);return new Promise((function(e,n){pu.child("C0KUjyHioShrmY646lnmqgs3sFO2").child(t).once("value",(function(t){var n=t.val().group_pic;e(n)})).catch((function(e){n(e)}))}))},createGroup:function(e,t){return nu()(e),new Promise((function(e,n){pu.child(Qs.a.auth().currentUser.uid).child(t.name).set({group_pic:t.pic,msgboard:"",owner:Qs.a.auth().currentUser.uid}).then((function(t){e(!0)})).catch((function(e){n(e)}))}))},getUserDetails:function(e){e.commit;return new Promise((function(e,t){Qs.a.database().ref("users").child(Qs.a.auth().currentUser.uid).once("value",(function(t){e(t.val())}))}))},getUserCountry:function(e){var t=e.commit;return new Promise((function(e,n){Qs.a.database().ref("users").child(Qs.a.auth().currentUser.uid).once("value",(function(n){t("setUserCountry",n.val().country),e(n.val().country)}))}))},getUserEmail:function(e){e.commit;return new Promise((function(e,t){Qs.a.database().ref("users").child(Qs.a.auth().currentUser.uid).once("value",(function(t){e(t.val().email)}))}))},getUserClub:function(e){e.commit;return new Promise((function(e,t){Qs.a.database().ref("users").child(Qs.a.auth().currentUser.uid).once("value",(function(t){e(t.val().club)}))}))},getGroupName2:function(e){var t=e.commit;return new Promise((function(e,n){Qs.a.database().ref("users").child(Qs.a.auth().currentUser.uid).once("value",(function(n){n.val();e(n.val().country),[].push(n.val()),t("setChatGroupName",n.val().country)}))}))},getBanUserStatus:function(e,t){var n=e.commit;return new Promise((function(e,r){Qs.a.database().ref("users").child(t).once("value",(function(t){e(t.val().userType),"0"==t.val().userType?n("setBanStatus",!0):n("setBanStatus",!1)}))}))},getUserStatus:function(e){var t=e.commit;return new Promise((function(e,n){Qs.a.database().ref("users").child(Qs.a.auth().currentUser.uid).once("value",(function(n){e(n.val().userType),t("setUserStatus",n.val().userType)}))}))},getAppState:function(e){return il()(nl.a.mark((function t(){var n,r,i,a;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,r("getUserCountry");case 3:return i=t.sent,a=new Promise((function(e,t){Qs.a.database().ref("appState").child(i).once("value",(function(t){e(t.val().appStateValue),"1"==t.val().appStateValue?n("setAppState",!1):n("setAppState",!0)}))})),t.abrupt("return",a);case 6:case"end":return t.stop()}}),t)})))()},getOnlineStatistics:function(e){return il()(nl.a.mark((function t(){var n,r,i,a;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,r("getUserCountry");case 3:return i=t.sent,a=new Promise((function(e,t){Qs.a.database().ref("/appStatistics").child(i).on("value",(function(t){n("setNumberOnline",t.val().online),e(t.val().online)}))})),t.abrupt("return",a);case 6:case"end":return t.stop()}}),t)})))()},getTotalGroupMessages:function(e){return il()(nl.a.mark((function t(){var n,r,i,a;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,r("getUserCountry");case 3:return i=t.sent,a=new Promise((function(e,t){Qs.a.database().ref("/appStatistics").child(i).on("value",(function(t){-5==t.val().totalMessages?(n("setTotalGroupMessages",0),e(t.val().totalMessages)):(n("setTotalGroupMessages",t.val().totalMessages),e(t.val().totalMessages))}))})),t.abrupt("return",a);case 6:case"end":return t.stop()}}),t)})))()},statisticsUsersOnline:function(e){return il()(nl.a.mark((function t(){var n,r,i;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.commit,n=e.dispatch,t.prev=1,t.next=4,n("getOnlineStatistics");case 4:return r=t.sent,r++,t.next=8,n("getUserCountry");case 8:return i=t.sent,t.next=11,Qs.a.database().ref("/appStatistics").child(i).update({online:r}).catch((function(e){console.log(e)}));case 11:t.next=16;break;case 13:t.prev=13,t.t0=t.catch(1),console.log(t.t0);case 16:case"end":return t.stop()}}),t,null,[[1,13]])})))()},statisticsUsersOnlineRemove:function(e){return il()(nl.a.mark((function t(){var n,r,i;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.dispatch,t.prev=1,t.next=4,n("getOnlineStatistics");case 4:return(r=t.sent)>0&&r--,t.next=8,n("getUserCountry");case 8:return i=t.sent,t.next=11,Qs.a.database().ref("/appStatistics").child(i).update({online:r});case 11:t.next=16;break;case 13:t.prev=13,t.t0=t.catch(1),console.log(t.t0);case 16:case"end":return t.stop()}}),t,null,[[1,13]])})))()},pushNotifications:function(e,t){return il()(nl.a.mark((function n(){var r,i,a;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,e.dispatch,i=Qs.a.auth().currentUser.uid,a=yu.child(i).push().key,n.next=5,yu.child(a).update({title:t.title,message_details:t.message_details,uid:i,timestamp:Qs.a.database.ServerValue.TIMESTAMP});case 5:r("setAlertMessage","Your broadcast message has been sent!");case 6:case"end":return n.stop()}}),n)})))()},getFriendMembers:function(e){return il()(nl.a.mark((function t(){var n,r;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=new Promise((function(e,t){du.child(Qs.a.auth().currentUser.uid).once("value",(function(t){var r=t.val(),i=[];for(var a in r)i.push(r[a]);e(r),n("setFriendMembers",i)}),(function(e){t(e)}))})),t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)})))()},sendMessageToFriends:function(e,t){return il()(nl.a.mark((function n(){var r,i;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.commit,r=e.dispatch,n.prev=1,n.next=4,r("getFriendMembers");case 4:i=n.sent,_.forEach(i,(function(e){Qs.a.auth().currentUser.uid!=e.uid&&null!=e.uid&&null!=e.uid&&hu.child(Qs.a.auth().currentUser.uid).child(e.uid).push({sentby:Qs.a.auth().currentUser.uid,text:"Post Message:<br>"+t.msg,image:t.img,timestamp:Qs.a.database.ServerValue.TIMESTAMP})})),bu.child(Qs.a.auth().currentUser.uid).push({sentby:Qs.a.auth().currentUser.uid,text:"Post Message: "+t.msg,image:t.img,timestamp:Qs.a.database.ServerValue.TIMESTAMP}),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(1),console.log("loop error",n.t0);case 12:case"end":return n.stop()}}),n,null,[[1,9]])})))()},getPostChatMessages:function(e){var t=e.commit,n=Qs.a.auth().currentUser;bu.child(n.uid).on("value",(function(e){var r=e.val();_.forEach(r,(function(e){e.type=e.sentby==n.uid?"sent":"received",e.name=(e.sentby,n.uid,n.displayName),e.date=vl()(e.timestamp).format("MMMM Do dddd"),e.smalldate=vl()(e.timestamp).format("LTS")}));var i=_.groupBy(r,"date");t("setPostChatMessages",i)}))},getUserPayout:function(e){var t=e.commit;Qs.a.database().ref("pay4me").child(Qs.a.auth().currentUser.uid).once("value",(function(e){null!=e.val()&&null!=e.val()&&Qs.a.database().ref("users").child(Qs.a.auth().currentUser.uid).once("value",(function(e){null!=e.val()&&null!=e.val()&&t("setUserPayout",e.val().payout)}))}))},getUserAffiliate:function(e){var t=e.commit;Qs.a.database().ref("pay4me").child(Qs.a.auth().currentUser.uid).once("value",(function(e){null!=e.val()&&null!=e.val()?t("setSubscribeAffiliate",!0):t("setSubscribeAffiliate",!1)}))},deleteAffiliate:function(e){var t=e.commit,n=Qs.a.auth().currentUser.uid;Qs.a.database().ref("pay4me/".concat(n,"/")).remove(),t("setSubscribeAffiliate",!1),t("setAlertMessage","Your Pay4me Program has been deleted")},processModerator:function(e,t){return il()(nl.a.mark((function n(){var r,i;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,i=Qs.a.auth().currentUser.uid,n.prev=2,n.next=5,Qs.a.database().ref("/beAModerator/").child(i).update({twitter_handle:t.twitter,instagram_IG:t.instagram,timestamp:Qs.a.database.ServerValue.TIMESTAMP});case 5:n.next=10;break;case 7:n.prev=7,n.t0=n.catch(2),r("setAlertMessage",n.t0);case 10:case"end":return n.stop()}}),n,null,[[2,7]])})))()},processAffiliate:function(e,t){return il()(nl.a.mark((function n(){var r,i;return nl.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,i=Qs.a.auth().currentUser.uid,n.prev=2,n.next=5,Qs.a.database().ref("/pay4me/").child(i).update({bank_name:t.bank_name,account_name:t.account_name,account_number:t.account_number,paypal:t.paypal});case 5:n.next=10;break;case 7:n.prev=7,n.t0=n.catch(2),console.log(n.t0);case 10:r("setAlertMessage","Your account activated for Gift Program");case 11:case"end":return n.stop()}}),n,null,[[2,7]])})))()},getMyGroups:function(e){return il()(nl.a.mark((function t(){var n,r,i;return nl.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,r("getUserCountry");case 3:i=t.sent,pu.once("value",(function(e){var t=[];if(null!=e.val()){var r=0,a=e.val();for(var o in a){if(o==i&&0==r){var s={name:o,pic:a[o].group_pic,owner:a[o].owner};r=1}t.push(s)}}n("setChatGroups",t)}));case 5:case"end":return t.stop()}}),t)})))()}}};r.default.use(eu.a);var Eu=new eu.a.Store({modules:{auth:au,file:cu,chat:wu,groupchat:ku},state:{alert_message:null,show_tabbar:!0,quit_application:null},getters:{alert_message:function(e){return e.alert_message},quit_application:function(e){return e.quit_application},show_tabbar:function(e){return e.show_tabbar}},mutations:{setAlertMessage:function(e,t){e.alert_message=t},setQuitApplication:function(e,t){e.quit_application=t},setShowTabs:function(e,t){e.show_tabbar=t}}});r.default.prototype.moment=vl.a,Ja.use(Js,$c.a);var Su=null;console.log("Yess,,,,,,,,,,,,,,,,,,,,,,"),Su||(Su=new r.default({el:"#app",render:function(e){return e(Zc)},store:Eu,components:{app:Zc},on:{init:function(e){}}}));if(window.hasOwnProperty("cordova")){var Tu=function(){AdMob?AdMob.createBanner({adId:Cu.banner,position:AdMob.AD_POSITION.BOTTOM_CENTER,overlap:!1,offsetTopBar:!1,autoShow:!0,bgColor:"black"}):alert("admob plugin not ready")},Cu={};Cu=(/(android)/i.test(navigator.userAgent)||/(ipod|iphone|ipad)/i.test(navigator.userAgent),{banner:"ca-app-pub-3672658228483041/1754491371"}),window.hasOwnProperty("cordova")?document.addEventListener("deviceready",Tu,!1):Tu(),document.addEventListener("deviceready",(function(){window.plugins.OneSignal.startInit("1bdd80c5-cabb-4296-9e59-ef5fa8638eed").handleNotificationOpened((function(e){})).inFocusDisplaying(window.plugins.OneSignal.OSInFocusDisplayOption.Notification).endInit(),document.addEventListener("offline",(function(){Eu.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...")}),!1),document.addEventListener("backbutton",(function(){Eu.commit("setQuitApplication","1")}),!1);cordova.plugins.firebase.messaging.getBadge().then((function(e){cordova.plugins.firebase.messaging.setBadge(e++)})),cordova.plugins.firebase.messaging.setBadge(100),cordova.plugins.firebase.messaging.onBackgroundMessage((function(e){}))}))}}]);
//# sourceMappingURL=app.js.map