@twilio/mcs-client 0.5.3 → 0.6.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +87 -0
- package/builds/browser.js +733 -370
- package/builds/browser.js.map +1 -1
- package/builds/lib.d.ts +55 -26
- package/builds/lib.js +708 -370
- package/builds/lib.js.map +1 -1
- package/builds/twilio-mcs-client.js +3371 -2210
- package/builds/twilio-mcs-client.min.js +3 -17
- package/dist/_virtual/rng-browser.js +34 -0
- package/dist/_virtual/rng-browser.js.map +1 -0
- package/dist/cancellable-promise.js +98 -0
- package/dist/cancellable-promise.js.map +1 -0
- package/dist/client.js +88 -23
- package/dist/client.js.map +1 -1
- package/dist/configuration.js.map +1 -1
- package/dist/index.js +5 -9
- package/dist/index.js.map +1 -1
- package/dist/logger.js +2 -4
- package/dist/logger.js.map +1 -1
- package/dist/media.js +15 -22
- package/dist/media.js.map +1 -1
- package/dist/node_modules/tslib/tslib.es6.js +1 -1
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/node_modules/uuid/index.js +44 -0
- package/dist/node_modules/uuid/index.js.map +1 -0
- package/dist/node_modules/uuid/lib/bytesToUuid.js +60 -0
- package/dist/node_modules/uuid/lib/bytesToUuid.js.map +1 -0
- package/dist/node_modules/uuid/lib/rng-browser.js +65 -0
- package/dist/node_modules/uuid/lib/rng-browser.js.map +1 -0
- package/dist/node_modules/uuid/v1.js +146 -0
- package/dist/node_modules/uuid/v1.js.map +1 -0
- package/dist/node_modules/uuid/v4.js +66 -0
- package/dist/node_modules/uuid/v4.js.map +1 -0
- package/dist/packages/mcs-client/package.json.js +1 -1
- package/dist/services/network.js +54 -32
- package/dist/services/network.js.map +1 -1
- package/dist/services/transport.js +26 -11
- package/dist/services/transport.js.map +1 -1
- package/dist/services/transporterror.js.map +1 -1
- package/package.json +16 -14
|
@@ -15,21 +15,7 @@ OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
|
|
15
15
|
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
16
16
|
|
|
17
17
|
*/
|
|
18
|
-
this.Twilio=this.Twilio||{},this.Twilio.McsClient=function(t){"use strict";var e=void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function r(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 n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},a=function(t){return t&&t.Math==Math&&t},u=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof i&&i)||function(){return this}()||Function("return this")(),c={},s=function(t){try{return!!t()}catch(t){return!0}},f=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l={},p={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,d=h&&!p.call({1:2},1);l.f=d?function(t){var e=h(this,t);return!!e&&e.enumerable}:p;var v,y,g=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},m={}.toString,b=function(t){return m.call(t).slice(8,-1)},w=b,x="".split,S=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==w(t)?x.call(t,""):Object(t)}:Object,k=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},A=S,E=k,O=function(t){return A(E(t))},j=function(t){return"object"==typeof t?null!==t:"function"==typeof t},T=u,L=function(t){return"function"==typeof t?t:void 0},_=function(t,e){return arguments.length<2?L(T[t]):T[t]&&T[t][e]},R=_("navigator","userAgent")||"",I=u,P=R,C=I.process,D=I.Deno,M=C&&C.versions||D&&D.version,U=M&&M.v8;U?y=(v=U.split("."))[0]<4?1:v[0]+v[1]:P&&(!(v=P.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=P.match(/Chrome\/(\d+)/))&&(y=v[1]);var N=y&&+y,F=N,B=s,q=!!Object.getOwnPropertySymbols&&!B((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F&&F<41})),G=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,W=_,z=G?function(t){return"symbol"==typeof t}:function(t){var e=W("Symbol");return"function"==typeof e&&Object(t)instanceof e},$=j,V={exports:{}},H=u,Y=function(t,e){try{Object.defineProperty(H,t,{value:e,configurable:!0,writable:!0})}catch(r){H[t]=e}return e},X=Y,J="__core-js_shared__",K=u[J]||X(J,{}),Z=K;(V.exports=function(t,e){return Z[t]||(Z[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var Q=k,tt=function(t){return Object(Q(t))},et=tt,rt={}.hasOwnProperty,nt=Object.hasOwn||function(t,e){return rt.call(et(t),e)},ot=0,it=Math.random(),at=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++ot+it).toString(36)},ut=u,ct=V.exports,st=nt,ft=at,lt=q,pt=G,ht=ct("wks"),dt=ut.Symbol,vt=pt?dt:dt&&dt.withoutSetter||ft,yt=function(t){return st(ht,t)&&(lt||"string"==typeof ht[t])||(lt&&st(dt,t)?ht[t]=dt[t]:ht[t]=vt("Symbol."+t)),ht[t]},gt=j,mt=z,bt=function(t,e){var r,n;if("string"===e&&"function"==typeof(r=t.toString)&&!$(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!$(n=r.call(t)))return n;if("string"!==e&&"function"==typeof(r=t.toString)&&!$(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},wt=yt("toPrimitive"),xt=function(t,e){if(!gt(t)||mt(t))return t;var r,n=t[wt];if(void 0!==n){if(void 0===e&&(e="default"),r=n.call(t,e),!gt(r)||mt(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),bt(t,e)},St=xt,kt=z,At=function(t){var e=St(t,"string");return kt(e)?e:String(e)},Et=j,Ot=u.document,jt=Et(Ot)&&Et(Ot.createElement),Tt=function(t){return jt?Ot.createElement(t):{}},Lt=Tt,_t=!f&&!s((function(){return 7!=Object.defineProperty(Lt("div"),"a",{get:function(){return 7}}).a})),Rt=f,It=l,Pt=g,Ct=O,Dt=At,Mt=nt,Ut=_t,Nt=Object.getOwnPropertyDescriptor;c.f=Rt?Nt:function(t,e){if(t=Ct(t),e=Dt(e),Ut)try{return Nt(t,e)}catch(t){}if(Mt(t,e))return Pt(!It.f.call(t,e),t[e])};var Ft={},Bt=j,qt=function(t){if(!Bt(t))throw TypeError(String(t)+" is not an object");return t},Gt=f,Wt=_t,zt=qt,$t=At,Vt=Object.defineProperty;Ft.f=Gt?Vt:function(t,e,r){if(zt(t),e=$t(e),zt(r),Wt)try{return Vt(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};var Ht=Ft,Yt=g,Xt=f?function(t,e,r){return Ht.f(t,e,Yt(1,r))}:function(t,e,r){return t[e]=r,t},Jt={exports:{}},Kt=K,Zt=Function.toString;"function"!=typeof Kt.inspectSource&&(Kt.inspectSource=function(t){return Zt.call(t)});var Qt,te,ee,re=Kt.inspectSource,ne=re,oe=u.WeakMap,ie="function"==typeof oe&&/native code/.test(ne(oe)),ae=V.exports,ue=at,ce=ae("keys"),se=function(t){return ce[t]||(ce[t]=ue(t))},fe={},le=ie,pe=j,he=Xt,de=nt,ve=K,ye=se,ge=fe,me="Object already initialized",be=u.WeakMap;if(le||ve.state){var we=ve.state||(ve.state=new be),xe=we.get,Se=we.has,ke=we.set;Qt=function(t,e){if(Se.call(we,t))throw new TypeError(me);return e.facade=t,ke.call(we,t,e),e},te=function(t){return xe.call(we,t)||{}},ee=function(t){return Se.call(we,t)}}else{var Ae=ye("state");ge[Ae]=!0,Qt=function(t,e){if(de(t,Ae))throw new TypeError(me);return e.facade=t,he(t,Ae,e),e},te=function(t){return de(t,Ae)?t[Ae]:{}},ee=function(t){return de(t,Ae)}}var Ee={set:Qt,get:te,has:ee,enforce:function(t){return ee(t)?te(t):Qt(t,{})},getterFor:function(t){return function(e){var r;if(!pe(e)||(r=te(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Oe=u,je=Xt,Te=nt,Le=Y,_e=re,Re=Ee.get,Ie=Ee.enforce,Pe=String(String).split("String");(Jt.exports=function(t,e,r,n){var o,i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||Te(r,"name")||je(r,"name",e),(o=Ie(r)).source||(o.source=Pe.join("string"==typeof e?e:""))),t!==Oe?(i?!u&&t[e]&&(a=!0):delete t[e],a?t[e]=r:je(t,e,r)):a?t[e]=r:Le(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Re(this).source||_e(this)}));var Ce={},De=Math.ceil,Me=Math.floor,Ue=function(t){return isNaN(t=+t)?0:(t>0?Me:De)(t)},Ne=Ue,Fe=Math.min,Be=function(t){return t>0?Fe(Ne(t),9007199254740991):0},qe=Ue,Ge=Math.max,We=Math.min,ze=function(t,e){var r=qe(t);return r<0?Ge(r+e,0):We(r,e)},$e=O,Ve=Be,He=ze,Ye=function(t){return function(e,r,n){var o,i=$e(e),a=Ve(i.length),u=He(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Xe={includes:Ye(!0),indexOf:Ye(!1)},Je=nt,Ke=O,Ze=Xe.indexOf,Qe=fe,tr=function(t,e){var r,n=Ke(t),o=0,i=[];for(r in n)!Je(Qe,r)&&Je(n,r)&&i.push(r);for(;e.length>o;)Je(n,r=e[o++])&&(~Ze(i,r)||i.push(r));return i},er=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rr=tr,nr=er.concat("length","prototype");Ce.f=Object.getOwnPropertyNames||function(t){return rr(t,nr)};var or={};or.f=Object.getOwnPropertySymbols;var ir=Ce,ar=or,ur=qt,cr=_("Reflect","ownKeys")||function(t){var e=ir.f(ur(t)),r=ar.f;return r?e.concat(r(t)):e},sr=nt,fr=cr,lr=c,pr=Ft,hr=function(t,e){for(var r=fr(e),n=pr.f,o=lr.f,i=0;i<r.length;i++){var a=r[i];sr(t,a)||n(t,a,o(e,a))}},dr=s,vr=/#|\.prototype\./,yr=function(t,e){var r=mr[gr(t)];return r==wr||r!=br&&("function"==typeof e?dr(e):!!e)},gr=yr.normalize=function(t){return String(t).replace(vr,".").toLowerCase()},mr=yr.data={},br=yr.NATIVE="N",wr=yr.POLYFILL="P",xr=yr,Sr=u,kr=c.f,Ar=Xt,Er=Jt.exports,Or=Y,jr=hr,Tr=xr,Lr=function(t,e){var r,n,o,i,a,u=t.target,c=t.global,s=t.stat;if(r=c?Sr:s?Sr[u]||Or(u,{}):(Sr[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=kr(r,n))&&a.value:r[n],!Tr(c?n:u+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;jr(i,o)}(t.sham||o&&o.sham)&&Ar(i,"sham",!0),Er(r,n,i,t)}},_r=u.Promise,Rr=Jt.exports,Ir=function(t,e,r){for(var n in e)Rr(t,n,e[n],r);return t},Pr=j,Cr=qt,Dr=function(t){if(!Pr(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},Mr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Cr(r),Dr(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Ur=Ft.f,Nr=nt,Fr=yt("toStringTag"),Br=function(t,e,r){t&&!Nr(t=r?t:t.prototype,Fr)&&Ur(t,Fr,{configurable:!0,value:e})},qr=_,Gr=Ft,Wr=f,zr=yt("species"),$r=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Vr=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},Hr={},Yr=Hr,Xr=yt("iterator"),Jr=Array.prototype,Kr=function(t){return void 0!==t&&(Yr.Array===t||Jr[Xr]===t)},Zr=$r,Qr=function(t,e,r){if(Zr(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},tn={};tn[yt("toStringTag")]="z";var en="[object z]"===String(tn),rn=en,nn=b,on=yt("toStringTag"),an="Arguments"==nn(function(){return arguments}()),un=rn?nn: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),on))?r:an?nn(e):"Object"==(n=nn(e))&&"function"==typeof e.callee?"Arguments":n},cn=un,sn=Hr,fn=yt("iterator"),ln=function(t){if(null!=t)return t[fn]||t["@@iterator"]||sn[cn(t)]},pn=qt,hn=ln,dn=function(t,e){var r=arguments.length<2?hn(t):e;if("function"!=typeof r)throw TypeError(String(t)+" is not iterable");return pn(r.call(t))},vn=qt,yn=function(t,e,r){var n,o;vn(t);try{if(void 0===(n=t.return)){if("throw"===e)throw r;return r}n=n.call(t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return vn(n),r},gn=qt,mn=Kr,bn=Be,wn=Qr,xn=dn,Sn=ln,kn=yn,An=function(t,e){this.stopped=t,this.result=e},En=yt("iterator"),On=!1;try{var jn=0,Tn={next:function(){return{done:!!jn++}},return:function(){On=!0}};Tn[En]=function(){return this},Array.from(Tn,(function(){throw 2}))}catch(t){}var Ln,_n,Rn,In,Pn=function(t,e){if(!e&&!On)return!1;var r=!1;try{var n={};n[En]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Cn=qt,Dn=$r,Mn=yt("species"),Un=function(t,e){var r,n=Cn(t).constructor;return void 0===n||null==(r=Cn(n)[Mn])?e:Dn(r)},Nn=_("document","documentElement"),Fn=/(?:ipad|iphone|ipod).*applewebkit/i.test(R),Bn="process"==b(u.process),qn=u,Gn=s,Wn=Qr,zn=Nn,$n=Tt,Vn=Fn,Hn=Bn,Yn=qn.setImmediate,Xn=qn.clearImmediate,Jn=qn.process,Kn=qn.MessageChannel,Zn=qn.Dispatch,Qn=0,to={},eo="onreadystatechange";try{Ln=qn.location}catch(t){}var ro=function(t){if(to.hasOwnProperty(t)){var e=to[t];delete to[t],e()}},no=function(t){return function(){ro(t)}},oo=function(t){ro(t.data)},io=function(t){qn.postMessage(String(t),Ln.protocol+"//"+Ln.host)};Yn&&Xn||(Yn=function(t){for(var e=[],r=arguments.length,n=1;r>n;)e.push(arguments[n++]);return to[++Qn]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},_n(Qn),Qn},Xn=function(t){delete to[t]},Hn?_n=function(t){Jn.nextTick(no(t))}:Zn&&Zn.now?_n=function(t){Zn.now(no(t))}:Kn&&!Vn?(In=(Rn=new Kn).port2,Rn.port1.onmessage=oo,_n=Wn(In.postMessage,In,1)):qn.addEventListener&&"function"==typeof postMessage&&!qn.importScripts&&Ln&&"file:"!==Ln.protocol&&!Gn(io)?(_n=io,qn.addEventListener("message",oo,!1)):_n=eo in $n("script")?function(t){zn.appendChild($n("script")).onreadystatechange=function(){zn.removeChild(this),ro(t)}}:function(t){setTimeout(no(t),0)});var ao,uo,co,so,fo,lo,po,ho,vo={set:Yn,clear:Xn},yo=u,go=/ipad|iphone|ipod/i.test(R)&&void 0!==yo.Pebble,mo=/web0s(?!.*chrome)/i.test(R),bo=u,wo=c.f,xo=vo.set,So=Fn,ko=go,Ao=mo,Eo=Bn,Oo=bo.MutationObserver||bo.WebKitMutationObserver,jo=bo.document,To=bo.process,Lo=bo.Promise,_o=wo(bo,"queueMicrotask"),Ro=_o&&_o.value;Ro||(ao=function(){var t,e;for(Eo&&(t=To.domain)&&t.exit();uo;){e=uo.fn,uo=uo.next;try{e()}catch(t){throw uo?so():co=void 0,t}}co=void 0,t&&t.enter()},So||Eo||Ao||!Oo||!jo?!ko&&Lo&&Lo.resolve?((po=Lo.resolve(void 0)).constructor=Lo,ho=po.then,so=function(){ho.call(po,ao)}):so=Eo?function(){To.nextTick(ao)}:function(){xo.call(bo,ao)}:(fo=!0,lo=jo.createTextNode(""),new Oo(ao).observe(lo,{characterData:!0}),so=function(){lo.data=fo=!fo}));var Io=Ro||function(t){var e={fn:t,next:void 0};co&&(co.next=e),uo||(uo=e,so()),co=e},Po={},Co=$r,Do=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=Co(e),this.reject=Co(r)};Po.f=function(t){return new Do(t)};var Mo,Uo,No,Fo,Bo=qt,qo=j,Go=Po,Wo=u,zo="object"==typeof window,$o=Lr,Vo=u,Ho=_,Yo=_r,Xo=Jt.exports,Jo=Ir,Ko=Mr,Zo=Br,Qo=function(t){var e=qr(t),r=Gr.f;Wr&&e&&!e[zr]&&r(e,zr,{configurable:!0,get:function(){return this}})},ti=j,ei=$r,ri=Vr,ni=re,oi=function(t,e,r){var n,o,i,a,u,c,s,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),d=wn(e,f,1+l+h),v=function(t){return n&&kn(n,"normal",t),new An(!0,t)},y=function(t){return l?(gn(t),h?d(t[0],t[1],v):d(t[0],t[1])):h?d(t,v):d(t)};if(p)n=t;else{if("function"!=typeof(o=Sn(t)))throw TypeError("Target is not iterable");if(mn(o)){for(i=0,a=bn(t.length);a>i;i++)if((u=y(t[i]))&&u instanceof An)return u;return new An(!1)}n=xn(t,o)}for(c=n.next;!(s=c.call(n)).done;){try{u=y(s.value)}catch(t){kn(n,"throw",t)}if("object"==typeof u&&u&&u instanceof An)return u}return new An(!1)},ii=Pn,ai=Un,ui=vo.set,ci=Io,si=function(t,e){if(Bo(t),qo(e)&&e.constructor===t)return e;var r=Go.f(t);return(0,r.resolve)(e),r.promise},fi=function(t,e){var r=Wo.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))},li=Po,pi=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},hi=Ee,di=xr,vi=zo,yi=Bn,gi=N,mi=yt("species"),bi="Promise",wi=hi.get,xi=hi.set,Si=hi.getterFor(bi),ki=Yo&&Yo.prototype,Ai=Yo,Ei=ki,Oi=Vo.TypeError,ji=Vo.document,Ti=Vo.process,Li=li.f,_i=Li,Ri=!!(ji&&ji.createEvent&&Vo.dispatchEvent),Ii="function"==typeof PromiseRejectionEvent,Pi="unhandledrejection",Ci=!1,Di=di(bi,(function(){var t=ni(Ai),e=t!==String(Ai);if(!e&&66===gi)return!0;if(gi>=51&&/native code/.test(t))return!1;var r=new Ai((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[mi]=n,!(Ci=r.then((function(){}))instanceof n)||!e&&vi&&!Ii})),Mi=Di||!ii((function(t){Ai.all(t).catch((function(){}))})),Ui=function(t){var e;return!(!ti(t)||"function"!=typeof(e=t.then))&&e},Ni=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;ci((function(){for(var n=t.value,o=1==t.state,i=0;r.length>i;){var a,u,c,s=r[i++],f=o?s.ok:s.fail,l=s.resolve,p=s.reject,h=s.domain;try{f?(o||(2===t.rejection&&Gi(t),t.rejection=1),!0===f?a=n:(h&&h.enter(),a=f(n),h&&(h.exit(),c=!0)),a===s.promise?p(Oi("Promise-chain cycle")):(u=Ui(a))?u.call(a,l,p):l(a)):p(n)}catch(t){h&&!c&&h.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Bi(t)}))}},Fi=function(t,e,r){var n,o;Ri?((n=ji.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),Vo.dispatchEvent(n)):n={promise:e,reason:r},!Ii&&(o=Vo["on"+t])?o(n):t===Pi&&fi("Unhandled promise rejection",r)},Bi=function(t){ui.call(Vo,(function(){var e,r=t.facade,n=t.value;if(qi(t)&&(e=pi((function(){yi?Ti.emit("unhandledRejection",n,r):Fi(Pi,r,n)})),t.rejection=yi||qi(t)?2:1,e.error))throw e.value}))},qi=function(t){return 1!==t.rejection&&!t.parent},Gi=function(t){ui.call(Vo,(function(){var e=t.facade;yi?Ti.emit("rejectionHandled",e):Fi("rejectionhandled",e,t.value)}))},Wi=function(t,e,r){return function(n){t(e,n,r)}},zi=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Ni(t,!0))},$i=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Oi("Promise can't be resolved itself");var n=Ui(e);n?ci((function(){var r={done:!1};try{n.call(e,Wi($i,r,t),Wi(zi,r,t))}catch(e){zi(r,e,t)}})):(t.value=e,t.state=1,Ni(t,!1))}catch(e){zi({done:!1},e,t)}}};if(Di&&(Ei=(Ai=function(t){ri(this,Ai,bi),ei(t),Mo.call(this);var e=wi(this);try{t(Wi($i,e),Wi(zi,e))}catch(t){zi(e,t)}}).prototype,(Mo=function(t){xi(this,{type:bi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Jo(Ei,{then:function(t,e){var r=Si(this),n=Li(ai(this,Ai));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=yi?Ti.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&Ni(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),Uo=function(){var t=new Mo,e=wi(t);this.promise=t,this.resolve=Wi($i,e),this.reject=Wi(zi,e)},li.f=Li=function(t){return t===Ai||t===No?new Uo(t):_i(t)},"function"==typeof Yo&&ki!==Object.prototype)){Fo=ki.then,Ci||(Xo(ki,"then",(function(t,e){var r=this;return new Ai((function(t,e){Fo.call(r,t,e)})).then(t,e)}),{unsafe:!0}),Xo(ki,"catch",Ei.catch,{unsafe:!0}));try{delete ki.constructor}catch(t){}Ko&&Ko(ki,Ei)}$o({global:!0,wrap:!0,forced:Di},{Promise:Ai}),Zo(Ai,bi,!1),Qo(bi),No=Ho(bi),$o({target:bi,stat:!0,forced:Di},{reject:function(t){var e=Li(this);return e.reject.call(void 0,t),e.promise}}),$o({target:bi,stat:!0,forced:Di},{resolve:function(t){return si(this,t)}}),$o({target:bi,stat:!0,forced:Mi},{all:function(t){var e=this,r=Li(e),n=r.resolve,o=r.reject,i=pi((function(){var r=ei(e.resolve),i=[],a=0,u=1;oi(t,(function(t){var c=a++,s=!1;i.push(void 0),u++,r.call(e,t).then((function(t){s||(s=!0,i[c]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Li(e),n=r.reject,o=pi((function(){var o=ei(e.resolve);oi(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var Vi,Hi=Object.prototype,Yi=Hi.hasOwnProperty,Xi="function"==typeof Symbol?Symbol:{},Ji=Xi.iterator||"@@iterator",Ki=Xi.asyncIterator||"@@asyncIterator",Zi=Xi.toStringTag||"@@toStringTag";function Qi(t,e,r,n){var o=e&&e.prototype instanceof aa?e:aa,i=Object.create(o.prototype),a=new ba(n||[]);return i._invoke=function(t,e,r){var n=ea;return function(o,i){if(n===na)throw new Error("Generator is already running");if(n===oa){if("throw"===o)throw i;return xa()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=ya(a,r);if(u){if(u===ia)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===ea)throw n=oa,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=na;var c=ta(t,e,r);if("normal"===c.type){if(n=r.done?oa:ra,c.arg===ia)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=oa,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function ta(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}var ea="suspendedStart",ra="suspendedYield",na="executing",oa="completed",ia={};function aa(){}function ua(){}function ca(){}var sa={};sa[Ji]=function(){return this};var fa=Object.getPrototypeOf,la=fa&&fa(fa(wa([])));la&&la!==Hi&&Yi.call(la,Ji)&&(sa=la);var pa=ca.prototype=aa.prototype=Object.create(sa);function ha(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function da(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===ua||"GeneratorFunction"===(e.displayName||e.name))}function va(t,e){function r(n,o,i,a){var u=ta(t[n],t,o);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&Yi.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,a)}),(function(t){r("throw",t,i,a)})):e.resolve(s).then((function(t){c.value=t,i(c)}),(function(t){return r("throw",t,i,a)}))}a(u.arg)}var n;this._invoke=function(t,o){function i(){return new e((function(e,n){r(t,o,e,n)}))}return n=n?n.then(i,i):i()}}function ya(t,e){var r=t.iterator[e.method];if(r===Vi){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=Vi,ya(t,e),"throw"===e.method))return ia;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return ia}var n=ta(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,ia;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=Vi),e.delegate=null,ia):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,ia)}function ga(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 ma(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function ba(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(ga,this),this.reset(!0)}function wa(t){if(t){var e=t[Ji];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(Yi.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=Vi,e.done=!0,e};return n.next=n}}return{next:xa}}function xa(){return{value:Vi,done:!0}}ua.prototype=pa.constructor=ca,ca.constructor=ua,ca[Zi]=ua.displayName="GeneratorFunction",ha(va.prototype),va.prototype[Ki]=function(){return this},ha(pa),pa[Zi]="Generator",pa[Ji]=function(){return this},pa.toString=function(){return"[object Generator]"},ba.prototype={constructor:ba,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=Vi,this.done=!1,this.delegate=null,this.method="next",this.arg=Vi,this.tryEntries.forEach(ma),!t)for(var e in this)"t"===e.charAt(0)&&Yi.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=Vi)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=Vi),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=Yi.call(o,"catchLoc"),u=Yi.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&Yi.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,ia):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),ia},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),ma(r),ia}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;ma(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:wa(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=Vi),ia}};var Sa={wrap:Qi,isGeneratorFunction:da,AsyncIterator:va,mark:function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,ca):(t.__proto__=ca,Zi in t||(t[Zi]="GeneratorFunction")),t.prototype=Object.create(pa),t},awrap:function(t){return{__await:t}},async:function(t,e,r,n,o){void 0===o&&(o=Promise);var i=new va(Qi(t,e,r,n),o);return da(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},keys:function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},values:wa};
|
|
19
|
-
/*! *****************************************************************************
|
|
20
|
-
Copyright (c) Microsoft Corporation.
|
|
21
|
-
|
|
22
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
23
|
-
purpose with or without fee is hereby granted.
|
|
24
|
-
|
|
25
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
26
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
27
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
28
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
29
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
30
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
31
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
32
|
-
***************************************************************************** */function ka(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function Aa(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var Ea=qt,Oa=yn,ja=At,Ta=Ft,La=g,_a=function(t,e,r){var n=ja(e);n in t?Ta.f(t,n,La(0,r)):t[n]=r},Ra=Qr,Ia=tt,Pa=function(t,e,r,n){try{return n?e(Ea(r)[0],r[1]):e(r)}catch(e){Oa(t,"throw",e)}},Ca=Kr,Da=Be,Ma=_a,Ua=dn,Na=ln,Fa=function(t){var e,r,n,o,i,a,u=Ia(t),c="function"==typeof this?this:Array,s=arguments.length,f=s>1?arguments[1]:void 0,l=void 0!==f,p=Na(u),h=0;if(l&&(f=Ra(f,s>2?arguments[2]:void 0,2)),null==p||c==Array&&Ca(p))for(r=new c(e=Da(u.length));e>h;h++)a=l?f(u[h],h):u[h],Ma(r,h,a);else for(i=(o=Ua(u,p)).next,r=new c;!(n=i.call(o)).done;h++)a=l?Pa(o,f,[n.value,h],!0):n.value,Ma(r,h,a);return r.length=h,r},Ba=Fa;Lr({target:"Array",stat:!0,forced:!Pn((function(t){Array.from(t)}))},{from:Ba});var qa,Ga,Wa,za={exports:{}};function $a(t,e){return["".concat((new Date).toISOString()," MCS Client ").concat(t,":")].concat(Array.from(e))}Ga=i,Wa=function(){var t=function(){},e="undefined",r=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function o(t,e){var r=t[e];if("function"==typeof r.bind)return r.bind(t);try{return Function.prototype.bind.call(r,t)}catch(e){return function(){return Function.prototype.apply.apply(r,[t,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(n){return"debug"===n&&(n="log"),typeof console!==e&&("trace"===n&&r?i:void 0!==console[n]?o(console,n):void 0!==console.log?o(console,"log"):t)}function u(e,r){for(var o=0;o<n.length;o++){var i=n[o];this[i]=o<e?t:this.methodFactory(i,e,r)}this.log=this.debug}function c(t,r,n){return function(){typeof console!==e&&(u.call(this,r,n),this[t].apply(this,arguments))}}function s(t,e,r){return a(t)||c.apply(this,arguments)}function f(t,r,o){var i,a=this,c="loglevel";function f(){var t;if(typeof window!==e&&c){try{t=window.localStorage[c]}catch(t){}if(typeof t===e)try{var r=window.document.cookie,n=r.indexOf(encodeURIComponent(c)+"=");-1!==n&&(t=/^([^;]+)/.exec(r.slice(n))[1])}catch(t){}return void 0===a.levels[t]&&(t=void 0),t}}"string"==typeof t?c+=":"+t:"symbol"==typeof t&&(c=void 0),a.name=t,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=o||s,a.getLevel=function(){return i},a.setLevel=function(r,o){if("string"==typeof r&&void 0!==a.levels[r.toUpperCase()]&&(r=a.levels[r.toUpperCase()]),!("number"==typeof r&&r>=0&&r<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(i=r,!1!==o&&function(t){var r=(n[t]||"silent").toUpperCase();if(typeof window!==e&&c){try{return void(window.localStorage[c]=r)}catch(t){}try{window.document.cookie=encodeURIComponent(c)+"="+r+";"}catch(t){}}}(r),u.call(a,r,t),typeof console===e&&r<a.levels.SILENT)return"No console available for logging"},a.setDefaultLevel=function(t){f()||a.setLevel(t,!1)},a.enableAll=function(t){a.setLevel(a.levels.TRACE,t)},a.disableAll=function(t){a.setLevel(a.levels.SILENT,t)};var l=f();null==l&&(l=null==r?"WARN":r),a.setLevel(l,!1)}var l=new f,p={};l.getLogger=function(t){if("symbol"!=typeof t&&"string"!=typeof t||""===t)throw new TypeError("You must supply a name when creating a logger.");var e=p[t];return e||(e=p[t]=new f(t,l.getLevel(),l.methodFactory)),e};var h=typeof window!==e?window.log:void 0;return l.noConflict=function(){return typeof window!==e&&window.log===l&&(window.log=h),l},l.getLoggers=function(){return p},l.default=l,l},(qa=za).exports?qa.exports=Wa():Ga.log=Wa();class Va{constructor(t){o(this,"prefix",""),this.prefix=null!=t&&t.length>0?t+" ":""}static scope(t){return new Va(t)}setLevel(t){za.exports.setLevel(t)}static setLevel(t){za.exports.setLevel(t)}trace(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.trace.apply(null,$a(this.prefix+"T",e))}debug(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.debug.apply(null,$a(this.prefix+"D",e))}info(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.info.apply(null,$a(this.prefix+"I",e))}warn(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.warn.apply(null,$a(this.prefix+"W",e))}error(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.error.apply(null,$a(this.prefix+"E",e))}static trace(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.trace.apply(null,$a("T",e))}static debug(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.debug.apply(null,$a("D",e))}static info(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.info.apply(null,$a("I",e))}static warn(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.warn.apply(null,$a("W",e))}static error(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];za.exports.error.apply(null,$a("E",e))}}var Ha,Ya=z,Xa=function(t){if(Ya(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},Ja=j,Ka=b,Za=yt("match"),Qa=function(t){var e;return Ja(t)&&(void 0!==(e=t[Za])?!!e:"RegExp"==Ka(t))},tu=Qa,eu=yt("match"),ru=Lr,nu=c.f,ou=Be,iu=Xa,au=function(t){if(tu(t))throw TypeError("The method doesn't accept regular expressions");return t},uu=k,cu=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[eu]=!1,"/./"[t](e)}catch(t){}}return!1},su="".startsWith,fu=Math.min,lu=cu("startsWith");ru({target:"String",proto:!0,forced:!!(lu||(Ha=nu(String.prototype,"startsWith"),!Ha||Ha.writable))&&!lu},{startsWith:function(t){var e=iu(uu(this));au(t);var r=ou(fu(arguments.length>1?arguments[1]:void 0,e.length)),n=iu(t);return su?su.call(e,n,r):e.slice(r,r+n.length)===n}});var pu=(t,e)=>{return"".concat((r=t,r.startsWith("http")?"":(t=>"https://mcs.".concat(null!=t?t:"us1",".twilio.com"))(e))).concat(t);var r};class hu{constructor(t,e,r,n){var o,i,a,u,c,s,f=null!==(o=null!==(i=n.MCS)&&void 0!==i?i:n)&&void 0!==o?o:{};this.region=null!==(a=null!==(u=f.region)&&void 0!==u?u:n.region)&&void 0!==a?a:"us1",this.mediaUrl=pu(e,this.region),this.mediaSetUrl=r?pu(r):"".concat(this.mediaUrl,"Set"),this.token=t,this.retryWhenThrottledOverride=null===(c=f.retryWhenThrottledOverride)||void 0===c||c,this.backoffConfigOverride=null!==(s=f.backoffConfigOverride)&&void 0!==s?s:hu.backoffConfigDefault}static get backoffConfigDefault(){return{min:1e3,max:4e3,maxAttemptsCount:3}}static get retryWhenThrottledDefault(){return true}updateToken(t){this.token=t}}class du{constructor(t,e,r){this.config=t,this.network=e,this._update(r)}get sid(){return this.state.sid}get serviceSid(){return this.state.serviceSid}get dateCreated(){return this.state.dateCreated}get dateUpdated(){return this.state.dateUpdated}get contentType(){return this.state.contentType}get size(){return this.state.size}get fileName(){return this.state.filename}get filename(){return this.state.filename}get category(){return this.state.category}getContentUrl(){var t=this;return n(Sa.mark((function e(){var r;return Sa.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.network.get("".concat(t.config.mediaUrl,"/").concat(t.sid));case 2:return r=e.sent,t._update(r.body),e.abrupt("return",Promise.resolve(t.state.contentDirectUrl));case 5:case"end":return e.stop()}}),e)})))()}getCachedContentUrl(){var t=this;return n(Sa.mark((function e(){return Sa.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.state.contentDirectUrl){e.next=2;break}return e.abrupt("return",Promise.resolve(t.state.contentDirectUrl));case 2:return e.next=4,t.getContentUrl();case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))()}_update(t){var e,r,n,o;this.state={sid:t.sid,serviceSid:t.service_sid,channelSid:t.channel_sid,messageSid:t.message_sid,dateCreated:t.date_created?new Date(t.date_created):null,dateUploadUpdated:t.date_upload_updated?new Date(t.date_upload_updated):null,dateUpdated:t.date_updated?new Date(t.date_updated):null,size:t.size,contentType:t.content_type,author:t.author,url:t.url,contentUrl:t.links.content,contentDirectUrl:null!==(e=t.links.content_direct_temporary)&&void 0!==e?e:null,filename:null!==(r=t.filename)&&void 0!==r?r:null,category:null!==(n=t.category)&&void 0!==n?n:"media",isMultipartUpstream:null!==(o=t.is_multipart_upstream)&&void 0!==o&&o}}}var vu=$r,yu=tt,gu=S,mu=Be,bu=function(t){return function(e,r,n,o){vu(r);var i=yu(e),a=gu(i),u=mu(i.length),c=t?u-1:0,s=t?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=s;break}if(c+=s,t?c<0:u<=c)throw TypeError("Reduce of empty array with no initial value")}for(;t?c>=0:u>c;c+=s)c in a&&(o=r(o,a[c],c,i));return o}},wu={left:bu(!1),right:bu(!0)},xu=s,Su=function(t,e){var r=[][t];return!!r&&xu((function(){r.call(null,e||function(){throw 1},1)}))},ku=wu.left,Au=N,Eu=Bn;Lr({target:"Array",proto:!0,forced:!Su("reduce")||!Eu&&Au>79&&Au<83},{reduce:function(t){return ku(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Ou=qt,ju={},Tu=s,Lu=u.RegExp;ju.UNSUPPORTED_Y=Tu((function(){var t=Lu("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),ju.BROKEN_CARET=Tu((function(){var t=Lu("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));var _u,Ru=tr,Iu=er,Pu=Object.keys||function(t){return Ru(t,Iu)},Cu=Ft,Du=qt,Mu=Pu,Uu=f?Object.defineProperties:function(t,e){Du(t);for(var r,n=Mu(e),o=n.length,i=0;o>i;)Cu.f(t,r=n[i++],e[r]);return t},Nu=qt,Fu=Uu,Bu=er,qu=fe,Gu=Nn,Wu=Tt,zu=se("IE_PROTO"),$u=function(){},Vu=function(t){return"<script>"+t+"</"+"script>"},Hu=function(t){t.write(Vu("")),t.close();var e=t.parentWindow.Object;return t=null,e},Yu=function(){try{_u=new ActiveXObject("htmlfile")}catch(t){}var t,e;Yu="undefined"!=typeof document?document.domain&&_u?Hu(_u):((e=Wu("iframe")).style.display="none",Gu.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Vu("document.F=Object")),t.close(),t.F):Hu(_u);for(var r=Bu.length;r--;)delete Yu.prototype[Bu[r]];return Yu()};qu[zu]=!0;var Xu,Ju,Ku=Object.create||function(t,e){var r;return null!==t?($u.prototype=Nu(t),r=new $u,$u.prototype=null,r[zu]=t):r=Yu(),void 0===e?r:Fu(r,e)},Zu=s,Qu=u.RegExp,tc=Zu((function(){var t=Qu(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),ec=s,rc=u.RegExp,nc=ec((function(){var t=rc("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),oc=Xa,ic=function(){var t=Ou(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},ac=ju,uc=V.exports,cc=Ku,sc=Ee.get,fc=tc,lc=nc,pc=RegExp.prototype.exec,hc=uc("native-string-replace",String.prototype.replace),dc=pc,vc=(Xu=/a/,Ju=/b*/g,pc.call(Xu,"a"),pc.call(Ju,"a"),0!==Xu.lastIndex||0!==Ju.lastIndex),yc=ac.UNSUPPORTED_Y||ac.BROKEN_CARET,gc=void 0!==/()??/.exec("")[1];(vc||gc||yc||fc||lc)&&(dc=function(t){var e,r,n,o,i,a,u,c=this,s=sc(c),f=oc(t),l=s.raw;if(l)return l.lastIndex=c.lastIndex,e=dc.call(l,f),c.lastIndex=l.lastIndex,e;var p=s.groups,h=yc&&c.sticky,d=ic.call(c),v=c.source,y=0,g=f;if(h&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),g=f.slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==f.charAt(c.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),r=new RegExp("^(?:"+v+")",d)),gc&&(r=new RegExp("^"+v+"$(?!\\s)",d)),vc&&(n=c.lastIndex),o=pc.call(h?r:c,g),h?o?(o.input=o.input.slice(y),o[0]=o[0].slice(y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:vc&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),gc&&o&&o.length>1&&hc.call(o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=cc(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var mc=dc;Lr({target:"RegExp",proto:!0,forced:/./.exec!==mc},{exec:mc});var bc=Jt.exports,wc=mc,xc=s,Sc=yt,kc=Xt,Ac=Sc("species"),Ec=RegExp.prototype,Oc=Ue,jc=Xa,Tc=k,Lc=function(t){return function(e,r){var n,o,i=jc(Tc(e)),a=Oc(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},_c={codeAt:Lc(!1),charAt:Lc(!0)},Rc=_c.charAt,Ic=b,Pc=mc,Cc=function(t,e,r,n){var o=Sc(t),i=!xc((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!xc((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Ac]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var u=/./[o],c=e(o,""[t],(function(t,e,r,n,o){var a=e.exec;return a===wc||a===Ec.exec?i&&!o?{done:!0,value:u.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}));bc(String.prototype,t,c[0]),bc(Ec,o,c[1])}n&&kc(Ec[o],"sham",!0)},Dc=Qa,Mc=qt,Uc=k,Nc=Un,Fc=function(t,e,r){return e+(r?Rc(t,e).length:1)},Bc=Be,qc=Xa,Gc=function(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"!==Ic(t))throw TypeError("RegExp#exec called on incompatible receiver");return Pc.call(t,e)},Wc=mc,zc=s,$c=ju.UNSUPPORTED_Y,Vc=[].push,Hc=Math.min,Yc=4294967295;Cc("split",(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=qc(Uc(this)),o=void 0===r?Yc:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!Dc(t))return e.call(n,t,o);for(var i,a,u,c=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,l=new RegExp(t.source,s+"g");(i=Wc.call(l,n))&&!((a=l.lastIndex)>f&&(c.push(n.slice(f,i.index)),i.length>1&&i.index<n.length&&Vc.apply(c,i.slice(1)),u=i[0].length,f=a,c.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return f===n.length?!u&&l.test("")||c.push(""):c.push(n.slice(f)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var o=Uc(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,r):n.call(qc(o),e,r)},function(t,o){var i=Mc(this),a=qc(t),u=r(n,i,a,o,n!==e);if(u.done)return u.value;var c=Nc(i,RegExp),s=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+($c?"g":"y"),l=new c($c?"^(?:"+i.source+")":i,f),p=void 0===o?Yc:o>>>0;if(0===p)return[];if(0===a.length)return null===Gc(l,a)?[a]:[];for(var h=0,d=0,v=[];d<a.length;){l.lastIndex=$c?0:d;var y,g=Gc(l,$c?a.slice(d):a);if(null===g||(y=Hc(Bc(l.lastIndex+($c?d:0)),a.length))===h)d=Fc(a,d,s);else{if(v.push(a.slice(h,d)),v.length===p)return v;for(var m=1;m<=g.length-1;m++)if(v.push(g[m]),v.length===p)return v;d=h=y}}return v.push(a.slice(h)),v}]}),!!zc((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]})),$c);class Xc extends Error{constructor(t,e,r,n,o){super(t),this.code=e,this.body=r,this.status=n,this.headers=o}}var Jc=e.XMLHttpRequest||{};function Kc(t){var e=t.getResponseHeader("Content-Type");if(!e||0!==e.indexOf("application/json")||0===t.responseText.length)return t.responseText;try{return JSON.parse(t.responseText)}catch(e){return t.responseText}}class Zc{static request(t,e,r,o){return n(Sa.mark((function n(){return Sa.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise(((n,i)=>{var a=new Jc;for(var u in a.open(t,e,!0),a.onreadystatechange=function(){if(4===a.readyState){var t,e=(t=a.getAllResponseHeaders())?t.split("\r\n").map((t=>t.split(": "))).filter((t=>2===t.length&&t[1].length>0)).reduce(((t,e)=>(t[e[0]]=e[1],t)),{}):{},r=Kc(a);if(200<=a.status&&a.status<300)n({status:a.status,headers:e,body:r});else{var o,u,c=null!==(o=a.statusText)&&void 0!==o?o:"NONE";u="string"==typeof r?r&&1===r.split("\n",2).length?r:"":JSON.stringify(r);var s="".concat(a.status,": [").concat(c,"] ").concat(u);i(new Xc(s,a.status,r,c,e))}}},r)a.setRequestHeader(u,r[u]),"Content-Type"===u&&"application/json"===r[u]&&(o=JSON.stringify(o));a.send(o)})));case 1:case"end":return n.stop()}}),n)})))()}get(t,e){return n(Sa.mark((function r(){return Sa.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Zc.request("GET",t,e));case 1:case"end":return r.stop()}}),r)})))()}post(t,e,r){return n(Sa.mark((function n(){return Sa.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Zc.request("POST",t,e,r));case 1:case"end":return n.stop()}}),n)})))()}}var Qc=f,ts=s,es=Pu,rs=or,ns=l,os=tt,is=S,as=Object.assign,us=Object.defineProperty,cs=!as||ts((function(){if(Qc&&1!==as({b:1},as(us({},"a",{enumerable:!0,get:function(){us(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=as({},t)[r]||es(as({},e)).join("")!=n}))?function(t,e){for(var r=os(t),n=arguments.length,o=1,i=rs.f,a=ns.f;n>o;)for(var u,c=is(arguments[o++]),s=i?es(c).concat(i(c)):es(c),f=s.length,l=0;f>l;)u=s[l++],Qc&&!a.call(c,u)||(r[u]=c[u]);return r}:as,ss=cs;Lr({target:"Object",stat:!0,forced:Object.assign!==ss},{assign:ss});var fs=Ku,ls=Ft,ps=yt("unscopables"),hs=Array.prototype;null==hs[ps]&&ls.f(hs,ps,{configurable:!0,value:fs(null)});var ds,vs,ys,gs=function(t){hs[ps][t]=!0},ms=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),bs=nt,ws=tt,xs=ms,Ss=se("IE_PROTO"),ks=Object.prototype,As=xs?Object.getPrototypeOf:function(t){return t=ws(t),bs(t,Ss)?t[Ss]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?ks:null},Es=s,Os=As,js=Xt,Ts=yt("iterator"),Ls=!1;[].keys&&("next"in(ys=[].keys())?(vs=Os(Os(ys)))!==Object.prototype&&(ds=vs):Ls=!0),(null==ds||Es((function(){var t={};return ds[Ts].call(t)!==t})))&&(ds={}),"function"!=typeof ds[Ts]&&js(ds,Ts,(function(){return this}));var _s={IteratorPrototype:ds,BUGGY_SAFARI_ITERATORS:Ls},Rs=_s.IteratorPrototype,Is=Ku,Ps=g,Cs=Br,Ds=Hr,Ms=function(){return this},Us=function(t,e,r){var n=e+" Iterator";return t.prototype=Is(Rs,{next:Ps(1,r)}),Cs(t,n,!1),Ds[n]=Ms,t},Ns=Lr,Fs=Us,Bs=As,qs=Mr,Gs=Br,Ws=Xt,zs=Jt.exports,$s=Hr,Vs=_s.IteratorPrototype,Hs=_s.BUGGY_SAFARI_ITERATORS,Ys=yt("iterator"),Xs="keys",Js="values",Ks="entries",Zs=function(){return this},Qs=function(t,e,r,n,o,i,a){Fs(r,e,n);var u,c,s,f=function(t){if(t===o&&v)return v;if(!Hs&&t in h)return h[t];switch(t){case Xs:case Js:case Ks:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",p=!1,h=t.prototype,d=h[Ys]||h["@@iterator"]||o&&h[o],v=!Hs&&d||f(o),y="Array"==e&&h.entries||d;if(y&&(u=Bs(y.call(new t)))!==Object.prototype&&u.next&&(Bs(u)!==Vs&&(qs?qs(u,Vs):"function"!=typeof u[Ys]&&Ws(u,Ys,Zs)),Gs(u,l,!0)),o==Js&&d&&d.name!==Js&&(p=!0,v=function(){return d.call(this)}),h[Ys]!==v&&Ws(h,Ys,v),$s[e]=v,o)if(c={values:f(Js),keys:i?v:f(Xs),entries:f(Ks)},a)for(s in c)(Hs||p||!(s in h))&&zs(h,s,c[s]);else Ns({target:e,proto:!0,forced:Hs||p},c);return c},tf=O,ef=gs,rf=Hr,nf=Ee,of=Qs,af="Array Iterator",uf=nf.set,cf=nf.getterFor(af),sf=of(Array,"Array",(function(t,e){uf(this,{type:af,target:tf(t),index:0,kind:e})}),(function(){var t=cf(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");rf.Arguments=rf.Array,ef("keys"),ef("values"),ef("entries");var ff=Tt("span").classList,lf=ff&&ff.constructor&&ff.constructor.prototype,pf=lf===Object.prototype?void 0:lf,hf=u,df={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},vf=pf,yf=sf,gf=Xt,mf=yt,bf=mf("iterator"),wf=mf("toStringTag"),xf=yf.values,Sf=function(t,e){if(t){if(t[bf]!==xf)try{gf(t,bf,xf)}catch(e){t[bf]=xf}if(t[wf]||gf(t,wf,e),df[e])for(var r in yf)if(t[r]!==yf[r])try{gf(t,r,yf[r])}catch(e){t[r]=yf[r]}}};for(var kf in df)Sf(hf[kf]&&hf[kf].prototype,kf);Sf(vf,"DOMTokenList");var Af=_c.charAt,Ef=Xa,Of=Ee,jf=Qs,Tf="String Iterator",Lf=Of.set,_f=Of.getterFor(Tf);jf(String,"String",(function(t){Lf(this,{type:Tf,string:Ef(t),index:0})}),(function(){var t,e=_f(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Af(r,n),e.index+=t.length,{value:t,done:!1})}));var Rf=s,If=yt("iterator"),Pf=!Rf((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[If]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),Cf=2147483647,Df=/[^\0-\u007E]/,Mf=/[.\u3002\uFF0E\uFF61]/g,Uf="Overflow: input needs wider integers to process",Nf=Math.floor,Ff=String.fromCharCode,Bf=function(t){return t+22+75*(t<26)},qf=function(t,e,r){var n=0;for(t=r?Nf(t/700):t>>1,t+=Nf(t/e);t>455;n+=36)t=Nf(t/35);return Nf(n+36*t/(t+38))},Gf=function(t){var e,r,n=[],o=(t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=t.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=t.charCodeAt(r++);56320==(64512&i)?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),r--)}else e.push(o)}return e}(t)).length,i=128,a=0,u=72;for(e=0;e<t.length;e++)(r=t[e])<128&&n.push(Ff(r));var c=n.length,s=c;for(c&&n.push("-");s<o;){var f=Cf;for(e=0;e<t.length;e++)(r=t[e])>=i&&r<f&&(f=r);var l=s+1;if(f-i>Nf((Cf-a)/l))throw RangeError(Uf);for(a+=(f-i)*l,i=f,e=0;e<t.length;e++){if((r=t[e])<i&&++a>Cf)throw RangeError(Uf);if(r==i){for(var p=a,h=36;;h+=36){var d=h<=u?1:h>=u+26?26:h-u;if(p<d)break;var v=p-d,y=36-d;n.push(Ff(Bf(d+v%y))),p=Nf(v/y)}n.push(Ff(Bf(p))),u=qf(a,l,s==c),a=0,++s}}++a,++i}return n.join("")},Wf=Lr,zf=_,$f=Pf,Vf=Jt.exports,Hf=Ir,Yf=Br,Xf=Us,Jf=Ee,Kf=Vr,Zf=nt,Qf=Qr,tl=un,el=qt,rl=j,nl=Xa,ol=Ku,il=g,al=dn,ul=ln,cl=yt,sl=zf("fetch"),fl=zf("Request"),ll=fl&&fl.prototype,pl=zf("Headers"),hl=cl("iterator"),dl="URLSearchParams",vl="URLSearchParamsIterator",yl=Jf.set,gl=Jf.getterFor(dl),ml=Jf.getterFor(vl),bl=/\+/g,wl=Array(4),xl=function(t){return wl[t-1]||(wl[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},Sl=function(t){try{return decodeURIComponent(t)}catch(e){return t}},kl=function(t){var e=t.replace(bl," "),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(xl(r--),Sl);return e}},Al=/[!'()~]|%20/g,El={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Ol=function(t){return El[t]},jl=function(t){return encodeURIComponent(t).replace(Al,Ol)},Tl=function(t,e){if(e)for(var r,n,o=e.split("&"),i=0;i<o.length;)(r=o[i++]).length&&(n=r.split("="),t.push({key:kl(n.shift()),value:kl(n.join("="))}))},Ll=function(t){this.entries.length=0,Tl(this.entries,t)},_l=function(t,e){if(t<e)throw TypeError("Not enough arguments")},Rl=Xf((function(t,e){yl(this,{type:vl,iterator:al(gl(t).entries),kind:e})}),"Iterator",(function(){var t=ml(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r})),Il=function(){Kf(this,Il,dl);var t,e,r,n,o,i,a,u,c,s=arguments.length>0?arguments[0]:void 0,f=this,l=[];if(yl(f,{type:dl,entries:l,updateURL:function(){},updateSearchParams:Ll}),void 0!==s)if(rl(s))if("function"==typeof(t=ul(s)))for(r=(e=al(s,t)).next;!(n=r.call(e)).done;){if((a=(i=(o=al(el(n.value))).next).call(o)).done||(u=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");l.push({key:nl(a.value),value:nl(u.value)})}else for(c in s)Zf(s,c)&&l.push({key:c,value:nl(s[c])});else Tl(l,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:nl(s))},Pl=Il.prototype;if(Hf(Pl,{append:function(t,e){_l(arguments.length,2);var r=gl(this);r.entries.push({key:nl(t),value:nl(e)}),r.updateURL()},delete:function(t){_l(arguments.length,1);for(var e=gl(this),r=e.entries,n=nl(t),o=0;o<r.length;)r[o].key===n?r.splice(o,1):o++;e.updateURL()},get:function(t){_l(arguments.length,1);for(var e=gl(this).entries,r=nl(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){_l(arguments.length,1);for(var e=gl(this).entries,r=nl(t),n=[],o=0;o<e.length;o++)e[o].key===r&&n.push(e[o].value);return n},has:function(t){_l(arguments.length,1);for(var e=gl(this).entries,r=nl(t),n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){_l(arguments.length,1);for(var r,n=gl(this),o=n.entries,i=!1,a=nl(t),u=nl(e),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?o.splice(c--,1):(i=!0,r.value=u));i||o.push({key:a,value:u}),n.updateURL()},sort:function(){var t,e,r,n=gl(this),o=n.entries,i=o.slice();for(o.length=0,r=0;r<i.length;r++){for(t=i[r],e=0;e<r;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===r&&o.push(t)}n.updateURL()},forEach:function(t){for(var e,r=gl(this).entries,n=Qf(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new Rl(this,"keys")},values:function(){return new Rl(this,"values")},entries:function(){return new Rl(this,"entries")}},{enumerable:!0}),Vf(Pl,hl,Pl.entries),Vf(Pl,"toString",(function(){for(var t,e=gl(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(jl(t.key)+"="+jl(t.value));return r.join("&")}),{enumerable:!0}),Yf(Il,dl),Wf({global:!0,forced:!$f},{URLSearchParams:Il}),!$f&&"function"==typeof pl){var Cl=function(t){if(rl(t)){var e,r=t.body;if(tl(r)===dl)return(e=t.headers?new pl(t.headers):new pl).has("content-type")||e.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),ol(t,{body:il(0,String(r)),headers:il(0,e)})}return t};if("function"==typeof sl&&Wf({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return sl(t,arguments.length>1?Cl(arguments[1]):{})}}),"function"==typeof fl){var Dl=function(t){return Kf(this,Dl,"Request"),new fl(t,arguments.length>1?Cl(arguments[1]):{})};ll.constructor=Dl,Dl.prototype=ll,Wf({global:!0,forced:!0},{Request:Dl})}}var Ml,Ul={URLSearchParams:Il,getState:gl},Nl=Lr,Fl=f,Bl=Pf,ql=u,Gl=Uu,Wl=Jt.exports,zl=Vr,$l=nt,Vl=cs,Hl=Fa,Yl=_c.codeAt,Xl=function(t){var e,r,n=[],o=t.toLowerCase().replace(Mf,".").split(".");for(e=0;e<o.length;e++)r=o[e],n.push(Df.test(r)?"xn--"+Gf(r):r);return n.join(".")},Jl=Xa,Kl=Br,Zl=Ul,Ql=Ee,tp=ql.URL,ep=Zl.URLSearchParams,rp=Zl.getState,np=Ql.set,op=Ql.getterFor("URL"),ip=Math.floor,ap=Math.pow,up="Invalid scheme",cp="Invalid host",sp="Invalid port",fp=/[A-Za-z]/,lp=/[\d+-.A-Za-z]/,pp=/\d/,hp=/^0x/i,dp=/^[0-7]+$/,vp=/^\d+$/,yp=/^[\dA-Fa-f]+$/,gp=/[\0\t\n\r #%/:<>?@[\\\]^|]/,mp=/[\0\t\n\r #/:<>?@[\\\]^|]/,bp=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,wp=/[\t\n\r]/g,xp=function(t,e){var r,n,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return cp;if(!(r=kp(e.slice(1,-1))))return cp;t.host=r}else if(Rp(t)){if(e=Xl(e),gp.test(e))return cp;if(null===(r=Sp(e)))return cp;t.host=r}else{if(mp.test(e))return cp;for(r="",n=Hl(e),o=0;o<n.length;o++)r+=Lp(n[o],Ep);t.host=r}},Sp=function(t){var e,r,n,o,i,a,u,c=t.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(e=c.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(o=c[n]))return t;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=hp.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?vp:8==i?dp:yp).test(o))return t;a=parseInt(o,i)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=ap(256,5-e))return null}else if(a>255)return null;for(u=r.pop(),n=0;n<r.length;n++)u+=r[n]*ap(256,3-n);return u},kp=function(t){var e,r,n,o,i,a,u,c=[0,0,0,0,0,0,0,0],s=0,f=null,l=0,p=function(){return t.charAt(l)};if(":"==p()){if(":"!=t.charAt(1))return;l+=2,f=++s}for(;p();){if(8==s)return;if(":"!=p()){for(e=r=0;r<4&&yp.test(p());)e=16*e+parseInt(p(),16),l++,r++;if("."==p()){if(0==r)return;if(l-=r,s>6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;l++}if(!pp.test(p()))return;for(;pp.test(p());){if(i=parseInt(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}c[s]=256*c[s]+o,2!=++n&&4!=n||s++}if(4!=n)return;break}if(":"==p()){if(l++,!p())return}else if(p())return;c[s++]=e}else{if(null!==f)return;l++,f=++s}}if(null!==f)for(a=s-f,s=7;0!=s&&a>0;)u=c[s],c[s--]=c[f+a-1],c[f+--a]=u;else if(8!=s)return;return c},Ap=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=ip(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}return t},Ep={},Op=Vl({},Ep,{" ":1,'"':1,"<":1,">":1,"`":1}),jp=Vl({},Op,{"#":1,"?":1,"{":1,"}":1}),Tp=Vl({},jp,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Lp=function(t,e){var r=Yl(t,0);return r>32&&r<127&&!$l(e,t)?t:encodeURIComponent(t)},_p={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Rp=function(t){return $l(_p,t.scheme)},Ip=function(t){return""!=t.username||""!=t.password},Pp=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},Cp=function(t,e){var r;return 2==t.length&&fp.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)},Dp=function(t){var e;return t.length>1&&Cp(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},Mp=function(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&Cp(e[0],!0)||e.pop()},Up=function(t){return"."===t||"%2e"===t.toLowerCase()},Np={},Fp={},Bp={},qp={},Gp={},Wp={},zp={},$p={},Vp={},Hp={},Yp={},Xp={},Jp={},Kp={},Zp={},Qp={},th={},eh={},rh={},nh={},oh={},ih=function(t,e,r,n){var o,i,a,u,c,s=r||Np,f=0,l="",p=!1,h=!1,d=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(bp,"")),e=e.replace(wp,""),o=Hl(e);f<=o.length;){switch(i=o[f],s){case Np:if(!i||!fp.test(i)){if(r)return up;s=Bp;continue}l+=i.toLowerCase(),s=Fp;break;case Fp:if(i&&(lp.test(i)||"+"==i||"-"==i||"."==i))l+=i.toLowerCase();else{if(":"!=i){if(r)return up;l="",s=Bp,f=0;continue}if(r&&(Rp(t)!=$l(_p,l)||"file"==l&&(Ip(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=l,r)return void(Rp(t)&&_p[t.scheme]==t.port&&(t.port=null));l="","file"==t.scheme?s=Kp:Rp(t)&&n&&n.scheme==t.scheme?s=qp:Rp(t)?s=$p:"/"==o[f+1]?(s=Gp,f++):(t.cannotBeABaseURL=!0,t.path.push(""),s=rh)}break;case Bp:if(!n||n.cannotBeABaseURL&&"#"!=i)return up;if(n.cannotBeABaseURL&&"#"==i){t.scheme=n.scheme,t.path=n.path.slice(),t.query=n.query,t.fragment="",t.cannotBeABaseURL=!0,s=oh;break}s="file"==n.scheme?Kp:Wp;continue;case qp:if("/"!=i||"/"!=o[f+1]){s=Wp;continue}s=Vp,f++;break;case Gp:if("/"==i){s=Hp;break}s=eh;continue;case Wp:if(t.scheme=n.scheme,i==Ml)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query;else if("/"==i||"\\"==i&&Rp(t))s=zp;else if("?"==i)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query="",s=nh;else{if("#"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.path.pop(),s=eh;continue}t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query,t.fragment="",s=oh}break;case zp:if(!Rp(t)||"/"!=i&&"\\"!=i){if("/"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,s=eh;continue}s=Hp}else s=Vp;break;case $p:if(s=Vp,"/"!=i||"/"!=l.charAt(f+1))continue;f++;break;case Vp:if("/"!=i&&"\\"!=i){s=Hp;continue}break;case Hp:if("@"==i){p&&(l="%40"+l),p=!0,a=Hl(l);for(var v=0;v<a.length;v++){var y=a[v];if(":"!=y||d){var g=Lp(y,Tp);d?t.password+=g:t.username+=g}else d=!0}l=""}else if(i==Ml||"/"==i||"?"==i||"#"==i||"\\"==i&&Rp(t)){if(p&&""==l)return"Invalid authority";f-=Hl(l).length+1,l="",s=Yp}else l+=i;break;case Yp:case Xp:if(r&&"file"==t.scheme){s=Qp;continue}if(":"!=i||h){if(i==Ml||"/"==i||"?"==i||"#"==i||"\\"==i&&Rp(t)){if(Rp(t)&&""==l)return cp;if(r&&""==l&&(Ip(t)||null!==t.port))return;if(u=xp(t,l))return u;if(l="",s=th,r)return;continue}"["==i?h=!0:"]"==i&&(h=!1),l+=i}else{if(""==l)return cp;if(u=xp(t,l))return u;if(l="",s=Jp,r==Xp)return}break;case Jp:if(!pp.test(i)){if(i==Ml||"/"==i||"?"==i||"#"==i||"\\"==i&&Rp(t)||r){if(""!=l){var m=parseInt(l,10);if(m>65535)return sp;t.port=Rp(t)&&m===_p[t.scheme]?null:m,l=""}if(r)return;s=th;continue}return sp}l+=i;break;case Kp:if(t.scheme="file","/"==i||"\\"==i)s=Zp;else{if(!n||"file"!=n.scheme){s=eh;continue}if(i==Ml)t.host=n.host,t.path=n.path.slice(),t.query=n.query;else if("?"==i)t.host=n.host,t.path=n.path.slice(),t.query="",s=nh;else{if("#"!=i){Dp(o.slice(f).join(""))||(t.host=n.host,t.path=n.path.slice(),Mp(t)),s=eh;continue}t.host=n.host,t.path=n.path.slice(),t.query=n.query,t.fragment="",s=oh}}break;case Zp:if("/"==i||"\\"==i){s=Qp;break}n&&"file"==n.scheme&&!Dp(o.slice(f).join(""))&&(Cp(n.path[0],!0)?t.path.push(n.path[0]):t.host=n.host),s=eh;continue;case Qp:if(i==Ml||"/"==i||"\\"==i||"?"==i||"#"==i){if(!r&&Cp(l))s=eh;else if(""==l){if(t.host="",r)return;s=th}else{if(u=xp(t,l))return u;if("localhost"==t.host&&(t.host=""),r)return;l="",s=th}continue}l+=i;break;case th:if(Rp(t)){if(s=eh,"/"!=i&&"\\"!=i)continue}else if(r||"?"!=i)if(r||"#"!=i){if(i!=Ml&&(s=eh,"/"!=i))continue}else t.fragment="",s=oh;else t.query="",s=nh;break;case eh:if(i==Ml||"/"==i||"\\"==i&&Rp(t)||!r&&("?"==i||"#"==i)){if(".."===(c=(c=l).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(Mp(t),"/"==i||"\\"==i&&Rp(t)||t.path.push("")):Up(l)?"/"==i||"\\"==i&&Rp(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&Cp(l)&&(t.host&&(t.host=""),l=l.charAt(0)+":"),t.path.push(l)),l="","file"==t.scheme&&(i==Ml||"?"==i||"#"==i))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==i?(t.query="",s=nh):"#"==i&&(t.fragment="",s=oh)}else l+=Lp(i,jp);break;case rh:"?"==i?(t.query="",s=nh):"#"==i?(t.fragment="",s=oh):i!=Ml&&(t.path[0]+=Lp(i,Ep));break;case nh:r||"#"!=i?i!=Ml&&("'"==i&&Rp(t)?t.query+="%27":t.query+="#"==i?"%23":Lp(i,Ep)):(t.fragment="",s=oh);break;case oh:i!=Ml&&(t.fragment+=Lp(i,Op))}f++}},ah=function(t){var e,r,n=zl(this,ah,"URL"),o=arguments.length>1?arguments[1]:void 0,i=Jl(t),a=np(n,{type:"URL"});if(void 0!==o)if(o instanceof ah)e=op(o);else if(r=ih(e={},Jl(o)))throw TypeError(r);if(r=ih(a,i,null,e))throw TypeError(r);var u=a.searchParams=new ep,c=rp(u);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(u)||null},Fl||(n.href=ch.call(n),n.origin=sh.call(n),n.protocol=fh.call(n),n.username=lh.call(n),n.password=ph.call(n),n.host=hh.call(n),n.hostname=dh.call(n),n.port=vh.call(n),n.pathname=yh.call(n),n.search=gh.call(n),n.searchParams=mh.call(n),n.hash=bh.call(n))},uh=ah.prototype,ch=function(){var t=op(this),e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,u=t.query,c=t.fragment,s=e+":";return null!==o?(s+="//",Ip(t)&&(s+=r+(n?":"+n:"")+"@"),s+=Ap(o),null!==i&&(s+=":"+i)):"file"==e&&(s+="//"),s+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==u&&(s+="?"+u),null!==c&&(s+="#"+c),s},sh=function(){var t=op(this),e=t.scheme,r=t.port;if("blob"==e)try{return new ah(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&Rp(t)?e+"://"+Ap(t.host)+(null!==r?":"+r:""):"null"},fh=function(){return op(this).scheme+":"},lh=function(){return op(this).username},ph=function(){return op(this).password},hh=function(){var t=op(this),e=t.host,r=t.port;return null===e?"":null===r?Ap(e):Ap(e)+":"+r},dh=function(){var t=op(this).host;return null===t?"":Ap(t)},vh=function(){var t=op(this).port;return null===t?"":String(t)},yh=function(){var t=op(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},gh=function(){var t=op(this).query;return t?"?"+t:""},mh=function(){return op(this).searchParams},bh=function(){var t=op(this).fragment;return t?"#"+t:""},wh=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(Fl&&Gl(uh,{href:wh(ch,(function(t){var e=op(this),r=Jl(t),n=ih(e,r);if(n)throw TypeError(n);rp(e.searchParams).updateSearchParams(e.query)})),origin:wh(sh),protocol:wh(fh,(function(t){var e=op(this);ih(e,Jl(t)+":",Np)})),username:wh(lh,(function(t){var e=op(this),r=Hl(Jl(t));if(!Pp(e)){e.username="";for(var n=0;n<r.length;n++)e.username+=Lp(r[n],Tp)}})),password:wh(ph,(function(t){var e=op(this),r=Hl(Jl(t));if(!Pp(e)){e.password="";for(var n=0;n<r.length;n++)e.password+=Lp(r[n],Tp)}})),host:wh(hh,(function(t){var e=op(this);e.cannotBeABaseURL||ih(e,Jl(t),Yp)})),hostname:wh(dh,(function(t){var e=op(this);e.cannotBeABaseURL||ih(e,Jl(t),Xp)})),port:wh(vh,(function(t){var e=op(this);Pp(e)||(""==(t=Jl(t))?e.port=null:ih(e,t,Jp))})),pathname:wh(yh,(function(t){var e=op(this);e.cannotBeABaseURL||(e.path=[],ih(e,Jl(t),th))})),search:wh(gh,(function(t){var e=op(this);""==(t=Jl(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",ih(e,t,nh)),rp(e.searchParams).updateSearchParams(e.query)})),searchParams:wh(mh),hash:wh(bh,(function(t){var e=op(this);""!=(t=Jl(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",ih(e,t,oh)):e.fragment=null}))}),Wl(uh,"toJSON",(function(){return ch.call(this)}),{enumerable:!0}),Wl(uh,"toString",(function(){return ch.call(this)}),{enumerable:!0}),tp){var xh=tp.createObjectURL,Sh=tp.revokeObjectURL;xh&&Wl(ah,"createObjectURL",(function(t){return xh.apply(tp,arguments)})),Sh&&Wl(ah,"revokeObjectURL",(function(t){return Sh.apply(tp,arguments)}))}Kl(ah,"URL"),Nl({global:!0,forced:!Bl,sham:!Fl},{URL:ah});var kh={},Ah=$r,Eh=j,Oh=[].slice,jh={},Th=function(t,e,r){if(!(e in jh)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";jh[e]=Function("C,a","return new C("+n.join(",")+")")}return jh[e](t,r)},Lh=Function.bind||function(t){var e=Ah(this),r=Oh.call(arguments,1),n=function(){var o=r.concat(Oh.call(arguments));return this instanceof n?Th(e,o.length,o):e.apply(t,o)};return Eh(e.prototype)&&(n.prototype=e.prototype),n},_h=Lr,Rh=$r,Ih=qt,Ph=j,Ch=Ku,Dh=Lh,Mh=s,Uh=_("Reflect","construct"),Nh=Mh((function(){function t(){}return!(Uh((function(){}),[],t)instanceof t)})),Fh=!Mh((function(){Uh((function(){}))})),Bh=Nh||Fh;_h({target:"Reflect",stat:!0,forced:Bh,sham:Bh},{construct:function(t,e){Rh(t),Ih(e);var r=arguments.length<3?t:Rh(arguments[2]);if(Fh&&!Nh)return Uh(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(Dh.apply(t,n))}var o=r.prototype,i=Ch(Ph(o)?o:Object.prototype),a=Function.apply.call(t,i,e);return Ph(a)?a:i}});var qh={exports:{}};!function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0}(qh);var Gh={exports:{}};!function(t){function e(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)}}t.exports=function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t},t.exports.default=t.exports,t.exports.__esModule=!0}(Gh);var Wh={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0}(Wh);var zh={exports:{}},$h={exports:{}};!function(t){function e(r,n){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,e(r,n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}($h),function(t){var e=$h.exports;t.exports=function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&e(t,r)},t.exports.default=t.exports,t.exports.__esModule=!0}(zh);var Vh={exports:{}},Hh={exports:{}};!function(t){function e(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=e=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}(Hh),function(t){var e=Hh.exports.default,r=Wh.exports;t.exports=function(t,n){return!n||"object"!==e(n)&&"function"!=typeof n?r(t):n},t.exports.default=t.exports,t.exports.__esModule=!0}(Vh);var Yh={exports:{}};!function(t){function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.default=t.exports,t.exports.__esModule=!0,e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}(Yh);var Xh={exports:{}};!function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.default=t.exports,t.exports.__esModule=!0}(Xh);var Jh=un,Kh=en?{}.toString:function(){return"[object "+Jh(this)+"]"},Zh=en,Qh=Jt.exports,td=Kh;Zh||Qh(Object.prototype,"toString",td,{unsafe:!0})
|
|
18
|
+
this.Twilio=this.Twilio||{},this.Twilio.McsClient=function(t){"use strict";var e=void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function r(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n&&n)||function(){return this}()||Function("return this")(),a={},u=function(t){try{return!!t()}catch(t){return!0}},c=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s={},l={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,p=f&&!l.call({1:2},1);s.f=p?function(t){var e=f(this,t);return!!e&&e.enumerable}:l;var h,d,v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},y={}.toString,g=function(t){return y.call(t).slice(8,-1)},m=g,b="".split,w=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==m(t)?b.call(t,""):Object(t)}:Object,x=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},S=w,k=x,A=function(t){return S(k(t))},E=function(t){return"object"==typeof t?null!==t:"function"==typeof t},O=i,j=function(t){return"function"==typeof t?t:void 0},T=function(t,e){return arguments.length<2?j(O[t]):O[t]&&O[t][e]},L=T("navigator","userAgent")||"",_=i,R=L,I=_.process,P=_.Deno,C=I&&I.versions||P&&P.version,D=C&&C.v8;D?d=(h=D.split("."))[0]<4?1:h[0]+h[1]:R&&(!(h=R.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=R.match(/Chrome\/(\d+)/))&&(d=h[1]);var M=d&&+d,U=M,N=u,F=!!Object.getOwnPropertySymbols&&!N((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&U&&U<41})),q=F&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,B=T,$=q?function(t){return"symbol"==typeof t}:function(t){var e=B("Symbol");return"function"==typeof e&&Object(t)instanceof e},G=E,W={exports:{}},z=i,V=function(t,e){try{Object.defineProperty(z,t,{value:e,configurable:!0,writable:!0})}catch(r){z[t]=e}return e},H=V,Y="__core-js_shared__",J=i[Y]||H(Y,{}),K=J;(W.exports=function(t,e){return K[t]||(K[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var X=x,Z=function(t){return Object(X(t))},Q=Z,tt={}.hasOwnProperty,et=Object.hasOwn||function(t,e){return tt.call(Q(t),e)},rt=0,nt=Math.random(),ot=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++rt+nt).toString(36)},it=i,at=W.exports,ut=et,ct=ot,st=F,lt=q,ft=at("wks"),pt=it.Symbol,ht=lt?pt:pt&&pt.withoutSetter||ct,dt=function(t){return ut(ft,t)&&(st||"string"==typeof ft[t])||(st&&ut(pt,t)?ft[t]=pt[t]:ft[t]=ht("Symbol."+t)),ft[t]},vt=E,yt=$,gt=function(t,e){var r,n;if("string"===e&&"function"==typeof(r=t.toString)&&!G(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!G(n=r.call(t)))return n;if("string"!==e&&"function"==typeof(r=t.toString)&&!G(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},mt=dt("toPrimitive"),bt=function(t,e){if(!vt(t)||yt(t))return t;var r,n=t[mt];if(void 0!==n){if(void 0===e&&(e="default"),r=n.call(t,e),!vt(r)||yt(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),gt(t,e)},wt=bt,xt=$,St=function(t){var e=wt(t,"string");return xt(e)?e:String(e)},kt=E,At=i.document,Et=kt(At)&&kt(At.createElement),Ot=function(t){return Et?At.createElement(t):{}},jt=Ot,Tt=!c&&!u((function(){return 7!=Object.defineProperty(jt("div"),"a",{get:function(){return 7}}).a})),Lt=c,_t=s,Rt=v,It=A,Pt=St,Ct=et,Dt=Tt,Mt=Object.getOwnPropertyDescriptor;a.f=Lt?Mt:function(t,e){if(t=It(t),e=Pt(e),Dt)try{return Mt(t,e)}catch(t){}if(Ct(t,e))return Rt(!_t.f.call(t,e),t[e])};var Ut={},Nt=E,Ft=function(t){if(!Nt(t))throw TypeError(String(t)+" is not an object");return t},qt=c,Bt=Tt,$t=Ft,Gt=St,Wt=Object.defineProperty;Ut.f=qt?Wt:function(t,e,r){if($t(t),e=Gt(e),$t(r),Bt)try{return Wt(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};var zt=Ut,Vt=v,Ht=c?function(t,e,r){return zt.f(t,e,Vt(1,r))}:function(t,e,r){return t[e]=r,t},Yt={exports:{}},Jt=J,Kt=Function.toString;"function"!=typeof Jt.inspectSource&&(Jt.inspectSource=function(t){return Kt.call(t)});var Xt,Zt,Qt,te=Jt.inspectSource,ee=te,re=i.WeakMap,ne="function"==typeof re&&/native code/.test(ee(re)),oe=W.exports,ie=ot,ae=oe("keys"),ue=function(t){return ae[t]||(ae[t]=ie(t))},ce={},se=ne,le=E,fe=Ht,pe=et,he=J,de=ue,ve=ce,ye="Object already initialized",ge=i.WeakMap;if(se||he.state){var me=he.state||(he.state=new ge),be=me.get,we=me.has,xe=me.set;Xt=function(t,e){if(we.call(me,t))throw new TypeError(ye);return e.facade=t,xe.call(me,t,e),e},Zt=function(t){return be.call(me,t)||{}},Qt=function(t){return we.call(me,t)}}else{var Se=de("state");ve[Se]=!0,Xt=function(t,e){if(pe(t,Se))throw new TypeError(ye);return e.facade=t,fe(t,Se,e),e},Zt=function(t){return pe(t,Se)?t[Se]:{}},Qt=function(t){return pe(t,Se)}}var ke={set:Xt,get:Zt,has:Qt,enforce:function(t){return Qt(t)?Zt(t):Xt(t,{})},getterFor:function(t){return function(e){var r;if(!le(e)||(r=Zt(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Ae=i,Ee=Ht,Oe=et,je=V,Te=te,Le=ke.get,_e=ke.enforce,Re=String(String).split("String");(Yt.exports=function(t,e,r,n){var o,i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||Oe(r,"name")||Ee(r,"name",e),(o=_e(r)).source||(o.source=Re.join("string"==typeof e?e:""))),t!==Ae?(i?!u&&t[e]&&(a=!0):delete t[e],a?t[e]=r:Ee(t,e,r)):a?t[e]=r:je(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Le(this).source||Te(this)}));var Ie={},Pe=Math.ceil,Ce=Math.floor,De=function(t){return isNaN(t=+t)?0:(t>0?Ce:Pe)(t)},Me=De,Ue=Math.min,Ne=function(t){return t>0?Ue(Me(t),9007199254740991):0},Fe=De,qe=Math.max,Be=Math.min,$e=function(t,e){var r=Fe(t);return r<0?qe(r+e,0):Be(r,e)},Ge=A,We=Ne,ze=$e,Ve=function(t){return function(e,r,n){var o,i=Ge(e),a=We(i.length),u=ze(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},He={includes:Ve(!0),indexOf:Ve(!1)},Ye=et,Je=A,Ke=He.indexOf,Xe=ce,Ze=function(t,e){var r,n=Je(t),o=0,i=[];for(r in n)!Ye(Xe,r)&&Ye(n,r)&&i.push(r);for(;e.length>o;)Ye(n,r=e[o++])&&(~Ke(i,r)||i.push(r));return i},Qe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tr=Ze,er=Qe.concat("length","prototype");Ie.f=Object.getOwnPropertyNames||function(t){return tr(t,er)};var rr={};rr.f=Object.getOwnPropertySymbols;var nr=Ie,or=rr,ir=Ft,ar=T("Reflect","ownKeys")||function(t){var e=nr.f(ir(t)),r=or.f;return r?e.concat(r(t)):e},ur=et,cr=ar,sr=a,lr=Ut,fr=function(t,e){for(var r=cr(e),n=lr.f,o=sr.f,i=0;i<r.length;i++){var a=r[i];ur(t,a)||n(t,a,o(e,a))}},pr=u,hr=/#|\.prototype\./,dr=function(t,e){var r=yr[vr(t)];return r==mr||r!=gr&&("function"==typeof e?pr(e):!!e)},vr=dr.normalize=function(t){return String(t).replace(hr,".").toLowerCase()},yr=dr.data={},gr=dr.NATIVE="N",mr=dr.POLYFILL="P",br=dr,wr=i,xr=a.f,Sr=Ht,kr=Yt.exports,Ar=V,Er=fr,Or=br,jr=function(t,e){var r,n,o,i,a,u=t.target,c=t.global,s=t.stat;if(r=c?wr:s?wr[u]||Ar(u,{}):(wr[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=xr(r,n))&&a.value:r[n],!Or(c?n:u+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Er(i,o)}(t.sham||o&&o.sham)&&Sr(i,"sham",!0),kr(r,n,i,t)}},Tr=i.Promise,Lr=Yt.exports,_r=function(t,e,r){for(var n in e)Lr(t,n,e[n],r);return t},Rr=E,Ir=Ft,Pr=function(t){if(!Rr(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},Cr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Ir(r),Pr(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Dr=Ut.f,Mr=et,Ur=dt("toStringTag"),Nr=function(t,e,r){t&&!Mr(t=r?t:t.prototype,Ur)&&Dr(t,Ur,{configurable:!0,value:e})},Fr=T,qr=Ut,Br=c,$r=dt("species"),Gr=function(t){var e=Fr(t),r=qr.f;Br&&e&&!e[$r]&&r(e,$r,{configurable:!0,get:function(){return this}})},Wr=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},zr=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},Vr={},Hr=Vr,Yr=dt("iterator"),Jr=Array.prototype,Kr=function(t){return void 0!==t&&(Hr.Array===t||Jr[Yr]===t)},Xr=Wr,Zr=function(t,e,r){if(Xr(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},Qr={};Qr[dt("toStringTag")]="z";var tn="[object z]"===String(Qr),en=tn,rn=g,nn=dt("toStringTag"),on="Arguments"==rn(function(){return arguments}()),an=en?rn: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),nn))?r:on?rn(e):"Object"==(n=rn(e))&&"function"==typeof e.callee?"Arguments":n},un=an,cn=Vr,sn=dt("iterator"),ln=function(t){if(null!=t)return t[sn]||t["@@iterator"]||cn[un(t)]},fn=Ft,pn=ln,hn=function(t,e){var r=arguments.length<2?pn(t):e;if("function"!=typeof r)throw TypeError(String(t)+" is not iterable");return fn(r.call(t))},dn=Ft,vn=function(t,e,r){var n,o;dn(t);try{if(void 0===(n=t.return)){if("throw"===e)throw r;return r}n=n.call(t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return dn(n),r},yn=Ft,gn=Kr,mn=Ne,bn=Zr,wn=hn,xn=ln,Sn=vn,kn=function(t,e){this.stopped=t,this.result=e},An=function(t,e,r){var n,o,i,a,u,c,s,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),d=bn(e,l,1+f+h),v=function(t){return n&&Sn(n,"normal",t),new kn(!0,t)},y=function(t){return f?(yn(t),h?d(t[0],t[1],v):d(t[0],t[1])):h?d(t,v):d(t)};if(p)n=t;else{if("function"!=typeof(o=xn(t)))throw TypeError("Target is not iterable");if(gn(o)){for(i=0,a=mn(t.length);a>i;i++)if((u=y(t[i]))&&u instanceof kn)return u;return new kn(!1)}n=wn(t,o)}for(c=n.next;!(s=c.call(n)).done;){try{u=y(s.value)}catch(t){Sn(n,"throw",t)}if("object"==typeof u&&u&&u instanceof kn)return u}return new kn(!1)},En=dt("iterator"),On=!1;try{var jn=0,Tn={next:function(){return{done:!!jn++}},return:function(){On=!0}};Tn[En]=function(){return this},Array.from(Tn,(function(){throw 2}))}catch(t){}var Ln,_n,Rn,In,Pn=function(t,e){if(!e&&!On)return!1;var r=!1;try{var n={};n[En]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Cn=Ft,Dn=Wr,Mn=dt("species"),Un=function(t,e){var r,n=Cn(t).constructor;return void 0===n||null==(r=Cn(n)[Mn])?e:Dn(r)},Nn=T("document","documentElement"),Fn=/(?:ipad|iphone|ipod).*applewebkit/i.test(L),qn="process"==g(i.process),Bn=i,$n=u,Gn=Zr,Wn=Nn,zn=Ot,Vn=Fn,Hn=qn,Yn=Bn.setImmediate,Jn=Bn.clearImmediate,Kn=Bn.process,Xn=Bn.MessageChannel,Zn=Bn.Dispatch,Qn=0,to={},eo="onreadystatechange";try{Ln=Bn.location}catch(t){}var ro=function(t){if(to.hasOwnProperty(t)){var e=to[t];delete to[t],e()}},no=function(t){return function(){ro(t)}},oo=function(t){ro(t.data)},io=function(t){Bn.postMessage(String(t),Ln.protocol+"//"+Ln.host)};Yn&&Jn||(Yn=function(t){for(var e=[],r=arguments.length,n=1;r>n;)e.push(arguments[n++]);return to[++Qn]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},_n(Qn),Qn},Jn=function(t){delete to[t]},Hn?_n=function(t){Kn.nextTick(no(t))}:Zn&&Zn.now?_n=function(t){Zn.now(no(t))}:Xn&&!Vn?(In=(Rn=new Xn).port2,Rn.port1.onmessage=oo,_n=Gn(In.postMessage,In,1)):Bn.addEventListener&&"function"==typeof postMessage&&!Bn.importScripts&&Ln&&"file:"!==Ln.protocol&&!$n(io)?(_n=io,Bn.addEventListener("message",oo,!1)):_n=eo in zn("script")?function(t){Wn.appendChild(zn("script")).onreadystatechange=function(){Wn.removeChild(this),ro(t)}}:function(t){setTimeout(no(t),0)});var ao,uo,co,so,lo,fo,po,ho,vo={set:Yn,clear:Jn},yo=i,go=/ipad|iphone|ipod/i.test(L)&&void 0!==yo.Pebble,mo=/web0s(?!.*chrome)/i.test(L),bo=i,wo=a.f,xo=vo.set,So=Fn,ko=go,Ao=mo,Eo=qn,Oo=bo.MutationObserver||bo.WebKitMutationObserver,jo=bo.document,To=bo.process,Lo=bo.Promise,_o=wo(bo,"queueMicrotask"),Ro=_o&&_o.value;Ro||(ao=function(){var t,e;for(Eo&&(t=To.domain)&&t.exit();uo;){e=uo.fn,uo=uo.next;try{e()}catch(t){throw uo?so():co=void 0,t}}co=void 0,t&&t.enter()},So||Eo||Ao||!Oo||!jo?!ko&&Lo&&Lo.resolve?((po=Lo.resolve(void 0)).constructor=Lo,ho=po.then,so=function(){ho.call(po,ao)}):so=Eo?function(){To.nextTick(ao)}:function(){xo.call(bo,ao)}:(lo=!0,fo=jo.createTextNode(""),new Oo(ao).observe(fo,{characterData:!0}),so=function(){fo.data=lo=!lo}));var Io=Ro||function(t){var e={fn:t,next:void 0};co&&(co.next=e),uo||(uo=e,so()),co=e},Po={},Co=Wr,Do=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=Co(e),this.reject=Co(r)};Po.f=function(t){return new Do(t)};var Mo,Uo,No,Fo,qo=Ft,Bo=E,$o=Po,Go=i,Wo="object"==typeof window,zo=jr,Vo=i,Ho=T,Yo=Tr,Jo=Yt.exports,Ko=_r,Xo=Cr,Zo=Nr,Qo=Gr,ti=E,ei=Wr,ri=zr,ni=te,oi=An,ii=Pn,ai=Un,ui=vo.set,ci=Io,si=function(t,e){if(qo(t),Bo(e)&&e.constructor===t)return e;var r=$o.f(t);return(0,r.resolve)(e),r.promise},li=function(t,e){var r=Go.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))},fi=Po,pi=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},hi=ke,di=br,vi=Wo,yi=qn,gi=M,mi=dt("species"),bi="Promise",wi=hi.get,xi=hi.set,Si=hi.getterFor(bi),ki=Yo&&Yo.prototype,Ai=Yo,Ei=ki,Oi=Vo.TypeError,ji=Vo.document,Ti=Vo.process,Li=fi.f,_i=Li,Ri=!!(ji&&ji.createEvent&&Vo.dispatchEvent),Ii="function"==typeof PromiseRejectionEvent,Pi="unhandledrejection",Ci=!1,Di=di(bi,(function(){var t=ni(Ai),e=t!==String(Ai);if(!e&&66===gi)return!0;if(gi>=51&&/native code/.test(t))return!1;var r=new Ai((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[mi]=n,!(Ci=r.then((function(){}))instanceof n)||!e&&vi&&!Ii})),Mi=Di||!ii((function(t){Ai.all(t).catch((function(){}))})),Ui=function(t){var e;return!(!ti(t)||"function"!=typeof(e=t.then))&&e},Ni=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;ci((function(){for(var n=t.value,o=1==t.state,i=0;r.length>i;){var a,u,c,s=r[i++],l=o?s.ok:s.fail,f=s.resolve,p=s.reject,h=s.domain;try{l?(o||(2===t.rejection&&$i(t),t.rejection=1),!0===l?a=n:(h&&h.enter(),a=l(n),h&&(h.exit(),c=!0)),a===s.promise?p(Oi("Promise-chain cycle")):(u=Ui(a))?u.call(a,f,p):f(a)):p(n)}catch(t){h&&!c&&h.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&qi(t)}))}},Fi=function(t,e,r){var n,o;Ri?((n=ji.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),Vo.dispatchEvent(n)):n={promise:e,reason:r},!Ii&&(o=Vo["on"+t])?o(n):t===Pi&&li("Unhandled promise rejection",r)},qi=function(t){ui.call(Vo,(function(){var e,r=t.facade,n=t.value;if(Bi(t)&&(e=pi((function(){yi?Ti.emit("unhandledRejection",n,r):Fi(Pi,r,n)})),t.rejection=yi||Bi(t)?2:1,e.error))throw e.value}))},Bi=function(t){return 1!==t.rejection&&!t.parent},$i=function(t){ui.call(Vo,(function(){var e=t.facade;yi?Ti.emit("rejectionHandled",e):Fi("rejectionhandled",e,t.value)}))},Gi=function(t,e,r){return function(n){t(e,n,r)}},Wi=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Ni(t,!0))},zi=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Oi("Promise can't be resolved itself");var n=Ui(e);n?ci((function(){var r={done:!1};try{n.call(e,Gi(zi,r,t),Gi(Wi,r,t))}catch(e){Wi(r,e,t)}})):(t.value=e,t.state=1,Ni(t,!1))}catch(e){Wi({done:!1},e,t)}}};if(Di&&(Ei=(Ai=function(t){ri(this,Ai,bi),ei(t),Mo.call(this);var e=wi(this);try{t(Gi(zi,e),Gi(Wi,e))}catch(t){Wi(e,t)}}).prototype,(Mo=function(t){xi(this,{type:bi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Ko(Ei,{then:function(t,e){var r=Si(this),n=Li(ai(this,Ai));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=yi?Ti.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&Ni(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),Uo=function(){var t=new Mo,e=wi(t);this.promise=t,this.resolve=Gi(zi,e),this.reject=Gi(Wi,e)},fi.f=Li=function(t){return t===Ai||t===No?new Uo(t):_i(t)},"function"==typeof Yo&&ki!==Object.prototype)){Fo=ki.then,Ci||(Jo(ki,"then",(function(t,e){var r=this;return new Ai((function(t,e){Fo.call(r,t,e)})).then(t,e)}),{unsafe:!0}),Jo(ki,"catch",Ei.catch,{unsafe:!0}));try{delete ki.constructor}catch(t){}Xo&&Xo(ki,Ei)}zo({global:!0,wrap:!0,forced:Di},{Promise:Ai}),Zo(Ai,bi,!1),Qo(bi),No=Ho(bi),zo({target:bi,stat:!0,forced:Di},{reject:function(t){var e=Li(this);return e.reject.call(void 0,t),e.promise}}),zo({target:bi,stat:!0,forced:Di},{resolve:function(t){return si(this,t)}}),zo({target:bi,stat:!0,forced:Mi},{all:function(t){var e=this,r=Li(e),n=r.resolve,o=r.reject,i=pi((function(){var r=ei(e.resolve),i=[],a=0,u=1;oi(t,(function(t){var c=a++,s=!1;i.push(void 0),u++,r.call(e,t).then((function(t){s||(s=!0,i[c]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Li(e),n=r.reject,o=pi((function(){var o=ei(e.resolve);oi(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var Vi,Hi=Ze,Yi=Qe,Ji=Object.keys||function(t){return Hi(t,Yi)},Ki=Ut,Xi=Ft,Zi=Ji,Qi=c?Object.defineProperties:function(t,e){Xi(t);for(var r,n=Zi(e),o=n.length,i=0;o>i;)Ki.f(t,r=n[i++],e[r]);return t},ta=Ft,ea=Qi,ra=Qe,na=ce,oa=Nn,ia=Ot,aa=ue("IE_PROTO"),ua=function(){},ca=function(t){return"<script>"+t+"</"+"script>"},sa=function(t){t.write(ca("")),t.close();var e=t.parentWindow.Object;return t=null,e},la=function(){try{Vi=new ActiveXObject("htmlfile")}catch(t){}var t,e;la="undefined"!=typeof document?document.domain&&Vi?sa(Vi):((e=ia("iframe")).style.display="none",oa.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ca("document.F=Object")),t.close(),t.F):sa(Vi);for(var r=ra.length;r--;)delete la.prototype[ra[r]];return la()};na[aa]=!0;var fa=Object.create||function(t,e){var r;return null!==t?(ua.prototype=ta(t),r=new ua,ua.prototype=null,r[aa]=t):r=la(),void 0===e?r:ea(r,e)},pa=fa,ha=Ut,da=dt("unscopables"),va=Array.prototype;null==va[da]&&ha.f(va,da,{configurable:!0,value:pa(null)});var ya,ga,ma,ba=function(t){va[da][t]=!0},wa=!u((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),xa=et,Sa=Z,ka=wa,Aa=ue("IE_PROTO"),Ea=Object.prototype,Oa=ka?Object.getPrototypeOf:function(t){return t=Sa(t),xa(t,Aa)?t[Aa]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Ea:null},ja=u,Ta=Oa,La=Ht,_a=dt("iterator"),Ra=!1;[].keys&&("next"in(ma=[].keys())?(ga=Ta(Ta(ma)))!==Object.prototype&&(ya=ga):Ra=!0),(null==ya||ja((function(){var t={};return ya[_a].call(t)!==t})))&&(ya={}),"function"!=typeof ya[_a]&&La(ya,_a,(function(){return this}));var Ia={IteratorPrototype:ya,BUGGY_SAFARI_ITERATORS:Ra},Pa=Ia.IteratorPrototype,Ca=fa,Da=v,Ma=Nr,Ua=Vr,Na=function(){return this},Fa=function(t,e,r){var n=e+" Iterator";return t.prototype=Ca(Pa,{next:Da(1,r)}),Ma(t,n,!1),Ua[n]=Na,t},qa=jr,Ba=Fa,$a=Oa,Ga=Cr,Wa=Nr,za=Ht,Va=Yt.exports,Ha=Vr,Ya=Ia.IteratorPrototype,Ja=Ia.BUGGY_SAFARI_ITERATORS,Ka=dt("iterator"),Xa="keys",Za="values",Qa="entries",tu=function(){return this},eu=function(t,e,r,n,o,i,a){Ba(r,e,n);var u,c,s,l=function(t){if(t===o&&v)return v;if(!Ja&&t in h)return h[t];switch(t){case Xa:case Za:case Qa:return function(){return new r(this,t)}}return function(){return new r(this)}},f=e+" Iterator",p=!1,h=t.prototype,d=h[Ka]||h["@@iterator"]||o&&h[o],v=!Ja&&d||l(o),y="Array"==e&&h.entries||d;if(y&&(u=$a(y.call(new t)))!==Object.prototype&&u.next&&($a(u)!==Ya&&(Ga?Ga(u,Ya):"function"!=typeof u[Ka]&&za(u,Ka,tu)),Wa(u,f,!0)),o==Za&&d&&d.name!==Za&&(p=!0,v=function(){return d.call(this)}),h[Ka]!==v&&za(h,Ka,v),Ha[e]=v,o)if(c={values:l(Za),keys:i?v:l(Xa),entries:l(Qa)},a)for(s in c)(Ja||p||!(s in h))&&Va(h,s,c[s]);else qa({target:e,proto:!0,forced:Ja||p},c);return c},ru=A,nu=ba,ou=Vr,iu=ke,au=eu,uu="Array Iterator",cu=iu.set,su=iu.getterFor(uu),lu=au(Array,"Array",(function(t,e){cu(this,{type:uu,target:ru(t),index:0,kind:e})}),(function(){var t=su(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");ou.Arguments=ou.Array,nu("keys"),nu("values"),nu("entries");var fu={exports:{}},pu={},hu=A,du=Ie.f,vu={}.toString,yu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];pu.f=function(t){return yu&&"[object Window]"==vu.call(t)?function(t){try{return du(t)}catch(t){return yu.slice()}}(t):du(hu(t))};var gu=!u((function(){return Object.isExtensible(Object.preventExtensions({}))})),mu=jr,bu=ce,wu=E,xu=et,Su=Ut.f,ku=Ie,Au=pu,Eu=gu,Ou=!1,ju=ot("meta"),Tu=0,Lu=Object.isExtensible||function(){return!0},_u=function(t){Su(t,ju,{value:{objectID:"O"+Tu++,weakData:{}}})},Ru=fu.exports={enable:function(){Ru.enable=function(){},Ou=!0;var t=ku.f,e=[].splice,r={};r[ju]=1,t(r).length&&(ku.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===ju){e.call(n,o,1);break}return n},mu({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Au.f}))},fastKey:function(t,e){if(!wu(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!xu(t,ju)){if(!Lu(t))return"F";if(!e)return"E";_u(t)}return t[ju].objectID},getWeakData:function(t,e){if(!xu(t,ju)){if(!Lu(t))return!0;if(!e)return!1;_u(t)}return t[ju].weakData},onFreeze:function(t){return Eu&&Ou&&Lu(t)&&!xu(t,ju)&&_u(t),t}};bu[ju]=!0;var Iu=E,Pu=Cr,Cu=function(t,e,r){var n,o;return Pu&&"function"==typeof(n=e.constructor)&&n!==r&&Iu(o=n.prototype)&&o!==r.prototype&&Pu(t,o),t},Du=jr,Mu=i,Uu=br,Nu=Yt.exports,Fu=fu.exports,qu=An,Bu=zr,$u=E,Gu=u,Wu=Pn,zu=Nr,Vu=Cu,Hu=Ut.f,Yu=fa,Ju=_r,Ku=Zr,Xu=zr,Zu=An,Qu=eu,tc=Gr,ec=c,rc=fu.exports.fastKey,nc=ke.set,oc=ke.getterFor;(function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",a=Mu[t],u=a&&a.prototype,c=a,s={},l=function(t){var e=u[t];Nu(u,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!$u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!$u(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!$u(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(Uu(t,"function"!=typeof a||!(o||u.forEach&&!Gu((function(){(new a).entries().next()})))))c=r.getConstructor(e,t,n,i),Fu.enable();else if(Uu(t,!0)){var f=new c,p=f[i](o?{}:-0,1)!=f,h=Gu((function(){f.has(1)})),d=Wu((function(t){new a(t)})),v=!o&&Gu((function(){for(var t=new a,e=5;e--;)t[i](e,e);return!t.has(-0)}));d||((c=e((function(e,r){Bu(e,c,t);var o=Vu(new a,e,c);return null!=r&&qu(r,o[i],{that:o,AS_ENTRIES:n}),o}))).prototype=u,u.constructor=c),(h||v)&&(l("delete"),l("has"),n&&l("get")),(v||p)&&l(i),o&&u.clear&&delete u.clear}s[t]=c,Du({global:!0,forced:c!=a},s),zu(c,t),o||r.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(t,e,r,n){var o=t((function(t,i){Xu(t,o,e),nc(t,{type:e,index:Yu(null),first:void 0,last:void 0,size:0}),ec||(t.size=0),null!=i&&Zu(i,t[n],{that:t,AS_ENTRIES:r})})),i=oc(e),a=function(t,e,r){var n,o,a=i(t),c=u(t,e);return c?c.value=r:(a.last=c={index:o=rc(e,!0),key:e,value:r,previous:n=a.last,next:void 0,removed:!1},a.first||(a.first=c),n&&(n.next=c),ec?a.size++:t.size++,"F"!==o&&(a.index[o]=c)),t},u=function(t,e){var r,n=i(t),o=rc(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return Ju(o.prototype,{clear:function(){for(var t=i(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,ec?t.size=0:this.size=0},delete:function(t){var e=this,r=i(e),n=u(e,t);if(n){var o=n.next,a=n.previous;delete r.index[n.index],n.removed=!0,a&&(a.next=o),o&&(o.previous=a),r.first==n&&(r.first=o),r.last==n&&(r.last=a),ec?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=i(this),n=Ku(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),Ju(o.prototype,r?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),ec&&Hu(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=oc(e),i=oc(n);Qu(t,e,(function(t,e){nc(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),tc(e)}});var ic={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},ac=Ot("span").classList,uc=ac&&ac.constructor&&ac.constructor.prototype,cc=uc===Object.prototype?void 0:uc,sc=i,lc=ic,fc=cc,pc=lu,hc=Ht,dc=dt,vc=dc("iterator"),yc=dc("toStringTag"),gc=pc.values,mc=function(t,e){if(t){if(t[vc]!==gc)try{hc(t,vc,gc)}catch(e){t[vc]=gc}if(t[yc]||hc(t,yc,e),lc[e])for(var r in pc)if(t[r]!==pc[r])try{hc(t,r,pc[r])}catch(e){t[r]=pc[r]}}};for(var bc in lc)mc(sc[bc]&&sc[bc].prototype,bc);mc(fc,"DOMTokenList");var wc={exports:{}},xc="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(xc){var Sc=new Uint8Array(16);wc.exports=function(){return xc(Sc),Sc}}else{var kc=new Array(16);wc.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),kc[e]=t>>>((3&e)<<3)&255;return kc}}for(var Ac=[],Ec=0;Ec<256;++Ec)Ac[Ec]=(Ec+256).toString(16).substr(1);var Oc,jc,Tc=function(t,e){var r=e||0,n=Ac;return[n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]]].join("")},Lc=wc.exports,_c=Tc,Rc=0,Ic=0;var Pc=function(t,e,r){var n=e&&r||0,o=e||[],i=(t=t||{}).node||Oc,a=void 0!==t.clockseq?t.clockseq:jc;if(null==i||null==a){var u=Lc();null==i&&(i=Oc=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==a&&(a=jc=16383&(u[6]<<8|u[7]))}var c=void 0!==t.msecs?t.msecs:(new Date).getTime(),s=void 0!==t.nsecs?t.nsecs:Ic+1,l=c-Rc+(s-Ic)/1e4;if(l<0&&void 0===t.clockseq&&(a=a+1&16383),(l<0||c>Rc)&&void 0===t.nsecs&&(s=0),s>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Rc=c,Ic=s,jc=a;var f=(1e4*(268435455&(c+=122192928e5))+s)%4294967296;o[n++]=f>>>24&255,o[n++]=f>>>16&255,o[n++]=f>>>8&255,o[n++]=255&f;var p=c/4294967296*1e4&268435455;o[n++]=p>>>8&255,o[n++]=255&p,o[n++]=p>>>24&15|16,o[n++]=p>>>16&255,o[n++]=a>>>8|128,o[n++]=255&a;for(var h=0;h<6;++h)o[n+h]=i[h];return e||_c(o)},Cc=wc.exports,Dc=Tc;var Mc=Pc,Uc=function(t,e,r){var n=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||Cc)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var i=0;i<16;++i)e[n+i]=o[i];return e||Dc(o)},Nc=Uc;Nc.v1=Mc,Nc.v4=Uc;var Fc=Nc;class qc extends Promise{constructor(t){var e,r=Fc.v4();super(((n,o)=>(e=o,t((t=>{qc.cancellationMap.delete(r),n(t)}),(t=>{qc.cancellationMap.delete(r),o(t)}),(t=>{qc.cancellationMap.set(r,t)}))))),this.id=r,this.rejectPromise=e}cancel(){var t=qc.cancellationMap.get(this.id);return null==t||t(),this.rejectPromise&&(this.catch((()=>{})),this.rejectPromise(new Error("Promise was cancelled"))),this}}function Bc(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 $c(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Bc(i,n,o,a,u,"next",t)}function u(t){Bc(i,n,o,a,u,"throw",t)}a(void 0)}))}}r(qc,"cancellationMap",new Map);var Gc=g,Wc=Array.isArray||function(t){return"Array"==Gc(t)},zc=E,Vc=Wc,Hc=dt("species"),Yc=function(t){var e;return Vc(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!Vc(e.prototype)?zc(e)&&null===(e=e[Hc])&&(e=void 0):e=void 0),void 0===e?Array:e},Jc=function(t,e){return new(Yc(t))(0===e?0:e)},Kc=Zr,Xc=w,Zc=Z,Qc=Ne,ts=Jc,es=[].push,rs=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(c,s,l,f){for(var p,h,d=Zc(c),v=Xc(d),y=Kc(s,l,3),g=Qc(v.length),m=0,b=f||ts,w=e?b(c,g):r||a?b(c,0):void 0;g>m;m++)if((u||m in v)&&(h=y(p=v[m],m,d),t))if(e)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:es.call(w,p)}else switch(t){case 4:return!1;case 7:es.call(w,p)}return i?-1:n||o?o:w}},ns={forEach:rs(0),map:rs(1),filter:rs(2),some:rs(3),every:rs(4),find:rs(5),findIndex:rs(6),filterReject:rs(7)},os=u,is=function(t,e){var r=[][t];return!!r&&os((function(){r.call(null,e||function(){throw 1},1)}))},as=ns.forEach,us=i,cs=ic,ss=cc,ls=is("forEach")?[].forEach:function(t){return as(this,t,arguments.length>1?arguments[1]:void 0)},fs=Ht,ps=function(t){if(t&&t.forEach!==ls)try{fs(t,"forEach",ls)}catch(e){t.forEach=ls}};for(var hs in cs)ps(us[hs]&&us[hs].prototype);ps(ss);var ds,vs=Object.prototype,ys=vs.hasOwnProperty,gs="function"==typeof Symbol?Symbol:{},ms=gs.iterator||"@@iterator",bs=gs.asyncIterator||"@@asyncIterator",ws=gs.toStringTag||"@@toStringTag";function xs(t,e,r,n){var o=e&&e.prototype instanceof Ts?e:Ts,i=Object.create(o.prototype),a=new Bs(n||[]);return i._invoke=function(t,e,r){var n=ks;return function(o,i){if(n===Es)throw new Error("Generator is already running");if(n===Os){if("throw"===o)throw i;return Gs()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=Ns(a,r);if(u){if(u===js)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===ks)throw n=Os,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=Es;var c=Ss(t,e,r);if("normal"===c.type){if(n=r.done?Os:As,c.arg===js)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=Os,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function Ss(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}var ks="suspendedStart",As="suspendedYield",Es="executing",Os="completed",js={};function Ts(){}function Ls(){}function _s(){}var Rs={};Rs[ms]=function(){return this};var Is=Object.getPrototypeOf,Ps=Is&&Is(Is($s([])));Ps&&Ps!==vs&&ys.call(Ps,ms)&&(Rs=Ps);var Cs=_s.prototype=Ts.prototype=Object.create(Rs);function Ds(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function Ms(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===Ls||"GeneratorFunction"===(e.displayName||e.name))}function Us(t,e){function r(n,o,i,a){var u=Ss(t[n],t,o);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&ys.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,a)}),(function(t){r("throw",t,i,a)})):e.resolve(s).then((function(t){c.value=t,i(c)}),(function(t){return r("throw",t,i,a)}))}a(u.arg)}var n;this._invoke=function(t,o){function i(){return new e((function(e,n){r(t,o,e,n)}))}return n=n?n.then(i,i):i()}}function Ns(t,e){var r=t.iterator[e.method];if(r===ds){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=ds,Ns(t,e),"throw"===e.method))return js;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return js}var n=Ss(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,js;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=ds),e.delegate=null,js):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,js)}function Fs(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 qs(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Bs(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Fs,this),this.reset(!0)}function $s(t){if(t){var e=t[ms];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(ys.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=ds,e.done=!0,e};return n.next=n}}return{next:Gs}}function Gs(){return{value:ds,done:!0}}Ls.prototype=Cs.constructor=_s,_s.constructor=Ls,_s[ws]=Ls.displayName="GeneratorFunction",Ds(Us.prototype),Us.prototype[bs]=function(){return this},Ds(Cs),Cs[ws]="Generator",Cs[ms]=function(){return this},Cs.toString=function(){return"[object Generator]"},Bs.prototype={constructor:Bs,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=ds,this.done=!1,this.delegate=null,this.method="next",this.arg=ds,this.tryEntries.forEach(qs),!t)for(var e in this)"t"===e.charAt(0)&&ys.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=ds)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=ds),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=ys.call(o,"catchLoc"),u=ys.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&ys.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,js):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),js},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),qs(r),js}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;qs(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:$s(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=ds),js}};var Ws={wrap:xs,isGeneratorFunction:Ms,AsyncIterator:Us,mark:function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_s):(t.__proto__=_s,ws in t||(t[ws]="GeneratorFunction")),t.prototype=Object.create(Cs),t},awrap:function(t){return{__await:t}},async:function(t,e,r,n,o){void 0===o&&(o=Promise);var i=new Us(xs(t,e,r,n),o);return Ms(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},keys:function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},values:$s};function zs(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function Vs(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var Hs=Ft,Ys=vn,Js=St,Ks=Ut,Xs=v,Zs=function(t,e,r){var n=Js(e);n in t?Ks.f(t,n,Xs(0,r)):t[n]=r},Qs=Zr,tl=Z,el=function(t,e,r,n){try{return n?e(Hs(r)[0],r[1]):e(r)}catch(e){Ys(t,"throw",e)}},rl=Kr,nl=Ne,ol=Zs,il=hn,al=ln,ul=function(t){var e,r,n,o,i,a,u=tl(t),c="function"==typeof this?this:Array,s=arguments.length,l=s>1?arguments[1]:void 0,f=void 0!==l,p=al(u),h=0;if(f&&(l=Qs(l,s>2?arguments[2]:void 0,2)),null==p||c==Array&&rl(p))for(r=new c(e=nl(u.length));e>h;h++)a=f?l(u[h],h):u[h],ol(r,h,a);else for(i=(o=il(u,p)).next,r=new c;!(n=i.call(o)).done;h++)a=f?el(o,l,[n.value,h],!0):n.value,ol(r,h,a);return r.length=h,r},cl=ul;jr({target:"Array",stat:!0,forced:!Pn((function(t){Array.from(t)}))},{from:cl});var sl,ll,fl,pl={exports:{}};function hl(t,e){return["".concat((new Date).toISOString()," MCS Client ").concat(t,":")].concat(Array.from(e))}ll=n,fl=function(){var t=function(){},e="undefined",r=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function o(t,e){var r=t[e];if("function"==typeof r.bind)return r.bind(t);try{return Function.prototype.bind.call(r,t)}catch(e){return function(){return Function.prototype.apply.apply(r,[t,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(n){return"debug"===n&&(n="log"),typeof console!==e&&("trace"===n&&r?i:void 0!==console[n]?o(console,n):void 0!==console.log?o(console,"log"):t)}function u(e,r){for(var o=0;o<n.length;o++){var i=n[o];this[i]=o<e?t:this.methodFactory(i,e,r)}this.log=this.debug}function c(t,r,n){return function(){typeof console!==e&&(u.call(this,r,n),this[t].apply(this,arguments))}}function s(t,e,r){return a(t)||c.apply(this,arguments)}function l(t,r,o){var i,a=this;r=null==r?"WARN":r;var c="loglevel";function l(){var t;if(typeof window!==e&&c){try{t=window.localStorage[c]}catch(t){}if(typeof t===e)try{var r=window.document.cookie,n=r.indexOf(encodeURIComponent(c)+"=");-1!==n&&(t=/^([^;]+)/.exec(r.slice(n))[1])}catch(t){}return void 0===a.levels[t]&&(t=void 0),t}}"string"==typeof t?c+=":"+t:"symbol"==typeof t&&(c=void 0),a.name=t,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=o||s,a.getLevel=function(){return i},a.setLevel=function(r,o){if("string"==typeof r&&void 0!==a.levels[r.toUpperCase()]&&(r=a.levels[r.toUpperCase()]),!("number"==typeof r&&r>=0&&r<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(i=r,!1!==o&&function(t){var r=(n[t]||"silent").toUpperCase();if(typeof window!==e&&c){try{return void(window.localStorage[c]=r)}catch(t){}try{window.document.cookie=encodeURIComponent(c)+"="+r+";"}catch(t){}}}(r),u.call(a,r,t),typeof console===e&&r<a.levels.SILENT)return"No console available for logging"},a.setDefaultLevel=function(t){r=t,l()||a.setLevel(t,!1)},a.resetLevel=function(){a.setLevel(r,!1),function(){if(typeof window!==e&&c){try{return void window.localStorage.removeItem(c)}catch(t){}try{window.document.cookie=encodeURIComponent(c)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(t){}}}()},a.enableAll=function(t){a.setLevel(a.levels.TRACE,t)},a.disableAll=function(t){a.setLevel(a.levels.SILENT,t)};var f=l();null==f&&(f=r),a.setLevel(f,!1)}var f=new l,p={};f.getLogger=function(t){if("symbol"!=typeof t&&"string"!=typeof t||""===t)throw new TypeError("You must supply a name when creating a logger.");var e=p[t];return e||(e=p[t]=new l(t,f.getLevel(),f.methodFactory)),e};var h=typeof window!==e?window.log:void 0;return f.noConflict=function(){return typeof window!==e&&window.log===f&&(window.log=h),f},f.getLoggers=function(){return p},f.default=f,f},(sl=pl).exports?sl.exports=fl():ll.log=fl();class dl{constructor(t){r(this,"prefix",""),this.prefix=null!=t&&t.length>0?t+" ":""}static scope(t){return new dl(t)}setLevel(t){pl.exports.setLevel(t)}static setLevel(t){pl.exports.setLevel(t)}trace(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];pl.exports.trace.apply(null,hl(this.prefix+"T",e))}debug(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];pl.exports.debug.apply(null,hl(this.prefix+"D",e))}info(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];pl.exports.info.apply(null,hl(this.prefix+"I",e))}warn(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];pl.exports.warn.apply(null,hl(this.prefix+"W",e))}error(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];pl.exports.error.apply(null,hl(this.prefix+"E",e))}static trace(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];pl.exports.trace.apply(null,hl("T",e))}static debug(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];pl.exports.debug.apply(null,hl("D",e))}static info(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];pl.exports.info.apply(null,hl("I",e))}static warn(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];pl.exports.warn.apply(null,hl("W",e))}static error(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];pl.exports.error.apply(null,hl("E",e))}}var vl,yl=$,gl=function(t){if(yl(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},ml=E,bl=g,wl=dt("match"),xl=function(t){var e;return ml(t)&&(void 0!==(e=t[wl])?!!e:"RegExp"==bl(t))},Sl=xl,kl=dt("match"),Al=jr,El=a.f,Ol=Ne,jl=gl,Tl=function(t){if(Sl(t))throw TypeError("The method doesn't accept regular expressions");return t},Ll=x,_l=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[kl]=!1,"/./"[t](e)}catch(t){}}return!1},Rl="".startsWith,Il=Math.min,Pl=_l("startsWith");Al({target:"String",proto:!0,forced:!!(Pl||(vl=El(String.prototype,"startsWith"),!vl||vl.writable))&&!Pl},{startsWith:function(t){var e=jl(Ll(this));Tl(t);var r=Ol(Il(arguments.length>1?arguments[1]:void 0,e.length)),n=jl(t);return Rl?Rl.call(e,n,r):e.slice(r,r+n.length)===n}});var Cl=(t,e)=>{return"".concat((r=t,r.startsWith("http")?"":(t=>"https://mcs.".concat(null!=t?t:"us1",".twilio.com"))(e))).concat(t);var r};class Dl{constructor(t,e,r,n){var o,i,a,u,c,s,l=null!==(o=null!==(i=n.MCS)&&void 0!==i?i:n)&&void 0!==o?o:{};this.region=null!==(a=null!==(u=l.region)&&void 0!==u?u:n.region)&&void 0!==a?a:"us1",this.mediaUrl=Cl(e,this.region),this.mediaSetUrl=r?Cl(r):"".concat(this.mediaUrl,"Set"),this.token=t,this.retryWhenThrottledOverride=null===(c=l.retryWhenThrottledOverride)||void 0===c||c,this.backoffConfigOverride=null!==(s=l.backoffConfigOverride)&&void 0!==s?s:Dl.backoffConfigDefault}static get backoffConfigDefault(){return{min:1e3,max:4e3,maxAttemptsCount:3}}static get retryWhenThrottledDefault(){return true}updateToken(t){this.token=t}}class Ml{constructor(t,e,r){this.config=t,this.network=e,this._update(r)}get sid(){return this.state.sid}get serviceSid(){return this.state.serviceSid}get dateCreated(){return this.state.dateCreated}get dateUpdated(){return this.state.dateUpdated}get contentType(){return this.state.contentType}get size(){return this.state.size}get fileName(){return this.state.filename}get filename(){return this.state.filename}get category(){return this.state.category}getContentUrl(){var t=this;return new qc(function(){var e=$c(Ws.mark((function e(r,n,o){var i,a;return Ws.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.network.get("".concat(t.config.mediaUrl,"/").concat(t.sid)),o((()=>i.cancel())),e.prev=2,e.next=5,i;case 5:a=e.sent,t._update(a.body),r(t.state.contentDirectUrl),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),n(e.t0);case 13:case"end":return e.stop()}}),e,null,[[2,10]])})));return function(t,r,n){return e.apply(this,arguments)}}())}_update(t){var e,r,n,o;this.state={sid:t.sid,serviceSid:t.service_sid,channelSid:t.channel_sid,messageSid:t.message_sid,dateCreated:t.date_created?new Date(t.date_created):null,dateUploadUpdated:t.date_upload_updated?new Date(t.date_upload_updated):null,dateUpdated:t.date_updated?new Date(t.date_updated):null,size:t.size,contentType:t.content_type,author:t.author,url:t.url,contentUrl:t.links.content,contentDirectUrl:null!==(e=t.links.content_direct_temporary)&&void 0!==e?e:null,filename:null!==(r=t.filename)&&void 0!==r?r:null,category:null!==(n=t.category)&&void 0!==n?n:"media",isMultipartUpstream:null!==(o=t.is_multipart_upstream)&&void 0!==o&&o}}}var Ul=Wr,Nl=Z,Fl=w,ql=Ne,Bl=function(t){return function(e,r,n,o){Ul(r);var i=Nl(e),a=Fl(i),u=ql(i.length),c=t?u-1:0,s=t?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=s;break}if(c+=s,t?c<0:u<=c)throw TypeError("Reduce of empty array with no initial value")}for(;t?c>=0:u>c;c+=s)c in a&&(o=r(o,a[c],c,i));return o}},$l={left:Bl(!1),right:Bl(!0)}.left,Gl=M,Wl=qn;jr({target:"Array",proto:!0,forced:!is("reduce")||!Wl&&Gl>79&&Gl<83},{reduce:function(t){return $l(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var zl=Ft,Vl={},Hl=u,Yl=i.RegExp;Vl.UNSUPPORTED_Y=Hl((function(){var t=Yl("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Vl.BROKEN_CARET=Hl((function(){var t=Yl("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));var Jl,Kl,Xl=u,Zl=i.RegExp,Ql=Xl((function(){var t=Zl(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),tf=u,ef=i.RegExp,rf=tf((function(){var t=ef("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),nf=gl,of=function(){var t=zl(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},af=Vl,uf=W.exports,cf=fa,sf=ke.get,lf=Ql,ff=rf,pf=RegExp.prototype.exec,hf=uf("native-string-replace",String.prototype.replace),df=pf,vf=(Jl=/a/,Kl=/b*/g,pf.call(Jl,"a"),pf.call(Kl,"a"),0!==Jl.lastIndex||0!==Kl.lastIndex),yf=af.UNSUPPORTED_Y||af.BROKEN_CARET,gf=void 0!==/()??/.exec("")[1];(vf||gf||yf||lf||ff)&&(df=function(t){var e,r,n,o,i,a,u,c=this,s=sf(c),l=nf(t),f=s.raw;if(f)return f.lastIndex=c.lastIndex,e=df.call(f,l),c.lastIndex=f.lastIndex,e;var p=s.groups,h=yf&&c.sticky,d=of.call(c),v=c.source,y=0,g=l;if(h&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),g=l.slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==l.charAt(c.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),r=new RegExp("^(?:"+v+")",d)),gf&&(r=new RegExp("^"+v+"$(?!\\s)",d)),vf&&(n=c.lastIndex),o=pf.call(h?r:c,g),h?o?(o.input=o.input.slice(y),o[0]=o[0].slice(y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:vf&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),gf&&o&&o.length>1&&hf.call(o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=cf(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var mf=df;jr({target:"RegExp",proto:!0,forced:/./.exec!==mf},{exec:mf});var bf=Yt.exports,wf=mf,xf=u,Sf=dt,kf=Ht,Af=Sf("species"),Ef=RegExp.prototype,Of=function(t,e,r,n){var o=Sf(t),i=!xf((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!xf((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Af]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var u=/./[o],c=e(o,""[t],(function(t,e,r,n,o){var a=e.exec;return a===wf||a===Ef.exec?i&&!o?{done:!0,value:u.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}));bf(String.prototype,t,c[0]),bf(Ef,o,c[1])}n&&kf(Ef[o],"sham",!0)},jf=De,Tf=gl,Lf=x,_f=function(t){return function(e,r){var n,o,i=Tf(Lf(e)),a=jf(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},Rf={codeAt:_f(!1),charAt:_f(!0)},If=Rf.charAt,Pf=function(t,e,r){return e+(r?If(t,e).length:1)},Cf=g,Df=mf,Mf=function(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"!==Cf(t))throw TypeError("RegExp#exec called on incompatible receiver");return Df.call(t,e)},Uf=Of,Nf=xl,Ff=Ft,qf=x,Bf=Un,$f=Pf,Gf=Ne,Wf=gl,zf=Mf,Vf=mf,Hf=u,Yf=Vl.UNSUPPORTED_Y,Jf=[].push,Kf=Math.min,Xf=4294967295;Uf("split",(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=Wf(qf(this)),o=void 0===r?Xf:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!Nf(t))return e.call(n,t,o);for(var i,a,u,c=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,f=new RegExp(t.source,s+"g");(i=Vf.call(f,n))&&!((a=f.lastIndex)>l&&(c.push(n.slice(l,i.index)),i.length>1&&i.index<n.length&&Jf.apply(c,i.slice(1)),u=i[0].length,l=a,c.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return l===n.length?!u&&f.test("")||c.push(""):c.push(n.slice(l)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var o=qf(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,r):n.call(Wf(o),e,r)},function(t,o){var i=Ff(this),a=Wf(t),u=r(n,i,a,o,n!==e);if(u.done)return u.value;var c=Bf(i,RegExp),s=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Yf?"g":"y"),f=new c(Yf?"^(?:"+i.source+")":i,l),p=void 0===o?Xf:o>>>0;if(0===p)return[];if(0===a.length)return null===zf(f,a)?[a]:[];for(var h=0,d=0,v=[];d<a.length;){f.lastIndex=Yf?0:d;var y,g=zf(f,Yf?a.slice(d):a);if(null===g||(y=Kf(Gf(f.lastIndex+(Yf?d:0)),a.length))===h)d=$f(a,d,s);else{if(v.push(a.slice(h,d)),v.length===p)return v;for(var m=1;m<=g.length-1;m++)if(v.push(g[m]),v.length===p)return v;d=h=y}}return v.push(a.slice(h)),v}]}),!!Hf((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]})),Yf);var Zf=Z,Qf=Math.floor,tp="".replace,ep=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,rp=/\$([$&'`]|\d{1,2})/g,np=Of,op=u,ip=Ft,ap=De,up=Ne,cp=gl,sp=x,lp=Pf,fp=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,c=rp;return void 0!==o&&(o=Zf(o),c=ep),tp.call(i,c,(function(i,c){var s;switch(c.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(a);case"<":s=o[c.slice(1,-1)];break;default:var l=+c;if(0===l)return i;if(l>u){var f=Qf(l/10);return 0===f?i:f<=u?void 0===n[f-1]?c.charAt(1):n[f-1]+c.charAt(1):i}s=n[l-1]}return void 0===s?"":s}))},pp=Mf,hp=dt("replace"),dp=Math.max,vp=Math.min,yp="$0"==="a".replace(/./,"$0"),gp=!!/./[hp]&&""===/./[hp]("a","$0");np("replace",(function(t,e,r){var n=gp?"$":"$0";return[function(t,r){var n=sp(this),o=null==t?void 0:t[hp];return void 0!==o?o.call(t,n,r):e.call(cp(n),t,r)},function(t,o){var i=ip(this),a=cp(t);if("string"==typeof o&&-1===o.indexOf(n)&&-1===o.indexOf("$<")){var u=r(e,i,a,o);if(u.done)return u.value}var c="function"==typeof o;c||(o=cp(o));var s=i.global;if(s){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var p=pp(i,a);if(null===p)break;if(f.push(p),!s)break;""===cp(p[0])&&(i.lastIndex=lp(a,up(i.lastIndex),l))}for(var h,d="",v=0,y=0;y<f.length;y++){p=f[y];for(var g=cp(p[0]),m=dp(vp(ap(p.index),a.length),0),b=[],w=1;w<p.length;w++)b.push(void 0===(h=p[w])?h:String(h));var x=p.groups;if(c){var S=[g].concat(b,m,a);void 0!==x&&S.push(x);var k=cp(o.apply(void 0,S))}else k=fp(g,a,m,b,x,o);m>=v&&(d+=a.slice(v,m)+k,v=m+g.length)}return d+a.slice(v)}]}),!!op((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!yp||gp);var mp=jr,bp=u,wp=T("JSON","stringify"),xp=/[\uD800-\uDFFF]/g,Sp=/^[\uD800-\uDBFF]$/,kp=/^[\uDC00-\uDFFF]$/,Ap=function(t,e,r){var n=r.charAt(e-1),o=r.charAt(e+1);return Sp.test(t)&&!kp.test(o)||kp.test(t)&&!Sp.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},Ep=bp((function(){return'"\\udf06\\ud834"'!==wp("\udf06\ud834")||'"\\udead"'!==wp("\udead")}));wp&&mp({target:"JSON",stat:!0,forced:Ep},{stringify:function(t,e,r){var n=wp.apply(null,arguments);return"string"==typeof n?n.replace(xp,Ap):n}});class Op extends Error{constructor(t,e,r,n,o){super(t),this.code=e,this.body=r,this.status=n,this.headers=o}}var jp=e.XMLHttpRequest||{};class Tp{static request(t,e,r,n){return new qc(((o,i,a)=>{var u=new jp,c=!1;for(var s in a((()=>{u.abort(),c=!0})),u.open(t,e,!0),u.onreadystatechange=function(){if(4===u.readyState&&!c){var t,e=(t=u.getAllResponseHeaders())?t.split("\r\n").map((t=>t.split(": "))).filter((t=>2===t.length&&t[1].length>0)).reduce(((t,e)=>(t[e[0]]=e[1],t)),{}):{},r=function(t){var e=t.getResponseHeader("Content-Type");if(!e||0!==e.indexOf("application/json")||0===t.responseText.length)return t.responseText;try{return JSON.parse(t.responseText)}catch(e){return t.responseText}}(u);if(200<=u.status&&u.status<300)o({status:u.status,headers:e,body:r});else{var n,a,s=null!==(n=u.statusText)&&void 0!==n?n:"NONE";if("string"==typeof r)if(r&&1===r.split("\n",2).length)a=r;else{var l,f=null===(l=r.replace(/<.*?>/g,"").split(/\r\n/g).filter((t=>t.length))[0])||void 0===l?void 0:l.split(" ");a=(null==f?void 0:f.length)>2?null==f?void 0:f.slice(1).join(" "):""}else a=JSON.stringify(r);var p="".concat(u.status,": [").concat(s,"] ").concat(a);i(new Op(p,u.status,r,s,e))}}},r)u.setRequestHeader(s,r[s]),"Content-Type"===s&&"application/json"===r[s]&&(n=JSON.stringify(n));u.send(n)}))}get(t,e){return Tp.request("GET",t,e)}post(t,e,r){return Tp.request("POST",t,e,r)}}var Lp=c,_p=u,Rp=Ji,Ip=rr,Pp=s,Cp=Z,Dp=w,Mp=Object.assign,Up=Object.defineProperty,Np=!Mp||_p((function(){if(Lp&&1!==Mp({b:1},Mp(Up({},"a",{enumerable:!0,get:function(){Up(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=Mp({},t)[r]||Rp(Mp({},e)).join("")!=n}))?function(t,e){for(var r=Cp(t),n=arguments.length,o=1,i=Ip.f,a=Pp.f;n>o;)for(var u,c=Dp(arguments[o++]),s=i?Rp(c).concat(i(c)):Rp(c),l=s.length,f=0;l>f;)u=s[f++],Lp&&!a.call(c,u)||(r[u]=c[u]);return r}:Mp,Fp=Np;jr({target:"Object",stat:!0,forced:Object.assign!==Fp},{assign:Fp});var qp=Rf.charAt,Bp=gl,$p=ke,Gp=eu,Wp="String Iterator",zp=$p.set,Vp=$p.getterFor(Wp);Gp(String,"String",(function(t){zp(this,{type:Wp,string:Bp(t),index:0})}),(function(){var t,e=Vp(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=qp(r,n),e.index+=t.length,{value:t,done:!1})}));var Hp=u,Yp=dt("iterator"),Jp=!Hp((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[Yp]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),Kp=2147483647,Xp=/[^\0-\u007E]/,Zp=/[.\u3002\uFF0E\uFF61]/g,Qp="Overflow: input needs wider integers to process",th=Math.floor,eh=String.fromCharCode,rh=function(t){return t+22+75*(t<26)},nh=function(t,e,r){var n=0;for(t=r?th(t/700):t>>1,t+=th(t/e);t>455;n+=36)t=th(t/35);return th(n+36*t/(t+38))},oh=function(t){var e,r,n=[],o=(t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=t.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=t.charCodeAt(r++);56320==(64512&i)?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),r--)}else e.push(o)}return e}(t)).length,i=128,a=0,u=72;for(e=0;e<t.length;e++)(r=t[e])<128&&n.push(eh(r));var c=n.length,s=c;for(c&&n.push("-");s<o;){var l=Kp;for(e=0;e<t.length;e++)(r=t[e])>=i&&r<l&&(l=r);var f=s+1;if(l-i>th((Kp-a)/f))throw RangeError(Qp);for(a+=(l-i)*f,i=l,e=0;e<t.length;e++){if((r=t[e])<i&&++a>Kp)throw RangeError(Qp);if(r==i){for(var p=a,h=36;;h+=36){var d=h<=u?1:h>=u+26?26:h-u;if(p<d)break;var v=p-d,y=36-d;n.push(eh(rh(d+v%y))),p=th(v/y)}n.push(eh(rh(p))),u=nh(a,f,s==c),a=0,++s}}++a,++i}return n.join("")},ih=jr,ah=T,uh=Jp,ch=Yt.exports,sh=_r,lh=Nr,fh=Fa,ph=ke,hh=zr,dh=et,vh=Zr,yh=an,gh=Ft,mh=E,bh=gl,wh=fa,xh=v,Sh=hn,kh=ln,Ah=dt,Eh=ah("fetch"),Oh=ah("Request"),jh=Oh&&Oh.prototype,Th=ah("Headers"),Lh=Ah("iterator"),_h="URLSearchParams",Rh="URLSearchParamsIterator",Ih=ph.set,Ph=ph.getterFor(_h),Ch=ph.getterFor(Rh),Dh=/\+/g,Mh=Array(4),Uh=function(t){return Mh[t-1]||(Mh[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},Nh=function(t){try{return decodeURIComponent(t)}catch(e){return t}},Fh=function(t){var e=t.replace(Dh," "),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(Uh(r--),Nh);return e}},qh=/[!'()~]|%20/g,Bh={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},$h=function(t){return Bh[t]},Gh=function(t){return encodeURIComponent(t).replace(qh,$h)},Wh=function(t,e){if(e)for(var r,n,o=e.split("&"),i=0;i<o.length;)(r=o[i++]).length&&(n=r.split("="),t.push({key:Fh(n.shift()),value:Fh(n.join("="))}))},zh=function(t){this.entries.length=0,Wh(this.entries,t)},Vh=function(t,e){if(t<e)throw TypeError("Not enough arguments")},Hh=fh((function(t,e){Ih(this,{type:Rh,iterator:Sh(Ph(t).entries),kind:e})}),"Iterator",(function(){var t=Ch(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r})),Yh=function(){hh(this,Yh,_h);var t,e,r,n,o,i,a,u,c,s=arguments.length>0?arguments[0]:void 0,l=this,f=[];if(Ih(l,{type:_h,entries:f,updateURL:function(){},updateSearchParams:zh}),void 0!==s)if(mh(s))if("function"==typeof(t=kh(s)))for(r=(e=Sh(s,t)).next;!(n=r.call(e)).done;){if((a=(i=(o=Sh(gh(n.value))).next).call(o)).done||(u=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");f.push({key:bh(a.value),value:bh(u.value)})}else for(c in s)dh(s,c)&&f.push({key:c,value:bh(s[c])});else Wh(f,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:bh(s))},Jh=Yh.prototype;if(sh(Jh,{append:function(t,e){Vh(arguments.length,2);var r=Ph(this);r.entries.push({key:bh(t),value:bh(e)}),r.updateURL()},delete:function(t){Vh(arguments.length,1);for(var e=Ph(this),r=e.entries,n=bh(t),o=0;o<r.length;)r[o].key===n?r.splice(o,1):o++;e.updateURL()},get:function(t){Vh(arguments.length,1);for(var e=Ph(this).entries,r=bh(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){Vh(arguments.length,1);for(var e=Ph(this).entries,r=bh(t),n=[],o=0;o<e.length;o++)e[o].key===r&&n.push(e[o].value);return n},has:function(t){Vh(arguments.length,1);for(var e=Ph(this).entries,r=bh(t),n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){Vh(arguments.length,1);for(var r,n=Ph(this),o=n.entries,i=!1,a=bh(t),u=bh(e),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?o.splice(c--,1):(i=!0,r.value=u));i||o.push({key:a,value:u}),n.updateURL()},sort:function(){var t,e,r,n=Ph(this),o=n.entries,i=o.slice();for(o.length=0,r=0;r<i.length;r++){for(t=i[r],e=0;e<r;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===r&&o.push(t)}n.updateURL()},forEach:function(t){for(var e,r=Ph(this).entries,n=vh(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new Hh(this,"keys")},values:function(){return new Hh(this,"values")},entries:function(){return new Hh(this,"entries")}},{enumerable:!0}),ch(Jh,Lh,Jh.entries),ch(Jh,"toString",(function(){for(var t,e=Ph(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(Gh(t.key)+"="+Gh(t.value));return r.join("&")}),{enumerable:!0}),lh(Yh,_h),ih({global:!0,forced:!uh},{URLSearchParams:Yh}),!uh&&"function"==typeof Th){var Kh=function(t){if(mh(t)){var e,r=t.body;if(yh(r)===_h)return(e=t.headers?new Th(t.headers):new Th).has("content-type")||e.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),wh(t,{body:xh(0,String(r)),headers:xh(0,e)})}return t};if("function"==typeof Eh&&ih({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Eh(t,arguments.length>1?Kh(arguments[1]):{})}}),"function"==typeof Oh){var Xh=function(t){return hh(this,Xh,"Request"),new Oh(t,arguments.length>1?Kh(arguments[1]):{})};jh.constructor=Xh,Xh.prototype=jh,ih({global:!0,forced:!0},{Request:Xh})}}var Zh,Qh={URLSearchParams:Yh,getState:Ph},td=jr,ed=c,rd=Jp,nd=i,od=Qi,id=Yt.exports,ad=zr,ud=et,cd=Np,sd=ul,ld=Rf.codeAt,fd=function(t){var e,r,n=[],o=t.toLowerCase().replace(Zp,".").split(".");for(e=0;e<o.length;e++)r=o[e],n.push(Xp.test(r)?"xn--"+oh(r):r);return n.join(".")},pd=gl,hd=Nr,dd=Qh,vd=ke,yd=nd.URL,gd=dd.URLSearchParams,md=dd.getState,bd=vd.set,wd=vd.getterFor("URL"),xd=Math.floor,Sd=Math.pow,kd="Invalid scheme",Ad="Invalid host",Ed="Invalid port",Od=/[A-Za-z]/,jd=/[\d+-.A-Za-z]/,Td=/\d/,Ld=/^0x/i,_d=/^[0-7]+$/,Rd=/^\d+$/,Id=/^[\dA-Fa-f]+$/,Pd=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Cd=/[\0\t\n\r #/:<>?@[\\\]^|]/,Dd=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Md=/[\t\n\r]/g,Ud=function(t,e){var r,n,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return Ad;if(!(r=Fd(e.slice(1,-1))))return Ad;t.host=r}else if(Hd(t)){if(e=fd(e),Pd.test(e))return Ad;if(null===(r=Nd(e)))return Ad;t.host=r}else{if(Cd.test(e))return Ad;for(r="",n=sd(e),o=0;o<n.length;o++)r+=zd(n[o],Bd);t.host=r}},Nd=function(t){var e,r,n,o,i,a,u,c=t.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(e=c.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(o=c[n]))return t;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=Ld.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?Rd:8==i?_d:Id).test(o))return t;a=parseInt(o,i)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=Sd(256,5-e))return null}else if(a>255)return null;for(u=r.pop(),n=0;n<r.length;n++)u+=r[n]*Sd(256,3-n);return u},Fd=function(t){var e,r,n,o,i,a,u,c=[0,0,0,0,0,0,0,0],s=0,l=null,f=0,p=function(){return t.charAt(f)};if(":"==p()){if(":"!=t.charAt(1))return;f+=2,l=++s}for(;p();){if(8==s)return;if(":"!=p()){for(e=r=0;r<4&&Id.test(p());)e=16*e+parseInt(p(),16),f++,r++;if("."==p()){if(0==r)return;if(f-=r,s>6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;f++}if(!Td.test(p()))return;for(;Td.test(p());){if(i=parseInt(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}c[s]=256*c[s]+o,2!=++n&&4!=n||s++}if(4!=n)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;c[s++]=e}else{if(null!==l)return;f++,l=++s}}if(null!==l)for(a=s-l,s=7;0!=s&&a>0;)u=c[s],c[s--]=c[l+a-1],c[l+--a]=u;else if(8!=s)return;return c},qd=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=xd(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}return t},Bd={},$d=cd({},Bd,{" ":1,'"':1,"<":1,">":1,"`":1}),Gd=cd({},$d,{"#":1,"?":1,"{":1,"}":1}),Wd=cd({},Gd,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),zd=function(t,e){var r=ld(t,0);return r>32&&r<127&&!ud(e,t)?t:encodeURIComponent(t)},Vd={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Hd=function(t){return ud(Vd,t.scheme)},Yd=function(t){return""!=t.username||""!=t.password},Jd=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},Kd=function(t,e){var r;return 2==t.length&&Od.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)},Xd=function(t){var e;return t.length>1&&Kd(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},Zd=function(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&Kd(e[0],!0)||e.pop()},Qd=function(t){return"."===t||"%2e"===t.toLowerCase()},tv={},ev={},rv={},nv={},ov={},iv={},av={},uv={},cv={},sv={},lv={},fv={},pv={},hv={},dv={},vv={},yv={},gv={},mv={},bv={},wv={},xv=function(t,e,r,n){var o,i,a,u,c,s=r||tv,l=0,f="",p=!1,h=!1,d=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(Dd,"")),e=e.replace(Md,""),o=sd(e);l<=o.length;){switch(i=o[l],s){case tv:if(!i||!Od.test(i)){if(r)return kd;s=rv;continue}f+=i.toLowerCase(),s=ev;break;case ev:if(i&&(jd.test(i)||"+"==i||"-"==i||"."==i))f+=i.toLowerCase();else{if(":"!=i){if(r)return kd;f="",s=rv,l=0;continue}if(r&&(Hd(t)!=ud(Vd,f)||"file"==f&&(Yd(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=f,r)return void(Hd(t)&&Vd[t.scheme]==t.port&&(t.port=null));f="","file"==t.scheme?s=hv:Hd(t)&&n&&n.scheme==t.scheme?s=nv:Hd(t)?s=uv:"/"==o[l+1]?(s=ov,l++):(t.cannotBeABaseURL=!0,t.path.push(""),s=mv)}break;case rv:if(!n||n.cannotBeABaseURL&&"#"!=i)return kd;if(n.cannotBeABaseURL&&"#"==i){t.scheme=n.scheme,t.path=n.path.slice(),t.query=n.query,t.fragment="",t.cannotBeABaseURL=!0,s=wv;break}s="file"==n.scheme?hv:iv;continue;case nv:if("/"!=i||"/"!=o[l+1]){s=iv;continue}s=cv,l++;break;case ov:if("/"==i){s=sv;break}s=gv;continue;case iv:if(t.scheme=n.scheme,i==Zh)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query;else if("/"==i||"\\"==i&&Hd(t))s=av;else if("?"==i)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query="",s=bv;else{if("#"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.path.pop(),s=gv;continue}t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query,t.fragment="",s=wv}break;case av:if(!Hd(t)||"/"!=i&&"\\"!=i){if("/"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,s=gv;continue}s=sv}else s=cv;break;case uv:if(s=cv,"/"!=i||"/"!=f.charAt(l+1))continue;l++;break;case cv:if("/"!=i&&"\\"!=i){s=sv;continue}break;case sv:if("@"==i){p&&(f="%40"+f),p=!0,a=sd(f);for(var v=0;v<a.length;v++){var y=a[v];if(":"!=y||d){var g=zd(y,Wd);d?t.password+=g:t.username+=g}else d=!0}f=""}else if(i==Zh||"/"==i||"?"==i||"#"==i||"\\"==i&&Hd(t)){if(p&&""==f)return"Invalid authority";l-=sd(f).length+1,f="",s=lv}else f+=i;break;case lv:case fv:if(r&&"file"==t.scheme){s=vv;continue}if(":"!=i||h){if(i==Zh||"/"==i||"?"==i||"#"==i||"\\"==i&&Hd(t)){if(Hd(t)&&""==f)return Ad;if(r&&""==f&&(Yd(t)||null!==t.port))return;if(u=Ud(t,f))return u;if(f="",s=yv,r)return;continue}"["==i?h=!0:"]"==i&&(h=!1),f+=i}else{if(""==f)return Ad;if(u=Ud(t,f))return u;if(f="",s=pv,r==fv)return}break;case pv:if(!Td.test(i)){if(i==Zh||"/"==i||"?"==i||"#"==i||"\\"==i&&Hd(t)||r){if(""!=f){var m=parseInt(f,10);if(m>65535)return Ed;t.port=Hd(t)&&m===Vd[t.scheme]?null:m,f=""}if(r)return;s=yv;continue}return Ed}f+=i;break;case hv:if(t.scheme="file","/"==i||"\\"==i)s=dv;else{if(!n||"file"!=n.scheme){s=gv;continue}if(i==Zh)t.host=n.host,t.path=n.path.slice(),t.query=n.query;else if("?"==i)t.host=n.host,t.path=n.path.slice(),t.query="",s=bv;else{if("#"!=i){Xd(o.slice(l).join(""))||(t.host=n.host,t.path=n.path.slice(),Zd(t)),s=gv;continue}t.host=n.host,t.path=n.path.slice(),t.query=n.query,t.fragment="",s=wv}}break;case dv:if("/"==i||"\\"==i){s=vv;break}n&&"file"==n.scheme&&!Xd(o.slice(l).join(""))&&(Kd(n.path[0],!0)?t.path.push(n.path[0]):t.host=n.host),s=gv;continue;case vv:if(i==Zh||"/"==i||"\\"==i||"?"==i||"#"==i){if(!r&&Kd(f))s=gv;else if(""==f){if(t.host="",r)return;s=yv}else{if(u=Ud(t,f))return u;if("localhost"==t.host&&(t.host=""),r)return;f="",s=yv}continue}f+=i;break;case yv:if(Hd(t)){if(s=gv,"/"!=i&&"\\"!=i)continue}else if(r||"?"!=i)if(r||"#"!=i){if(i!=Zh&&(s=gv,"/"!=i))continue}else t.fragment="",s=wv;else t.query="",s=bv;break;case gv:if(i==Zh||"/"==i||"\\"==i&&Hd(t)||!r&&("?"==i||"#"==i)){if(".."===(c=(c=f).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(Zd(t),"/"==i||"\\"==i&&Hd(t)||t.path.push("")):Qd(f)?"/"==i||"\\"==i&&Hd(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&Kd(f)&&(t.host&&(t.host=""),f=f.charAt(0)+":"),t.path.push(f)),f="","file"==t.scheme&&(i==Zh||"?"==i||"#"==i))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==i?(t.query="",s=bv):"#"==i&&(t.fragment="",s=wv)}else f+=zd(i,Gd);break;case mv:"?"==i?(t.query="",s=bv):"#"==i?(t.fragment="",s=wv):i!=Zh&&(t.path[0]+=zd(i,Bd));break;case bv:r||"#"!=i?i!=Zh&&("'"==i&&Hd(t)?t.query+="%27":t.query+="#"==i?"%23":zd(i,Bd)):(t.fragment="",s=wv);break;case wv:i!=Zh&&(t.fragment+=zd(i,$d))}l++}},Sv=function(t){var e,r,n=ad(this,Sv,"URL"),o=arguments.length>1?arguments[1]:void 0,i=pd(t),a=bd(n,{type:"URL"});if(void 0!==o)if(o instanceof Sv)e=wd(o);else if(r=xv(e={},pd(o)))throw TypeError(r);if(r=xv(a,i,null,e))throw TypeError(r);var u=a.searchParams=new gd,c=md(u);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(u)||null},ed||(n.href=Av.call(n),n.origin=Ev.call(n),n.protocol=Ov.call(n),n.username=jv.call(n),n.password=Tv.call(n),n.host=Lv.call(n),n.hostname=_v.call(n),n.port=Rv.call(n),n.pathname=Iv.call(n),n.search=Pv.call(n),n.searchParams=Cv.call(n),n.hash=Dv.call(n))},kv=Sv.prototype,Av=function(){var t=wd(this),e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,u=t.query,c=t.fragment,s=e+":";return null!==o?(s+="//",Yd(t)&&(s+=r+(n?":"+n:"")+"@"),s+=qd(o),null!==i&&(s+=":"+i)):"file"==e&&(s+="//"),s+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==u&&(s+="?"+u),null!==c&&(s+="#"+c),s},Ev=function(){var t=wd(this),e=t.scheme,r=t.port;if("blob"==e)try{return new Sv(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&Hd(t)?e+"://"+qd(t.host)+(null!==r?":"+r:""):"null"},Ov=function(){return wd(this).scheme+":"},jv=function(){return wd(this).username},Tv=function(){return wd(this).password},Lv=function(){var t=wd(this),e=t.host,r=t.port;return null===e?"":null===r?qd(e):qd(e)+":"+r},_v=function(){var t=wd(this).host;return null===t?"":qd(t)},Rv=function(){var t=wd(this).port;return null===t?"":String(t)},Iv=function(){var t=wd(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Pv=function(){var t=wd(this).query;return t?"?"+t:""},Cv=function(){return wd(this).searchParams},Dv=function(){var t=wd(this).fragment;return t?"#"+t:""},Mv=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(ed&&od(kv,{href:Mv(Av,(function(t){var e=wd(this),r=pd(t),n=xv(e,r);if(n)throw TypeError(n);md(e.searchParams).updateSearchParams(e.query)})),origin:Mv(Ev),protocol:Mv(Ov,(function(t){var e=wd(this);xv(e,pd(t)+":",tv)})),username:Mv(jv,(function(t){var e=wd(this),r=sd(pd(t));if(!Jd(e)){e.username="";for(var n=0;n<r.length;n++)e.username+=zd(r[n],Wd)}})),password:Mv(Tv,(function(t){var e=wd(this),r=sd(pd(t));if(!Jd(e)){e.password="";for(var n=0;n<r.length;n++)e.password+=zd(r[n],Wd)}})),host:Mv(Lv,(function(t){var e=wd(this);e.cannotBeABaseURL||xv(e,pd(t),lv)})),hostname:Mv(_v,(function(t){var e=wd(this);e.cannotBeABaseURL||xv(e,pd(t),fv)})),port:Mv(Rv,(function(t){var e=wd(this);Jd(e)||(""==(t=pd(t))?e.port=null:xv(e,t,pv))})),pathname:Mv(Iv,(function(t){var e=wd(this);e.cannotBeABaseURL||(e.path=[],xv(e,pd(t),yv))})),search:Mv(Pv,(function(t){var e=wd(this);""==(t=pd(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",xv(e,t,bv)),md(e.searchParams).updateSearchParams(e.query)})),searchParams:Mv(Cv),hash:Mv(Dv,(function(t){var e=wd(this);""!=(t=pd(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",xv(e,t,wv)):e.fragment=null}))}),id(kv,"toJSON",(function(){return Av.call(this)}),{enumerable:!0}),id(kv,"toString",(function(){return Av.call(this)}),{enumerable:!0}),yd){var Uv=yd.createObjectURL,Nv=yd.revokeObjectURL;Uv&&id(Sv,"createObjectURL",(function(t){return Uv.apply(yd,arguments)})),Nv&&id(Sv,"revokeObjectURL",(function(t){return Nv.apply(yd,arguments)}))}hd(Sv,"URL"),td({global:!0,forced:!rd,sham:!ed},{URL:Sv});var Fv={},qv=i,Bv=Nr;jr({global:!0},{Reflect:{}}),Bv(qv.Reflect,"Reflect",!0);var $v=Wr,Gv=E,Wv=[].slice,zv={},Vv=function(t,e,r){if(!(e in zv)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";zv[e]=Function("C,a","return new C("+n.join(",")+")")}return zv[e](t,r)},Hv=Function.bind||function(t){var e=$v(this),r=Wv.call(arguments,1),n=function(){var o=r.concat(Wv.call(arguments));return this instanceof n?Vv(e,o.length,o):e.apply(t,o)};return Gv(e.prototype)&&(n.prototype=e.prototype),n},Yv=jr,Jv=Wr,Kv=Ft,Xv=E,Zv=fa,Qv=Hv,ty=u,ey=T("Reflect","construct"),ry=ty((function(){function t(){}return!(ey((function(){}),[],t)instanceof t)})),ny=!ty((function(){ey((function(){}))})),oy=ry||ny;Yv({target:"Reflect",stat:!0,forced:oy,sham:oy},{construct:function(t,e){Jv(t),Kv(e);var r=arguments.length<3?t:Jv(arguments[2]);if(ny&&!ry)return ey(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(Qv.apply(t,n))}var o=r.prototype,i=Zv(Xv(o)?o:Object.prototype),a=Function.apply.call(t,i,e);return Xv(a)?a:i}});var iy={exports:{}};!function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}(iy);var ay={exports:{}};!function(t){function e(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)}}t.exports=function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(ay);var uy={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(uy);var cy={exports:{}},sy={exports:{}};!function(t){function e(r,n){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(sy),function(t){var e=sy.exports;t.exports=function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&e(t,r)},t.exports.__esModule=!0,t.exports.default=t.exports}(cy);var ly={exports:{}},fy={exports:{}};!function(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(fy),function(t){var e=fy.exports.default,r=uy.exports;t.exports=function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return r(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(ly);var py={exports:{}};!function(t){function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(py);var hy={exports:{}};!function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports}(hy);var dy=an,vy=tn?{}.toString:function(){return"[object "+dy(this)+"]"},yy=tn,gy=Yt.exports,my=vy;yy||gy(Object.prototype,"toString",my,{unsafe:!0})
|
|
33
19
|
/*
|
|
34
20
|
@license
|
|
35
21
|
Copyright (c) 2016, Twilio, Inc.
|
|
@@ -46,7 +32,7 @@ this.Twilio=this.Twilio||{},this.Twilio.McsClient=function(t){"use strict";var e
|
|
|
46
32
|
OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
|
47
33
|
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
48
34
|
|
|
49
|
-
*/,Object.defineProperty(kh,"__esModule",{value:!0});var ed=Gh.exports,rd=Wh.exports,nd=zh.exports,od=Vh.exports,id=Yh.exports,ad=Xh.exports;function ud(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var cd=ud(qh.exports),sd=ud(ed),fd=ud(rd),ld=ud(nd),pd=ud(od),hd=ud(id),dd=ud(ad);function vd(){}function yd(){yd.init.call(this)}function gd(t){return void 0===t._maxListeners?yd.defaultMaxListeners:t._maxListeners}function md(t,e,r){if(e)t.call(r);else for(var n=t.length,o=Od(t,n),i=0;i<n;++i)o[i].call(r)}function bd(t,e,r,n){if(e)t.call(r,n);else for(var o=t.length,i=Od(t,o),a=0;a<o;++a)i[a].call(r,n)}function wd(t,e,r,n,o){if(e)t.call(r,n,o);else for(var i=t.length,a=Od(t,i),u=0;u<i;++u)a[u].call(r,n,o)}function xd(t,e,r,n,o,i){if(e)t.call(r,n,o,i);else for(var a=t.length,u=Od(t,a),c=0;c<a;++c)u[c].call(r,n,o,i)}function Sd(t,e,r,n){if(e)t.apply(r,n);else for(var o=t.length,i=Od(t,o),a=0;a<o;++a)i[a].apply(r,n)}function kd(t,e,r,n){var o,i,a,u;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((i=t._events)?(i.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),a=i[e]):(i=t._events=new vd,t._eventsCount=0),a){if("function"==typeof a?a=i[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),!a.warned&&(o=gd(t))&&o>0&&a.length>o){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=a.length,u=c,"function"==typeof console.warn?console.warn(u):console.log(u)}}else a=i[e]=r,++t._eventsCount;return t}function Ad(t,e,r){var n=!1;function o(){t.removeListener(e,o),n||(n=!0,r.apply(t,arguments))}return o.listener=r,o}function Ed(t){var e=this._events;if(e){var r=e[t];if("function"==typeof r)return 1;if(r)return r.length}return 0}function Od(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}function jd(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=hd.default(t);if(e){var o=hd.default(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return pd.default(this,r)}}vd.prototype=Object.create(null),yd.EventEmitter=yd,yd.usingDomains=!1,yd.prototype.domain=void 0,yd.prototype._events=void 0,yd.prototype._maxListeners=void 0,yd.defaultMaxListeners=10,yd.init=function(){this.domain=null,yd.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new vd,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},yd.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},yd.prototype.getMaxListeners=function(){return gd(this)},yd.prototype.emit=function(t){var e,r,n,o,i,a,u,c="error"===t;if(a=this._events)c=c&&null==a.error;else if(!c)return!1;if(u=this.domain,c){if(e=arguments[1],!u){if(e instanceof Error)throw e;var s=new Error('Uncaught, unspecified "error" event. ('+e+")");throw s.context=e,s}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=u,e.domainThrown=!1,u.emit("error",e),!1}if(!(r=a[t]))return!1;var f="function"==typeof r;switch(n=arguments.length){case 1:md(r,f,this);break;case 2:bd(r,f,this,arguments[1]);break;case 3:wd(r,f,this,arguments[1],arguments[2]);break;case 4:xd(r,f,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(n-1),i=1;i<n;i++)o[i-1]=arguments[i];Sd(r,f,this,o)}return!0},yd.prototype.addListener=function(t,e){return kd(this,t,e,!1)},yd.prototype.on=yd.prototype.addListener,yd.prototype.prependListener=function(t,e){return kd(this,t,e,!0)},yd.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,Ad(this,t,e)),this},yd.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,Ad(this,t,e)),this},yd.prototype.removeListener=function(t,e){var r,n,o,i,a;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[t]))return this;if(r===e||r.listener&&r.listener===e)0==--this._eventsCount?this._events=new vd:(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(o=-1,i=r.length;i-- >0;)if(r[i]===e||r[i].listener&&r[i].listener===e){a=r[i].listener,o=i;break}if(o<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new vd,this;delete n[t]}else!function(t,e){for(var r=e,n=r+1,o=t.length;n<o;r+=1,n+=1)t[r]=t[n];t.pop()}(r,o);n.removeListener&&this.emit("removeListener",t,a||e)}return this},yd.prototype.off=function(t,e){return this.removeListener(t,e)},yd.prototype.removeAllListeners=function(t){var e,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new vd,this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=new vd:delete r[t]),this;if(0===arguments.length){for(var n,o=Object.keys(r),i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new vd,this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(e)do{this.removeListener(t,e[e.length-1])}while(e[0]);return this},yd.prototype.listeners=function(t){var e,r=this._events;return r&&(e=r[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(e):[]},yd.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):Ed.call(t,e)},yd.prototype.listenerCount=Ed,yd.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Td=function(t){ld.default(r,t);var e=jd(r);function r(t){var n;return cd.default(this,r),n=e.call(this),dd.default(fd.default(n),"timeout",null),dd.default(fd.default(n),"startTimestamp",-1),n.minDelay=t.min,n.maxDelay=t.max,n.initialDelay=t.initial||0,n.maxAttemptsCount=t.maxAttemptsCount||0,n.maxAttemptsTime=t.maxAttemptsTime||0,n.randomness=t.randomness||0,n.inProgress=!1,n.attemptNum=0,n.prevDelay=0,n.currDelay=0,n}return sd.default(r,[{key:"attempt",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.attemptNum++,this.emit("attempt",this)}},{key:"nextDelay",value:function(t){if("number"==typeof t)return this.prevDelay=0,this.currDelay=t,t;if(0==this.attemptNum)return this.initialDelay;if(1==this.attemptNum)return this.currDelay=this.minDelay,this.currDelay;this.prevDelay=this.currDelay;var e=this.currDelay+this.prevDelay;return this.maxDelay&&e>this.maxDelay&&(this.currDelay=this.maxDelay,e=this.maxDelay),this.currDelay=e,e}},{key:"randomize",value:function(t){var e=t*this.randomness,r=Math.round(Math.random()*e*2-e);return Math.max(0,t+r)}},{key:"scheduleAttempt",value:function(t){var e=this;if(this.maxAttemptsCount&&this.attemptNum>=this.maxAttemptsCount)return this.cleanup(),void this.emit("failed",new Error("Maximum attempt count limit reached"));var r=this.nextDelay(t);if(r=this.randomize(r),this.maxAttemptsTime&&this.startTimestamp+this.maxAttemptsTime<Date.now()+r)return this.cleanup(),void this.emit("failed",new Error("Maximum attempt time limit reached"));this.timeout=setTimeout((function(){return e.attempt()}),r)}},{key:"cleanup",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.inProgress=!1,this.attemptNum=0,this.prevDelay=0,this.currDelay=0}},{key:"start",value:function(){if(this.inProgress)throw new Error("Retrier is already in progress");this.inProgress=!0,this.startTimestamp=Date.now(),this.scheduleAttempt(this.initialDelay)}},{key:"cancel",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null,this.inProgress=!1,this.emit("cancelled"))}},{key:"succeeded",value:function(t){this.emit("succeeded",t)}},{key:"failed",value:function(t,e){if(this.timeout)throw new Error("Retrier attempt is already in progress");this.scheduleAttempt(e)}}]),r}(yd),Ld=function(t){ld.default(r,t);var e=jd(r);function r(t){var n;return cd.default(this,r),n=e.call(this),dd.default(fd.default(n),"resolve",(function(){})),dd.default(fd.default(n),"reject",(function(){})),n.retrier=new Td(t),n}return sd.default(r,[{key:"run",value:function(t){var e=this;return this.retrier.on("attempt",(function(){t().then((function(t){return e.retrier.succeeded(t)})).catch((function(t){return e.retrier.failed(t)}))})),this.retrier.on("succeeded",(function(t){return e.resolve(t)})),this.retrier.on("cancelled",(function(){return e.reject(new Error("Cancelled"))})),this.retrier.on("failed",(function(t){return e.reject(t)})),new Promise((function(t,r){e.resolve=t,e.reject=r,e.retrier.start()}))}},{key:"cancel",value:function(){this.retrier.cancel()}}]),r}(yd);function _d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=hd.default(t);if(e){var o=hd.default(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return pd.default(this,r)}}function Rd(t){return null!=t}var Id=function(t){ld.default(r,t);var e=_d(r);function r(t){var n;cd.default(this,r),n=e.call(this),dd.default(fd.default(n),"backoffDelay",0),dd.default(fd.default(n),"nextBackoffDelay",0),dd.default(fd.default(n),"backoffNumber",0),dd.default(fd.default(n),"timeoutID",null),dd.default(fd.default(n),"maxNumberOfRetry",-1);var o=t=t||{},i=o.initialDelay,a=o.maxDelay,u=o.randomisationFactor,c=o.factor;if(Rd(i)&&i<1)throw new Error("The initial timeout must be equal to or greater than 1.");if(Rd(a)&&a<=1)throw new Error("The maximal timeout must be greater than 1.");if(Rd(u)&&(u<0||u>1))throw new Error("The randomisation factor must be between 0 and 1.");if(Rd(c)&&c<=1)throw new Error("Exponential factor should be greater than 1.");if(n.initialDelay=i||100,n.maxDelay=a||1e4,n.maxDelay<=n.initialDelay)throw new Error("The maximal backoff delay must be greater than the initial backoff delay.");return n.randomisationFactor=u||0,n.factor=c||2,n.reset(),n}return sd.default(r,[{key:"backoff",value:function(t){null==this.timeoutID&&(this.backoffNumber===this.maxNumberOfRetry?(this.emit("fail",t),this.reset()):(this.backoffDelay=this.next(),this.timeoutID=setTimeout(this.onBackoff.bind(this),this.backoffDelay),this.emit("backoff",this.backoffNumber,this.backoffDelay,t)))}},{key:"reset",value:function(){this.backoffDelay=0,this.nextBackoffDelay=this.initialDelay,this.backoffNumber=0,this.timeoutID&&clearTimeout(this.timeoutID),this.timeoutID=null}},{key:"failAfter",value:function(t){if(t<=0)throw new Error("Expected a maximum number of retry greater than 0 but got ".concat(t));this.maxNumberOfRetry=t}},{key:"next",value:function(){this.backoffDelay=Math.min(this.nextBackoffDelay,this.maxDelay),this.nextBackoffDelay=this.backoffDelay*this.factor;var t=1+Math.random()*this.randomisationFactor;return Math.min(this.maxDelay,Math.round(this.backoffDelay*t))}},{key:"onBackoff",value:function(){this.timeoutID=null,this.emit("ready",this.backoffNumber,this.backoffDelay),this.backoffNumber++}}],[{key:"exponential",value:function(t){return new r(t)}}]),r}(yd);kh.AsyncRetrier=Ld,kh.Backoff=Id;var Pd=kh.Retrier=Td,Cd=Va.scope("Network");class Dd{constructor(t,e){this.config=t,this.transport=e}backoffConfig(){return Object.assign(hu.backoffConfigDefault,this.config.backoffConfigOverride)}retryWhenThrottled(){var t,e;return null!==(t=null!==(e=this.config.retryWhenThrottledOverride)&&void 0!==e?e:hu.retryWhenThrottledDefault)&&void 0!==t&&t}executeWithRetry(t,e){var r=this;return n(Sa.mark((function o(){return Sa.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",new Promise(((o,i)=>{var a=[502,503,504];e&&a.push(429);var u=new Pd(r.backoffConfig());u.on("attempt",n(Sa.mark((function e(){var r;return Sa.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t();case 3:r=e.sent,u.succeeded(r),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),a.indexOf(e.t0.status)>-1||"Twilsock disconnected"===e.t0.message?u.failed(e.t0):(u.removeAllListeners(),u.cancel(),i(e.t0));case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))),u.on("succeeded",(t=>{o(t)})),u.on("cancelled",(t=>i(t))),u.on("failed",(t=>i(t))),u.start()})));case 1:case"end":return o.stop()}}),o)})))()}get(t){var e=this;return n(Sa.mark((function r(){var n,o;return Sa.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={"X-Twilio-Token":e.config.token},Cd.trace("sending GET request to ",t," headers ",n),r.prev=2,r.next=5,e.executeWithRetry((()=>e.transport.get(t,n)),e.retryWhenThrottled());case 5:return o=r.sent,Cd.trace("response",o),r.abrupt("return",o);case 10:throw r.prev=10,r.t0=r.catch(2),Cd.debug("get() error ".concat(r.t0)),r.t0;case 14:case"end":return r.stop()}}),r,null,[[2,10]])})))()}post(t,r,o,i,a){var u=this;return n(Sa.mark((function n(){var c,s,f;return Sa.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c={"X-Twilio-Token":u.config.token},"undefined"!=typeof FormData&&o instanceof FormData||!i||Object.assign(c,{"Content-Type":i}),s=new URL(t),r&&s.searchParams.append("Category",r),a&&s.searchParams.append("Filename",a),Cd.trace("sending POST request to ".concat(t," with headers ").concat(c)),n.prev=6,n.next=9,u.transport.post(s.href,c,o);case 9:f=n.sent,n.next=18;break;case 12:if(n.prev=12,n.t0=n.catch(6),!(void 0===e.XMLHttpRequest&&o instanceof FormData)){n.next=16;break}throw new TypeError("Posting FormData supported only with browser engine's FormData");case 16:throw Cd.debug("post() error ".concat(n.t0)),n.t0;case 18:return Cd.trace("response",f),n.abrupt("return",f);case 20:case"end":return n.stop()}}),n,null,[[6,12]])})))()}}var Md={},Ud=b,Nd=Array.isArray||function(t){return"Array"==Ud(t)},Fd=s,Bd=N,qd=yt("species"),Gd=function(t){return Bd>=51||!Fd((function(){var e=[];return(e.constructor={})[qd]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Wd=Lr,zd=j,$d=Nd,Vd=ze,Hd=Be,Yd=O,Xd=_a,Jd=yt,Kd=Gd("slice"),Zd=Jd("species"),Qd=[].slice,tv=Math.max;Wd({target:"Array",proto:!0,forced:!Kd},{slice:function(t,e){var r,n,o,i=Yd(this),a=Hd(i.length),u=Vd(t,a),c=Vd(void 0===e?a:e,a);if($d(i)&&("function"!=typeof(r=i.constructor)||r!==Array&&!$d(r.prototype)?zd(r)&&null===(r=r[Zd])&&(r=void 0):r=void 0,r===Array||void 0===r))return Qd.call(i,u,c);for(n=new(void 0===r?Array:r)(tv(c-u,0)),o=0;u<c;u++,o++)u in i&&Xd(n,o,i[u]);return n.length=o,n}});var ev={},rv=O,nv=Ce.f,ov={}.toString,iv="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];ev.f=function(t){return iv&&"[object Window]"==ov.call(t)?function(t){try{return nv(t)}catch(t){return iv.slice()}}(t):nv(rv(t))};var av={},uv=yt;av.f=uv;var cv=u,sv=nt,fv=av,lv=Ft.f,pv=function(t){var e=cv.Symbol||(cv.Symbol={});sv(e,t)||lv(e,t,{value:fv.f(t)})},hv=j,dv=Nd,vv=yt("species"),yv=function(t){var e;return dv(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!dv(e.prototype)?hv(e)&&null===(e=e[vv])&&(e=void 0):e=void 0),void 0===e?Array:e},gv=function(t,e){return new(yv(t))(0===e?0:e)},mv=Qr,bv=S,wv=tt,xv=Be,Sv=gv,kv=[].push,Av=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(c,s,f,l){for(var p,h,d=wv(c),v=bv(d),y=mv(s,f,3),g=xv(v.length),m=0,b=l||Sv,w=e?b(c,g):r||a?b(c,0):void 0;g>m;m++)if((u||m in v)&&(h=y(p=v[m],m,d),t))if(e)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:kv.call(w,p)}else switch(t){case 4:return!1;case 7:kv.call(w,p)}return i?-1:n||o?o:w}},Ev={forEach:Av(0),map:Av(1),filter:Av(2),some:Av(3),every:Av(4),find:Av(5),findIndex:Av(6),filterReject:Av(7)},Ov=Lr,jv=u,Tv=_,Lv=f,_v=q,Rv=s,Iv=nt,Pv=Nd,Cv=j,Dv=z,Mv=qt,Uv=tt,Nv=O,Fv=At,Bv=Xa,qv=g,Gv=Ku,Wv=Pu,zv=Ce,$v=ev,Vv=or,Hv=c,Yv=Ft,Xv=l,Jv=Xt,Kv=Jt.exports,Zv=V.exports,Qv=fe,ty=at,ey=yt,ry=av,ny=pv,oy=Br,iy=Ee,ay=Ev.forEach,uy=se("hidden"),cy="Symbol",sy=ey("toPrimitive"),fy=iy.set,ly=iy.getterFor(cy),py=Object.prototype,hy=jv.Symbol,dy=Tv("JSON","stringify"),vy=Hv.f,yy=Yv.f,gy=$v.f,my=Xv.f,by=Zv("symbols"),wy=Zv("op-symbols"),xy=Zv("string-to-symbol-registry"),Sy=Zv("symbol-to-string-registry"),ky=Zv("wks"),Ay=jv.QObject,Ey=!Ay||!Ay.prototype||!Ay.prototype.findChild,Oy=Lv&&Rv((function(){return 7!=Gv(yy({},"a",{get:function(){return yy(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=vy(py,e);n&&delete py[e],yy(t,e,r),n&&t!==py&&yy(py,e,n)}:yy,jy=function(t,e){var r=by[t]=Gv(hy.prototype);return fy(r,{type:cy,tag:t,description:e}),Lv||(r.description=e),r},Ty=function(t,e,r){t===py&&Ty(wy,e,r),Mv(t);var n=Fv(e);return Mv(r),Iv(by,n)?(r.enumerable?(Iv(t,uy)&&t[uy][n]&&(t[uy][n]=!1),r=Gv(r,{enumerable:qv(0,!1)})):(Iv(t,uy)||yy(t,uy,qv(1,{})),t[uy][n]=!0),Oy(t,n,r)):yy(t,n,r)},Ly=function(t,e){Mv(t);var r=Nv(e),n=Wv(r).concat(Py(r));return ay(n,(function(e){Lv&&!_y.call(r,e)||Ty(t,e,r[e])})),t},_y=function(t){var e=Fv(t),r=my.call(this,e);return!(this===py&&Iv(by,e)&&!Iv(wy,e))&&(!(r||!Iv(this,e)||!Iv(by,e)||Iv(this,uy)&&this[uy][e])||r)},Ry=function(t,e){var r=Nv(t),n=Fv(e);if(r!==py||!Iv(by,n)||Iv(wy,n)){var o=vy(r,n);return!o||!Iv(by,n)||Iv(r,uy)&&r[uy][n]||(o.enumerable=!0),o}},Iy=function(t){var e=gy(Nv(t)),r=[];return ay(e,(function(t){Iv(by,t)||Iv(Qv,t)||r.push(t)})),r},Py=function(t){var e=t===py,r=gy(e?wy:Nv(t)),n=[];return ay(r,(function(t){!Iv(by,t)||e&&!Iv(py,t)||n.push(by[t])})),n};(_v||(Kv((hy=function(){if(this instanceof hy)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Bv(arguments[0]):void 0,e=ty(t),r=function(t){this===py&&r.call(wy,t),Iv(this,uy)&&Iv(this[uy],e)&&(this[uy][e]=!1),Oy(this,e,qv(1,t))};return Lv&&Ey&&Oy(py,e,{configurable:!0,set:r}),jy(e,t)}).prototype,"toString",(function(){return ly(this).tag})),Kv(hy,"withoutSetter",(function(t){return jy(ty(t),t)})),Xv.f=_y,Yv.f=Ty,Hv.f=Ry,zv.f=$v.f=Iy,Vv.f=Py,ry.f=function(t){return jy(ey(t),t)},Lv&&(yy(hy.prototype,"description",{configurable:!0,get:function(){return ly(this).description}}),Kv(py,"propertyIsEnumerable",_y,{unsafe:!0}))),Ov({global:!0,wrap:!0,forced:!_v,sham:!_v},{Symbol:hy}),ay(Wv(ky),(function(t){ny(t)})),Ov({target:cy,stat:!0,forced:!_v},{for:function(t){var e=Bv(t);if(Iv(xy,e))return xy[e];var r=hy(e);return xy[e]=r,Sy[r]=e,r},keyFor:function(t){if(!Dv(t))throw TypeError(t+" is not a symbol");if(Iv(Sy,t))return Sy[t]},useSetter:function(){Ey=!0},useSimple:function(){Ey=!1}}),Ov({target:"Object",stat:!0,forced:!_v,sham:!Lv},{create:function(t,e){return void 0===e?Gv(t):Ly(Gv(t),e)},defineProperty:Ty,defineProperties:Ly,getOwnPropertyDescriptor:Ry}),Ov({target:"Object",stat:!0,forced:!_v},{getOwnPropertyNames:Iy,getOwnPropertySymbols:Py}),Ov({target:"Object",stat:!0,forced:Rv((function(){Vv.f(1)}))},{getOwnPropertySymbols:function(t){return Vv.f(Uv(t))}}),dy)&&Ov({target:"JSON",stat:!0,forced:!_v||Rv((function(){var t=hy();return"[null]"!=dy([t])||"{}"!=dy({a:t})||"{}"!=dy(Object(t))}))},{stringify:function(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(Cv(e)||void 0!==t)&&!Dv(t))return Pv(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Dv(e))return e}),o[1]=e,dy.apply(null,o)}});hy.prototype[sy]||Jv(hy.prototype,sy,hy.prototype.valueOf),oy(hy,cy),Qv[uy]=!0;var Cy=Lr,Dy=f,My=u,Uy=nt,Ny=j,Fy=Ft.f,By=hr,qy=My.Symbol;if(Dy&&"function"==typeof qy&&(!("description"in qy.prototype)||void 0!==qy().description)){var Gy={},Wy=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Wy?new qy(t):void 0===t?qy():qy(t);return""===t&&(Gy[e]=!0),e};By(Wy,qy);var zy=Wy.prototype=qy.prototype;zy.constructor=Wy;var $y=zy.toString,Vy="Symbol(test)"==String(qy("test")),Hy=/^Symbol\((.*)\)[^)]+$/;Fy(zy,"description",{configurable:!0,get:function(){var t=Ny(this)?this.valueOf():this,e=$y.call(t);if(Uy(Gy,t))return"";var r=Vy?e.slice(7,-1):e.replace(Hy,"$1");return""===r?void 0:r}}),Cy({global:!0,forced:!0},{Symbol:Wy})}pv("iterator");var Yy=f,Xy=Ft.f,Jy=Function.prototype,Ky=Jy.toString,Zy=/^\s*function ([^ (]*)/,Qy="name";Yy&&!(Qy in Jy)&&Xy(Jy,Qy,{configurable:!0,get:function(){try{return Ky.call(this).match(Zy)[1]}catch(t){return""}}});var tg=j,eg=Math.floor;Lr({target:"Number",stat:!0},{isInteger:function(t){return!tg(t)&&isFinite(t)&&eg(t)===t}});var rg=j,ng=Mr,og=k,ig=Xa,ag="[\t\n\v\f\r \u2028\u2029\ufeff]",ug=RegExp("^"+ag+ag+"*"),cg=RegExp(ag+ag+"*$"),sg=function(t){return function(e){var r=ig(og(e));return 1&t&&(r=r.replace(ug,"")),2&t&&(r=r.replace(cg,"")),r}},fg={start:sg(1),end:sg(2),trim:sg(3)},lg=f,pg=u,hg=xr,dg=Jt.exports,vg=nt,yg=b,gg=function(t,e,r){var n,o;return ng&&"function"==typeof(n=e.constructor)&&n!==r&&rg(o=n.prototype)&&o!==r.prototype&&ng(t,o),t},mg=z,bg=xt,wg=s,xg=Ku,Sg=Ce.f,kg=c.f,Ag=Ft.f,Eg=fg.trim,Og="Number",jg=pg.Number,Tg=jg.prototype,Lg=yg(xg(Tg))==Og,_g=function(t){if(mg(t))throw TypeError("Cannot convert a Symbol value to a number");var e,r,n,o,i,a,u,c,s=bg(t,"number");if("string"==typeof s&&s.length>2)if(43===(e=(s=Eg(s)).charCodeAt(0))||45===e){if(88===(r=s.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(a=(i=s.slice(2)).length,u=0;u<a;u++)if((c=i.charCodeAt(u))<48||c>o)return NaN;return parseInt(i,n)}return+s};if(hg(Og,!jg(" 0o1")||!jg("0b1")||jg("+0x1"))){for(var Rg,Ig=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof Ig&&(Lg?wg((function(){Tg.valueOf.call(r)})):yg(r)!=Og)?gg(new jg(_g(e)),r,Ig):_g(e)},Pg=lg?Sg(jg):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Cg=0;Pg.length>Cg;Cg++)vg(jg,Rg=Pg[Cg])&&!vg(Ig,Rg)&&Ag(Ig,Rg,kg(jg,Rg));Ig.prototype=Tg,Tg.constructor=Ig,dg(pg,Og,Ig)}var Dg={exports:{}},Mg={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0}(Mg);var Ug={exports:{}};!function(t){t.exports=function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}},t.exports.default=t.exports,t.exports.__esModule=!0}(Ug);var Ng={exports:{}},Fg={exports:{}};!function(t){t.exports=function(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},t.exports.default=t.exports,t.exports.__esModule=!0}(Fg),function(t){var e=Fg.exports;t.exports=function(t,r){if(t){if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0}(Ng);var Bg={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0}(Bg),function(t){var e=Mg.exports,r=Ug.exports,n=Ng.exports,o=Bg.exports;t.exports=function(t,i){return e(t)||r(t,i)||n(t,i)||o()},t.exports.default=t.exports,t.exports.__esModule=!0}(Dg);var qg=f,Gg=Pu,Wg=O,zg=l.f,$g=function(t){return function(e){for(var r,n=Wg(e),o=Gg(n),i=o.length,a=0,u=[];i>a;)r=o[a++],qg&&!zg.call(n,r)||u.push(t?[r,n[r]]:n[r]);return u}},Vg={entries:$g(!0),values:$g(!1)}.entries;Lr({target:"Object",stat:!0},{entries:function(t){return Vg(t)}});var Hg=Lr,Yg=s,Xg=Nd,Jg=j,Kg=tt,Zg=Be,Qg=_a,tm=gv,em=Gd,rm=N,nm=yt("isConcatSpreadable"),om=9007199254740991,im="Maximum allowed index exceeded",am=rm>=51||!Yg((function(){var t=[];return t[nm]=!1,t.concat()[0]!==t})),um=em("concat"),cm=function(t){if(!Jg(t))return!1;var e=t[nm];return void 0!==e?!!e:Xg(t)};Hg({target:"Array",proto:!0,forced:!am||!um},{concat:function(t){var e,r,n,o,i,a=Kg(this),u=tm(a,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(cm(i=-1===e?a:arguments[e])){if(c+(o=Zg(i.length))>om)throw TypeError(im);for(r=0;r<o;r++,c++)r in i&&Qg(u,c,i[r])}else{if(c>=om)throw TypeError(im);Qg(u,c++,i)}return u.length=c,u}});var sm={exports:{}},fm={exports:{}};!function(t){var e=Fg.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.default=t.exports,t.exports.__esModule=!0}(fm);var lm={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0}(lm);var pm={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0}(pm),function(t){var e=fm.exports,r=lm.exports,n=Ng.exports,o=pm.exports;t.exports=function(t){return e(t)||r(t)||n(t)||o()},t.exports.default=t.exports,t.exports.__esModule=!0}(sm);var hm=Xe.includes,dm=gs;Lr({target:"Array",proto:!0},{includes:function(t){return hm(this,t,arguments.length>1?arguments[1]:void 0)}}),dm("includes");var vm=Lr,ym=O,gm=[].join,mm=S!=Object,bm=Su("join",",");vm({target:"Array",proto:!0,forced:mm||!bm},{join:function(t){return gm.call(ym(this),void 0===t?",":t)}}),
|
|
35
|
+
*/,Object.defineProperty(Fv,"__esModule",{value:!0});var by=ay.exports,wy=uy.exports,xy=cy.exports,Sy=ly.exports,ky=py.exports,Ay=hy.exports;function Ey(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var Oy=Ey(iy.exports),jy=Ey(by),Ty=Ey(wy),Ly=Ey(xy),_y=Ey(Sy),Ry=Ey(ky),Iy=Ey(Ay);function Py(){}function Cy(){Cy.init.call(this)}function Dy(t){return void 0===t._maxListeners?Cy.defaultMaxListeners:t._maxListeners}function My(t,e,r){if(e)t.call(r);else for(var n=t.length,o=Wy(t,n),i=0;i<n;++i)o[i].call(r)}function Uy(t,e,r,n){if(e)t.call(r,n);else for(var o=t.length,i=Wy(t,o),a=0;a<o;++a)i[a].call(r,n)}function Ny(t,e,r,n,o){if(e)t.call(r,n,o);else for(var i=t.length,a=Wy(t,i),u=0;u<i;++u)a[u].call(r,n,o)}function Fy(t,e,r,n,o,i){if(e)t.call(r,n,o,i);else for(var a=t.length,u=Wy(t,a),c=0;c<a;++c)u[c].call(r,n,o,i)}function qy(t,e,r,n){if(e)t.apply(r,n);else for(var o=t.length,i=Wy(t,o),a=0;a<o;++a)i[a].apply(r,n)}function By(t,e,r,n){var o,i,a,u;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((i=t._events)?(i.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),a=i[e]):(i=t._events=new Py,t._eventsCount=0),a){if("function"==typeof a?a=i[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),!a.warned&&(o=Dy(t))&&o>0&&a.length>o){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=a.length,u=c,"function"==typeof console.warn?console.warn(u):console.log(u)}}else a=i[e]=r,++t._eventsCount;return t}function $y(t,e,r){var n=!1;function o(){t.removeListener(e,o),n||(n=!0,r.apply(t,arguments))}return o.listener=r,o}function Gy(t){var e=this._events;if(e){var r=e[t];if("function"==typeof r)return 1;if(r)return r.length}return 0}function Wy(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}function zy(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Ry.default(t);if(e){var o=Ry.default(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return _y.default(this,r)}}Py.prototype=Object.create(null),Cy.EventEmitter=Cy,Cy.usingDomains=!1,Cy.prototype.domain=void 0,Cy.prototype._events=void 0,Cy.prototype._maxListeners=void 0,Cy.defaultMaxListeners=10,Cy.init=function(){this.domain=null,Cy.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Py,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Cy.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},Cy.prototype.getMaxListeners=function(){return Dy(this)},Cy.prototype.emit=function(t){var e,r,n,o,i,a,u,c="error"===t;if(a=this._events)c=c&&null==a.error;else if(!c)return!1;if(u=this.domain,c){if(e=arguments[1],!u){if(e instanceof Error)throw e;var s=new Error('Uncaught, unspecified "error" event. ('+e+")");throw s.context=e,s}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=u,e.domainThrown=!1,u.emit("error",e),!1}if(!(r=a[t]))return!1;var l="function"==typeof r;switch(n=arguments.length){case 1:My(r,l,this);break;case 2:Uy(r,l,this,arguments[1]);break;case 3:Ny(r,l,this,arguments[1],arguments[2]);break;case 4:Fy(r,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(n-1),i=1;i<n;i++)o[i-1]=arguments[i];qy(r,l,this,o)}return!0},Cy.prototype.addListener=function(t,e){return By(this,t,e,!1)},Cy.prototype.on=Cy.prototype.addListener,Cy.prototype.prependListener=function(t,e){return By(this,t,e,!0)},Cy.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,$y(this,t,e)),this},Cy.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,$y(this,t,e)),this},Cy.prototype.removeListener=function(t,e){var r,n,o,i,a;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[t]))return this;if(r===e||r.listener&&r.listener===e)0==--this._eventsCount?this._events=new Py:(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(o=-1,i=r.length;i-- >0;)if(r[i]===e||r[i].listener&&r[i].listener===e){a=r[i].listener,o=i;break}if(o<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new Py,this;delete n[t]}else!function(t,e){for(var r=e,n=r+1,o=t.length;n<o;r+=1,n+=1)t[r]=t[n];t.pop()}(r,o);n.removeListener&&this.emit("removeListener",t,a||e)}return this},Cy.prototype.off=function(t,e){return this.removeListener(t,e)},Cy.prototype.removeAllListeners=function(t){var e,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new Py,this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=new Py:delete r[t]),this;if(0===arguments.length){for(var n,o=Object.keys(r),i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new Py,this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(e)do{this.removeListener(t,e[e.length-1])}while(e[0]);return this},Cy.prototype.listeners=function(t){var e,r=this._events;return r&&(e=r[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(e):[]},Cy.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):Gy.call(t,e)},Cy.prototype.listenerCount=Gy,Cy.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Vy=function(t){Ly.default(r,t);var e=zy(r);function r(t){var n;return Oy.default(this,r),n=e.call(this),Iy.default(Ty.default(n),"timeout",null),Iy.default(Ty.default(n),"startTimestamp",-1),n.minDelay=t.min,n.maxDelay=t.max,n.initialDelay=t.initial||0,n.maxAttemptsCount=t.maxAttemptsCount||0,n.maxAttemptsTime=t.maxAttemptsTime||0,n.randomness=t.randomness||0,n.inProgress=!1,n.attemptNum=0,n.prevDelay=0,n.currDelay=0,n}return jy.default(r,[{key:"attempt",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.attemptNum++,this.emit("attempt",this)}},{key:"nextDelay",value:function(t){if("number"==typeof t)return this.prevDelay=0,this.currDelay=t,t;if(0==this.attemptNum)return this.initialDelay;if(1==this.attemptNum)return this.currDelay=this.minDelay,this.currDelay;this.prevDelay=this.currDelay;var e=this.currDelay+this.prevDelay;return this.maxDelay&&e>this.maxDelay&&(this.currDelay=this.maxDelay,e=this.maxDelay),this.currDelay=e,e}},{key:"randomize",value:function(t){var e=t*this.randomness,r=Math.round(Math.random()*e*2-e);return Math.max(0,t+r)}},{key:"scheduleAttempt",value:function(t){var e=this;if(this.maxAttemptsCount&&this.attemptNum>=this.maxAttemptsCount)return this.cleanup(),void this.emit("failed",new Error("Maximum attempt count limit reached"));var r=this.nextDelay(t);if(r=this.randomize(r),this.maxAttemptsTime&&this.startTimestamp+this.maxAttemptsTime<Date.now()+r)return this.cleanup(),void this.emit("failed",new Error("Maximum attempt time limit reached"));this.timeout=setTimeout((function(){return e.attempt()}),r)}},{key:"cleanup",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.inProgress=!1,this.attemptNum=0,this.prevDelay=0,this.currDelay=0}},{key:"start",value:function(){if(this.inProgress)throw new Error("Retrier is already in progress");this.inProgress=!0,this.startTimestamp=Date.now(),this.scheduleAttempt(this.initialDelay)}},{key:"cancel",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null,this.inProgress=!1,this.emit("cancelled"))}},{key:"succeeded",value:function(t){this.emit("succeeded",t)}},{key:"failed",value:function(t,e){if(this.timeout)throw new Error("Retrier attempt is already in progress");this.scheduleAttempt(e)}}]),r}(Cy),Hy=function(t){Ly.default(r,t);var e=zy(r);function r(t){var n;return Oy.default(this,r),n=e.call(this),Iy.default(Ty.default(n),"resolve",(function(){})),Iy.default(Ty.default(n),"reject",(function(){})),n.retrier=new Vy(t),n}return jy.default(r,[{key:"run",value:function(t){var e=this;return this.retrier.on("attempt",(function(){t().then((function(t){return e.retrier.succeeded(t)})).catch((function(t){return e.retrier.failed(t)}))})),this.retrier.on("succeeded",(function(t){return e.resolve(t)})),this.retrier.on("cancelled",(function(){return e.reject(new Error("Cancelled"))})),this.retrier.on("failed",(function(t){return e.reject(t)})),new Promise((function(t,r){e.resolve=t,e.reject=r,e.retrier.start()}))}},{key:"cancel",value:function(){this.retrier.cancel()}}]),r}(Cy);function Yy(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Ry.default(t);if(e){var o=Ry.default(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return _y.default(this,r)}}function Jy(t){return null!=t}var Ky=function(t){Ly.default(r,t);var e=Yy(r);function r(t){var n;Oy.default(this,r),n=e.call(this),Iy.default(Ty.default(n),"backoffDelay",0),Iy.default(Ty.default(n),"nextBackoffDelay",0),Iy.default(Ty.default(n),"backoffNumber",0),Iy.default(Ty.default(n),"timeoutID",null),Iy.default(Ty.default(n),"maxNumberOfRetry",-1);var o=t=t||{},i=o.initialDelay,a=o.maxDelay,u=o.randomisationFactor,c=o.factor;if(Jy(i)&&i<1)throw new Error("The initial timeout must be equal to or greater than 1.");if(Jy(a)&&a<=1)throw new Error("The maximal timeout must be greater than 1.");if(Jy(u)&&(u<0||u>1))throw new Error("The randomisation factor must be between 0 and 1.");if(Jy(c)&&c<=1)throw new Error("Exponential factor should be greater than 1.");if(n.initialDelay=i||100,n.maxDelay=a||1e4,n.maxDelay<=n.initialDelay)throw new Error("The maximal backoff delay must be greater than the initial backoff delay.");return n.randomisationFactor=u||0,n.factor=c||2,n.reset(),n}return jy.default(r,[{key:"backoff",value:function(t){null==this.timeoutID&&(this.backoffNumber===this.maxNumberOfRetry?(this.emit("fail",t),this.reset()):(this.backoffDelay=this.next(),this.timeoutID=setTimeout(this.onBackoff.bind(this),this.backoffDelay),this.emit("backoff",this.backoffNumber,this.backoffDelay,t)))}},{key:"reset",value:function(){this.backoffDelay=0,this.nextBackoffDelay=this.initialDelay,this.backoffNumber=0,this.timeoutID&&clearTimeout(this.timeoutID),this.timeoutID=null}},{key:"failAfter",value:function(t){if(t<=0)throw new Error("Expected a maximum number of retry greater than 0 but got ".concat(t));this.maxNumberOfRetry=t}},{key:"next",value:function(){this.backoffDelay=Math.min(this.nextBackoffDelay,this.maxDelay),this.nextBackoffDelay=this.backoffDelay*this.factor;var t=1+Math.random()*this.randomisationFactor;return Math.min(this.maxDelay,Math.round(this.backoffDelay*t))}},{key:"onBackoff",value:function(){this.timeoutID=null,this.emit("ready",this.backoffNumber,this.backoffDelay),this.backoffNumber++}}],[{key:"exponential",value:function(t){return new r(t)}}]),r}(Cy);Fv.AsyncRetrier=Hy,Fv.Backoff=Ky;var Xy=Fv.Retrier=Vy,Zy=dl.scope("Network");class Qy{constructor(t,e){this.config=t,this.transport=e}backoffConfig(){return Object.assign(Dl.backoffConfigDefault,this.config.backoffConfigOverride)}retryWhenThrottled(){var t,e;return null!==(t=null!==(e=this.config.retryWhenThrottledOverride)&&void 0!==e?e:Dl.retryWhenThrottledDefault)&&void 0!==t&&t}executeWithRetry(t,e){var r=this;return new qc(function(){var n=$c(Ws.mark((function n(o,i,a){var u,c;return Ws.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:u=new Xy(r.backoffConfig()),c=[502,503,504],e&&c.push(429),a((()=>{u.cancel(),u.removeAllListeners()})),u.on("attempt",$c(Ws.mark((function e(){var r,n;return Ws.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=t(),a((()=>{r.cancel(),u.cancel(),u.removeAllListeners()})),e.next=5,r;case 5:n=e.sent,u.succeeded(n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),c.indexOf(e.t0.status)>-1||"Twilsock disconnected"===e.t0.message?u.failed(e.t0):(u.removeAllListeners(),u.cancel(),i(e.t0));case 12:case"end":return e.stop()}}),e,null,[[0,9]])})))),u.on("succeeded",(t=>{o(t)})),u.on("cancelled",(t=>i(t))),u.on("failed",(t=>i(t))),u.start();case 9:case"end":return n.stop()}}),n)})));return function(t,e,r){return n.apply(this,arguments)}}())}get(t){var e=this;return new qc(function(){var r=$c(Ws.mark((function r(n,o,i){var a,u,c;return Ws.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={"X-Twilio-Token":e.config.token},u=e.executeWithRetry((()=>e.transport.get(t,a)),e.retryWhenThrottled()),Zy.trace("sending GET request to ",t," headers ",a),i((()=>u.cancel())),r.prev=4,r.next=7,u;case 7:c=r.sent,Zy.trace("response",c),n(c),r.next=16;break;case 12:r.prev=12,r.t0=r.catch(4),Zy.debug("get() error ".concat(r.t0)),o(r.t0);case 16:case"end":return r.stop()}}),r,null,[[4,12]])})));return function(t,e,n){return r.apply(this,arguments)}}())}post(t,r,n,o,i){var a=this,u={"X-Twilio-Token":this.config.token};"undefined"!=typeof FormData&&n instanceof FormData||!o||Object.assign(u,{"Content-Type":o});var c=new URL(t);return r&&c.searchParams.append("Category",r),i&&c.searchParams.append("Filename",i),new qc(function(){var r=$c(Ws.mark((function r(o,i,s){var l,f;return Ws.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return l=a.transport.post(c.href,u,n),s((()=>l.cancel())),Zy.trace("sending POST request to ".concat(t," with headers ").concat(u)),r.prev=3,r.next=6,l;case 6:f=r.sent,r.next=17;break;case 9:if(r.prev=9,r.t0=r.catch(3),!(void 0===e.XMLHttpRequest&&n instanceof FormData)){r.next=14;break}return i(new TypeError("Posting FormData supported only with browser engine's FormData")),r.abrupt("return");case 14:return Zy.debug("post() error ".concat(r.t0)),i(r.t0),r.abrupt("return");case 17:Zy.trace("response",f),o(f);case 19:case"end":return r.stop()}}),r,null,[[3,9]])})));return function(t,e,n){return r.apply(this,arguments)}}())}}var tg={},eg=u,rg=M,ng=dt("species"),og=function(t){return rg>=51||!eg((function(){var e=[];return(e.constructor={})[ng]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ig=jr,ag=E,ug=Wc,cg=$e,sg=Ne,lg=A,fg=Zs,pg=dt,hg=og("slice"),dg=pg("species"),vg=[].slice,yg=Math.max;ig({target:"Array",proto:!0,forced:!hg},{slice:function(t,e){var r,n,o,i=lg(this),a=sg(i.length),u=cg(t,a),c=cg(void 0===e?a:e,a);if(ug(i)&&("function"!=typeof(r=i.constructor)||r!==Array&&!ug(r.prototype)?ag(r)&&null===(r=r[dg])&&(r=void 0):r=void 0,r===Array||void 0===r))return vg.call(i,u,c);for(n=new(void 0===r?Array:r)(yg(c-u,0)),o=0;u<c;u++,o++)u in i&&fg(n,o,i[u]);return n.length=o,n}});var gg=jr,mg=E,bg=function(){var t=!1,e=/[ac]/;return e.exec=function(){return t=!0,/./.exec.apply(this,arguments)},!0===e.test("abc")&&t}(),wg=/./.test;gg({target:"RegExp",proto:!0,forced:!bg},{test:function(t){if("function"!=typeof this.exec)return wg.call(this,t);var e=this.exec(t);if(null!==e&&!mg(e))throw new Error("RegExp exec method returned something other than an Object or null");return!!e}});var xg={},Sg=dt;xg.f=Sg;var kg=i,Ag=et,Eg=xg,Og=Ut.f,jg=function(t){var e=kg.Symbol||(kg.Symbol={});Ag(e,t)||Og(e,t,{value:Eg.f(t)})},Tg=jr,Lg=i,_g=T,Rg=c,Ig=F,Pg=u,Cg=et,Dg=Wc,Mg=E,Ug=$,Ng=Ft,Fg=Z,qg=A,Bg=St,$g=gl,Gg=v,Wg=fa,zg=Ji,Vg=Ie,Hg=pu,Yg=rr,Jg=a,Kg=Ut,Xg=s,Zg=Ht,Qg=Yt.exports,tm=W.exports,em=ce,rm=ot,nm=dt,om=xg,im=jg,am=Nr,um=ke,cm=ns.forEach,sm=ue("hidden"),lm="Symbol",fm=nm("toPrimitive"),pm=um.set,hm=um.getterFor(lm),dm=Object.prototype,vm=Lg.Symbol,ym=_g("JSON","stringify"),gm=Jg.f,mm=Kg.f,bm=Hg.f,wm=Xg.f,xm=tm("symbols"),Sm=tm("op-symbols"),km=tm("string-to-symbol-registry"),Am=tm("symbol-to-string-registry"),Em=tm("wks"),Om=Lg.QObject,jm=!Om||!Om.prototype||!Om.prototype.findChild,Tm=Rg&&Pg((function(){return 7!=Wg(mm({},"a",{get:function(){return mm(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=gm(dm,e);n&&delete dm[e],mm(t,e,r),n&&t!==dm&&mm(dm,e,n)}:mm,Lm=function(t,e){var r=xm[t]=Wg(vm.prototype);return pm(r,{type:lm,tag:t,description:e}),Rg||(r.description=e),r},_m=function(t,e,r){t===dm&&_m(Sm,e,r),Ng(t);var n=Bg(e);return Ng(r),Cg(xm,n)?(r.enumerable?(Cg(t,sm)&&t[sm][n]&&(t[sm][n]=!1),r=Wg(r,{enumerable:Gg(0,!1)})):(Cg(t,sm)||mm(t,sm,Gg(1,{})),t[sm][n]=!0),Tm(t,n,r)):mm(t,n,r)},Rm=function(t,e){Ng(t);var r=qg(e),n=zg(r).concat(Dm(r));return cm(n,(function(e){Rg&&!Im.call(r,e)||_m(t,e,r[e])})),t},Im=function(t){var e=Bg(t),r=wm.call(this,e);return!(this===dm&&Cg(xm,e)&&!Cg(Sm,e))&&(!(r||!Cg(this,e)||!Cg(xm,e)||Cg(this,sm)&&this[sm][e])||r)},Pm=function(t,e){var r=qg(t),n=Bg(e);if(r!==dm||!Cg(xm,n)||Cg(Sm,n)){var o=gm(r,n);return!o||!Cg(xm,n)||Cg(r,sm)&&r[sm][n]||(o.enumerable=!0),o}},Cm=function(t){var e=bm(qg(t)),r=[];return cm(e,(function(t){Cg(xm,t)||Cg(em,t)||r.push(t)})),r},Dm=function(t){var e=t===dm,r=bm(e?Sm:qg(t)),n=[];return cm(r,(function(t){!Cg(xm,t)||e&&!Cg(dm,t)||n.push(xm[t])})),n};(Ig||(Qg((vm=function(){if(this instanceof vm)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?$g(arguments[0]):void 0,e=rm(t),r=function(t){this===dm&&r.call(Sm,t),Cg(this,sm)&&Cg(this[sm],e)&&(this[sm][e]=!1),Tm(this,e,Gg(1,t))};return Rg&&jm&&Tm(dm,e,{configurable:!0,set:r}),Lm(e,t)}).prototype,"toString",(function(){return hm(this).tag})),Qg(vm,"withoutSetter",(function(t){return Lm(rm(t),t)})),Xg.f=Im,Kg.f=_m,Jg.f=Pm,Vg.f=Hg.f=Cm,Yg.f=Dm,om.f=function(t){return Lm(nm(t),t)},Rg&&(mm(vm.prototype,"description",{configurable:!0,get:function(){return hm(this).description}}),Qg(dm,"propertyIsEnumerable",Im,{unsafe:!0}))),Tg({global:!0,wrap:!0,forced:!Ig,sham:!Ig},{Symbol:vm}),cm(zg(Em),(function(t){im(t)})),Tg({target:lm,stat:!0,forced:!Ig},{for:function(t){var e=$g(t);if(Cg(km,e))return km[e];var r=vm(e);return km[e]=r,Am[r]=e,r},keyFor:function(t){if(!Ug(t))throw TypeError(t+" is not a symbol");if(Cg(Am,t))return Am[t]},useSetter:function(){jm=!0},useSimple:function(){jm=!1}}),Tg({target:"Object",stat:!0,forced:!Ig,sham:!Rg},{create:function(t,e){return void 0===e?Wg(t):Rm(Wg(t),e)},defineProperty:_m,defineProperties:Rm,getOwnPropertyDescriptor:Pm}),Tg({target:"Object",stat:!0,forced:!Ig},{getOwnPropertyNames:Cm,getOwnPropertySymbols:Dm}),Tg({target:"Object",stat:!0,forced:Pg((function(){Yg.f(1)}))},{getOwnPropertySymbols:function(t){return Yg.f(Fg(t))}}),ym)&&Tg({target:"JSON",stat:!0,forced:!Ig||Pg((function(){var t=vm();return"[null]"!=ym([t])||"{}"!=ym({a:t})||"{}"!=ym(Object(t))}))},{stringify:function(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(Mg(e)||void 0!==t)&&!Ug(t))return Dg(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Ug(e))return e}),o[1]=e,ym.apply(null,o)}});vm.prototype[fm]||Zg(vm.prototype,fm,vm.prototype.valueOf),am(vm,lm),em[sm]=!0;var Mm=jr,Um=c,Nm=i,Fm=et,qm=E,Bm=Ut.f,$m=fr,Gm=Nm.Symbol;if(Um&&"function"==typeof Gm&&(!("description"in Gm.prototype)||void 0!==Gm().description)){var Wm={},zm=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof zm?new Gm(t):void 0===t?Gm():Gm(t);return""===t&&(Wm[e]=!0),e};$m(zm,Gm);var Vm=zm.prototype=Gm.prototype;Vm.constructor=zm;var Hm=Vm.toString,Ym="Symbol(test)"==String(Gm("test")),Jm=/^Symbol\((.*)\)[^)]+$/;Bm(Vm,"description",{configurable:!0,get:function(){var t=qm(this)?this.valueOf():this,e=Hm.call(t);if(Fm(Wm,t))return"";var r=Ym?e.slice(7,-1):e.replace(Jm,"$1");return""===r?void 0:r}}),Mm({global:!0,forced:!0},{Symbol:zm})}jg("iterator");var Km=c,Xm=Ut.f,Zm=Function.prototype,Qm=Zm.toString,tb=/^\s*function ([^ (]*)/,eb="name";Km&&!(eb in Zm)&&Xm(Zm,eb,{configurable:!0,get:function(){try{return Qm.call(this).match(tb)[1]}catch(t){return""}}});var rb={exports:{}},nb={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}(nb);var ob={exports:{}};!function(t){t.exports=function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}},t.exports.__esModule=!0,t.exports.default=t.exports}(ob);var ib={exports:{}},ab={exports:{}};!function(t){t.exports=function(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},t.exports.__esModule=!0,t.exports.default=t.exports}(ab),function(t){var e=ab.exports;t.exports=function(t,r){if(t){if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(ib);var ub={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(ub),function(t){var e=nb.exports,r=ob.exports,n=ib.exports,o=ub.exports;t.exports=function(t,i){return e(t)||r(t,i)||n(t,i)||o()},t.exports.__esModule=!0,t.exports.default=t.exports}(rb);var cb=jr,sb=u,lb=Wc,fb=E,pb=Z,hb=Ne,db=Zs,vb=Jc,yb=og,gb=M,mb=dt("isConcatSpreadable"),bb=9007199254740991,wb="Maximum allowed index exceeded",xb=gb>=51||!sb((function(){var t=[];return t[mb]=!1,t.concat()[0]!==t})),Sb=yb("concat"),kb=function(t){if(!fb(t))return!1;var e=t[mb];return void 0!==e?!!e:lb(t)};cb({target:"Array",proto:!0,forced:!xb||!Sb},{concat:function(t){var e,r,n,o,i,a=pb(this),u=vb(a,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(kb(i=-1===e?a:arguments[e])){if(c+(o=hb(i.length))>bb)throw TypeError(wb);for(r=0;r<o;r++,c++)r in i&&db(u,c,i[r])}else{if(c>=bb)throw TypeError(wb);db(u,c++,i)}return u.length=c,u}});var Ab={exports:{}},Eb={exports:{}};!function(t){var e=ab.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Eb);var Ob={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Ob);var jb={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(jb),function(t){var e=Eb.exports,r=Ob.exports,n=ib.exports,o=jb.exports;t.exports=function(t){return e(t)||r(t)||n(t)||o()},t.exports.__esModule=!0,t.exports.default=t.exports}(Ab);var Tb=He.includes,Lb=ba;jr({target:"Array",proto:!0},{includes:function(t){return Tb(this,t,arguments.length>1?arguments[1]:void 0)}}),Lb("includes");var _b=jr,Rb=A,Ib=[].join,Pb=w!=Object,Cb=is("join",",");_b({target:"Array",proto:!0,forced:Pb||!Cb},{join:function(t){return Ib.call(Rb(this),void 0===t?",":t)}});var Db=E,Mb=Math.floor;jr({target:"Number",stat:!0},{isInteger:function(t){return!Db(t)&&isFinite(t)&&Mb(t)===t}});var Ub=x,Nb=gl,Fb="[\t\n\v\f\r \u2028\u2029\ufeff]",qb=RegExp("^"+Fb+Fb+"*"),Bb=RegExp(Fb+Fb+"*$"),$b=function(t){return function(e){var r=Nb(Ub(e));return 1&t&&(r=r.replace(qb,"")),2&t&&(r=r.replace(Bb,"")),r}},Gb={start:$b(1),end:$b(2),trim:$b(3)},Wb=c,zb=i,Vb=br,Hb=Yt.exports,Yb=et,Jb=g,Kb=Cu,Xb=$,Zb=bt,Qb=u,tw=fa,ew=Ie.f,rw=a.f,nw=Ut.f,ow=Gb.trim,iw="Number",aw=zb.Number,uw=aw.prototype,cw=Jb(tw(uw))==iw,sw=function(t){if(Xb(t))throw TypeError("Cannot convert a Symbol value to a number");var e,r,n,o,i,a,u,c,s=Zb(t,"number");if("string"==typeof s&&s.length>2)if(43===(e=(s=ow(s)).charCodeAt(0))||45===e){if(88===(r=s.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(a=(i=s.slice(2)).length,u=0;u<a;u++)if((c=i.charCodeAt(u))<48||c>o)return NaN;return parseInt(i,n)}return+s};if(Vb(iw,!aw(" 0o1")||!aw("0b1")||aw("+0x1"))){for(var lw,fw=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof fw&&(cw?Qb((function(){uw.valueOf.call(r)})):Jb(r)!=iw)?Kb(new aw(sw(e)),r,fw):sw(e)},pw=Wb?ew(aw):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),hw=0;pw.length>hw;hw++)Yb(aw,lw=pw[hw])&&!Yb(fw,lw)&&nw(fw,lw,rw(aw,lw));fw.prototype=uw,uw.constructor=fw,Hb(zb,iw,fw)}var dw=c,vw=Ji,yw=A,gw=s.f,mw=function(t){return function(e){for(var r,n=yw(e),o=vw(n),i=o.length,a=0,u=[];i>a;)r=o[a++],dw&&!gw.call(n,r)||u.push(t?[r,n[r]]:n[r]);return u}},bw={entries:mw(!0),values:mw(!1)}.entries;jr({target:"Object",stat:!0},{entries:function(t){return bw(t)}}),
|
|
50
36
|
/*
|
|
51
37
|
@license
|
|
52
38
|
Copyright (c) 2021 Twilio Inc.
|
|
@@ -59,4 +45,4 @@ this.Twilio=this.Twilio||{},this.Twilio.McsClient=function(t){"use strict";var e
|
|
|
59
45
|
|
|
60
46
|
|
|
61
47
|
*/
|
|
62
|
-
Object.defineProperty(Md,"__esModule",{value:!0});var wm=Dg.exports,xm=sm.exports,Sm=qh.exports,km=zh.exports,Am=Vh.exports,Em=Yh.exports;function Om(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var jm=Om(Hh.exports),Tm=Om(wm),Lm=Om(xm),_m=Om(Sm),Rm=Om(km),Im=Om(Am),Pm=Om(Em),Cm=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return{checks:e}};function Dm(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Mm(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 Mm(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Mm(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}var Um=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Cm((function(t){var r,n=!1,o=[],i=Dm(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;"string"!=typeof a?(n=n||t instanceof a,o.push("an instance of ".concat(a.name))):(n=n||jm.default(t)===a,o.push("of type ".concat(a)))}}catch(t){i.e(t)}finally{i.f()}return[n,o]}))};function Nm(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Fm(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 Fm(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Fm(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}var Bm=Cm((function(t){return["string"==typeof t&&t.length>0,"a non-empty string"]})),qm=Cm((function(t){return["number"==typeof t&&Number.isInteger(t)&&t>=0,"a non-negative integer"]})),Gm=Cm((function(t){return["object"===jm.default(t)&&null!==t&&!Array.isArray(t),"a pure object (non-null and non-array)"]}));function Wm(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Pm.default(t);if(e){var o=Pm.default(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Im.default(this,r)}}function zm(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return $m(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 $m(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function $m(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}var Vm=function(t,e){if(e.length>t.length)throw new Error("Expected at most ".concat(t.length," argument(s), but got ").concat(e.length));for(;e.length<t.length;)e.push(void 0);var r,n=zm(e.entries());try{for(n.s();!(r=n.n()).done;){var o=Tm.default(r.value,2),i=o[0],a=o[1],u=Jm(t[i],a),c=Tm.default(u,4),s=c[0],f=c[1],l=c[2],p=c[3];if(!s)throw new Error("Argument ".concat(i+1," is expected to be ").concat(l).concat(p," but got ").concat(f))}}catch(t){n.e(t)}finally{n.f()}},Hm=function(t){var e,r,n;(["undefined","boolean","number","bigint","string"].includes(jm.default(t))&&(r="string"==typeof t?'"'.concat(t,'"'):"".concat(t)),"object"===jm.default(t)&&"Object"!==(null==t||null===(e=t.constructor)||void 0===e?void 0:e.name))&&(r=null===t?"null":"instance of ".concat(null==t||null===(n=t.constructor)||void 0===n?void 0:n.name));return r||(r=jm.default(t)),r},Ym=function(t){var e,r=[],n=zm(t);try{for(n.s();!(e=n.n()).done;){var o=e.value;r.push(Xm(o))}}catch(t){n.e(t)}finally{n.f()}return r},Xm=function(t){var e,r=[],n=zm(Array.isArray(t)?t:[t]);try{for(n.s();!(e=n.n()).done;){var o=e.value;"string"!=typeof o&&"function"!=typeof o?r.push(o):r.push(Um(o))}}catch(t){n.e(t)}finally{n.f()}return r},Jm=function(t,e){var r,n,o=[],i=!1,a=zm(t);try{for(a.s();!(n=a.n()).done;){var u,c=zm(n.value.checks);try{for(c.s();!(u=c.n()).done;){var s=(0,u.value)(e),f=Tm.default(s,3),l=f[0],p=f[1],h=f[2];i=i||l,!r&&h&&(r=h),p&&(o=[].concat(Lm.default(o),"string"==typeof p?[p]:Lm.default(p)))}}catch(t){c.e(t)}finally{c.f()}}}catch(t){a.e(t)}finally{a.f()}if(i)return[!0];var d=r||Hm(e),v=o.length-1;return[!1,d,v>0?"".concat(o.slice(0,v).join(", ")," or ").concat(o[v]):o.join(", "),v>1?";":","]};function Km(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Zm(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 Zm(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Zm(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}Md.array=function(t,e){return Cm((function(r){if(!Array.isArray(r))return[!1,"an array of ".concat(t)];var n,o=Km(r.entries());try{for(o.s();!(n=o.n()).done;){var i=Tm.default(n.value,2),a=i[0],u=i[1],c=Jm(Xm(e),u),s=Tm.default(c,3),f=s[0],l=s[1],p=s[2];if(!f)return[!1,"a valid array of ".concat(t," (index ").concat(a," should be ").concat(p,")"),"malformed array of ".concat(t," (index ").concat(a," is ").concat(l,")")]}}catch(t){o.e(t)}finally{o.f()}return[!0]}))},Md.custom=Cm;var Qm=Md.literal=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Cm((function(t){var r,n=!1,o=[],i=Nm(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;n=n||t===a,o.push("string"==typeof a?'"'.concat(a,'"'):"".concat(a))}}catch(t){i.e(t)}finally{i.f()}return[n,o]}))},tb=Md.nonEmptyString=Bm;Md.nonNegativeInteger=qm,Md.objectSchema=function(t,e){return Cm((function(r){if("object"!==jm.default(r)||null===r||Array.isArray(r))return[!1,"valid ".concat(t," (should be a pure object)")];for(var n=0,o=Object.entries(e);n<o.length;n++){var i=Tm.default(o[n],2),a=i[0],u=i[1],c=Jm(Xm(u),r[a]),s=Tm.default(c,3),f=s[0],l=s[1],p=s[2];if(!f)return[!1,"valid ".concat(t,' (key "').concat(a,'" should be ').concat(p,")"),"malformed ".concat(t,' (key "').concat(a,'" is ').concat(l,")")]}return[!0]}))};var eb=Md.pureObject=Gm;Md.runtimeTypeValidation=Vm,Md.stringifyReceivedType=Hm,Md.type=Um;var rb,nb,ob=Md.validateConstructorTypes=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Ym(e);return function(t){return function(t){Rm.default(r,t);var e=Wm(r);function r(){_m.default(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return Vm(n,o),e.call.apply(e,[this].concat(o))}return r}(t)}},ib=Md.validateTypes=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Ym(e);return function(t,e,r){if("function"!=typeof r.value)throw new Error("The validateTypes decorator can only be applied to methods");var o=r.value;r.value=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Vm(n,e),o.apply(this,e)}}},ab=Md.validateTypesAsync=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Ym(e);return function(t,e,r){if("function"!=typeof r.value)throw new Error("The validateTypesAsync decorator can only be applied to methods");var o=r.value;r.value=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];try{Vm(n,e)}catch(t){return Promise.reject(t)}return o.apply(this,e)}}},ub=Va.scope("");return t.default=(nb=rb=class{constructor(t,e,r){var n,o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.options=i,this.options.logLevel=null!==(n=this.options.logLevel)&&void 0!==n?n:"silent",this.config=new hu(t,e,r,this.options),ub.setLevel(this.options.logLevel),this.options.transport=null!==(o=this.options.transport)&&void 0!==o?o:new Zc,this.transport=this.options.transport,this.network=new Dd(this.config,this.transport)}updateToken(t){ub.info("updateToken"),this.config.updateToken(t)}get(t){var e=this;return n(Sa.mark((function r(){var n;return Sa.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.network.get("".concat(e.config.mediaUrl,"/").concat(t));case 2:return n=r.sent,r.abrupt("return",new du(e.config,e.network,n.body));case 4:case"end":return r.stop()}}),r)})))()}post(t,e,r,o){var i=this;return n(Sa.mark((function n(){var a;return Sa.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,i.network.post(i.config.mediaUrl,null!=r?r:"media",e,t,o);case 2:return a=n.sent,n.abrupt("return",new du(i.config,i.network,a.body));case 4:case"end":return n.stop()}}),n)})))()}postFormData(t,e){var r=this;return n(Sa.mark((function n(){var o;return Sa.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.network.post(r.config.mediaUrl,null!=e?e:"media",t);case 2:return o=n.sent,n.abrupt("return",new du(r.config,r.network,o.body));case 4:case"end":return n.stop()}}),n)})))()}mediaSetGet(t){var e=this;return n(Sa.mark((function r(){var n,o;return Sa.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={command:"get",list:t.map((t=>({media_sid:t})))},r.next=3,e.network.post("".concat(e.config.mediaSetUrl),null,n,"application/json");case 3:return o=r.sent,r.abrupt("return",o.body.map((t=>{if(200!==t.code)throw new Error("Failed to obtain detailed information about Media items (failed SID ".concat(t.media_record.sid,")"));return new du(e.config,e.network,t.media_record)})));case 5:case"end":return r.stop()}}),r)})))()}},o(rb,"version","0.5.3"),nb),ka([ib(tb),Aa("design:type",Function),Aa("design:paramtypes",[String]),Aa("design:returntype",void 0)],t.default.prototype,"updateToken",null),ka([ab(tb),Aa("design:type",Function),Aa("design:paramtypes",[String]),Aa("design:returntype",Promise)],t.default.prototype,"get",null),t.default=ka([ob(tb,tb,[tb,Qm(null)],[eb,"undefined"]),Aa("design:paramtypes",[String,String,Object,Object])],t.default),t.Client=t.default,t.McsClient=t.default,t.McsMedia=du,t.Media=du,t.default=t.default,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
|
48
|
+
Object.defineProperty(tg,"__esModule",{value:!0});var ww=rb.exports,xw=Ab.exports,Sw=ay.exports,kw=iy.exports,Aw=cy.exports,Ew=ly.exports,Ow=py.exports;function jw(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var Tw=jw(fy.exports),Lw=jw(ww),_w=jw(xw),Rw=jw(Sw),Iw=jw(kw),Pw=jw(Aw),Cw=jw(Ew),Dw=jw(Ow),Mw=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return{checks:e}};function Uw(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Nw(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 Nw(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Nw(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}var Fw=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Mw((function(t){var r,n=!1,o=[],i=Uw(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;"string"!=typeof a?(n=n||t instanceof a,o.push("an instance of ".concat(a.name))):(n=n||Tw.default(t)===a,o.push("of type ".concat(a)))}}catch(t){i.e(t)}finally{i.f()}return[n,o]}))};function qw(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Bw(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 Bw(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Bw(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}function $w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Dw.default(t);if(e){var o=Dw.default(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Cw.default(this,r)}}function Gw(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Ww(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 Ww(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Ww(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}var zw=function(t,e){if(e.length>t.length)throw new Error("Expected at most ".concat(t.length," argument(s), but got ").concat(e.length));for(;e.length<t.length;)e.push(void 0);var r,n=Gw(e.entries());try{for(n.s();!(r=n.n()).done;){var o=Lw.default(r.value,2),i=o[0],a=o[1],u=Jw(t[i],a),c=Lw.default(u,4),s=c[0],l=c[1],f=c[2],p=c[3];if(!s)throw new Error("Argument ".concat(i+1," is expected to be ").concat(f).concat(p," but got ").concat(l))}}catch(t){n.e(t)}finally{n.f()}},Vw=function(t){var e,r,n;(["undefined","boolean","number","bigint","string"].includes(Tw.default(t))&&(r="string"==typeof t?'"'.concat(t,'"'):"".concat(t)),"object"===Tw.default(t)&&"Object"!==(null==t||null===(e=t.constructor)||void 0===e?void 0:e.name))&&(r=null===t?"null":"instance of ".concat(null==t||null===(n=t.constructor)||void 0===n?void 0:n.name));return r||(r=Tw.default(t)),r},Hw=function(t){var e,r=[],n=Gw(t);try{for(n.s();!(e=n.n()).done;){var o=e.value;r.push(Yw(o))}}catch(t){n.e(t)}finally{n.f()}return r},Yw=function(t){var e,r=[],n=Gw(Array.isArray(t)?t:[t]);try{for(n.s();!(e=n.n()).done;){var o=e.value;"string"!=typeof o&&"function"!=typeof o?r.push(o):r.push(Fw(o))}}catch(t){n.e(t)}finally{n.f()}return r},Jw=function(t,e){var r,n,o=[],i=!1,a=Gw(t);try{for(a.s();!(n=a.n()).done;){var u,c=Gw(n.value.checks);try{for(c.s();!(u=c.n()).done;){var s=(0,u.value)(e),l=Lw.default(s,3),f=l[0],p=l[1],h=l[2];i=i||f,!r&&h&&(r=h),p&&(o=[].concat(_w.default(o),"string"==typeof p?[p]:_w.default(p)))}}catch(t){c.e(t)}finally{c.f()}}}catch(t){a.e(t)}finally{a.f()}if(i)return[!0];var d=r||Vw(e),v=o.length-1;return[!1,d,v>0?"".concat(o.slice(0,v).join(", ")," or ").concat(o[v]):o.join(", "),v>1?";":","]};function Kw(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Xw(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 Xw(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Xw(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}var Zw=Mw((function(t){return["string"==typeof t&&t.length>0,"a non-empty string"]})),Qw=Mw((function(t){return["number"==typeof t&&Number.isInteger(t)&&t>=0,"a non-negative integer"]})),tx=Mw((function(t){return["object"===Tw.default(t)&&null!==t&&!Array.isArray(t),"a pure object (non-null and non-array)"]}));function ex(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return rx(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 rx(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function rx(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}tg.array=function(t,e){return Mw((function(r){if(!Array.isArray(r))return[!1,"an array of ".concat(t)];var n,o=ex(r.entries());try{for(o.s();!(n=o.n()).done;){var i=Lw.default(n.value,2),a=i[0],u=i[1],c=Jw(Yw(e),u),s=Lw.default(c,3),l=s[0],f=s[1],p=s[2];if(!l)return[!1,"a valid array of ".concat(t," (index ").concat(a," should be ").concat(p,")"),"malformed array of ".concat(t," (index ").concat(a," is ").concat(f,")")]}}catch(t){o.e(t)}finally{o.f()}return[!0]}))},tg.custom=Mw;var nx=tg.literal=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Mw((function(t){var r,n=!1,o=[],i=qw(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;n=n||t===a,o.push("string"==typeof a?'"'.concat(a,'"'):"".concat(a))}}catch(t){i.e(t)}finally{i.f()}return[n,o]}))};tg.nonEmptyArray=function(t,e){return Mw((function(r){if(!Array.isArray(r)||r.length<1)return[!1,"a non-empty array of ".concat(t)];var n,o=Kw(r.entries());try{for(o.s();!(n=o.n()).done;){var i=Lw.default(n.value,2),a=i[0],u=i[1],c=Jw(Yw(e),u),s=Lw.default(c,3),l=s[0],f=s[1],p=s[2];if(!l)return[!1,"a valid non-empty array of ".concat(t," (index ").concat(a," should be ").concat(p,")"),"malformed array of ".concat(t," (index ").concat(a," is ").concat(f,")")]}}catch(t){o.e(t)}finally{o.f()}return[!0]}))};var ox=tg.nonEmptyString=Zw;tg.nonNegativeInteger=Qw,tg.objectSchema=function(t,e){return Mw((function(r){if("object"!==Tw.default(r)||null===r||Array.isArray(r))return[!1,"valid ".concat(t," (should be a pure object)")];for(var n=0,o=Object.entries(e);n<o.length;n++){var i=Lw.default(o[n],2),a=i[0],u=i[1],c=Jw(Yw(u),r[a]),s=Lw.default(c,3),l=s[0],f=s[1],p=s[2];if(!l)return[!1,"valid ".concat(t,' (key "').concat(a,'" should be ').concat(p,")"),"malformed ".concat(t,' (key "').concat(a,'" is ').concat(f,")")]}return[!0]}))};var ix=tg.pureObject=tx;tg.runtimeTypeValidation=zw,tg.stringifyReceivedType=Vw,tg.type=Fw;var ax,ux=tg.validateConstructorTypes=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Hw(e);return function(t){return function(t){Pw.default(r,t);var e=$w(r);function r(){Iw.default(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return zw(n,o),e.call.apply(e,[this].concat(o))}return Rw.default(r)}(t)}},cx=tg.validateTypes=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Hw(e);return function(t,e,r){if("function"!=typeof r.value)throw new Error("The validateTypes decorator can only be applied to methods");var o=r.value;r.value=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return zw(n,e),o.apply(this,e)}}},sx=tg.validateTypesAsync=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Hw(e);return function(t,e,r){if("function"!=typeof r.value)throw new Error("The validateTypesAsync decorator can only be applied to methods");var o=r.value;r.value=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];try{zw(n,e)}catch(t){return Promise.reject(t)}return o.apply(this,e)}}},lx=dl.scope("");return t.default=(r(ax=class{constructor(t,e,r){var n,o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.options=i,this.options.logLevel=null!==(n=this.options.logLevel)&&void 0!==n?n:"silent",this.config=new Dl(t,e,r,this.options),lx.setLevel(this.options.logLevel),this.options.transport=null!==(o=this.options.transport)&&void 0!==o?o:new Tp,this.transport=this.options.transport,this.network=new Qy(this.config,this.transport)}updateToken(t){lx.info("updateToken"),this.config.updateToken(t)}get(t){var e=this;return new qc(function(){var r=$c(Ws.mark((function r(n,o,i){var a,u;return Ws.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.network.get("".concat(e.config.mediaUrl,"/").concat(t)),i((()=>a.cancel())),r.prev=2,r.next=5,a;case 5:u=r.sent,n(new Ml(e.config,e.network,u.body)),r.next=12;break;case 9:r.prev=9,r.t0=r.catch(2),o(r.t0);case 12:case"end":return r.stop()}}),r,null,[[2,9]])})));return function(t,e,n){return r.apply(this,arguments)}}())}post(t,e,r,n){var o=this;return new qc(function(){var i=$c(Ws.mark((function i(a,u,c){var s,l;return Ws.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return s=o.network.post(o.config.mediaUrl,null!=r?r:"media",e,t,n),c((()=>s.cancel())),i.prev=2,i.next=5,s;case 5:l=i.sent,a(new Ml(o.config,o.network,l.body)),i.next=12;break;case 9:i.prev=9,i.t0=i.catch(2),u(i.t0);case 12:case"end":return i.stop()}}),i,null,[[2,9]])})));return function(t,e,r){return i.apply(this,arguments)}}())}postFormData(t,e){var r=this;return new qc(function(){var n=$c(Ws.mark((function n(o,i,a){var u,c;return Ws.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.network.post(r.config.mediaUrl,null!=e?e:"media",t),a((()=>u.cancel())),n.prev=2,n.next=5,u;case 5:c=n.sent,o(new Ml(r.config,r.network,c.body)),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),i(n.t0);case 12:case"end":return n.stop()}}),n,null,[[2,9]])})));return function(t,e,r){return n.apply(this,arguments)}}())}mediaSetGet(t){var e=this;return new qc(function(){var r=$c(Ws.mark((function r(n,o,i){var a,u,c,s;return Ws.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={command:"get",list:t.map((t=>({media_sid:t})))},u=e.network.post("".concat(e.config.mediaSetUrl),null,a,"application/json"),i((()=>u.cancel())),r.prev=3,r.next=6,u;case 6:c=r.sent,s=c.body.map((t=>{if(200===t.code)return new Ml(e.config,e.network,t.media_record);o("Failed to obtain detailed information about Media items (failed SID ".concat(t.media_record.sid,")"))})),n(s),r.next=14;break;case 11:r.prev=11,r.t0=r.catch(3),o(r.t0);case 14:case"end":return r.stop()}}),r,null,[[3,11]])})));return function(t,e,n){return r.apply(this,arguments)}}())}mediaSetGetContentUrls(t){var e=this;return new qc(function(){var r=$c(Ws.mark((function r(n,o,i){var a,u,c,s;return Ws.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={command:"get",list:t.map((t=>({media_sid:t})))},u=e.network.post("".concat(e.config.mediaSetUrl),null,a,"application/json"),i((()=>u.cancel())),r.prev=3,r.next=6,u;case 6:c=r.sent,s=new Map,c.body.forEach((t=>{200===t.code?s.set(t.media_record.sid,t.media_record.links.content_direct_temporary):o("Failed to obtain detailed information about Media items (failed SID ".concat(t.media_record.sid,")"))})),n(s),r.next=15;break;case 12:r.prev=12,r.t0=r.catch(3),o(r.t0);case 15:case"end":return r.stop()}}),r,null,[[3,12]])})));return function(t,e,n){return r.apply(this,arguments)}}())}},"version","0.6.0-rc.10"),ax),zs([cx(ox),Vs("design:type",Function),Vs("design:paramtypes",[String]),Vs("design:returntype",void 0)],t.default.prototype,"updateToken",null),zs([sx(ox),Vs("design:type",Function),Vs("design:paramtypes",[String]),Vs("design:returntype",qc)],t.default.prototype,"get",null),t.default=zs([ux(ox,ox,[ox,nx(null)],[ix,"undefined"]),Vs("design:paramtypes",[String,String,Object,Object])],t.default),t.CancellablePromise=qc,t.Client=t.default,t.McsClient=t.default,t.McsMedia=Ml,t.Media=Ml,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|