UNPKG

@fyne/yup-phone

Version:

Adds a phone number validation check to yup validator using google-libphonenumber.

97 lines 545 kB
'use strict';(function(ja,Y){"object"===typeof exports&&"undefined"!==typeof module?Y(require("yup")):"function"===typeof define&&define.amd?define(["yup"],Y):(ja=ja||self,Y(ja.yup))})(this,function(ja){function Y(){throw Error("Dynamic requires are not currently supported by rollup-plugin-commonjs");}function ka(g,e){return e={exports:{}},g(e,e.exports),e.exports}q({global:!0},{globalThis:w});var nc="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global? global:"undefined"!==typeof self?self:{},La=function(g){return g&&g.Math==Math&&g},w=La("object"==typeof globalThis&&globalThis)||La("object"==typeof window&&window)||La("object"==typeof self&&self)||La("object"==typeof nc&&nc)||Function("return this")(),u=function(g){try{return!!g()}catch(e){return!0}},R=function(g,e){var f=[][g];return!f||!u(function(){f.call(null,e||function(){throw 1;},1)})},Xd=[].join,Yd=Ma!=Object,Zd=R("join",",");q({target:"Array",proto:!0,forced:Yd||Zd},{join:function(g){return Xd.call(G(this), void 0===g?",":g)}});var v=function(g){return"object"===typeof g?null!==g:"function"===typeof g},$d={}.toString,M=function(g){return $d.call(g).slice(8,-1)},la=Array.isArray||function(g){return"Array"==M(g)},ae=Math.ceil,be=Math.floor,Z=function(g){return isNaN(g=+g)?0:(0<g?be:ae)(g)},ce=Math.max,de=Math.min,Na=function(g,e){g=Z(g);return 0>g?ce(g+e,0):de(g,e)},ee=Math.min,C=function(g){return 0<g?ee(Z(g),9007199254740991):0},da=function(g,e){if(!v(g))return g;var f,m;if(e&&"function"==typeof(f=g.toString)&& !v(m=f.call(g))||"function"==typeof(f=g.valueOf)&&!v(m=f.call(g))||!e&&"function"==typeof(f=g.toString)&&!v(m=f.call(g)))return m;throw TypeError("Can't convert object to primitive value");},y=!u(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a});q({target:"Object",stat:!0,forced:!y,sham:!y},{defineProperty:B.f});var Oa=w.document,oc=v(Oa)&&v(Oa.createElement),pc=!y&&!u(function(){return 7!=Object.defineProperty(oc?Oa.createElement("div"):{},"a",{get:function(){return 7}}).a}), z=function(g){if(!v(g))throw TypeError(String(g)+" is not an object");return g},qc=Object.defineProperty,B={f:y?qc:function(g,e,f){z(g);e=da(e,!0);z(f);if(pc)try{return qc(g,e,f)}catch(m){}if("get"in f||"set"in f)throw TypeError("Accessors not supported");"value"in f&&(g[e]=f.value);return g}},ea=function(g,e){return{enumerable:!(g&1),configurable:!(g&2),writable:!(g&4),value:e}},ma=function(g,e,f){e=da(e);e in g?B.f(g,e,ea(0,f)):g[e]=f},D=y?function(g,e,f){return B.f(g,e,ea(1,f))}:function(g,e,f){g[e]= f;return g},fe=x("species"),ge=!u(function(){var g=/./;g.exec=function(){var g=[];g.groups={a:"7"};return g};return"7"!=="".replace(g,"$<a>")}),he=!u(function(){var g=/(?:)/,e=g.exec;g.exec=function(){return e.apply(this,arguments)};g="ab".split(g);return 2!==g.length||"a"!==g[0]||"b"!==g[1]}),Pa=function(g,e,f,m){var h=x(g),l=!u(function(){var b={};b[h]=function(){return 7};return 7!=""[g](b)}),n=l&&!u(function(){var b=!1,a=/a/;a.exec=function(){b=!0;return null};"split"===g&&(a.constructor={},a.constructor[fe]= function(){return a});a[h]("");return!b});if(!l||!n||"replace"===g&&!ge||"split"===g&&!he){var a=/./[h];f=f(h,""[g],function(b,d,k,c,g){return d.exec===xa?l&&!g?{done:!0,value:a.call(d,k,c)}:{done:!0,value:b.call(k,d,c)}:{done:!1}});var c=f[1];H(String.prototype,g,f[0]);H(RegExp.prototype,h,2==e?function(b,a){return c.call(b,this,a)}:function(b){return c.call(b,this)});m&&D(RegExp.prototype[h],"sham",!0)}},I=function(g){if(void 0==g)throw TypeError("Can't call method on "+g);return g},J=function(g){return Object(I(g))}, rc=function(g){return function(e,f){e=String(I(e));f=Z(f);var m=e.length,h;if(0>f||f>=m)return g?"":void 0;var l=e.charCodeAt(f);return 55296>l||56319<l||f+1===m||56320>(h=e.charCodeAt(f+1))||57343<h?g?e.charAt(f):l:g?e.slice(f,f+2):(l-55296<<10)+(h-56320)+65536}};rc(!1);var sc=rc(!0),qb=function(g,e,f){return e+(f?sc(g,e).length:1)},na=function(g,e){var f=g.exec;if("function"===typeof f){g=f.call(g,e);if("object"!==typeof g)throw TypeError("RegExp exec method returned something other than an Object or null"); return g}if("RegExp"!==M(g))throw TypeError("RegExp#exec called on incompatible receiver");return xa.call(g,e)},ie=Math.max,je=Math.min,ke=Math.floor,le=/\$([$&'`]|\d\d?|<[^>]*>)/g,me=/\$([$&'`]|\d\d?)/g,ne=function(g){return void 0===g?g:String(g)};Pa("replace",2,function(g,e,f){function m(g,f,m,a,c,b){var d=m+g.length,k=a.length,p=me;void 0!==c&&(c=J(c),p=le);return e.call(b,p,function(b,p){switch(p.charAt(0)){case "$":return"$";case "&":return g;case "`":return f.slice(0,m);case "'":return f.slice(d); case "<":b=c[p.slice(1,-1)];break;default:var r=+p;if(0===r)return b;if(r>k)return r=ke(r/10),0===r?b:r<=k?void 0===a[r-1]?p.charAt(1):a[r-1]+p.charAt(1):b;b=a[r-1]}return void 0===b?"":b})}return[function(f,m){var h=I(this),a=void 0==f?void 0:f[g];return void 0!==a?a.call(f,h,m):e.call(String(h),f,m)},function(g,l){var h=f(e,g,this,l);if(h.done)return h.value;var a=z(g);g=String(this);(h="function"===typeof l)||(l=String(l));var c=a.global;if(c){var b=a.unicode;a.lastIndex=0}for(var d=[];;){var k= na(a,g);if(null===k)break;d.push(k);if(!c)break;""===String(k[0])&&(a.lastIndex=qb(g,C(a.lastIndex),b))}b="";for(c=a=0;c<d.length;c++){k=d[c];for(var p=String(k[0]),r=ie(je(Z(k.index),g.length),0),A=[],N=1;N<k.length;N++)A.push(ne(k[N]));k=k.groups;h?(A=[p].concat(A,r,g),void 0!==k&&A.push(k),k=String(l.apply(void 0,A))):k=m(p,g,r,A,k,l);r>=a&&(b+=g.slice(a,r)+k,a=r+p.length)}return b+g.slice(a)}]});var oe={}.hasOwnProperty,t=function(g,e){return oe.call(g,e)},ya=w,tc=function(g){return"function"== typeof g?g:void 0},rb=function(g,e){return 2>arguments.length?tc(ya[g])||tc(w[g]):ya[g]&&ya[g][e]||w[g]&&w[g][e]},uc=za.f,pe={}.toString,vc="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],sb=function(g){if(vc&&"[object Window]"==pe.call(g))try{var e=uc(g)}catch(f){e=vc.slice()}else e=uc(G(g));return e},qe=sb,re=u(function(){return!Object.getOwnPropertyNames(1)});q({target:"Object",stat:!0,forced:re},{getOwnPropertyNames:qe});var se=x("match"),tb=function(g){var e; return v(g)&&(void 0!==(e=g[se])?!!e:"RegExp"==M(g))},ub=function(g){if(tb(g))throw TypeError("The method doesn't accept regular expressions");return g},te=x("match"),vb=function(g){var e=/./;try{"/./"[g](e)}catch(f){try{return e[te]=!1,"/./"[g](e)}catch(m){}}return!1};q({target:"String",proto:!0,forced:!vb("includes")},{includes:function(g){return!!~String(I(this)).indexOf(ub(g),1<arguments.length?arguments[1]:void 0)}});q({target:"Object",stat:!0,forced:!y,sham:!y},{defineProperties:wc});var ue= u(function(){Aa(1)});q({target:"Object",stat:!0,forced:ue},{keys:function(g){return Aa(J(g))}});var Qa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Aa=Object.keys||function(g){return xc(g,Qa)},wc=y?Object.defineProperties:function(g,e){z(g);for(var f=Aa(e),m=f.length,h=0,l;m>h;)B.f(g,l=f[h++],e[l]);return g},oa={},ve=rb("document","documentElement"),wb=function(g,e){try{D(w,g,e)}catch(f){w[g]=e}return e},S=ka(function(g){var e=w["__core-js_shared__"]|| wb("__core-js_shared__",{});(g.exports=function(g,m){return e[g]||(e[g]=void 0!==m?m:{})})("versions",[]).push({version:"3.2.1",mode:"global",copyright:"\u00a9 2019 Denis Pushkarev (zloirock.ru)"})}),we=0,xe=Math.random(),Ra=function(g){return"Symbol("+String(void 0===g?"":g)+")_"+(++we+xe).toString(36)},yc=S("keys"),Sa=function(g){return yc[g]||(yc[g]=Ra(g))},zc=Sa("IE_PROTO"),xb=function(){},Ta=function(){var g=oc?Oa.createElement("iframe"):{},e=Qa.length;g.style.display="none";ve.appendChild(g); g.src="javascript:";g=g.contentWindow.document;g.open();g.write("<script>document.F=Object\x3c/script>");g.close();for(Ta=g.F;e--;)delete Ta.prototype[Qa[e]];return Ta()},aa=Object.create||function(g,e){if(null!==g){xb.prototype=z(g);var f=new xb;xb.prototype=null;f[zc]=g}else f=Ta();return void 0===e?f:wc(f,e)};oa[zc]=!0;var yb=x("unscopables"),zb=Array.prototype;void 0==zb[yb]&&D(zb,yb,aa(null));var pa=function(g){zb[yb][g]=!0},ye=Ab.includes;q({target:"Array",proto:!0},{includes:function(g){return ye(this, g,1<arguments.length?arguments[1]:void 0)}});pa("includes");var Ac=function(g){return function(e,f,m){e=G(e);var h=C(e.length);m=Na(m,h);if(g&&f!=f)for(;h>m;){if(f=e[m++],f!=f)return!0}else for(;h>m;m++)if((g||m in e)&&e[m]===f)return g||m||0;return!g&&-1}},Ab={includes:Ac(!0),indexOf:Ac(!1)},ze=Ab.indexOf,Bc=[].indexOf,Cc=!!Bc&&0>1/[1].indexOf(1,-0),Ae=R("indexOf");q({target:"Array",proto:!0,forced:Cc||Ae},{indexOf:function(g){return Cc?Bc.apply(this,arguments)||0:ze(this,g,1<arguments.length?arguments[1]: void 0)}});var Be=Ab.indexOf,xc=function(g,e){g=G(g);var f=0,m=[],h;for(h in g)!t(oa,h)&&t(g,h)&&m.push(h);for(;e.length>f;)t(g,h=e[f++])&&(~Be(m,h)||m.push(h));return m},Ce=Qa.concat("length","prototype"),za={f:Object.getOwnPropertyNames||function(g){return xc(g,Ce)}},Ua={f:Object.getOwnPropertySymbols},De=rb("Reflect","ownKeys")||function(g){var e=za.f(z(g)),f=Ua.f;return f?e.concat(f(g)):e},Dc=function(g,e){for(var f=De(e),m=B.f,h=qa.f,l=0;l<f.length;l++){var n=f[l];t(g,n)||m(g,n,h(e,n))}},Ee= B.f,T=w.Symbol;if(y&&"function"==typeof T&&!("description"in T.prototype&&void 0===T().description)){var Ec={},Ba=function(){var g=1>arguments.length||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Ba?new T(g):void 0===g?T():T(g);""===g&&(Ec[e]=!0);return e};Dc(Ba,T);var Bb=Ba.prototype=T.prototype;Bb.constructor=Ba;var Fe=Bb.toString,Ge="Symbol(test)"==String(T("test")),He=/^Symbol\((.*)\)[^)]+$/;Ee(Bb,"description",{configurable:!0,get:function(){var g=v(this)?this.valueOf(): this,e=Fe.call(g);if(t(Ec,g))return"";g=Ge?e.slice(7,-1):e.replace(He,"$1");return""===g?void 0:g}});q({global:!0,forced:!0},{Symbol:Ba})}var Cb={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0, SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Fc;for(Fc in Cb){var Gc=w[Fc],Va=Gc&&Gc.prototype;if(Va&&Va.forEach!==Ca)try{D(Va,"forEach",Ca)}catch(g){Va.forEach=Ca}}var Ie=O.every;q({target:"Array",proto:!0,forced:R("every")},{every:function(g){return Ie(this,g,1<arguments.length?arguments[1]:void 0)}});var Je=O.filter;q({target:"Array",proto:!0,forced:!Da("filter")},{filter:function(g){return Je(this,g,1<arguments.length? arguments[1]:void 0)}});var Ke=O.find,Hc=!0;"find"in[]&&Array(1).find(function(){Hc=!1});q({target:"Array",proto:!0,forced:Hc},{find:function(g){return Ke(this,g,1<arguments.length?arguments[1]:void 0)}});pa("find");var Le=O.findIndex,Ic=!0;"findIndex"in[]&&Array(1).findIndex(function(){Ic=!1});q({target:"Array",proto:!0,forced:Ic},{findIndex:function(g){return Le(this,g,1<arguments.length?arguments[1]:void 0)}});pa("findIndex");var Me=O.map;q({target:"Array",proto:!0,forced:!Da("map")},{map:function(g){return Me(this, g,1<arguments.length?arguments[1]:void 0)}});var Ne=O.some;q({target:"Array",proto:!0,forced:R("some")},{some:function(g){return Ne(this,g,1<arguments.length?arguments[1]:void 0)}});var Wa=function(g){if("function"!=typeof g)throw TypeError(String(g)+" is not a function");return g},Db=function(g,e,f){Wa(g);if(void 0===e)return g;switch(f){case 0:return function(){return g.call(e)};case 1:return function(f){return g.call(e,f)};case 2:return function(f,h){return g.call(e,f,h)};case 3:return function(f, h,l){return g.call(e,f,h,l)}}return function(){return g.apply(e,arguments)}},Oe=x("species"),Eb=function(g,e){if(la(g)){var f=g.constructor;"function"!=typeof f||f!==Array&&!la(f.prototype)?v(f)&&(f=f[Oe],null===f&&(f=void 0)):f=void 0}return new (void 0===f?Array:f)(0===e?0:e)},Pe=[].push,fa=function(g){var e=1==g,f=2==g,m=3==g,h=4==g,l=6==g,n=5==g||l;return function(a,c,b,d){var k=J(a),p=Ma(k);c=Db(c,b,3);b=C(p.length);var r=0;d=d||Eb;a=e?d(a,b):f?d(a,0):void 0;for(var A;b>r;r++)if(n||r in p)if(d= p[r],A=c(d,r,k),g)if(e)a[r]=A;else if(A)switch(g){case 3:return!0;case 5:return d;case 6:return r;case 2:Pe.call(a,d)}else if(h)return!1;return l?-1:m||h?h:a}},O={forEach:fa(0),map:fa(1),filter:fa(2),some:fa(3),every:fa(4),find:fa(5),findIndex:fa(6)},Qe=O.forEach,Ca=R("forEach")?function(g){return Qe(this,g,1<arguments.length?arguments[1]:void 0)}:[].forEach;q({target:"Array",proto:!0,forced:[].forEach!=Ca},{forEach:Ca});var P=!!Object.getOwnPropertySymbols&&!u(function(){return!String(Symbol())}), Jc={}.propertyIsEnumerable,Kc=Object.getOwnPropertyDescriptor,Fb=Kc&&!Jc.call({1:2},1)?function(g){g=Kc(this,g);return!!g&&g.enumerable}:Jc,Lc={f:x},Re=B.f,Se=B.f,Mc=x("toStringTag"),Xa=function(g,e,f){g&&!t(g=f?g:g.prototype,Mc)&&Se(g,Mc,{configurable:!0,value:e})},ha={};Pa("match",1,function(g,e,f){return[function(e){var f=I(this),m=void 0==e?void 0:e[g];return void 0!==m?m.call(e,f):(new RegExp(e))[g](String(f))},function(g){var h=f(e,g,this);if(h.done)return h.value;g=z(g);h=String(this);if(!g.global)return na(g, h);var m=g.unicode;g.lastIndex=0;for(var n=[],a=0,c;null!==(c=na(g,h));)c=String(c[0]),n[a]=c,""===c&&(g.lastIndex=qb(h,C(g.lastIndex),m)),a++;return 0===a?null:n}]});var Te=B.f,Gb=Function.prototype,Ue=Gb.toString,Ve=/^\s*function ([^ (]*)/;!y||"name"in Gb||Te(Gb,"name",{configurable:!0,get:function(){try{return Ue.call(this).match(Ve)[1]}catch(g){return""}}});var Hb=x("iterator"),Nc=x("toStringTag"),Ib=Ea.values,Ya;for(Ya in Cb){var Oc=w[Ya],U=Oc&&Oc.prototype;if(U){if(U[Hb]!==Ib)try{D(U,Hb,Ib)}catch(g){U[Hb]= Ib}U[Nc]||D(U,Nc,Ya);if(Cb[Ya])for(var ra in Ea)if(U[ra]!==Ea[ra])try{D(U,ra,Ea[ra])}catch(g){U[ra]=Ea[ra]}}}var Pc=!u(function(){function g(){}g.prototype.constructor=null;return Object.getPrototypeOf(new g)!==g.prototype}),We=u(function(){sa(1)});q({target:"Object",stat:!0,forced:We,sham:!Pc},{getPrototypeOf:function(g){return sa(J(g))}});var Qc=Sa("IE_PROTO"),Xe=Object.prototype,sa=Pc?Object.getPrototypeOf:function(g){g=J(g);return t(g,Qc)?g[Qc]:"function"==typeof g.constructor&&g instanceof g.constructor? g.constructor.prototype:g instanceof Object?Xe:null},Rc=x("iterator"),Sc=!1,Ye=function(){return this},ta;if([].keys){var Tc=[].keys();if("next"in Tc){var Uc=sa(sa(Tc));Uc!==Object.prototype&&(ta=Uc)}else Sc=!0}void 0==ta&&(ta={});t(ta,Rc)||D(ta,Rc,Ye);var Za=ta,$a=Sc,Ze=function(){return this},$e=function(g,e,f){e+=" Iterator";g.prototype=aa(Za,{next:ea(1,f)});Xa(g,e,!1);ha[e]=Ze;return g};q({target:"Object",stat:!0},{setPrototypeOf:Fa});var Fa=Object.setPrototypeOf||("__proto__"in{}?function(){var g= !1,e={};try{var f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set;f.call(e,[]);g=e instanceof Array}catch(m){}return function(e,h){z(e);if(!v(h)&&null!==h)throw TypeError("Can't set "+String(h)+" as a prototype");g?f.call(e,h):e.__proto__=h;return e}}():void 0),Ga=x("iterator"),af=function(){return this},Vc=function(g,e,f,m,h,l,n){$e(f,e,m);m=function(a){if(a===h&&k)return k;if(!$a&&a in b)return b[a];switch(a){case "keys":return function(){return new f(this,a)};case "values":return function(){return new f(this, a)};case "entries":return function(){return new f(this,a)}}return function(){return new f(this)}};var a=e+" Iterator",c=!1,b=g.prototype,d=b[Ga]||b["@@iterator"]||h&&b[h],k=!$a&&d||m(h),p="Array"==e?b.entries||d:d,r;p&&(g=sa(p.call(new g)),Za!==Object.prototype&&g.next&&(sa(g)!==Za&&(Fa?Fa(g,Za):"function"!=typeof g[Ga]&&D(g,Ga,af)),Xa(g,a,!0)));"values"==h&&d&&"values"!==d.name&&(c=!0,k=function(){return d.call(this)});b[Ga]!==k&&D(b,Ga,k);ha[e]=k;if(h){var A={values:m("values"),keys:l?k:m("keys"), entries:m("entries")};if(n)for(r in A)!$a&&!c&&r in b||H(b,r,A[r]);else q({target:e,proto:!0,forced:$a||c},A)}return A},bf=L.set,cf=L.getterFor("Array Iterator"),Ea=Vc(Array,"Array",function(g,e){bf(this,{type:"Array Iterator",target:G(g),index:0,kind:e})},function(){var g=cf(this),e=g.target,f=g.kind,m=g.index++;return!e||m>=e.length?(g.target=void 0,{value:void 0,done:!0}):"keys"==f?{value:m,done:!1}:"values"==f?{value:e[m],done:!1}:{value:[m,e[m]],done:!1}},"values");ha.Arguments=ha.Array;pa("keys"); pa("values");pa("entries");var df=L.set,ef=L.getterFor("String Iterator");Vc(String,"String",function(g){df(this,{type:"String Iterator",string:String(g),index:0})},function(){var g=ef(this),e=g.string,f=g.index;if(f>=e.length)return{value:void 0,done:!0};e=sc(e,f);g.index+=e.length;return{value:e,done:!1}});var Jb=Object.isExtensible,ff=u(function(){Jb(1)});q({target:"Object",stat:!0,forced:ff},{isExtensible:function(g){return v(g)?Jb?Jb(g):!0:!1}});var Kb=function(g,e,f){for(var m in e)H(g,m,e[m], f);return g},gf=ua.onFreeze,Lb=Object.preventExtensions,hf=u(function(){Lb(1)});q({target:"Object",stat:!0,forced:hf,sham:!ab},{preventExtensions:function(g){return Lb&&v(g)?Lb(gf(g)):g}});var ab=!u(function(){return Object.isExtensible(Object.preventExtensions({}))}),ua=ka(function(g){var e=B.f,f=Ra("meta"),m=0,h=Object.isExtensible||function(){return!0},l=function(a){e(a,f,{value:{objectID:"O"+ ++m,weakData:{}}})},n=g.exports={REQUIRED:!1,fastKey:function(a,c){if(!v(a))return"symbol"==typeof a? a:("string"==typeof a?"S":"P")+a;if(!t(a,f)){if(!h(a))return"F";if(!c)return"E";l(a)}return a[f].objectID},getWeakData:function(a,c){if(!t(a,f)){if(!h(a))return!0;if(!c)return!1;l(a)}return a[f].weakData},onFreeze:function(a){ab&&n.REQUIRED&&h(a)&&!t(a,f)&&l(a);return a}};oa[f]=!0}),jf=/#|\.prototype\./,V=function(g,e){g=kf[lf(g)];return g==mf?!0:g==nf?!1:"function"==typeof e?u(e):!!e},lf=V.normalize=function(g){return String(g).replace(jf,".").toLowerCase()},kf=V.data={},nf=V.NATIVE="N",mf=V.POLYFILL= "P",Wc=x("iterator"),Xc=Array.prototype,of=x("toStringTag"),pf="Arguments"==M(function(){return arguments}()),Yc=function(g){var e;if(void 0===g)var f="Undefined";else{if(null===g)var m="Null";else{a:{var h=g=Object(g);try{m=h[of];break a}catch(l){}m=void 0}m="string"==typeof(f=m)?f:pf?M(g):"Object"==(e=M(g))&&"function"==typeof g.callee?"Arguments":e}f=m}return f},qf=x("iterator"),Zc=function(g){if(void 0!=g)return g[qf]||g["@@iterator"]||ha[Yc(g)]},$c=function(g,e,f,m){try{return m?e(z(f)[0],f[1]): e(f)}catch(h){throw e=g["return"],void 0!==e&&z(e.call(g)),h;}},ad=ka(function(g){var e=function(g,e){this.stopped=g;this.result=e};(g.exports=function(g,m,h,l,n){m=Db(m,h,l?2:1);var a,c;if(!n){n=Zc(g);if("function"!=typeof n)throw TypeError("Target is not iterable");if(void 0!==n&&(ha.Array===n||Xc[Wc]===n)){h=0;for(a=C(g.length);a>h;h++)if((n=l?m(z(c=g[h])[0],c[1]):m(g[h]))&&n instanceof e)return n;return new e(!1)}g=n.call(g)}for(;!(c=g.next()).done;)if((n=$c(g,m,c.value,l))&&n instanceof e)return n; return new e(!1)}).stop=function(g){return new e(!0,g)}}),bd=function(g,e,f){if(!(g instanceof e))throw TypeError("Incorrect "+(f?f+" ":"")+"invocation");return g},rf=!cd(function(g){Array.from(g)});q({target:"Array",stat:!0,forced:rf},{from:function(g){var e=J(g),f="function"==typeof this?this:Array,m=arguments.length,h=1<m?arguments[1]:void 0,l=void 0!==h,n=0,a=Zc(e);l&&(h=Db(h,2<m?arguments[2]:void 0,2));if(void 0!=a&&(f!=Array||void 0===a||ha.Array!==a&&Xc[Wc]!==a))for(e=a.call(e),f=new f;!(m= e.next()).done;n++)ma(f,n,l?$c(e,h,[m.value,n],!0):m.value);else for(m=C(e.length),f=new f(m);m>n;n++)ma(f,n,l?h(e[n],n):e[n]);f.length=n;return f}});var dd=x("iterator"),ed=!1;try{var sf=0,fd={next:function(){return{done:!!sf++}},"return":function(){ed=!0}};fd[dd]=function(){return this};Array.from(fd,function(){throw 2;})}catch(g){}var cd=function(g,e){if(!e&&!ed)return!1;var f=!1;try{e={},e[dd]=function(){return{next:function(){return{done:f=!0}}}},g(e)}catch(m){}return f},Mb=function(g,e,f){var m, h;Fa&&"function"==typeof(m=e.constructor)&&m!==f&&v(h=m.prototype)&&h!==f.prototype&&Fa(g,h);return g},tf=function(g,e,f,m,h){var l=w[g],n=l&&l.prototype,a=l,c=m?"set":"add",b={},d=function(b){var a=n[b];H(n,b,"add"==b?function(b){a.call(this,0===b?0:b);return this}:"delete"==b?function(b){return h&&!v(b)?!1:a.call(this,0===b?0:b)}:"get"==b?function(b){return h&&!v(b)?void 0:a.call(this,0===b?0:b)}:"has"==b?function(b){return h&&!v(b)?!1:a.call(this,0===b?0:b)}:function(b,d){a.call(this,0===b?0:b, d);return this})};if(V(g,"function"!=typeof l||!(h||n.forEach&&!u(function(){(new l).entries().next()}))))a=f.getConstructor(e,g,m,c),ua.REQUIRED=!0;else if(V(g,!0)){var k=new a,p=k[c](h?{}:-0,1)!=k,r=u(function(){k.has(1)}),A=cd(function(b){new l(b)}),N=!h&&u(function(){for(var b=new l,a=5;a--;)b[c](a,a);return!b.has(-0)});A||(a=e(function(b,d){bd(b,a,g);b=Mb(new l,b,a);void 0!=d&&ad(d,b[c],b,m);return b}),a.prototype=n,n.constructor=a);if(r||N)d("delete"),d("has"),m&&d("get");(N||p)&&d(c);h&&n.clear&& delete n.clear}b[g]=a;q({global:!0,forced:a!=l},b);Xa(a,g);h||f.setStrong(a,g,m);return a},uf=Math.max,vf=Math.min;q({target:"Array",proto:!0,forced:!Da("splice")},{splice:function(g,e){var f=J(this),m=C(f.length),h=Na(g,m),l=arguments.length,n,a;0===l?l=n=0:1===l?(l=0,n=m-h):(l-=2,n=vf(uf(Z(e),0),m-h));if(9007199254740991<m+l-n)throw TypeError("Maximum allowed length exceeded");var c=Eb(f,n);for(a=0;a<n;a++){var b=h+a;b in f&&ma(c,a,f[b])}c.length=n;if(l<n){for(a=h;a<m-n;a++){b=a+n;var d=a+l;b in f?f[d]=f[b]:delete f[d]}for(a=m;a>m-n+l;a--)delete f[a-1]}else if(l>n)for(a=m-n;a>h;a--)b=a+n-1,d=a+l-1,b in f?f[d]=f[b]:delete f[d];for(a=0;a<l;a++)f[a+h]=arguments[a+2];f.length=m-n+l;return c}});var bb=ua.getWeakData,wf=L.set,xf=L.getterFor,yf=O.find,zf=O.findIndex,Af=0,cb=function(g){return g.frozen||(g.frozen=new gd)},gd=function(){this.entries=[]},Ob=function(g,e){return yf(g.entries,function(g){return g[0]===e})};gd.prototype={get:function(g){if(g=Ob(this,g))return g[1]},has:function(g){return!!Ob(this, g)},set:function(g,e){var f=Ob(this,g);f?f[1]=e:this.entries.push([g,e])},"delete":function(g){var e=zf(this.entries,function(e){return e[0]===g});~e&&this.entries.splice(e,1);return!!~e}};var hd={getConstructor:function(g,e,f,m){var h=g(function(a,c){bd(a,h,e);wf(a,{type:e,id:Af++,frozen:void 0});void 0!=c&&ad(c,a[m],a,f)}),l=xf(e),n=function(a,c,b){var d=l(a),k=bb(z(c),!0);!0===k?cb(d).set(c,b):k[d.id]=b;return a};Kb(h.prototype,{"delete":function(a){var c=l(this);if(!v(a))return!1;var b=bb(a); return!0===b?cb(c)["delete"](a):b&&t(b,c.id)&&delete b[c.id]},has:function(a){var c=l(this);if(!v(a))return!1;var b=bb(a);return!0===b?cb(c).has(a):b&&t(b,c.id)}});Kb(h.prototype,f?{get:function(a){var c=l(this);if(v(a)){var b=bb(a);return!0===b?cb(c).get(a):b?b[c.id]:void 0}},set:function(a,c){return n(this,a,c)}}:{add:function(a){return n(this,a,!0)}});return h}},db=S("native-function-to-string",Function.toString),id=w.WeakMap,jd="function"===typeof id&&/native code/.test(db.call(id));ka(function(g){var e= L.enforce,f=!w.ActiveXObject&&"ActiveXObject"in w,m=Object.isExtensible,h=function(b){return function(){return b(this,arguments.length?arguments[0]:void 0)}};g=g.exports=tf("WeakMap",h,hd,!0,!0);if(jd&&f){var l=hd.getConstructor(h,"WeakMap",!0);ua.REQUIRED=!0;f=g.prototype;var n=f["delete"],a=f.has,c=f.get,b=f.set;Kb(f,{"delete":function(b){if(v(b)&&!m(b)){var a=e(this);a.frozen||(a.frozen=new l);return n.call(this,b)||a.frozen["delete"](b)}return n.call(this,b)},has:function(b){if(v(b)&&!m(b)){var d= e(this);d.frozen||(d.frozen=new l);return a.call(this,b)||d.frozen.has(b)}return a.call(this,b)},get:function(b){if(v(b)&&!m(b)){var d=e(this);d.frozen||(d.frozen=new l);return a.call(this,b)?c.call(this,b):d.frozen.get(b)}return c.call(this,b)},set:function(d,k){if(v(d)&&!m(d)){var c=e(this);c.frozen||(c.frozen=new l);a.call(this,d)?b.call(this,d,k):c.frozen.set(d,k)}else b.call(this,d,k);return this}})}});var Bf=w.WeakMap;if(jd){var va=new Bf,Cf=va.get,Df=va.has,Ef=va.set;var Pb=function(g,e){Ef.call(va, g,e);return e};var eb=function(g){return Cf.call(va,g)||{}};var Qb=function(g){return Df.call(va,g)}}else{var Ha=Sa("state");oa[Ha]=!0;Pb=function(g,e){D(g,Ha,e);return e};eb=function(g){return t(g,Ha)?g[Ha]:{}};Qb=function(g){return t(g,Ha)}}var L={set:Pb,get:eb,has:Qb,enforce:function(g){return Qb(g)?eb(g):Pb(g,{})},getterFor:function(g){return function(e){var f;if(!v(e)||(f=eb(e)).type!==g)throw TypeError("Incompatible receiver, "+g+" required");return f}}},fb=O.forEach,E=Sa("hidden"),kd=x("toPrimitive"), Ff=L.set,ld=L.getterFor("Symbol"),K=Object.prototype,F=w.Symbol,gb=w.JSON,hb=gb&&gb.stringify,md=qa.f,ba=B.f,nd=sb,Gf=Fb,W=S("symbols"),Ia=S("op-symbols"),Rb=S("string-to-symbol-registry"),Sb=S("symbol-to-string-registry"),Hf=S("wks"),Tb=w.QObject,Ub=!Tb||!Tb.prototype||!Tb.prototype.findChild,Vb=y&&u(function(){return 7!=aa(ba({},"a",{get:function(){return ba(this,"a",{value:7}).a}})).a})?function(g,e,f){var m=md(K,e);m&&delete K[e];ba(g,e,f);m&&g!==K&&ba(K,e,m)}:ba,od=function(g,e){var f=W[g]=aa(F.prototype); Ff(f,{type:"Symbol",tag:g,description:e});y||(f.description=e);return f},Wb=P&&"symbol"==typeof F.iterator?function(g){return"symbol"==typeof g}:function(g){return Object(g)instanceof F},ib=function(g,e,f){g===K&&ib(Ia,e,f);z(g);e=da(e,!0);z(f);return t(W,e)?(f.enumerable?(t(g,E)&&g[E][e]&&(g[E][e]=!1),f=aa(f,{enumerable:ea(0,!1)})):(t(g,E)||ba(g,E,ea(1,{})),g[E][e]=!0),Vb(g,e,f)):ba(g,e,f)},pd=function(g,e){z(g);var f=G(e);e=Aa(f).concat(Xb(f));fb(e,function(e){y&&!Yb.call(f,e)||ib(g,e,f[e])});return g}, Yb=function(g){g=da(g,!0);var e=Gf.call(this,g);return this===K&&t(W,g)&&!t(Ia,g)?!1:e||!t(this,g)||!t(W,g)||t(this,E)&&this[E][g]?e:!0},qd=function(g,e){g=G(g);e=da(e,!0);if(g!==K||!t(W,e)||t(Ia,e)){var f=md(g,e);!f||!t(W,e)||t(g,E)&&g[E][e]||(f.enumerable=!0);return f}},rd=function(g){g=nd(G(g));var e=[];fb(g,function(g){t(W,g)||t(oa,g)||e.push(g)});return e},Xb=function(g){var e=g===K;g=nd(e?Ia:G(g));var f=[];fb(g,function(g){!t(W,g)||e&&!t(K,g)||f.push(W[g])});return f};P||(F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor");var g=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=Ra(g),f=function l(g){this===K&&l.call(Ia,g);t(this,E)&&t(this[E],e)&&(this[E][e]=!1);Vb(this,e,ea(1,g))};y&&Ub&&Vb(K,e,{configurable:!0,set:f});return od(e,g)},H(F.prototype,"toString",function(){return ld(this).tag}),Fb=Yb,B.f=ib,qa.f=qd,za.f=sb=rd,Ua.f=Xb,y&&(ba(F.prototype,"description",{configurable:!0,get:function(){return ld(this).description}}),H(K,"propertyIsEnumerable", Yb,{unsafe:!0})),Lc.f=function(g){return od(x(g),g)});q({global:!0,wrap:!0,forced:!P,sham:!P},{Symbol:F});fb(Aa(Hf),function(g){var e=ya.Symbol||(ya.Symbol={});t(e,g)||Re(e,g,{value:Lc.f(g)})});q({target:"Symbol",stat:!0,forced:!P},{"for":function(g){g=String(g);if(t(Rb,g))return Rb[g];var e=F(g);Rb[g]=e;Sb[e]=g;return e},keyFor:function(g){if(!Wb(g))throw TypeError(g+" is not a symbol");if(t(Sb,g))return Sb[g]},useSetter:function(){Ub=!0},useSimple:function(){Ub=!1}});q({target:"Object",stat:!0, forced:!P,sham:!y},{create:function(g,e){return void 0===e?aa(g):pd(aa(g),e)},defineProperty:ib,defineProperties:pd,getOwnPropertyDescriptor:qd});q({target:"Object",stat:!0,forced:!P},{getOwnPropertyNames:rd,getOwnPropertySymbols:Xb});q({target:"Object",stat:!0,forced:u(function(){Ua.f(1)})},{getOwnPropertySymbols:function(g){return Ua.f(J(g))}});gb&&q({target:"JSON",stat:!0,forced:!P||u(function(){var g=F();return"[null]"!=hb([g])||"{}"!=hb({a:g})||"{}"!=hb(Object(g))})},{stringify:function(g){for(var e= [g],f=1,m;arguments.length>f;)e.push(arguments[f++]);m=f=e[1];if((v(f)||void 0!==g)&&!Wb(g))return la(f)||(f=function(g,e){"function"==typeof m&&(e=m.call(this,g,e));if(!Wb(e))return e}),e[1]=f,hb.apply(gb,e)}});F.prototype[kd]||D(F.prototype,kd,F.prototype.valueOf);Xa(F,"Symbol");oa[E]=!0;var sd=w.Symbol,td=S("wks"),x=function(g){return td[g]||(td[g]=P&&sd[g]||(P?sd:Ra)("Symbol."+g))},If=x("species"),Da=function(g){return!u(function(){var e=[];(e.constructor={})[If]=function(){return{foo:1}};return 1!== e[g](Boolean).foo})},Jf=x("species"),Kf=[].slice,Lf=Math.max;q({target:"Array",proto:!0,forced:!Da("slice")},{slice:function(g,e){var f=G(this),m=C(f.length);g=Na(g,m);e=Na(void 0===e?m:e,m);if(la(f)){var h=f.constructor;"function"!=typeof h||h!==Array&&!la(h.prototype)?v(h)&&(h=h[Jf],null===h&&(h=void 0)):h=void 0;if(h===Array||void 0===h)return Kf.call(f,g,e)}h=new (void 0===h?Array:h)(Lf(e-g,0));for(m=0;g<e;g++,m++)g in f&&ma(h,m,f[g]);h.length=m;return h}});var Mf=x("species"),Nf=[].push,Of=Math.min, wa=!u(function(){return!RegExp(4294967295,"y")});Pa("split",2,function(g,e,f){var m="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(g,f){var h=String(I(this));f=void 0===f?4294967295:f>>>0;if(0===f)return[];if(void 0===g)return[h];if(!tb(g))return e.call(h,g,f);var a=[],c=0;g=new RegExp(g.source,(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+ (g.sticky?"y":"")+"g");for(var b,d,k;b=xa.call(g,h);){d=g.lastIndex;if(d>c&&(a.push(h.slice(c,b.index)),1<b.length&&b.index<h.length&&Nf.apply(a,b.slice(1)),k=b[0].length,c=d,a.length>=f))break;g.lastIndex===b.index&&g.lastIndex++}c===h.length?(k||!g.test(""))&&a.push(""):a.push(h.slice(c));return a.length>f?a.slice(0,f):a}:"0".split(void 0,0).length?function(g,f){return void 0===g&&0===f?[]:e.call(this,g,f)}:e;return[function(e,f){var h=I(this),a=void 0==e?void 0:e[g];return void 0!==a?a.call(e, h,f):m.call(String(h),e,f)},function(g,l){var h=f(m,g,this,l,m!==e);if(h.done)return h.value;h=z(g);g=String(this);var a=RegExp;var c=z(h).constructor,b;a=void 0===c||void 0==(b=z(c)[Mf])?a:Wa(b);b=h.unicode;h=new a(wa?h:"^(?:"+h.source+")",(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(wa?"y":"g"));l=void 0===l?4294967295:l>>>0;if(0===l)return[];if(0===g.length)return null===na(h,g)?[g]:[];var d=0,k=0;for(a=[];k<g.length;){h.lastIndex=wa?k:0;c=na(h,wa?g:g.slice(k));var p;if(null=== c||(p=Of(C(h.lastIndex+(wa?0:k)),g.length))===d)k=qb(g,k,b);else{a.push(g.slice(d,k));if(a.length===l)return a;for(d=1;d<=c.length-1;d++)if(a.push(c[d]),a.length===l)return a;k=d=p}}a.push(g.slice(d));return a}]},!wa);var H=ka(function(g){var e=L.get,f=L.enforce,m=String(db).split("toString");S("inspectSource",function(g){return db.call(g)});(g.exports=function(g,e,n,a){var c=a?!!a.unsafe:!1,b=a?!!a.enumerable:!1;a=a?!!a.noTargetGet:!1;"function"==typeof n&&("string"!=typeof e||t(n,"name")||D(n,"name", e),f(n).source=m.join("string"==typeof e?e:""));g===w?b?g[e]=n:wb(e,n):(c?!a&&g[e]&&(b=!0):delete g[e],b?g[e]=n:D(g,e,n))})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||db.call(this)})}),Pf=x("toStringTag"),Zb={};Zb[Pf]="z";var ud="[object z]"!==String(Zb)?function(){return"[object "+Yc(this)+"]"}:Zb.toString,vd=Object.prototype;ud!==vd.toString&&H(vd,"toString",ud,{unsafe:!0});var $b=Date.prototype,Qf=$b.toString,Rf=$b.getTime;"Invalid Date"!=new Date(NaN)+ ""&&H($b,"toString",function(){var g=Rf.call(this);return g===g?Qf.call(this):"Invalid Date"});var jb=function(){var g=z(this),e="";g.global&&(e+="g");g.ignoreCase&&(e+="i");g.multiline&&(e+="m");g.dotAll&&(e+="s");g.unicode&&(e+="u");g.sticky&&(e+="y");return e};y&&"g"!=/./g.flags&&B.f(RegExp.prototype,"flags",{configurable:!0,get:jb});var wd=RegExp.prototype,xd=wd.toString,Sf=u(function(){return"/a/b"!=xd.call({source:"a",flags:"b"})}),Tf="toString"!=xd.name;(Sf||Tf)&&H(RegExp.prototype,"toString", function(){var g=z(this),e=String(g.source),f=g.flags;g=String(void 0===f&&g instanceof RegExp&&!("flags"in wd)?jb.call(g):f);return"/"+e+"/"+g},{unsafe:!0});var yd=x("species"),Uf=B.f,Vf=za.f,Wf=x("match"),Q=w.RegExp,ac=Q.prototype,Ja=/a/g,bc=/a/g,zd=new Q(Ja)!==Ja;if(y&&V("RegExp",!zd||u(function(){bc[Wf]=!1;return Q(Ja)!=Ja||Q(bc)==bc||"/a/i"!=Q(Ja,"i")}))){var X=function(g,e){var f=this instanceof X,m=tb(g),h=void 0===e;return!f&&m&&g.constructor===X&&h?g:Mb(zd?new Q(m&&!h?g.source:g,e):Q((m= g instanceof X)?g.source:g,m&&h?jb.call(g):e),f?this:ac,X)},Xf=function(g){g in X||Uf(X,g,{configurable:!0,get:function(){return Q[g]},set:function(e){Q[g]=e}})},Ad=Vf(Q),Bd=0;for(;Ad.length>Bd;)Xf(Ad[Bd++]);ac.constructor=X;X.prototype=ac;H(w,"RegExp",X)}(function(g){g=rb(g);var e=B.f;y&&g&&!g[yd]&&e(g,yd,{configurable:!0,get:function(){return this}})})("RegExp");var kb=RegExp.prototype.exec,Yf=String.prototype.replace,Cd=kb,cc=function(){var g=/a/,e=/b*/g;kb.call(g,"a");kb.call(e,"a");return 0!== g.lastIndex||0!==e.lastIndex}(),dc=void 0!==/()??/.exec("")[1];if(cc||dc)Cd=function(g){var e,f;dc&&(e=new RegExp("^"+this.source+"$(?!\\s)",jb.call(this)));if(cc)var m=this.lastIndex;var h=kb.call(this,g);cc&&h&&(this.lastIndex=this.global?h.index+h[0].length:m);dc&&h&&1<h.length&&Yf.call(h[0],e,function(){for(f=1;f<arguments.length-2;f++)void 0===arguments[f]&&(h[f]=void 0)});return h};var xa=Cd;q({target:"RegExp",proto:!0,forced:/./.exec!==xa},{exec:xa});var Zf="".split,Ma=u(function(){return!Object("z").propertyIsEnumerable(0)})? function(g){return"String"==M(g)?Zf.call(g,""):Object(g)}:Object,G=function(g){return Ma(I(g))},Dd=qa.f,$f=u(function(){Dd(1)});q({target:"Object",stat:!0,forced:!y||$f,sham:!y},{getOwnPropertyDescriptor:function(g,e){return Dd(G(g),e)}});var Ed=Object.getOwnPropertyDescriptor,qa={f:y?Ed:function(g,e){g=G(g);e=da(e,!0);if(pc)try{return Ed(g,e)}catch(f){}if(t(g,e))return ea(!Fb.call(g,e),g[e])}},ag=qa.f,q=function(g,e){var f=g.target,m=g.global,h=g.stat,l,n,a;if(n=m?w:h?w[f]||wb(f,{}):(w[f]||{}).prototype)for(a in e){var c= e[a];var b=g.noTargetGet?(l=ag(n,a))&&l.value:n[a];l=V(m?a:f+(h?".":"#")+a,g.forced);if(!l&&void 0!==b){if(typeof c===typeof b)continue;Dc(c,b)}(g.sham||b&&b.sham)&&D(c,"sham",!0);H(n,a,c,g)}},Fd=x("isConcatSpreadable"),bg=!u(function(){var g=[];g[Fd]=!1;return g.concat()[0]!==g}),cg=Da("concat");q({target:"Array",proto:!0,forced:!bg||!cg},{concat:function(g){var e=J(this),f=Eb(e,0),m=0,h;var l=-1;for(h=arguments.length;l<h;l++){var n=-1===l?e:arguments[l];var a=n;if(v(a)){var c=a[Fd];a=void 0!== c?!!c:la(a)}else a=!1;if(a){c=C(n.length);if(9007199254740991<m+c)throw TypeError("Maximum allowed index exceeded");for(a=0;a<c;a++,m++)a in n&&ma(f,m,n[a])}else{if(9007199254740991<=m)throw TypeError("Maximum allowed index exceeded");ma(f,m++,n)}}f.length=m;return f}});var dg=Math.min,ec=[].lastIndexOf,Gd=!!ec&&0>1/[1].lastIndexOf(1,-0),eg=R("lastIndexOf"),Hd=Gd||eg?function(g){if(Gd)return ec.apply(this,arguments)||0;var e=G(this),f=C(e.length),m=f-1;1<arguments.length&&(m=dg(m,Z(arguments[1]))); for(0>m&&(m=f+m);0<=m;m--)if(m in e&&e[m]===g)return m||0;return-1}:ec;q({target:"Array",proto:!0,forced:Hd!==[].lastIndexOf},{lastIndexOf:Hd});var Id=function(g){return function(e,f,m,h){Wa(f);e=J(e);var l=Ma(e),n=C(e.length),a=g?n-1:0,c=g?-1:1;if(2>m)for(;;){if(a in l){h=l[a];a+=c;break}a+=c;if(g?0>a:n<=a)throw TypeError("Reduce of empty array with no initial value");}for(;g?0<=a:n>a;a+=c)a in l&&(h=f(h,l[a],a,e));return h}},fg=Id(!1),gg=Id(!0);q({target:"Array",proto:!0,forced:R("reduce")},{reduce:function(g){return fg(this, g,arguments.length,1<arguments.length?arguments[1]:void 0)}});q({target:"Array",proto:!0,forced:R("reduceRight")},{reduceRight:function(g){return gg(this,g,arguments.length,1<arguments.length?arguments[1]:void 0)}});var Jd=[].sort,Kd=[1,2,3],hg=u(function(){Kd.sort(void 0)}),ig=u(function(){Kd.sort(null)}),jg=R("sort");q({target:"Array",proto:!0,forced:hg||!ig||jg},{sort:function(g){return void 0===g?Jd.call(J(this)):Jd.call(J(this),Wa(g))}});var kg=/^[\t\n\x0B\f\r \u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff][\t\n\x0B\f\r \u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff]*/, lg=/[\t\n\x0B\f\r \u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff][\t\n\x0B\f\r \u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff]*$/,fc=function(g){return function(e){e=String(I(e));g&1&&(e=e.replace(kg,""));g&2&&(e=e.replace(lg,""));return e}},mg=fc(1),ng=fc(2),gc=fc(3),hc=function(g){return u(function(){return!!"\t\n\x0B\f\r \u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"[g]()|| "\u200b\u0085\u180e"!="\u200b\u0085\u180e"[g]()||"\t\n\x0B\f\r \u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"[g].name!==g})};q({target:"String",proto:!0,forced:hc("trim")},{trim:function(){return gc(this)}});var lb=w.parseInt,og=/^[+-]?0[Xx]/,Ld=8!==lb("\t\n\x0B\f\r \u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff08")||22!==lb("\t\n\x0B\f\r \u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff0x16")? function(g,e){g=gc(String(g));return lb(g,e>>>0||(og.test(g)?16:10))}:lb;q({global:!0,forced:parseInt!=Ld},{parseInt:Ld});var pg=za.f,qg=qa.f,rg=B.f,ca=w.Number,mb=ca.prototype,sg="Number"==M(aa(mb)),Md=function(g){var e=da(g,!1),f;if("string"==typeof e&&2<e.length)if(e=gc(e),g=e.charCodeAt(0),43===g||45===g){if(g=e.charCodeAt(2),88===g||120===g)return NaN}else if(48===g){switch(e.charCodeAt(1)){case 66:case 98:g=2;var m=49;break;case 79:case 111:g=8;m=55;break;default:return+e}e=e.slice(2);var h= e.length;for(f=0;f<h;f++){var l=e.charCodeAt(f);if(48>l||l>m)return NaN}return parseInt(e,g)}return+e};if(V("Number",!ca(" 0o1")||!ca("0b1")||ca("+0x1"))){for(var ia=function(g){var e=1>arguments.length?0:g,f=this;return f instanceof ia&&(sg?u(function(){mb.valueOf.call(f)}):"Number"!=M(f))?Mb(new ca(Md(e)),f,ia):Md(e)},Nd=y?pg(ca):"MAX_VALUE MIN_VALUE NaN NEGATIVE_INFINITY POSITIVE_INFINITY EPSILON isFinite isInteger isNaN isSafeInteger MAX_SAFE_INTEGER MIN_SAFE_INTEGER parseFloat parseInt isInteger".split(" "), ic=0,nb;Nd.length>ic;ic++)t(ca,nb=Nd[ic])&&!t(ia,nb)&&rg(ia,nb,qg(ca,nb));ia.prototype=mb;mb.constructor=ia;H(w,"Number",ia)}q({target:"String",proto:!0},{repeat:ob});var ob="".repeat||function(g){var e=String(I(this)),f="";g=Z(g);if(0>g||Infinity==g)throw RangeError("Wrong number of repetitions");for(;0<g;(g>>>=1)&&(e+=e))g&1&&(f+=e);return f},Od=(1).toFixed,Pd=Math.floor,pb=function h(e,f,m){return 0===f?m:1===f%2?h(e,f-1,m*e):h(e*e,f/2,m)},tg=function(e){for(var f=0;4096<=e;)f+=12,e/=4096;for(;2<= e;)f+=1,e/=2;return f},ug=Od&&("0.000"!==(8E-5).toFixed(3)||"1"!==(.9).toFixed(0)||"1.25"!==(1.255).toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!u(function(){Od.call({})});q({target:"Number",proto:!0,forced:ug},{toFixed:function(e){if("number"!=typeof this&&"Number"!=M(this))throw TypeError("Incorrect invocation");var f=+this;e=Z(e);var m=[0,0,0,0,0,0],h="",l="0";var n=function(b,a){for(var d=-1;6>++d;)a+=b*m[d],m[d]=a%1E7,a=Pd(a/1E7)};var a=function(b){for(var a=6,k=0;0<= --a;)k+=m[a],m[a]=Pd(k/b),k=k%b*1E7},c=function(){for(var b=6,a="";0<=--b;)if(""!==a||0===b||0!==m[b]){var k=String(m[b]);a=""===a?k:a+ob.call("0",7-k.length)+k}return a};if(0>e||20<e)throw RangeError("Incorrect fraction digits");if(f!=f)return"NaN";if(-1E21>=f||1E21<=f)return String(f);0>f&&(h="-",f=-f);if(1E-21<f)if(l=tg(f*pb(2,69,1))-69,f=0>l?f*pb(2,-l,1):f/pb(2,l,1),f*=4503599627370496,l=52-l,0<l){n(0,f);for(f=e;7<=f;)n(1E7,0),f-=7;n(pb(10,f,1),0);for(f=l-1;23<=f;)a(8388608),f-=23;a(1<<f);n(1, 1);a(2);l=c()}else n(0,f),n(1<<-l,0),l=c()+ob.call("0",e);0<e?(n=l.length,l=h+(n<=e?"0."+ob.call("0",e-n)+l:l.slice(0,n-e)+"."+l.slice(n-e))):l=h+l;return l}});var vg=ua.onFreeze,jc=Object.freeze,wg=u(function(){jc(1)});q({target:"Object",stat:!0,forced:wg,sham:!ab},{freeze:function(e){return jc&&v(e)?jc(vg(e)):e}});var kc=Object.isFrozen,xg=u(function(){kc(1)});q({target:"Object",stat:!0,forced:xg},{isFrozen:function(e){return v(e)?kc?kc(e):!1:!0}});var yg=ua.onFreeze,lc=Object.seal,zg=u(function(){lc(1)}); q({target:"Object",stat:!0,forced:zg,sham:!ab},{seal:function(e){return lc&&v(e)?lc(yg(e)):e}});var Qd="".endsWith,Ag=Math.min;q({target:"String",proto:!0,forced:!vb("endsWith")},{endsWith:function(e){var f=String(I(this));ub(e);var m=1<arguments.length?arguments[1]:void 0,h=C(f.length);m=void 0===m?h:Ag(C(m),h);h=String(e);return Qd?Qd.call(f,h,m):f.slice(m-h.length,m)===h}});q({target:"Object",stat:!0},{is:mc});var mc=Object.is||function(e,f){return e===f?0!==e||1/e===1/f:e!=e&&f!=f};Pa("search", 1,function(e,f,m){return[function(f){var h=I(this),m=void 0==f?void 0:f[e];return void 0!==m?m.call(f,h):(new RegExp(f))[e](String(h))},function(e){var h=m(f,e,this);if(h.done)return h.value;e=z(e);var n=String(this);h=e.lastIndex;mc(h,0)||(e.lastIndex=0);n=na(e,n);mc(e.lastIndex,h)||(e.lastIndex=h);return null===n?-1:n.index}]});var Rd="".startsWith,Bg=Math.min;q({target:"String",proto:!0,forced:!vb("startsWith")},{startsWith:function(e){var f=String(I(this));ub(e);var m=C(Bg(1<arguments.length? arguments[1]:void 0,f.length)),h=String(e);return Rd?Rd.call(f,h,m):f.slice(m,m+h.length)===h}});var Sd=hc("trimEnd"),Td=Sd?function(){return ng(this)}:"".trimEnd;q({target:"String",proto:!0,forced:Sd},{trimEnd:Td,trimRight:Td});var Ud=hc("trimStart"),Vd=Ud?function(){return mg(this)}:"".trimStart;q({target:"String",proto:!0,forced:Ud},{trimStart:Vd,trimLeft:Vd});var Wd=ka(function(e,f){e.exports=function(){return function a(e,f,n){function c(d,p){if(!f[d]){if(!e[d]){var k="function"==typeof Y&&Y; if(!p&&k)return k(d,!0);if(b)return b(d,!0);p=Error("Cannot find module '"+d+"'");throw p.code="MODULE_NOT_FOUND",p;}p=f[d]={exports:{}};e[d][0].call(p.exports,function(b){var a=e[d][1][b];return c(a?a:b)},p,p.exports,a,e,f,n)}return f[d].exports}for(var b="function"==typeof Y&&Y,d=0;d<n.length;d++)c(n[d]);return c}({1:[function(e,f,n){var a=a||{};a.global=this||self;a.isDef=function(b){return void 0!==b};a.isString=function(b){return"string"==typeof b};a.isBoolean=function(b){return"boolean"==typeof b}; a.isNumber=function(b){return"number"==typeof b};a.exportPath_=function(b,d,k){b=b.split(".");k=k||a.global;b[0]in k||"undefined"==typeof k.execScript||k.execScript("var "+b[0]);for(var c;b.length&&(c=b.shift());)!b.length&&a.isDef(d)?k[c]=d:k=k[c]&&k[c]!==Object.prototype[c]?k[c]:k[c]={}};a.define=function(b,a){return a};a.FEATURESET_YEAR=2012;a.DEBUG=!0;a.LOCALE="en";a.TRUSTED_SITE=!0;a.STRICT_MODE_COMPATIBLE=!1;a.DISALLOW_TEST_ONLY_CODE=!a.DEBUG;a.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;a.provide= function(b){if(a.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");a.constructNamespace_(b)};a.constructNamespace_=function(b,d){a.exportPath_(b,d)};a.getScriptNonce=function(b){if(b&&b!=a.global)return a.getScriptNonce_(b.document);null===a.cspNonce_&&(a.cspNonce_=a.getScriptNonce_(a.global.document));return a.cspNonce_};a.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/;a.cspNonce_=null;a.getScriptNonce_=function(b){return(b=b.querySelector&&b.querySelector("script[nonce]"))&& (b=b.nonce||b.getAttribute("nonce"))&&a.NONCE_PATTERN_.test(b)?b:""};a.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;a.module=function(b){if(!a.isString(b)||!b||-1==b.search(a.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!a.isInGoogModuleLoader_())throw Error("Module "+b+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide."); if(a.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");a.moduleLoaderState_.moduleName=b};a.module.get=function(b){return a.module.getInternal_(b)};a.module.getInternal_=function(b){return null};a.ModuleType={ES6:"es6",GOOG:"goog"};a.moduleLoaderState_=null;a.isInModuleLoader_=function(){return a.isInGoogModuleLoader_()||a.isInEs6ModuleLoader_()};a.isInGoogModuleLoader_=function(){return!!a.moduleLoaderState_&&a.moduleLoaderState_.type==a.ModuleType.GOOG}; a.isInEs6ModuleLoader_=function(){if(a.moduleLoaderState_&&a.moduleLoaderState_.type==a.ModuleType.ES6)return!0;var b=a.global.$jscomp;return b?"function"!=typeof b.getCurrentModulePath?!1:!!b.getCurrentModulePath():!1};a.module.declareLegacyNamespace=function(){a.moduleLoaderState_.declareLegacyNamespace=!0};a.declareModuleId=function(b){if(a.moduleLoaderState_)a.moduleLoaderState_.moduleName=b;else{var d=a.global.$jscomp;if(!d||"function"!=typeof d.getCurrentModulePath)throw Error('Module with namespace "'+ b+'" has been loaded incorrectly.');d=d.require(d.getCurrentModulePath());a.loadedModules_[b]={exports:d,type:a.ModuleType.ES6,moduleId:b}}};a.setTestOnly=function(b){if(a.DISALLOW_TEST_ONLY_CODE)throw b=b||"",Error("Importing test-only code into non-debug environment"+(b?": "+b:"."));};a.forwardDeclare=function(b){};a.getObjectByName=function(b,d){b=b.split(".");d=d||a.global;for(var k=0;k<b.length;k++)if(d=d[b[k]],!a.isDefAndNotNull(d))return null;return d};a.globalize=function(b,d){d=d||a.global; for(var k in b)d[k]=b[k]};a.addDependency=function(b,a,k,c){};a.ENABLE_DEBUG_LOADER=!0;a.logToConsole_=function(b){a.global.console&&a.global.console.error(b)};a.require=function(b){};a.requireType=function(b){return{}};a.basePath="";a.nullFunction=function(){};a.abstractMethod=function(){throw Error("unimplemented abstract method");};a.addSingletonGetter=function(b){b.instance_=void 0;b.getInstance=function(){if(b.instance_)return b.instance_;a.DEBUG&&(a.instantiatedSingletons_[a.instantiatedSingletons_.length]= b);return b.instance_=new b}};a.instantiatedSingletons_=[];a.LOAD_MODULE_USING_EVAL=!0;a.SEAL_MODULE_EXPORTS=a.DEBUG;a.loadedModules_={};a.DEPENDENCIES_ENABLED=!1;a.TRANSPILE="detect";a.ASSUME_ES_MODULES_TRANSPILED=!1;a.TRANSPILE_TO_LANGUAGE="";a.TRANSPILER="transpile.js";a.hasBadLetScoping=null;a.useSafari10Workaround=function(){if(null==a.hasBadLetScoping){try{var b=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(d){b=!1}a.hasBadLetScoping=b}return a.hasBadLetScoping}; a.workaroundSafari10EvalBug=function(b){return"(function(){"+b+"\n;})();\n"};a.loadModule=function(b){var d=a.moduleLoaderState_;try{a.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:a.ModuleType.GOOG};if(a.isFunction(b))var k=b.call(void 0,{});else if(a.isString(b))a.useSafari10Workaround()&&(b=a.workaroundSafari10EvalBug(b)),k=a.loadModuleFromSource_.call(void 0,b);else throw Error("Invalid module definition");var c=a.moduleLoaderState_.moduleName;if(a.isString(c)&&c)a.moduleLoaderState_.declareLegacyNamespace? a.constructNamespace_(c,k):a.SEAL_MODULE_EXPORTS&&Object.seal&&"object"==typeof k&&null!=k&&Object.seal(k),a.loadedModules_[c]={exports:k,type:a.ModuleType.GOOG,moduleId:a.moduleLoaderState_.moduleName};else throw Error('Invalid module name "'+c+'"');}finally{a.moduleLoaderState_=d}};a.loadModuleFromSource_=function(b){eval(b);return{}};a.normalizePath_=function(b){b=b.split("/");for(var a=0;a<b.length;)"."==b[a]?b.splice(a,1):a&&".."==b[a]&&b[a-1]&&".."!=b[a-1]?b.splice(--a,2):a++;return b.join("/")}; a.loadFileSync_=function(b){if(a.global.CLOSURE_LOAD_FILE_SYNC)return a.global.CLOSURE_LOAD_FILE_SYNC(b);try{var d=new a.global.XMLHttpRequest;d.open("get",b,!1);d.send();return 0==d.status||200==d.status?d.responseText:null}catch(k){return null}};a.transpile_=function(b,d,k){var c=a.global.$jscomp;c||(a.global.$jscomp=c={});var e=c.transpile;if(!e){var f=a.basePath+a.TRANSPILER,h=a.loadFileSync_(f);if(h){(function(){(0,eval)(h+"\n//# sourceURL="+f)}).call(a.global);if(a.global.$gwtExport&&a.global.$gwtExport.$jscomp&& !a.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(a.global.$gwtExport));a.global.$jscomp.transpile=a.global.$gwtExport.$jscomp.transpile;c=a.global.$jscomp;e=c.transpile}}e||(e=c.transpile=function(b,d){a.logToConsole_(d+" requires transpilation but no transpiler was found.");return b});return e(b,d,k)};a.typeOf=function(b){var a=typeof b;if("object"==a)if(b){if(b instanceof Array)return"array";if(b instanceof Object)return a;var k=Object.prototype.toString.call(b);if("[object Window]"==k)return"object";if("[object Array]"==k||"number"==typeof b.length&&"undefined"!=typeof b.splice&&"undefined"!=typeof b.propertyIsEnumerable&&!b.propertyIsEnumerable("splice"))return"array";if("[object Function]"==k||"undefined"!=typeof b.call&&"undefined"!=typeof b.propertyIsEnumerable&&!b.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==a&&"undefined"==typeof b.call)return"object";return a}; a.isNull=function(b){return null===b};a.isDefAndNotNull=function(b){return null!=b};a.isArray=function(b){return"array"==a.typeOf(b)};a.isArrayLike=function(b){var d=a.typeOf(b);return"array"==d||"object"==d&&"number"==typeof b.length};a.isDateLike=function(b){return a.isObject(b)&&"function"==typeof b.getFullYear};a.isFunction=function(b){return"function"==a.typeOf(b)};a.isObject=function(b){var a=typeof b;return"object"==a&&null!=b||"function"==a};a.getUid=function(b){return b[a.UID_PROPERTY_]|| (b[a.UID_PROPERTY_]=++a.uidCounter_)};a.hasUid=function(b){return!!b[a.UID_PROPERTY_]};a.removeUid=function(b){null!==b&&"removeAttribute"in b&&b.removeAttribute(a.UID_PROPERTY_);try{delete b[a.UID_PROPERTY_]}catch(d){}};a.UID_PROPERTY_="closure_uid_"+(1E9*Math.random()>>>0);a.uidCounter_=0;a.getHashCode=a.getUid;a.removeHashCode=a.removeUid;a.cloneObject=function(b){var d=a.typeOf(b);if("object"==d||"array"==d){if("function"===typeo