UNPKG

bipbop-webservice

Version:

Chamada aos serviços da BIPBOP via NodeJS ou pelo navegador.

1 lines 78.2 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("form-data"),require("cross-fetch")):"function"==typeof define&&define.amd?define(["exports","form-data","cross-fetch"],e):e((t=t||self).bipbop={},t.FormData,t.fetch)}(this,function(t,o,u){o=o&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o,u=u&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,e){return t(e={exports:{}},e.exports),e.exports}function n(t){return t&&t.Math==Math&&t}function f(t){try{return!!t()}catch(t){return!0}}function N(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function h(t){return _.call(t).slice(8,-1)}function d(t){if(null==t)throw TypeError("Can't call method on "+t);return t}function l(t){return O(d(t))}function m(t){return"object"==typeof t?null!==t:"function"==typeof t}function i(t,e){if(!m(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!m(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!m(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!m(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}function s(t,e){return T.call(t,e)}function a(t){return A?S.createElement(t):{}}function b(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t}function p(e,r){try{L(v,e,r)}catch(t){v[e]=r}return r}var v=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")(),c=!f(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),E={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,y={f:g&&!E.call({1:2},1)?function(t){var e=g(this,t);return!!e&&e.enumerable}:E},_={}.toString,w="".split,O=f(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==h(t)?w.call(t,""):Object(t)}:Object,T={}.hasOwnProperty,S=v.document,A=m(S)&&m(S.createElement),x=!c&&!f(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}),I=Object.getOwnPropertyDescriptor,R={f:c?I:function(t,e){if(t=l(t),e=i(e,!0),x)try{return I(t,e)}catch(t){}if(s(t,e))return N(!y.f.call(t,e),t[e])}},D=Object.defineProperty,C={f:c?D:function(t,e,r){if(b(t),e=i(e,!0),b(r),x)try{return D(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},L=c?function(t,e,r){return C.f(t,e,N(1,r))}:function(t,e,r){return t[e]=r,t},P="__core-js_shared__",j=v[P]||p(P,{}),U=Function.toString;"function"!=typeof j.inspectSource&&(j.inspectSource=function(t){return U.call(t)});function M(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++Y+W).toString(36)}function F(t){return $[t]||($[t]=M(t))}var k,B,G,H=j.inspectSource,V=v.WeakMap,K="function"==typeof V&&/native code/.test(H(V)),q=r(function(t){(t.exports=function(t,e){return j[t]||(j[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),Y=0,W=Math.random(),$=q("keys"),X={},z=v.WeakMap;if(K){var Q=new z,J=Q.get,Z=Q.has,tt=Q.set;k=function(t,e){return tt.call(Q,t,e),e},B=function(t){return J.call(Q,t)||{}},G=function(t){return Z.call(Q,t)}}else{var et=F("state");X[et]=!0,k=function(t,e){return L(t,et,e),e},B=function(t){return s(t,et)?t[et]:{}},G=function(t){return s(t,et)}}function rt(t){return"function"==typeof t?t:void 0}function nt(t,e){return arguments.length<2?rt(yt[t])||rt(v[t]):yt[t]&&yt[t][e]||v[t]&&v[t][e]}function ot(t){return isNaN(t=+t)?0:(0<t?bt:Nt)(t)}function it(t){return 0<t?_t(ot(t),9007199254740991):0}function at(s){return function(t,e,r){var n,o,i,a=l(t),u=it(a.length),c=(n=u,(o=ot(r))<0?wt(o+n,0):Ot(o,n));if(s&&e!=e){for(;c<u;)if((i=a[c++])!=i)return!0}else for(;c<u;c++)if((s||c in a)&&a[c]===e)return s||c||0;return!s&&-1}}function ut(t,e){var r,n=l(t),o=0,i=[];for(r in n)!s(X,r)&&s(n,r)&&i.push(r);for(;e.length>o;)s(n,r=e[o++])&&(~Tt(i,r)||i.push(r));return i}function ct(t,e){for(var r=Rt(e),n=C.f,o=R.f,i=0;i<r.length;i++){var a=r[i];s(t,a)||n(t,a,o(e,a))}}function st(t,e){var r=Lt[Ct(t)];return r==jt||r!=Pt&&("function"==typeof e?f(e):!!e)}function lt(t,e){var r,n,o,i,a,u=t.target,c=t.global,s=t.stat;if(r=c?v:s?v[u]||p(u,{}):(v[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=Mt(r,n))&&a.value:r[n],!Ut(c?n:u+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;ct(i,o)}(t.sham||o&&o.sham)&&L(i,"sham",!0),gt(r,n,i,t)}}function ft(t){return Object(d(t))}function pt(t,e,r){var n=i(e);n in t?C.f(t,n,N(0,r)):t[n]=r}function ht(t){return s(Gt,t)||(kt&&s(Ht,t)?Gt[t]=Ht[t]:Gt[t]=Vt("Symbol."+t)),Gt[t]}function dt(t,e){var r;return Ft(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!Ft(r.prototype)?m(r)&&null===(r=r[Kt])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}var mt,vt,Et={set:k,get:B,has:G,enforce:function(t){return G(t)?B(t):k(t,{})},getterFor:function(r){return function(t){var e;if(!m(t)||(e=B(t)).type!==r)throw TypeError("Incompatible receiver, "+r+" required");return e}}},gt=r(function(t){var e=Et.get,u=Et.enforce,c=String(String).split("String");(t.exports=function(t,e,r,n){var o=!!n&&!!n.unsafe,i=!!n&&!!n.enumerable,a=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||s(r,"name")||L(r,"name",e),u(r).source=c.join("string"==typeof e?e:"")),t!==v?(o?!a&&t[e]&&(i=!0):delete t[e],i?t[e]=r:L(t,e,r)):i?t[e]=r:p(e,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||H(this)})}),yt=v,Nt=Math.ceil,bt=Math.floor,_t=Math.min,wt=Math.max,Ot=Math.min,Tt={includes:at(!0),indexOf:at(!1)}.indexOf,St=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],At=St.concat("length","prototype"),xt={f:Object.getOwnPropertyNames||function(t){return ut(t,At)}},It={f:Object.getOwnPropertySymbols},Rt=nt("Reflect","ownKeys")||function(t){var e=xt.f(b(t)),r=It.f;return r?e.concat(r(t)):e},Dt=/#|\.prototype\./,Ct=st.normalize=function(t){return String(t).replace(Dt,".").toLowerCase()},Lt=st.data={},Pt=st.NATIVE="N",jt=st.POLYFILL="P",Ut=st,Mt=R.f,Ft=Array.isArray||function(t){return"Array"==h(t)},kt=!!Object.getOwnPropertySymbols&&!f(function(){return!String(Symbol())}),Bt=kt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Gt=q("wks"),Ht=v.Symbol,Vt=Bt?Ht:Ht&&Ht.withoutSetter||M,Kt=ht("species"),qt=nt("navigator","userAgent")||"",Yt=v.process,Wt=Yt&&Yt.versions,$t=Wt&&Wt.v8;$t?vt=(mt=$t.split("."))[0]+mt[1]:qt&&(!(mt=qt.match(/Edge\/(\d+)/))||74<=mt[1])&&(mt=qt.match(/Chrome\/(\d+)/))&&(vt=mt[1]);function Xt(e){return 51<=Qt||!f(function(){var t=[];return(t.constructor={})[Jt]=function(){return{foo:1}},1!==t[e](Boolean).foo})}function zt(t){if(!m(t))return!1;var e=t[Zt];return void 0!==e?!!e:Ft(t)}var Qt=vt&&+vt,Jt=ht("species"),Zt=ht("isConcatSpreadable"),te=9007199254740991,ee="Maximum allowed index exceeded",re=51<=Qt||!f(function(){var t=[];return t[Zt]=!1,t.concat()[0]!==t}),ne=Xt("concat");lt({target:"Array",proto:!0,forced:!re||!ne},{concat:function(t){var e,r,n,o,i,a=ft(this),u=dt(a,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(zt(i=-1===e?a:arguments[e])){if(o=it(i.length),te<c+o)throw TypeError(ee);for(r=0;r<o;r++,c++)r in i&&pt(u,c,i[r])}else{if(te<=c)throw TypeError(ee);pt(u,c++,i)}return u.length=c,u}});function oe(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}function ie(n,o,t){if(oe(n),void 0===o)return n;switch(t){case 0:return function(){return n.call(o)};case 1:return function(t){return n.call(o,t)};case 2:return function(t,e){return n.call(o,t,e)};case 3:return function(t,e,r){return n.call(o,t,e,r)}}return function(){return n.apply(o,arguments)}}function ae(h){var d=1==h,m=2==h,v=3==h,E=4==h,g=6==h,y=5==h||g;return function(t,e,r,n){for(var o,i,a=ft(t),u=O(a),c=ie(e,r,3),s=it(u.length),l=0,f=n||dt,p=d?f(t,s):m?f(t,0):void 0;l<s;l++)if((y||l in u)&&(i=c(o=u[l],l,a),h))if(d)p[l]=i;else if(i)switch(h){case 3:return!0;case 5:return o;case 6:return l;case 2:se.call(p,o)}else if(E)return!1;return g?-1:v||E?E:p}}function ue(t){throw t}function ce(t,e){if(s(pe,t))return pe[t];var r=[][t],n=!!s(e=e||{},"ACCESSORS")&&e.ACCESSORS,o=s(e,0)?e[0]:ue,i=s(e,1)?e[1]:void 0;return pe[t]=!!r&&!f(function(){if(n&&!c)return!0;var t={length:-1};n?fe(t,1,{enumerable:!0,get:ue}):t[1]=1,r.call(t,o,i)})}var se=[].push,le={forEach:ae(0),map:ae(1),filter:ae(2),some:ae(3),every:ae(4),find:ae(5),findIndex:ae(6)},fe=Object.defineProperty,pe={},he=le.filter,de=Xt("filter"),me=ce("filter");lt({target:"Array",proto:!0,forced:!de||!me},{filter:function(t,e){return he(this,t,1<arguments.length?e:void 0)}});var ve,Ee,ge=le.forEach,ye=!!(Ee=[]["forEach"])&&f(function(){Ee.call(null,ve||function(){throw 1},1)}),Ne=ce("forEach"),be=ye&&Ne?[].forEach:function(t,e){return ge(this,t,1<arguments.length?e:void 0)};lt({target:"Array",proto:!0,forced:[].forEach!=be},{forEach:be});function _e(e,t,r,n){try{return n?t(b(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&b(o.call(e)),t}}function we(t){return void 0!==t&&(Oe.Array===t||Se[Te]===t)}var Oe={},Te=ht("iterator"),Se=Array.prototype,Ae={};Ae[ht("toStringTag")]="z";function xe(t){if(null!=t)return t[Le]||t["@@iterator"]||Oe[Ce(t)]}var Ie="[object z]"===String(Ae),Re=ht("toStringTag"),De="Arguments"==h(function(){return arguments}()),Ce=Ie?h:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Re))?r:De?h(e):"Object"==(n=h(e))&&"function"==typeof e.callee?"Arguments":n},Le=ht("iterator"),Pe=ht("iterator"),je=!1;try{var Ue=0,Me={next:function(){return{done:!!Ue++}},return:function(){je=!0}};Me[Pe]=function(){return this},Array.from(Me,function(){throw 2})}catch(t){}function Fe(t,e){if(!e&&!je)return!1;var r=!1;try{var n={};n[Pe]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}var ke=!Fe(function(t){Array.from(t)});lt({target:"Array",stat:!0,forced:ke},{from:function(t,e,r){var n,o,i,a,u,c,s=ft(t),l="function"==typeof this?this:Array,f=arguments.length,p=1<f?e:void 0,h=void 0!==p,d=xe(s),m=0;if(h&&(p=ie(p,2<f?r:void 0,2)),null==d||l==Array&&we(d))for(o=new l(n=it(s.length));m<n;m++)c=h?p(s[m],m):s[m],pt(o,m,c);else for(u=(a=d.call(s)).next,o=new l;!(i=u.call(a)).done;m++)c=h?_e(a,p,[i.value,m],!0):i.value,pt(o,m,c);return o.length=m,o}});var Be=Object.keys||function(t){return ut(t,St)},Ge=f(function(){Be(1)});lt({target:"Object",stat:!0,forced:Ge},{keys:function(t){return Be(ft(t))}});var He=Ie?{}.toString:function(){return"[object "+Ce(this)+"]"};Ie||gt(Object.prototype,"toString",He,{unsafe:!0});function Ve(r){return function(t){var e=String(d(t));return 1&r&&(e=e.replace(Ye,"")),2&r&&(e=e.replace(We,"")),e}}var Ke="\t\n\v\f\r                 \u2028\u2029\ufeff",qe="["+Ke+"]",Ye=RegExp("^"+qe+qe+"*"),We=RegExp(qe+qe+"*$"),$e={start:Ve(1),end:Ve(2),trim:Ve(3)}.trim,Xe=v.parseInt,ze=/^[+-]?0[Xx]/,Qe=8!==Xe(Ke+"08")||22!==Xe(Ke+"0x16")?function(t,e){var r=$e(String(t));return Xe(r,e>>>0||(ze.test(r)?16:10))}:Xe;lt({global:!0,forced:parseInt!=Qe},{parseInt:Qe});function Je(t,e,r){t&&!s(t=r?t:t.prototype,sr)&&cr(t,sr,{configurable:!0,value:e})}function Ze(t,e){var r,n=b(t).constructor;return void 0===n||null==(r=b(n)[pr])?e:oe(r)}function tr(t){if(_r.hasOwnProperty(t)){var e=_r[t];delete _r[t],e()}}function er(t){return function(){tr(t)}}function rr(t){tr(t.data)}function nr(t){v.postMessage(t+"",mr.protocol+"//"+mr.host)}var or,ir,ar,ur=v.Promise,cr=C.f,sr=ht("toStringTag"),lr=ht("species"),fr=r(function(t){function h(t,e){this.stopped=t,this.result=e}(t.exports=function(t,e,r,n,o){var i,a,u,c,s,l,f,p=ie(e,r,n?2:1);if(o)i=t;else{if("function"!=typeof(a=xe(t)))throw TypeError("Target is not iterable");if(we(a)){for(u=0,c=it(t.length);u<c;u++)if((s=n?p(b(f=t[u])[0],f[1]):p(t[u]))&&s instanceof h)return s;return new h(!1)}i=a.call(t)}for(l=i.next;!(f=l.call(i)).done;)if("object"==typeof(s=_e(i,p,f.value,n))&&s&&s instanceof h)return s;return new h(!1)}).stop=function(t){return new h(!0,t)}}),pr=ht("species"),hr=nt("document","documentElement"),dr=/(iphone|ipod|ipad).*applewebkit/i.test(qt),mr=v.location,vr=v.setImmediate,Er=v.clearImmediate,gr=v.process,yr=v.MessageChannel,Nr=v.Dispatch,br=0,_r={},wr="onreadystatechange";vr&&Er||(vr=function(t){for(var e=[],r=1;r<arguments.length;)e.push(arguments[r++]);return _r[++br]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},or(br),br},Er=function(t){delete _r[t]},"process"==h(gr)?or=function(t){gr.nextTick(er(t))}:Nr&&Nr.now?or=function(t){Nr.now(er(t))}:yr&&!dr?(ar=(ir=new yr).port2,ir.port1.onmessage=rr,or=ie(ar.postMessage,ar,1)):!v.addEventListener||"function"!=typeof postMessage||v.importScripts||f(nr)||"file:"===mr.protocol?or=wr in a("script")?function(t){hr.appendChild(a("script"))[wr]=function(){hr.removeChild(this),tr(t)}}:function(t){setTimeout(er(t),0)}:(or=nr,v.addEventListener("message",rr,!1)));var Or,Tr,Sr,Ar,xr,Ir,Rr,Dr,Cr={set:vr,clear:Er},Lr=R.f,Pr=Cr.set,jr=v.MutationObserver||v.WebKitMutationObserver,Ur=v.process,Mr=v.Promise,Fr="process"==h(Ur),kr=Lr(v,"queueMicrotask"),Br=kr&&kr.value;Br||(Or=function(){var t,e;for(Fr&&(t=Ur.domain)&&t.exit();Tr;){e=Tr.fn,Tr=Tr.next;try{e()}catch(t){throw Tr?Ar():Sr=void 0,t}}Sr=void 0,t&&t.enter()},Ar=Fr?function(){Ur.nextTick(Or)}:jr&&!dr?(xr=!0,Ir=document.createTextNode(""),new jr(Or).observe(Ir,{characterData:!0}),function(){Ir.data=xr=!xr}):Mr&&Mr.resolve?(Rr=Mr.resolve(void 0),Dr=Rr.then,function(){Dr.call(Rr,Or)}):function(){Pr.call(v,Or)});function Gr(t){var r,n;this.promise=new t(function(t,e){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=t,n=e}),this.resolve=oe(r),this.reject=oe(n)}function Hr(t,e){if(b(t),m(e)&&e.constructor===t)return e;var r=rn.f(t);return(0,r.resolve)(e),r.promise}function Vr(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}function Kr(t){var e;return!(!m(t)||"function"!=typeof(e=t.then))&&e}function qr(f,p,h){if(!p.notified){p.notified=!0;var d=p.reactions;en(function(){for(var t=p.value,e=1==p.state,r=0;d.length>r;){var n,o,i,a=d[r++],u=e?a.ok:a.fail,c=a.resolve,s=a.reject,l=a.domain;try{u?(e||(2===p.rejection&&On(f,p),p.rejection=1),!0===u?n=t:(l&&l.enter(),n=u(t),l&&(l.exit(),i=!0)),n===a.promise?s(fn("Promise-chain cycle")):(o=Kr(n))?o.call(n,c,s):c(n)):s(t)}catch(t){l&&!i&&l.exit(),s(t)}}p.reactions=[],p.notified=!1,h&&!p.rejection&&_n(f,p)})}}function Yr(t,e,r){var n,o;gn?((n=pn.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),v.dispatchEvent(n)):n={promise:e,reason:r},(o=v["on"+t])?o(n):t===yn&&function(t,e){var r=v.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}("Unhandled promise rejection",r)}function Wr(e,r,n,o){return function(t){e(r,n,t,o)}}function $r(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,qr(t,e,!0))}var Xr,zr,Qr,Jr,Zr,tn,en=Br||function(t){var e={fn:t,next:void 0};Sr&&(Sr.next=e),Tr||(Tr=e,Ar()),Sr=e},rn={f:function(t){return new Gr(t)}},nn=Cr.set,on=ht("species"),an="Promise",un=Et.get,cn=Et.set,sn=Et.getterFor(an),ln=ur,fn=v.TypeError,pn=v.document,hn=v.process,dn=nt("fetch"),mn=rn.f,vn=mn,En="process"==h(hn),gn=!!(pn&&pn.createEvent&&v.dispatchEvent),yn="unhandledrejection",Nn=Ut(an,function(){if(!(H(ln)!==String(ln))){if(66===Qt)return!0;if(!En&&"function"!=typeof PromiseRejectionEvent)return!0}if(51<=Qt&&/native code/.test(ln))return!1;function t(t){t(function(){},function(){})}var e=ln.resolve(1);return(e.constructor={})[on]=t,!(e.then(function(){})instanceof t)}),bn=Nn||!Fe(function(t){ln.all(t).catch(function(){})}),_n=function(r,n){nn.call(v,function(){var t,e=n.value;if(wn(n)&&(t=Vr(function(){En?hn.emit("unhandledRejection",e,r):Yr(yn,r,e)}),n.rejection=En||wn(n)?2:1,t.error))throw t.value})},wn=function(t){return 1!==t.rejection&&!t.parent},On=function(t,e){nn.call(v,function(){En?hn.emit("rejectionHandled",t):Yr("rejectionhandled",t,e.value)})},Tn=function(r,n,t,e){if(!n.done){n.done=!0,e&&(n=e);try{if(r===t)throw fn("Promise can't be resolved itself");var o=Kr(t);o?en(function(){var e={done:!1};try{o.call(t,Wr(Tn,r,e,n),Wr($r,r,e,n))}catch(t){$r(r,e,t,n)}}):(n.value=t,n.state=1,qr(r,n,!1))}catch(t){$r(r,{done:!1},t,n)}}};Nn&&(ln=function(t){!function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation")}(this,ln,an),oe(t),Xr.call(this);var e=un(this);try{t(Wr(Tn,this,e),Wr($r,this,e))}catch(t){$r(this,e,t)}},(Xr=function(){cn(this,{type:an,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,r){for(var n in e)gt(t,n,e[n],r);return t}(ln.prototype,{then:function(t,e){var r=sn(this),n=mn(Ze(this,ln));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=En?hn.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&qr(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),zr=function(){var t=new Xr,e=un(t);this.promise=t,this.resolve=Wr(Tn,t,e),this.reject=Wr($r,t,e)},rn.f=mn=function(t){return t===ln||t===Qr?new zr(t):vn(t)},"function"==typeof ur&&(Jr=ur.prototype.then,gt(ur.prototype,"then",function(t,e){var r=this;return new ln(function(t,e){Jr.call(r,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof dn&&lt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Hr(ln,dn.apply(v,arguments))}}))),lt({global:!0,wrap:!0,forced:Nn},{Promise:ln}),Je(ln,an,!1),Zr=nt(an),tn=C.f,c&&Zr&&!Zr[lr]&&tn(Zr,lr,{configurable:!0,get:function(){return this}}),Qr=nt(an),lt({target:an,stat:!0,forced:Nn},{reject:function(t){var e=mn(this);return e.reject.call(void 0,t),e.promise}}),lt({target:an,stat:!0,forced:Nn},{resolve:function(t){return Hr(this,t)}}),lt({target:an,stat:!0,forced:bn},{all:function(t){var u=this,e=mn(u),c=e.resolve,s=e.reject,r=Vr(function(){var n=oe(u.resolve),o=[],i=0,a=1;fr(t,function(t){var e=i++,r=!1;o.push(void 0),a++,n.call(u,t).then(function(t){r||(r=!0,o[e]=t,--a||c(o))},s)}),--a||c(o)});return r.error&&s(r.value),e.promise},race:function(t){var r=this,n=mn(r),o=n.reject,e=Vr(function(){var e=oe(r.resolve);fr(t,function(t){e.call(r,t).then(n.resolve,o)})});return e.error&&o(e.value),n.promise}});function Sn(t,e){return RegExp(t,e)}var An,xn,In={UNSUPPORTED_Y:f(function(){var t=Sn("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),BROKEN_CARET:f(function(){var t=Sn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})},Rn=RegExp.prototype.exec,Dn=String.prototype.replace,Cn=Rn,Ln=(An=/a/,xn=/b*/g,Rn.call(An,"a"),Rn.call(xn,"a"),0!==An.lastIndex||0!==xn.lastIndex),Pn=In.UNSUPPORTED_Y||In.BROKEN_CARET,jn=void 0!==/()??/.exec("")[1];(Ln||jn||Pn)&&(Cn=function(t){var e,r,n,o,i=this,a=Pn&&i.sticky,u=function(){var t=b(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}.call(i),c=i.source,s=0,l=t;return a&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),l=String(t).slice(i.lastIndex),0<i.lastIndex&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(c="(?: "+c+")",l=" "+l,s++),r=new RegExp("^(?:"+c+")",u)),jn&&(r=new RegExp("^"+c+"$(?!\\s)",u)),Ln&&(e=i.lastIndex),n=Rn.call(a?r:i,l),a?n?(n.input=n.input.slice(s),n[0]=n[0].slice(s),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:Ln&&n&&(i.lastIndex=i.global?n.index+n[0].length:e),jn&&n&&1<n.length&&Dn.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)}),n});var Un=Cn;lt({target:"RegExp",proto:!0,forced:/./.exec!==Un},{exec:Un});function Mn(u){return function(t,e){var r,n,o=String(d(t)),i=ot(e),a=o.length;return i<0||a<=i?u?"":void 0:(r=o.charCodeAt(i))<55296||56319<r||i+1===a||(n=o.charCodeAt(i+1))<56320||57343<n?u?o.charAt(i):r:u?o.slice(i,i+2):n-56320+(r-55296<<10)+65536}}var Fn,kn,Bn,Gn={codeAt:Mn(!1),charAt:Mn(!0)},Hn=!f(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Vn=F("IE_PROTO"),Kn=Object.prototype,qn=Hn?Object.getPrototypeOf:function(t){return t=ft(t),s(t,Vn)?t[Vn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Kn:null},Yn=ht("iterator"),Wn=!1;[].keys&&("next"in(Bn=[].keys())?(kn=qn(qn(Bn)))!==Object.prototype&&(Fn=kn):Wn=!0),null==Fn&&(Fn={}),s(Fn,Yn)||L(Fn,Yn,function(){return this});function $n(){}function Xn(t){return"<script>"+t+"</"+to+">"}var zn,Qn={IteratorPrototype:Fn,BUGGY_SAFARI_ITERATORS:Wn},Jn=c?Object.defineProperties:function(t,e){b(t);for(var r,n=Be(e),o=n.length,i=0;i<o;)C.f(t,r=n[i++],e[r]);return t},Zn="prototype",to="script",eo=F("IE_PROTO"),ro=function(){try{zn=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ro=zn?function(t){t.write(Xn("")),t.close();var e=t.parentWindow.Object;return t=null,e}(zn):((e=a("iframe")).style.display="none",hr.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Xn("document.F=Object")),t.close(),t.F);for(var r=St.length;r--;)delete ro[Zn][St[r]];return ro()};X[eo]=!0;function no(){return this}function oo(){return this}var io=Object.create||function(t,e){var r;return null!==t?($n[Zn]=b(t),r=new $n,$n[Zn]=null,r[eo]=t):r=ro(),void 0===e?r:Jn(r,e)},ao=Qn.IteratorPrototype,uo=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,t={};try{(r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),n=t instanceof Array}catch(t){}return function(t,e){return b(t),function(t){if(!m(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(e),n?r.call(t,e):t.__proto__=e,t}}():void 0),co=Qn.IteratorPrototype,so=Qn.BUGGY_SAFARI_ITERATORS,lo=ht("iterator"),fo="values",po="entries",ho=Gn.charAt,mo="String Iterator",vo=Et.set,Eo=Et.getterFor(mo);!function(t,e,r,n,o,i,a){var u,c,s;c=n,s=e+" Iterator",(u=r).prototype=io(ao,{next:N(1,c)}),Je(u,s,!1),Oe[s]=no;function l(t){if(t===o&&g)return g;if(!so&&t in v)return v[t];switch(t){case"keys":case fo:case po:return function(){return new r(this,t)}}return function(){return new r(this)}}var f,p,h,d=e+" Iterator",m=!1,v=t.prototype,E=v[lo]||v["@@iterator"]||o&&v[o],g=!so&&E||l(o),y="Array"==e&&v.entries||E;if(y&&(f=qn(y.call(new t)),co!==Object.prototype&&f.next&&(qn(f)!==co&&(uo?uo(f,co):"function"!=typeof f[lo]&&L(f,lo,oo)),Je(f,d,!0))),o==fo&&E&&E.name!==fo&&(m=!0,g=function(){return E.call(this)}),v[lo]!==g&&L(v,lo,g),Oe[e]=g,o)if(p={values:l(fo),keys:i?g:l("keys"),entries:l(po)},a)for(h in p)!so&&!m&&h in v||gt(v,h,p[h]);else lt({target:e,proto:!0,forced:so||m},p)}(String,"String",function(t){vo(this,{type:mo,string:String(t),index:0})},function(){var t,e=Eo(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=ho(r,n),e.index+=t.length,{value:t,done:!1})});function go(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==h(t))throw TypeError("RegExp#exec called on incompatible receiver");return Un.call(t,e)}var yo=ht("species"),No=!f(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),bo="$0"==="a".replace(/./,"$0"),_o=ht("replace"),wo=!!/./[_o]&&""===/./[_o]("a","$0"),Oo=!f(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}),To=ht("match"),So=Gn.charAt,Ao=[].push,xo=Math.min,Io=4294967295,Ro=!f(function(){return!RegExp(Io,"y")});!function(r,t,e,n){var o=ht(r),i=!f(function(){var t={};return t[o]=function(){return 7},7!=""[r](t)}),a=i&&!f(function(){var t=!1,e=/a/;return"split"===r&&((e={constructor:{}}).constructor[yo]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return t=!0,null},e[o](""),!t});if(!i||!a||"replace"===r&&(!No||!bo||wo)||"split"===r&&!Oo){var u=/./[o],c=e(o,""[r],function(t,e,r,n,o){return e.exec===Un?i&&!o?{done:!0,value:u.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}},{REPLACE_KEEPS_$0:bo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:wo}),s=c[0],l=c[1];gt(String.prototype,r,s),gt(RegExp.prototype,o,2==t?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)})}n&&L(RegExp.prototype[o],"sham",!0)}("split",2,function(o,g,y){var N;return N="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(t,e){var r,n,o=String(d(this)),i=void 0===e?Io:e>>>0;if(0==i)return[];if(void 0===t)return[o];if(!m(r=t)||(void 0!==(n=r[To])?!n:"RegExp"!=h(r)))return g.call(o,t,i);for(var a,u,c,s=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,p=new RegExp(t.source,l+"g");(a=Un.call(p,o))&&!(f<(u=p.lastIndex)&&(s.push(o.slice(f,a.index)),1<a.length&&a.index<o.length&&Ao.apply(s,a.slice(1)),c=a[0].length,f=u,s.length>=i));)p.lastIndex===a.index&&p.lastIndex++;return f===o.length?!c&&p.test("")||s.push(""):s.push(o.slice(f)),s.length>i?s.slice(0,i):s}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:g.call(this,t,e)}:g,[function(t,e){var r=d(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):N.call(String(r),t,e)},function(t,e){var r=y(N,t,this,e,N!==g);if(r.done)return r.value;var n=b(t),o=String(this),i=Ze(n,RegExp),a=n.unicode,u=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(Ro?"y":"g"),c=new i(Ro?n:"^(?:"+n.source+")",u),s=void 0===e?Io:e>>>0;if(0==s)return[];if(0===o.length)return null===go(c,o)?[o]:[];for(var l,f,p=0,h=0,d=[];h<o.length;){c.lastIndex=Ro?h:0;var m,v=go(c,Ro?o:o.slice(h));if(null===v||(m=xo(it(c.lastIndex+(Ro?0:h)),o.length))===p)l=o,h=(f=h)+(a?So(l,f).length:1);else{if(d.push(o.slice(p,h)),d.length===s)return d;for(var E=1;E<=v.length-1;E++)if(d.push(v[E]),d.length===s)return d;h=p=m}}return d.push(o.slice(p)),d}]},!Ro);for(var Do in{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}){var Co=v[Do],Lo=Co&&Co.prototype;if(Lo&&Lo.forEach!==be)try{L(Lo,"forEach",be)}catch(t){Lo.forEach=be}}function Po(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function jo(u){return function(){var t=this,a=arguments;return new Promise(function(e,r){var n=u.apply(t,a);function o(t){Po(n,e,r,o,i,"next",t)}function i(t){Po(n,e,r,o,i,"throw",t)}o(void 0)})}}function Uo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mo(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Fo(t,e,r){return e&&Mo(t.prototype,e),r&&Mo(t,r),t}function ko(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Go(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(r),!0).forEach(function(t){ko(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ho(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ko(t,e)}function Vo(t){return(Vo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ko(t,e){return(Ko=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function qo(){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(t){return!1}}function Yo(t,e,r){return(Yo=qo()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&Ko(o,r.prototype),o}).apply(null,arguments)}function Wo(t){var n="function"==typeof Map?new Map:void 0;return(Wo=function(t){if(null===t||(e=t,-1===Function.toString.call(e).indexOf("[native code]")))return t;var e;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return Yo(t,arguments,Vo(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ko(r,t)})(t)}function $o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xo(i){var a=qo();return function(){var t,e,r,n=Vo(i);if(a){var o=Vo(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return e=this,!(r=t)||"object"!=typeof r&&"function"!=typeof r?$o(e):r}}function zo(t){return function(t){if(Array.isArray(t))return Qo(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Qo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qo(t,e)}(t)||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 Qo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r(function(t){var e=function(a){var c,t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},o=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",n=e.toStringTag||"@@toStringTag";function u(t,e,r,n){var i,a,u,c,o=e&&e.prototype instanceof E?e:E,s=Object.create(o.prototype),l=new A(n||[]);return s._invoke=(i=t,a=r,u=l,c=p,function(t,e){if(c===d)throw new Error("Generator is already running");if(c===m){if("throw"===t)throw e;return I()}for(u.method=t,u.arg=e;;){var r=u.delegate;if(r){var n=O(r,u);if(n){if(n===v)continue;return n}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if(c===p)throw c=m,u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c=d;var o=f(i,a,u);if("normal"===o.type){if(c=u.done?m:h,o.arg===v)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c=m,u.method="throw",u.arg=o.arg)}}),s}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}a.wrap=u;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",v={};function E(){}function i(){}function s(){}var g={};g[o]=function(){return this};var y=Object.getPrototypeOf,N=y&&y(y(x([])));N&&N!==t&&l.call(N,o)&&(g=N);var b=s.prototype=E.prototype=Object.create(g);function _(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function w(c,s){var e;this._invoke=function(r,n){function t(){return new s(function(t,e){!function e(t,r,n,o){var i=f(c[t],c,r);if("throw"!==i.type){var a=i.arg,u=a.value;return u&&"object"==typeof u&&l.call(u,"__await")?s.resolve(u.__await).then(function(t){e("next",t,n,o)},function(t){e("throw",t,n,o)}):s.resolve(u).then(function(t){a.value=t,n(a)},function(t){return e("throw",t,n,o)})}o(i.arg)}(r,n,t,e)})}return e=e?e.then(t,t):t()}}function O(t,e){var r=t.iterator[e.method];if(r===c){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=c,O(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,v;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=c),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){function r(){for(;++n<t.length;)if(l.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=c,r.done=!0,r}var n=-1;return r.next=r}}return{next:I}}function I(){return{value:c,done:!0}}return i.prototype=b.constructor=s,s.constructor=i,s[n]=i.displayName="GeneratorFunction",a.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,n in t||(t[n]="GeneratorFunction")),t.prototype=Object.create(b),t},a.awrap=function(t){return{__await:t}},_(w.prototype),w.prototype[r]=function(){return this},a.AsyncIterator=w,a.async=function(t,e,r,n,o){void 0===o&&(o=Promise);var i=new w(u(t,e,r,n),o);return a.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},_(b),b[n]="Generator",b[o]=function(){return this},b.toString=function(){return"[object Generator]"},a.keys=function(r){var n=[];for(var t in r)n.push(t);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=x,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=c)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function t(t,e){return i.type="throw",i.arg=r,n.next=t,e&&(n.method="next",n.arg=c),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=l.call(o,"catchLoc"),u=l.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&l.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:x(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=c),v}},a}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}});function Jo(t,e,r,n){e=e||"&",r=r||"=";var o={};if("string"!=typeof t||0===t.length)return o;var i=/\+/g;t=t.split(e);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var u,c,s=t.length;0<a&&a<s&&(s=a);for(var l=0;l<s;++l){var f,p,h,d,m=t[l].replace(i,"%20"),v=m.indexOf(r);p=0<=v?(f=m.substr(0,v),m.substr(v+1)):(f=m,""),h=decodeURIComponent(f),d=decodeURIComponent(p),u=o,c=h,Object.prototype.hasOwnProperty.call(u,c)?Array.isArray(o[h])?o[h].push(d):o[h]=[o[h],d]:o[h]=d}return o}function Zo(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}function ti(r,n,o,t){return n=n||"&",o=o||"=",null===r&&(r=void 0),"object"==typeof r?Object.keys(r).map(function(t){var e=encodeURIComponent(Zo(t))+o;return Array.isArray(r[t])?r[t].map(function(t){return e+encodeURIComponent(Zo(t))}).join(n):e+encodeURIComponent(Zo(r[t]))}).join(n):t?encodeURIComponent(Zo(t))+o+encodeURIComponent(Zo(r)):""}var ei=r(function(t,e){e.decode=e.parse=Jo,e.encode=e.stringify=ti});ei.decode,ei.parse,ei.encode,ei.stringify;function ri(e){var n=0,o=[];function r(){var t;--n<e&&(t=o.shift(),a.queue=o.length,t&&i(t.fn).then(t.resolve).catch(t.reject))}function i(t){n++;try{return Promise.resolve(t()).then(function(t){return r(),t},function(t){throw r(),t})}catch(t){return r(),Promise.reject(t)}}var a=function(t){return e<=n?(r=t,new Promise(function(t,e){o.push({fn:r,resolve:t,reject:e}),a.queue=o.length})):i(t);var r};return a}function ni(t,e){var r=!1,n=this;return Promise.all(t.map(function(){var t=arguments;return n(function(){if(!r)return e.apply(void 0,t).catch(function(t){throw r=!0,t})})}))}function oi(t){return t.queue=0,t.map=ni,t}var ii={entityMap:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},ai=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,ui=new RegExp("[\\-\\.0-9"+ai.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),ci=new RegExp("^"+ai.source+ui.source+"*(?::"+ai.source+ui.source+"*)?$"),si=0,li=1,fi=2,pi=3,hi=4,di=5,mi=6,vi=7;function Ei(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,Ei)}function gi(){}function yi(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function Ni(t,e,n,r,o,i){function a(t,e,r){t in n.attributeNames&&i.fatalError("Attribute "+t+" redefined"),n.addValue(t,e,r)}for(var u,c=++e,s=si;;){var l=t.charAt(c);switch(l){case"=":if(s===li)u=t.slice(e,c),s=pi;else{if(s!==fi)throw new Error("attribute equal must after attrName");s=pi}break;case"'":case'"':if(s===pi||s===li){if(s===li&&(i.warning('attribute value must after "="'),u=t.slice(e,c)),e=c+1,!(0<(c=t.indexOf(l,e))))throw new Error("attribute value no end '"+l+"' match");a(u,f=t.slice(e,c).replace(/&#?\w+;/g,o),e-1),s=di}else{if(s!=hi)throw new Error('attribute value must after "="');a(u,f=t.slice(e,c).replace(/&#?\w+;/g,o),e),i.warning('attribute "'+u+'" missed start quot('+l+")!!"),e=c+1,s=di}break;case"/":switch(s){case si:n.setTagName(t.slice(e,c));case di:case mi:case vi:s=vi,n.closed=!0;case hi:case li:case fi:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),s==si&&n.setTagName(t.slice(e,c)),c;case">":switch(s){case si:n.setTagName(t.slice(e,c));case di:case mi:case vi:break;case hi:case li:"/"===(f=t.slice(e,c)).slice(-1)&&(n.closed=!0,f=f.slice(0,-1));case fi:s===fi&&(f=u),s==hi?(i.warning('attribute "'+f+'" missed quot(")!'),a(u,f.replace(/&#?\w+;/g,o),e)):("http://www.w3.org/1999/xhtml"===r[""]&&f.match(/^(?:disabled|checked|selected)$/i)||i.warning('attribute "'+f+'" missed value!! "'+f+'" instead!!'),a(f,f,e));break;case pi:throw new Error("attribute value missed!!")}return c;case"€":l=" ";default:if(l<=" ")switch(s){case si:n.setTagName(t.slice(e,c)),s=mi;break;case li:u=t.slice(e,c),s=fi;break;case hi:var f=t.slice(e,c).replace(/&#?\w+;/g,o);i.warning('attribute "'+f+'" missed quot(")!!'),a(u,f,e);case di:s=mi}else switch(s){case fi:n.tagName;"http://www.w3.org/1999/xhtml"===r[""]&&u.match(/^(?:disabled|checked|selected)$/i)||i.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),a(u,u,e),e=c,s=li;break;case di:i.warning('attribute space is required"'+u+'"!!');case mi:s=li,e=c;break;case pi:s=hi,e=c;break;case vi:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function bi(t,e,r){for(var n=t.tagName,o=null,i=t.length;i--;){var a=t[i],u=a.qName,c=a.value;if(0<(p=u.indexOf(":")))var s=a.prefix=u.slice(0,p),l=u.slice(p+1),f="xmlns"===s&&l;else s=null,f="xmlns"===(l=u)&&"";a.localName=l,!1!==f&&(null==o&&(o={},Oi(r,r={})),r[f]=o[f]=c,a.uri="http://www.w3.org/2000/xmlns/",e.startPrefixMapping(f,c))}for(i=t.length;i--;){(s=(a=t[i]).prefix)&&("xml"===s&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==s&&(a.uri=r[s||""]))}var p;l=0<(p=n.indexOf(":"))?(s=t.prefix=n.slice(0,p),t.localName=n.slice(p+1)):(s=null,t.localName=n);var h=t.uri=r[s||""];if(e.startElement(h,l,n,t),!t.closed)return t.currentNSMap=r,t.localNSMap=o,!0;if(e.endElement(h,l,n),o)for(s in o)e.endPrefixMapping(s)}function _i(t,e,r,n,o){if(/^(?:script|textarea)$/i.test(r)){var i=t.indexOf("</"+r+">",e),a=t.substring(e+1,i);if(/[&<]/.test(a))return/^script$/i.test(r)||(a=a.replace(/&#?\w+;/g,n)),o.characters(a,0,a.length),i}return e+1}function wi(t,e,r,n){var o=n[r];return null==o&&((o=t.lastIndexOf("</"+r+">"))<e&&(o=t.lastIndexOf("</"+r)),n[r]=o),o<e}function Oi(t,e){for(var r in t)e[r]=t[r]}function Ti(t,e,r,n){switch(t.charAt(e+2)){case"-":return"-"!==t.charAt(e+3)?-1:e<(o=t.indexOf("--\x3e",e+4))?(r.comment(t,e+4,o-e-4),o+3):(n.error("Unclosed comment"),-1);default:if("CDATA["==t.substr(e+3,6)){var o=t.indexOf("]]>",e+9);return r.startCDATA(),r.characters(t,e+9,o-e-9),r.endCDATA(),o+3}var i=function(t,e){var r,n=[],o=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;o.lastIndex=e,o.exec(t);for(;r=o.exec(t);)if(n.push(r),r[1])return n}(t,e),a=i.length;if(1<a&&/!doctype/i.test(i[0][0])){var u=i[1][0],c=!1,s=!1;3<a&&(/^public$/i.test(i[2][0])?(c=i[3][0],s=4<a&&i[4][0]):/^system$/i.test(i[2][0])&&(s=i[3][0]));var l=i[a-1];return r.startDTD(u,c,s),r.endDTD(),l.index+l[0].length}}return-1}function Si(t,e,r){var n=t.indexOf("?>",e);if(n){var o=t.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(o){o[0].length;return r.processingInstruction(o[1],o[2]),n+2}return-1}return-1}function Ai(){this.attributeNames={}}(Ei.prototype=new Error).name=Ei.name,gi.prototype={parse:function(t,e,r){var n=this.domBuilder;n.startDocument(),Oi(e,e={}),function(r,t,n,o,i){function a(t){var e=t.slice(1,-1);return e in n?n[e]:"#"===e.charAt(0)?function(t){if(65535<t){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}(parseInt(e.substr(1).replace("x","0x"))):(i.error("entity not found:"+t),t)}function e(t){if(d<t){var e=r.substring(d,t).replace(/&#?\w+;/g,a);f&&u(d),o.characters(e,0,t-d),d=t}}function u(t,e){for(;s<=t&&(e=l.exec(r));)c=e.index,s=c+e[0].length,f.lineNumber++;f.columnNumber=t-c+1}var c=0,s=0,l=/.*(?:\r\n?|\n)|.*$/g,f=o.locator,p=[{currentNSMap:t}],h={},d=0;for(;;){try{var m=r.indexOf("<",d);if(m<0){if(!r.substr(d).match(/^\s*$/)){var v=o.doc,E=v.createTextNode(r.substr(d));v.appendChild(E),o.currentElement=E}return}switch(d<m&&e(m),r.charAt(m+1)){case"/":var g=r.indexOf(">",m+3),y=r.substring(m+2,g),N=p.pop();g<0?(y=r.substring(m+2).replace(/[\s<].*/,""),i.error("end tag name: "+y+" is not complete:"+N.tagName),g=m+1+y.length):y.match(/\s</)&&(y=y.replace(/[\s<].*/,""),i.error("end tag name: "+y+" maybe not complete"),g=m+1+y.length);var b=N.localNSMap,_=N.tagName==y;if(_||N.tagName&&N.tagName.toLowerCase()==y.toLowerCase()){if(o.endElement(N.uri,N.localName,y),b)for(var w in b)o.endPrefixMapping(w);_||i.fatalError("end tag name: "+y+" is not match the current start tagName:"+N.tagName)}else p.push(N);g++;break;case"?":f&&u(m),g=Si(r,m,o);break;case"!":f&&u(m),g=Ti(r,m,o,i);break;default:f&&u(m);var O=new Ai,T=p[p.length-1].currentNSMap,S=(g=Ni(r,m,O,T,a,i),O.length);if(!O.closed&&wi(r,g,O.tagName,h)&&(O.closed=!0,n.nbsp||i.warning("unclosed xml attribute")),f&&S){for(var A=yi(f,{}),x=0;x<S;x++){var I=O[x];u(I.offset),I.locator=yi(f,{})}o.locator=A,bi(O,o,T)&&p.push(O),o.locator=f}else bi(O,o,T)&&p.push(O);"http://www.w3.org/1999/xhtml"!==O.uri||O.closed?g++:g=_i(r,g,O.tagName,a,o)}}catch(t){if(t instanceof Ei)throw t;i.error("element parse error: "+t),g=-1}d<g?d=g:e(Math.max(m,d)+1)}}(t,e,r,n,this.errorHandler),n.endDocument()}},Ai.prototype={setTagName:function(t){if(!ci.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,r){if(!ci.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:r}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};var xi={XMLReader:gi,ParseError:Ei};function Ii(t,e){for(var r in t)e[r]=t[r]}function Ri(t,e){var r=t.prototype;if(!(r instanceof e)){function n(){}n.prototype=e.prototype,Ii(r,n=new n),t.prototype=r=n}r.constructor!=t&&("function"!=typeof t&&console.error("unknow Class:"+t),r.constructor=t)}var Di="http://www.w3.org/1999/xhtml",Ci={},Li=Ci.ELEMENT_NODE=1,Pi=Ci.ATTRIBUTE_NODE=2,ji=Ci.TEXT_NODE=3,Ui=Ci.CDATA_SECTION_NODE=4,Mi=Ci.ENTITY_REFERENCE_NODE=5,Fi=Ci.ENTITY_NODE=6,ki=Ci.PROCESSING_INSTRUCTION_NODE=7,Bi=Ci.COMMENT_NODE=8,Gi=Ci.DOCUMENT_NODE=9,Hi=Ci.DOCUMENT_TYPE_NODE=10,Vi=Ci.DOCUMENT_FRAGMENT_NODE=11,Ki=Ci.NOTATION_NODE=12,qi={},Yi={},Wi=(qi.INDEX_SIZE_ERR=(Yi[1]="Index size error",1),qi.DOMSTRING_SIZE_ERR=(Yi[2]="DOMString size error",2),qi.HIERARCHY_REQUEST_ERR=(Yi[3]="Hierarchy request error",3)),$i=(qi.WRONG_DOCUMENT_ERR=(Yi[4]="Wrong document",4),qi.INVALID_CHARACTER_ERR=(Yi[5]="Invalid character",5),qi.NO_DATA_ALLOWED_ERR=(Yi[6]="No data allowed",6),qi.NO_MODIFICATION_ALLOWED_ERR=(Yi[7]="No modification allowed",7),qi.NOT_FOUND_ERR=(Yi[8]="Not found",8)),Xi=(qi.NOT_SUPPORTED_ERR=(Yi[9]="Not supported",9),qi.INUSE_ATTRIBUTE_ERR=(Yi[10]="Attribute in use",10));qi.INVALID_STATE_ERR=(Yi[11]="Invalid state",11),qi.SYNTAX_ERR=(Yi[12]="Syntax error",12),qi.INVALID_MODIFICATION_ERR=(Yi[13]="Invalid modification",13),qi.NAMESPACE_ERR=(Yi[14]="Invalid namespace",14),qi.INVALID_ACCESS_ERR=(Yi[15]="Invalid access",15);function zi(t,e){if(e instanceof Error)var r=e;else r=this,Error.call(this,Yi[t]),this.message=Yi[t],Error.captureStackTrace&&Error.captureStackTrace(this,zi);return r.code=t,e&&(this.message=this.message+": "+e),r}function Qi(){}function Ji(t,e){this._node=t,this._refresh=e,Zi(this)}function Zi(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._i